Class SessionCommandsApi
commands namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionenqueue(SessionCommandsEnqueueParams params) Enqueues a slash command for FIFO processing on the local session.execute(SessionCommandsExecuteParams params) Executes a slash command synchronously and returns any error.Reports completion of a pending client-handled slash command.invoke(SessionCommandsInvokeParams params) Invokes a slash command in the session.list()Lists slash commands available in the session.list(SessionCommandsListParams params) Lists slash commands available in the session.Reports whether the host actually executed a queued command and whether to continue processing.
-
Method Details
-
list
Lists slash commands available in the session.Invokes the method with no params, applying the runtime defaults.
- Since:
- 1.0.0
-
list
@CopilotExperimental public CompletableFuture<SessionCommandsListResult> list(SessionCommandsListParams params) Lists slash commands available in the session.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
invoke
@CopilotExperimental public CompletableFuture<SlashCommandInvocationResult> invoke(SessionCommandsInvokeParams params) Invokes a slash command in the session.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingCommand
@CopilotExperimental public CompletableFuture<SessionCommandsHandlePendingCommandResult> handlePendingCommand(SessionCommandsHandlePendingCommandParams params) Reports completion of a pending client-handled slash command.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
execute
@CopilotExperimental public CompletableFuture<SessionCommandsExecuteResult> execute(SessionCommandsExecuteParams params) Executes a slash command synchronously and returns any error.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
enqueue
@CopilotExperimental public CompletableFuture<EnqueueCommandResult> enqueue(SessionCommandsEnqueueParams params) Enqueues a slash command for FIFO processing on the local session.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
respondToQueuedCommand
@CopilotExperimental public CompletableFuture<SessionCommandsRespondToQueuedCommandResult> respondToQueuedCommand(SessionCommandsRespondToQueuedCommandParams params) Reports whether the host actually executed a queued command and whether to continue processing.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-