pub struct ServiceDescriptor {Show 19 fields
pub id: String,
pub display_name: String,
pub description: String,
pub category: String,
pub family: String,
pub auth_mode: String,
pub key_var: String,
pub literal_auth_token: String,
pub base_url: String,
pub default_model: String,
pub model_tiers: HashMap<String, String>,
pub model_choices: Vec<ModelChoice>,
pub test_url: String,
pub setup: Vec<String>,
pub usage: Vec<String>,
pub api_base_url: Option<String>,
pub npm_package: Option<String>,
pub doc_url: Option<String>,
pub models: Vec<ModelDescriptor>,
}Expand description
Describes an LLM provider service with all metadata needed to connect and use it.
Fields§
§id: String§display_name: String§description: String§category: String§family: String§auth_mode: String§key_var: String§literal_auth_token: String§base_url: String§default_model: String§model_tiers: HashMap<String, String>§model_choices: Vec<ModelChoice>§test_url: String§setup: Vec<String>§usage: Vec<String>§api_base_url: Option<String>§npm_package: Option<String>§doc_url: Option<String>§models: Vec<ModelDescriptor>Trait Implementations§
Source§impl CapabilityProfile for ServiceDescriptor
impl CapabilityProfile for ServiceDescriptor
fn auth_strategy(&self) -> AuthStrategy
fn clears_anthropic_api_key(&self) -> bool
fn supports_model_tiers(&self) -> bool
Source§impl Clone for ServiceDescriptor
impl Clone for ServiceDescriptor
Source§fn clone(&self) -> ServiceDescriptor
fn clone(&self) -> ServiceDescriptor
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 ServiceDescriptor
impl Debug for ServiceDescriptor
Source§impl<'de> Deserialize<'de> for ServiceDescriptor
impl<'de> Deserialize<'de> for ServiceDescriptor
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 ServiceDescriptor
impl RefUnwindSafe for ServiceDescriptor
impl Send for ServiceDescriptor
impl Sync for ServiceDescriptor
impl Unpin for ServiceDescriptor
impl UnsafeUnpin for ServiceDescriptor
impl UnwindSafe for ServiceDescriptor
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