pub struct Provider {
pub id: String,
pub name: String,
pub source: ProviderSource,
pub env: Vec<String>,
pub key: Option<String>,
pub options: HashMap<String, Value>,
pub models: HashMap<String, Model>,
}Expand description
An LLM provider definition.
Fields§
§id: StringUnique provider identifier.
name: StringHuman-readable provider name.
source: ProviderSourceSource of the provider configuration.
env: Vec<String>Environment variable names required for authentication.
key: Option<String>Optional API key.
options: HashMap<String, Value>Arbitrary provider-specific options.
models: HashMap<String, Model>Map of model identifiers to their definitions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Provider
impl<'de> Deserialize<'de> for Provider
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
impl StructuralPartialEq for Provider
Auto Trait Implementations§
impl Freeze for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnwindSafe for Provider
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