Skip to main content

Provider

Trait Provider 

Source
pub trait Provider: Send + Sync {
    // Required method
    fn name(&self) -> &'static str;
}
Expand description

Stable identity for a provider.

Required Methods§

Source

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

Stable name identifying this provider instance (used in logs and spans).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Provider for Echo

Source§

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

Source§

impl Provider for EmbeddingProvider

Source§

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

Source§

impl Provider for InMemoryProvider

Source§

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

Source§

impl<I, O> Provider for DagTool<I, O>
where I: Send + 'static, O: Send + 'static,

Source§

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

Source§

impl<P> Provider for LlmRequestResponse<P>
where P: Provider + 'static,

Source§

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

Source§

impl<P> Provider for LlmStream<P>
where P: Provider + 'static,

Source§

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

Implementors§

Source§

impl<S, I, O> Provider for TowerProvider<S, I, O>
where S: Service<I, Response = O, Error = AppError> + Send + Clone + 'static, <S as Service<I>>::Future: Send + 'static, I: Send + 'static, O: Send + 'static,