pub struct Provider {
pub id: String,
pub env: Vec<String>,
pub models: HashMap<String, Model>,
pub name: String,
pub api: Option<String>,
pub npm: Option<String>,
}Expand description
An LLM provider definition.
Fields§
§id: StringUnique provider identifier.
env: Vec<String>Environment variable names required for authentication.
models: HashMap<String, Model>Map of model identifiers to their definitions.
name: StringHuman-readable provider name.
api: Option<String>Optional API base URL.
npm: Option<String>Optional npm package name (JS SDK specific, preserved for compat).
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