Class SessionToolsApi
java.lang.Object
com.github.copilot.generated.rpc.SessionToolsApi
API methods for the
tools namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionexecute(SessionToolsExecuteParams params) A tool name and arguments to execute through the session's native invocation pipeline.Options controlling how Rust-owned built-in tool descriptors are materialized.Identifies the target session.Pending external tool call request ID, with the tool result or an error describing why it failed.Identifies the target session.set(SessionToolsSetParams params) Complete externally implemented tool list for the calling connection.Task-completion tool arguments and final result used to build a label-safe session event payload.Subagent settings to apply to the current session
-
Method Details
-
execute
A tool name and arguments to execute through the session's native invocation pipeline.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
getBuiltinDescriptors
@CopilotExperimental public CompletableFuture<SessionToolsGetBuiltinDescriptorsResult> getBuiltinDescriptors(SessionToolsGetBuiltinDescriptorsParams params) Options controlling how Rust-owned built-in tool descriptors are materialized.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
taskCompleteEventData
@CopilotExperimental public CompletableFuture<SessionToolsTaskCompleteEventDataResult> taskCompleteEventData(SessionToolsTaskCompleteEventDataParams params) Task-completion tool arguments and final result used to build a label-safe session event payload.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingToolCall
@CopilotExperimental public CompletableFuture<SessionToolsHandlePendingToolCallResult> handlePendingToolCall(SessionToolsHandlePendingToolCallParams params) Pending external tool call request ID, with the tool result or an error describing why it failed.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
initializeAndValidate
Identifies the target session.- Since:
- 1.0.0
-
getCurrentMetadata
@CopilotExperimental public CompletableFuture<SessionToolsGetCurrentMetadataResult> getCurrentMetadata()Identifies the target session.- Since:
- 1.0.0
-
set
Complete externally implemented tool list for the calling connection. An empty list removes every tool previously supplied by that connection.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
updateSubagentSettings
@CopilotExperimental public CompletableFuture<Void> updateSubagentSettings(SessionToolsUpdateSubagentSettingsParams params) Subagent settings to apply to the current sessionNote: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-