java.lang.Object
com.github.copilot.generated.rpc.SessionCommandsApi
API methods for the
commands namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionenqueue(SessionCommandsEnqueueParams params) Slash-prefixed command string to enqueue for FIFO processing.execute(SessionCommandsExecuteParams params) Slash command name and argument string to execute synchronously.Pending command request ID and an optional error if the client handler failed.invoke(SessionCommandsInvokeParams params) Slash command name and optional raw input string to invoke.list()Optional filters controlling which command sources to include in the listing.Queued-command request ID and the result indicating whether the host executed it (and whether to stop processing further queued commands).
-
Method Details
-
list
Optional filters controlling which command sources to include in the listing.- Since:
- 1.0.0
-
invoke
Slash command name and optional raw input string to invoke.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingCommand
public CompletableFuture<SessionCommandsHandlePendingCommandResult> handlePendingCommand(SessionCommandsHandlePendingCommandParams params) Pending command request ID and an optional error if the client handler failed.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
execute
Slash command name and argument string to execute synchronously.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
enqueue
Slash-prefixed command string to enqueue for FIFO processing.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
respondToQueuedCommand
public CompletableFuture<SessionCommandsRespondToQueuedCommandResult> respondToQueuedCommand(SessionCommandsRespondToQueuedCommandParams params) Queued-command request ID and the result indicating whether the host executed it (and whether to stop processing further queued commands).Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-