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

Class CommandContext

python/copilot/session.py:510–520  ·  view source on GitHub ↗

Context passed to a command handler when a command is executed.

Source from the content-addressed store, hash-verified

508
509@dataclass
510class CommandContext:
511 """Context passed to a command handler when a command is executed."""
512
513 session_id: str
514 """Session ID where the command was invoked."""
515 command: str
516 """The full command text (e.g. ``"/deploy production"``)."""
517 command_name: str
518 """Command name without leading ``/``."""
519 args: str
520 """Raw argument string after the command name."""
521
522
523CommandHandler = Callable[[CommandContext], Awaitable[None] | None]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…