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 used when the session model is auto. The runtime persists the preference across cold resume. When omitted, the default routing behavior is used. Resuming an already-resident session cannot change its preference.
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