feat: add status, auth, and models metadata APIs to all SDKs#77
Merged
feat: add status, auth, and models metadata APIs to all SDKs#77
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.
Contributor
There was a problem hiding this comment.
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.
patniko
approved these changes
Jan 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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