Skip to main content

AnthropicClient

Trait AnthropicClient 

Source
pub trait AnthropicClient: Send + Sync {
    // Required method
    fn create_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        messages: &'life1 [Value],
    ) -> Pin<Box<dyn Future<Output = Result<Value, TickError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Anthropic client trait. The real reqwest-backed client implements this; tests provide their own fake.

Required Methods§

Source

fn create_message<'life0, 'life1, 'async_trait>( &'life0 self, messages: &'life1 [Value], ) -> Pin<Box<dyn Future<Output = Result<Value, TickError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§