Copilot SDK v0.2.1: Commands & Metadata Across All SDKs

Copilot SDK v0.2.1 brings slash commands and UI dialogs to Python, Go, and .NET, adds session metadata lookup, and includes breaking changes to Node.js handlers.

Copilot SDK v0.2.1: Commands & Metadata Across All SDKs

TL;DR

  • Slash commands and UI dialogs now available in Python, Go, and .NET (previously Node.js only)
  • New getSessionMetadata method across all SDKs for efficient session lookup
  • Breaking change in Node.js: onElicitationRequest handler signature changed to single context object

New

  • Commands and UI elicitation across all SDKs — Register slash commands and drive interactive dialogs (confirm, select) from Python, Go, and .NET. Previously Node.js-only.
  • session.getSessionMetadata across all SDKs — Fetch metadata for a single session by ID without listing all sessions. Returns undefined/null if not found.
  • sessionFs for Node SDK — Custom storage adapter to redirect per-session storage (event logs, large files) to any backing store. Useful for serverless and custom persistence.
  • Python: async context manager supportCopilotClient and CopilotSession now support async with for automatic resource cleanup.

Fixed

  • Structured tool results now sent as objects instead of stringified JSON, preserving metadata across Node, Go, and Python SDKs.

Breaking Changes

  • Node.js: onElicitationRequest signature — Changed from two arguments (request, invocation) to a single ElicitationContext. Update callers to use context.sessionId and context.message directly.
  • Python: types import pathcopilot.types module removed. Import types directly from copilot.
  • Go: RPC package API — Struct names simplified; removed redundant Rpc infix (e.g., ModelRpcApiModelApi).
  • Go: Session.SetModel signature — Now takes a pointer for optional options instead of variadic argument.

Improvements

  • Python: Path handlingworkspace_path now accepts any os.PathLike and returns pathlib.Path.

Update with: npm install @github/copilot-sdk@0.2.1 (Node.js), pip install github-copilot-sdk==0.2.1 (Python), or check the release page for Go and .NET packages.

Source: Copilot SDK