Skip to main content

CapabilityProfile

Trait CapabilityProfile 

Source
pub trait CapabilityProfile {
    // Required methods
    fn auth_strategy(&self) -> AuthStrategy;
    fn clears_anthropic_api_key(&self) -> bool;
    fn supports_model_tiers(&self) -> bool;

    // Provided methods
    fn supports_tool_calling(&self) -> bool { ... }
    fn supports_vision(&self) -> bool { ... }
    fn supports_streaming(&self) -> bool { ... }
    fn context_limit(&self) -> Option<u64> { ... }
}
Expand description

Capability profile for a provider — determines auth strategy and feature support.

Required Methods§

Source

fn auth_strategy(&self) -> AuthStrategy

How the provider authenticates API requests.

Source

fn clears_anthropic_api_key(&self) -> bool

Whether the Anthropic API key should be cleared before calling this provider.

Source

fn supports_model_tiers(&self) -> bool

Whether the provider supports model tiers (e.g. fast vs. powerful model aliases).

Provided Methods§

Source

fn supports_tool_calling(&self) -> bool

Returns true if any model offered by this provider supports tool/function calling.

Source

fn supports_vision(&self) -> bool

Returns true if any model offered by this provider accepts image input.

Source

fn supports_streaming(&self) -> bool

Returns true if the provider supports streaming completions.

Source

fn context_limit(&self) -> Option<u64>

Maximum context window in tokens across all models, or None if unknown.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§