pub struct CapiSessionOptions {
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§
§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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapiSessionOptions
impl Debug for CapiSessionOptions
Source§impl Default for CapiSessionOptions
impl Default for CapiSessionOptions
Source§fn default() -> CapiSessionOptions
fn default() -> CapiSessionOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CapiSessionOptions
impl<'de> Deserialize<'de> for CapiSessionOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CapiSessionOptions
impl RefUnwindSafe for CapiSessionOptions
impl Send for CapiSessionOptions
impl Sync for CapiSessionOptions
impl Unpin for CapiSessionOptions
impl UnsafeUnpin for CapiSessionOptions
impl UnwindSafe for CapiSessionOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more