pub struct ModelProviderDescriptor {
pub id: String,
pub kind: ModelProviderKind,
pub label: String,
pub ordering: i64,
}Expand description
One model provider available to the session — the model analog of the account ProviderDescriptor. Opaque id/label/kind plus a stable ordering; central code never branches on kind.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§id: StringOpaque, stable provider id, stamped onto every model this provider returns.
kind: ModelProviderKindThe neutral provider kind.
label: StringHuman-readable menu label, owned by the runtime so every consumer renders identical text.
ordering: i64Stable ordering key for presenting providers in a deterministic sequence.
Trait Implementations§
Source§impl Clone for ModelProviderDescriptor
impl Clone for ModelProviderDescriptor
Source§impl Debug for ModelProviderDescriptor
impl Debug for ModelProviderDescriptor
Source§impl Default for ModelProviderDescriptor
impl Default for ModelProviderDescriptor
Source§impl<'de> Deserialize<'de> for ModelProviderDescriptor
impl<'de> Deserialize<'de> for ModelProviderDescriptor
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 ModelProviderDescriptor
impl RefUnwindSafe for ModelProviderDescriptor
impl Send for ModelProviderDescriptor
impl Sync for ModelProviderDescriptor
impl Unpin for ModelProviderDescriptor
impl UnsafeUnpin for ModelProviderDescriptor
impl UnwindSafe for ModelProviderDescriptor
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