MCPcopy Index your code
hub / github.com/github/copilot-sdk / handle_pending_command

Method handle_pending_command

python/copilot/generated/rpc.py:26256–26260  ·  view source on GitHub ↗

Reports completion of a pending client-handled slash command.\n\nArgs:\n params: Pending command request ID and an optional error if the client handler failed.\n\nReturns:\n Indicates whether the pending client-handled command was completed successfully.

(self, params: CommandsHandlePendingCommandRequest, *, timeout: float | None = None)

Source from the content-addressed store, hash-verified

26254 return _load_SlashCommandInvocationResult(await self._client.request("session.commands.invoke", params_dict, **_timeout_kwargs(timeout)))
26255
26256 async def handle_pending_command(self, params: CommandsHandlePendingCommandRequest, *, timeout: float | None = None) -> CommandsHandlePendingCommandResult:
26257 "Reports completion of a pending client-handled slash command.\n\nArgs:\n params: Pending command request ID and an optional error if the client handler failed.\n\nReturns:\n Indicates whether the pending client-handled command was completed successfully."
26258 params_dict: dict[str, Any] = {k: v for k, v in params.to_dict().items() if v is not None}
26259 params_dict["sessionId"] = self._session_id
26260 return CommandsHandlePendingCommandResult.from_dict(await self._client.request("session.commands.handlePendingCommand", params_dict, **_timeout_kwargs(timeout)))
26261
26262 async def execute(self, params: ExecuteCommandParams, *, timeout: float | None = None) -> ExecuteCommandResult:
26263 "Executes a slash command synchronously and returns any error.\n\nArgs:\n params: Slash command name and argument string to execute synchronously.\n\nReturns:\n Error message produced while executing the command, if any."

Calls 4

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
from_dictMethod · 0.45
requestMethod · 0.45