pub struct ProviderEndpoint {
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 ProviderEndpoint
impl Clone for ProviderEndpoint
Source§fn clone(&self) -> ProviderEndpoint
fn clone(&self) -> ProviderEndpoint
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 ProviderEndpoint
impl Debug for ProviderEndpoint
Source§impl Default for ProviderEndpoint
impl Default for ProviderEndpoint
Source§fn default() -> ProviderEndpoint
fn default() -> ProviderEndpoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderEndpoint
impl<'de> Deserialize<'de> for ProviderEndpoint
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 ProviderEndpoint
impl RefUnwindSafe for ProviderEndpoint
impl Send for ProviderEndpoint
impl Sync for ProviderEndpoint
impl Unpin for ProviderEndpoint
impl UnsafeUnpin for ProviderEndpoint
impl UnwindSafe for ProviderEndpoint
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