v0.2.1-preview.2
Pre-release
Pre-release
Feature: onElicitationRequest callback for elicitation provider support
[Node] SDK clients can now act as elicitation providers by registering an onElicitationRequest callback in SessionConfig. The SDK negotiates the requestElicitation capability with the runtime, listens for broadcast elicitation.requested events, invokes the handler, and responds automatically. (#908)
const session = await client.createSession({
onElicitationRequest: async (request) => {
// respond to structured user input requests broadcast by the CLI runtime
return { type: "string", value: "user response" };
},
});Feature: getSessionMetadata API across all SDKs
All SDKs now expose an efficient O(1) lookup of a single session's metadata by ID — no need to call listSessions and filter client-side. (#899)
- TypeScript:
await client.getSessionMetadata(sessionId)— returnsSessionMetadata | undefined - C#:
await client.GetSessionMetadataAsync(sessionId)— returnsSessionMetadata? - Python:
await client.get_session_metadata(session_id)— returnsSessionMetadata | None - Go:
client.GetSessionMetadata(ctx, sessionID)— returns(*SessionMetadata, error)
Feature: async context manager support for Python client and session
[Python] CopilotClient and CopilotSession now implement the async context manager protocol for automatic resource cleanup. (#475)
async with CopilotClient() as client:
async with await client.create_session() as session:
response = await session.get_response("Hello")Other changes
- bugfix: [Node, Go, Python] structured
ToolResultObjectvalues were stringified before RPC, causingtoolTelemetryandresultTypeto be silently lost on the server side (#970) - improvement: [All] update bundled runtime to 1.0.15-2, resolving a regression with
postToolUsehooks (#978)
New contributors
Generated by Release Changelog Generator
Generated by Release Changelog Generator