pub struct ProviderAddRequest {
pub models: Option<Vec<ProviderModelConfig>>,
pub providers: Option<Vec<NamedProviderConfig>>,
}Expand description
BYOK providers and/or models to add to the session’s registry at runtime. Both fields are optional; provide providers, models, or both.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§models: Option<Vec<ProviderModelConfig>>BYOK model definitions to register. Each must reference a provider that is already registered or included in this same call. Selection ids (provider/id) must be unique across the registry.
providers: Option<Vec<NamedProviderConfig>>Named BYOK provider connections to register, additive to any providers already in the registry. Each name must be unique across the registry and must not contain ‘/’.
Trait Implementations§
Source§impl Clone for ProviderAddRequest
impl Clone for ProviderAddRequest
Source§fn clone(&self) -> ProviderAddRequest
fn clone(&self) -> ProviderAddRequest
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 ProviderAddRequest
impl Debug for ProviderAddRequest
Source§impl Default for ProviderAddRequest
impl Default for ProviderAddRequest
Source§fn default() -> ProviderAddRequest
fn default() -> ProviderAddRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderAddRequest
impl<'de> Deserialize<'de> for ProviderAddRequest
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 ProviderAddRequest
impl RefUnwindSafe for ProviderAddRequest
impl Send for ProviderAddRequest
impl Sync for ProviderAddRequest
impl Unpin for ProviderAddRequest
impl UnsafeUnpin for ProviderAddRequest
impl UnwindSafe for ProviderAddRequest
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