pub struct AnthropicAdapter { /* private fields */ }Expand description
Anthropic Claude adapter.
Implementations§
Trait Implementations§
Source§impl ModelAdapter for AnthropicAdapter
impl ModelAdapter for AnthropicAdapter
Source§fn system_name(&self) -> &'static str
fn system_name(&self) -> &'static str
OTel GenAI system name (e.g. “anthropic”, “openai”).
Source§fn default_model(&self) -> &str
fn default_model(&self) -> &str
Default model for this adapter (e.g. “claude-sonnet-4-6”).
Source§fn chat<'life0, 'async_trait>(
&'life0 self,
request: ModelRequest,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn chat<'life0, 'async_trait>(
&'life0 self,
request: ModelRequest,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a chat request and return the response.
Source§fn structured_output<'life0, 'async_trait>(
&'life0 self,
request: StructuredRequest,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn structured_output<'life0, 'async_trait>(
&'life0 self,
request: StructuredRequest,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a structured output request, returning a JSON value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AnthropicAdapter
impl !UnwindSafe for AnthropicAdapter
impl Freeze for AnthropicAdapter
impl Send for AnthropicAdapter
impl Sync for AnthropicAdapter
impl Unpin for AnthropicAdapter
impl UnsafeUnpin for AnthropicAdapter
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