pub struct CapiSessionOptions {
pub auto_tier: Option<AutoTier>,
pub enable_web_socket_responses: Option<bool>,
}Expand description
Options scoped to the built-in CAPI (Copilot API) provider.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§auto_tier: Option<AutoTier>Routing preference for sessions whose model is auto. On create or cold resume, this establishes the preference sent as tier on CAPI /auto requests; when omitted on cold resume, the runtime restores the last committed preference. On resident resume, a different value requests a safe switch after resume succeeds and cannot change an in-flight turn. Successful switches are persisted for later cold resume. When no preference is supplied or restored, CAPI default routing is used.
enable_web_socket_responses: Option<bool>Whether to use WebSocket transport for the CAPI Responses API. Enabled by default when the model advertises ws:/responses support; set to false to force the HTTP Responses transport in environments where WebSockets are blocked (e.g. behind a proxy). Setting this to false is equivalent to the COPILOT_CLI_DISABLE_WEBSOCKET_RESPONSES environment variable.
Trait Implementations§
Source§impl Clone for CapiSessionOptions
impl Clone for CapiSessionOptions
Source§fn clone(&self) -> CapiSessionOptions
fn clone(&self) -> CapiSessionOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more