-
Notifications
You must be signed in to change notification settings - Fork 700
feat: add status, auth, and models metadata APIs to all SDKs #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add three new methods to query CLI metadata: - getStatus/get_status/GetStatus/GetStatusAsync - CLI version and protocol info - getAuthStatus/get_auth_status/GetAuthStatus/GetAuthStatusAsync - Auth state - listModels/list_models/ListModels/ListModelsAsync - Available models with metadata Implements #61 Bump protocol version to 2 to match copilot-agent-runtime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds three new metadata query APIs to all SDKs (Python, Node.js, Go, and .NET) for retrieving CLI status, authentication state, and available models information. The protocol version is bumped from 1 to 2 to maintain compatibility with the copilot-agent-runtime.
Changes:
- Added
getStatus/get_status/GetStatus/GetStatusAsyncmethod to retrieve CLI version and protocol version - Added
getAuthStatus/get_auth_status/GetAuthStatus/GetAuthStatusAsyncmethod to query authentication state - Added
listModels/list_models/ListModels/ListModelsAsyncmethod to retrieve available models with metadata - Updated protocol version from 1 to 2 in
sdk-protocol-version.json - Updated test snapshots to reflect minor changes in assistant responses
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk-protocol-version.json | Bumps protocol version from 1 to 2 to match agent runtime |
| test/snapshots/session/should_abort_a_session.yaml | Updates test snapshots with minor response text changes |
| python/copilot/types.py | Adds type definitions for status, auth, and model metadata responses |
| python/copilot/client.py | Implements three new async methods for metadata queries |
| python/copilot/init.py | Exports new public types for external use |
| nodejs/src/types.ts | Adds TypeScript interface definitions for new API responses |
| nodejs/src/client.ts | Implements three new async methods for metadata queries |
| nodejs/src/index.ts | Exports new public types for external use |
| go/types.go | Adds Go struct definitions for new API responses |
| go/client.go | Implements three new methods with proper error handling |
| dotnet/src/Types.cs | Adds C# class definitions with JSON serialization attributes |
| dotnet/src/Client.cs | Implements three new async methods with cancellation token support |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add three new methods to query CLI metadata:
Implements #61
Bump protocol version to 2 to match copilot-agent-runtime.
This requires us to update the deps to point to a new pre-release of the CLI, will update this PR when done