pub struct SessionProviderGetEndpointResult {
pub api_key: Option<String>,
pub base_url: String,
pub headers: HashMap<String, String>,
pub session_token: Option<ProviderSessionToken>,
pub transport: Option<ProviderEndpointTransport>,
pub type: ProviderEndpointType,
pub wire_api: Option<ProviderEndpointWireApi>,
}Expand description
A snapshot of the provider endpoint the session is currently configured to talk to.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§api_key: Option<String>A credential the caller should use with this endpoint. Omitted only when the endpoint accepts unauthenticated requests.
base_url: StringBase URL to pass to the LLM client library.
headers: HashMap<String, String>HTTP headers the caller must include on every outbound request.
session_token: Option<ProviderSessionToken>Short-lived, rotating credential the caller must send on every request, in addition to apiKey if one is present. Omitted when the endpoint does not require one.
transport: Option<ProviderEndpointTransport>Transport to be used for provider requests.
type: ProviderEndpointTypeProvider family. Matches the type field of a BYOK provider config.
wire_api: Option<ProviderEndpointWireApi>Wire API to be used, when required for the provider type.
Trait Implementations§
Source§impl Clone for SessionProviderGetEndpointResult
impl Clone for SessionProviderGetEndpointResult
Source§fn clone(&self) -> SessionProviderGetEndpointResult
fn clone(&self) -> SessionProviderGetEndpointResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more