pub struct ProviderCapabilities {
pub provider_ref: String,
pub supports_streaming: bool,
pub supports_usage: bool,
pub max_input_tokens: Option<u32>,
pub supported_modalities: Vec<ProviderModality>,
}Expand description
Carries provider capabilities data across a host-port boundary. Constructing the value does not call the host; the port method that receives it documents any adapter, network, or storage effect.
Fields§
§provider_ref: StringTyped provider ref reference. Resolving or executing it is a separate policy-gated step.
supports_streaming: boolBoolean policy/capability flag for whether supports streaming is enabled.
supports_usage: boolBoolean policy/capability flag for whether supports usage is enabled.
max_input_tokens: Option<u32>Maximum allowed input tokens. Use it to keep execution, output, or diagnostics bounded.
supported_modalities: Vec<ProviderModality>Collection of supported modalities values. Ordering and membership should be treated as part of the serialized contract when relevant.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderCapabilities
impl Clone for ProviderCapabilities
Source§fn clone(&self) -> ProviderCapabilities
fn clone(&self) -> ProviderCapabilities
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 ProviderCapabilities
impl Debug for ProviderCapabilities
Source§impl<'de> Deserialize<'de> for ProviderCapabilities
impl<'de> Deserialize<'de> for ProviderCapabilities
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
Source§impl PartialEq for ProviderCapabilities
impl PartialEq for ProviderCapabilities
Source§fn eq(&self, other: &ProviderCapabilities) -> bool
fn eq(&self, other: &ProviderCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderCapabilities
impl Serialize for ProviderCapabilities
impl Eq for ProviderCapabilities
impl StructuralPartialEq for ProviderCapabilities
Auto Trait Implementations§
impl Freeze for ProviderCapabilities
impl RefUnwindSafe for ProviderCapabilities
impl Send for ProviderCapabilities
impl Sync for ProviderCapabilities
impl Unpin for ProviderCapabilities
impl UnsafeUnpin for ProviderCapabilities
impl UnwindSafe for ProviderCapabilities
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