pub struct ProviderStatus {Show 14 fields
pub provider: String,
pub label: String,
pub symbol: FrontendSymbol,
pub description: String,
pub model_ids_configurable: bool,
pub auth: ProviderAuthKind,
pub default_base_url: Option<String>,
pub native_custom_endpoints: bool,
pub default_api_key_env: Option<String>,
pub models: Vec<ProviderModel>,
pub web_search: Vec<FrontendSettingOption>,
pub tool_discovery: ToolDiscoveryMode,
pub custom_endpoint_tool_discovery: Option<ToolDiscoveryMode>,
pub realtime_voices: Vec<String>,
}Expand description
Credential availability exposed without returning credential material.
Fields§
§provider: StringThe provider.
label: StringThe label.
symbol: FrontendSymbolThe symbol.
description: StringThe description.
model_ids_configurable: boolThe model identifiers configurable.
auth: ProviderAuthKindThe auth.
default_base_url: Option<String>The default base URL.
native_custom_endpoints: boolCustom roots implement this provider’s native image and voice APIs.
default_api_key_env: Option<String>The default API key env.
models: Vec<ProviderModel>The models.
web_search: Vec<FrontendSettingOption>The web search.
tool_discovery: ToolDiscoveryModeThe tool discovery.
custom_endpoint_tool_discovery: Option<ToolDiscoveryMode>The custom endpoint tool discovery.
realtime_voices: Vec<String>The realtime voices.
Implementations§
Source§impl ProviderStatus
impl ProviderStatus
Sourcepub fn realtime_voices(&self, base_url: Option<&str>) -> &[String]
pub fn realtime_voices(&self, base_url: Option<&str>) -> &[String]
Returns the realtime voices.
Sourcepub fn configurable_base_url(&self) -> bool
pub fn configurable_base_url(&self) -> bool
Returns the configurable base URL.
Sourcepub fn default_model(&self) -> Option<&ProviderModel>
pub fn default_model(&self) -> Option<&ProviderModel>
Returns the default model.
Trait Implementations§
Source§impl Clone for ProviderStatus
impl Clone for ProviderStatus
Source§impl Debug for ProviderStatus
impl Debug for ProviderStatus
Source§impl<'de> Deserialize<'de> for ProviderStatus
impl<'de> Deserialize<'de> for ProviderStatus
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 Eq for ProviderStatus
Source§impl PartialEq for ProviderStatus
impl PartialEq for ProviderStatus
Source§impl Serialize for ProviderStatus
impl Serialize for ProviderStatus
impl StructuralPartialEq for ProviderStatus
Auto Trait Implementations§
impl Freeze for ProviderStatus
impl RefUnwindSafe for ProviderStatus
impl Send for ProviderStatus
impl Sync for ProviderStatus
impl Unpin for ProviderStatus
impl UnsafeUnpin for ProviderStatus
impl UnwindSafe for ProviderStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.