#[non_exhaustive]pub struct ProviderInfo {
pub id: String,
pub supported: Vec<LlmProtocol>,
pub required: bool,
pub current: Option<ProviderCurrentConfig>,
pub meta: Option<Meta>,
}unstable_protocol_v2 only.Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Information about a configurable LLM provider.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringProvider identifier, for example “main” or “openai”.
supported: Vec<LlmProtocol>Supported protocol types for this provider.
required: boolWhether this provider is mandatory and cannot be disabled via providers/disable.
If true, clients must not call providers/disable for this id.
current: Option<ProviderCurrentConfig>Current effective non-secret routing config. Null or omitted means provider is disabled.
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl ProviderInfo
impl ProviderInfo
pub fn new( id: impl Into<String>, supported: Vec<LlmProtocol>, required: bool, current: impl IntoOption<ProviderCurrentConfig>, ) -> Self
unstable_llm_providers only.Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
Available on crate feature unstable_llm_providers only.
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
unstable_llm_providers only.The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for ProviderInfo
impl Clone for ProviderInfo
Source§fn clone(&self) -> ProviderInfo
fn clone(&self) -> ProviderInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderInfo
impl Debug for ProviderInfo
Source§impl<'de> Deserialize<'de> for ProviderInfo
impl<'de> Deserialize<'de> for ProviderInfo
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>,
impl Eq for ProviderInfo
Source§impl IntoV1 for ProviderInfo
Available on crate feature unstable_llm_providers only.
impl IntoV1 for ProviderInfo
unstable_llm_providers only.Source§impl JsonSchema for ProviderInfo
impl JsonSchema for ProviderInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ProviderInfo
impl PartialEq for ProviderInfo
Source§fn eq(&self, other: &ProviderInfo) -> bool
fn eq(&self, other: &ProviderInfo) -> bool
self and other values to be equal, and is used by ==.