pub struct ModelConnectionConfig {
pub provider: ProviderKind,
pub base_url: String,
pub api_models: Vec<String>,
pub default_model: String,
pub api_families: BTreeSet<ModelApiFamily>,
pub capabilities: ModelCapabilities,
pub policy: ModelPolicy,
}Expand description
Provider connection shared by platform and Agent-owned model configuration. Credentials are deliberately excluded and are accepted only on write requests.
Fields§
§provider: ProviderKind§base_url: String§api_models: Vec<String>§default_model: String§api_families: BTreeSet<ModelApiFamily>§capabilities: ModelCapabilities§policy: ModelPolicyTrait Implementations§
Source§impl Clone for ModelConnectionConfig
impl Clone for ModelConnectionConfig
Source§fn clone(&self) -> ModelConnectionConfig
fn clone(&self) -> ModelConnectionConfig
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 ModelConnectionConfig
impl Debug for ModelConnectionConfig
Source§impl<'de> Deserialize<'de> for ModelConnectionConfig
impl<'de> Deserialize<'de> for ModelConnectionConfig
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
Source§impl PartialEq for ModelConnectionConfig
impl PartialEq for ModelConnectionConfig
Source§impl Serialize for ModelConnectionConfig
impl Serialize for ModelConnectionConfig
impl StructuralPartialEq for ModelConnectionConfig
Auto Trait Implementations§
impl Freeze for ModelConnectionConfig
impl RefUnwindSafe for ModelConnectionConfig
impl Send for ModelConnectionConfig
impl Sync for ModelConnectionConfig
impl Unpin for ModelConnectionConfig
impl UnsafeUnpin for ModelConnectionConfig
impl UnwindSafe for ModelConnectionConfig
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