You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add capi.enableWebSocketResponses and provider.transport session options (#1711)
* Add capi.disableWebSocketResponses session option
Add the capi.disableWebSocketResponses opt-out to session create/resume
across all six SDK languages, so consumers in proxy/WebSocket-blocked
environments can fall back to the HTTP Responses transport for the CAPI
Responses API.
SDK-side follow-up to github/copilot-agent-runtime#10551, which makes
WebSocket transport the default for CAPI and adds this opt-out. The field
is a hand-written pass-through mirroring the existing provider (BYOK)
nested option, wired into session.create and session.resume.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add provider.transport BYOK option
Add the BYOK provider `transport` field ("http" | "websockets", default
"http") to the hand-written ProviderConfig across all six SDK languages,
so BYOK OpenAI-compatible providers can opt into delivering Responses API
requests over a persistent WebSocket connection instead of HTTP.
SDK-side follow-up to github/copilot-agent-runtime#9557, which adds the
runtime `transport` option. The SDK's consumer-facing ProviderConfig is
hand-written (not generated from the schema), so the field is added as a
pass-through mirroring the existing `wireApi` field, flowing through the
already-wired `provider` option on session create and resume.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Lead with spelled-out 'Copilot API (CAPI)' on first mention
Update the CapiSessionOptions type-level doc summary in each language to lead
with the spelled-out 'Copilot API (CAPI)' form on first use, matching the
existing docs convention (and the Node SDK, which already did this). Python's
class docstring previously never expanded the acronym.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Invert capi flag to enableWebSocketResponses (default true)
Rename the hand-written capi session option from
disableWebSocketResponses (default false) to enableWebSocketResponses
(default true) across all six language SDKs, matching the inverted
shape in runtime PR github/copilot-agent-runtime#10551. Setting it to
false forces the HTTP Responses transport, equivalent to the unchanged
COPILOT_CLI_DISABLE_WEBSOCKET_RESPONSES environment variable.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments