Skip to main content

ProviderIdentity

Trait ProviderIdentity 

Source
pub trait ProviderIdentity: Send + Sync {
    // Provided method
    fn provider_name(&self) -> &'static str { ... }
}
Expand description

Shared provider identity surface for chat and embedding providers.

Returns the provider identity string used for logs, tracing, fixtures, and diagnostics (for example "anthropic" or "openai").

This is an open string surface rather than a closed enum so wrappers and custom providers can preserve their existing naming. Callers should not treat it as a stable capability-dispatch mechanism.

Provided Methods§

Source

fn provider_name(&self) -> &'static str

Returns the provider identity name.

Implementations on Foreign Types§

Source§

impl<T> ProviderIdentity for &T
where T: ProviderIdentity + ?Sized,

Source§

fn provider_name(&self) -> &'static str

Source§

impl<T> ProviderIdentity for Box<T>
where T: ProviderIdentity + ?Sized,

Source§

fn provider_name(&self) -> &'static str

Source§

impl<T> ProviderIdentity for Arc<T>
where T: ProviderIdentity + ?Sized,

Source§

fn provider_name(&self) -> &'static str

Implementors§