pub struct SessionProviderGetEndpointResult {
pub api_key: Option<String>,
pub base_url: String,
pub headers: HashMap<String, String>,
pub session_token: Option<ProviderSessionToken>,
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.
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
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 Default for SessionProviderGetEndpointResult
impl Default for SessionProviderGetEndpointResult
Source§fn default() -> SessionProviderGetEndpointResult
fn default() -> SessionProviderGetEndpointResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionProviderGetEndpointResult
impl<'de> Deserialize<'de> for SessionProviderGetEndpointResult
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 SessionProviderGetEndpointResult
impl RefUnwindSafe for SessionProviderGetEndpointResult
impl Send for SessionProviderGetEndpointResult
impl Sync for SessionProviderGetEndpointResult
impl Unpin for SessionProviderGetEndpointResult
impl UnsafeUnpin for SessionProviderGetEndpointResult
impl UnwindSafe for SessionProviderGetEndpointResult
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