pub struct AnthropicConnector { /* private fields */ }Expand description
Anthropic (Claude) connector
Implementations§
Source§impl AnthropicConnector
impl AnthropicConnector
Sourcepub fn with_model(model: &str) -> Self
pub fn with_model(model: &str) -> Self
Create an AnthropicConnector with a specific model
Trait Implementations§
Source§impl AIConnector for AnthropicConnector
impl AIConnector for AnthropicConnector
Source§fn build_request(
&self,
trace: &Trace,
api_key: &str,
) -> Result<AIRequest, TramexError>
fn build_request( &self, trace: &Trace, api_key: &str, ) -> Result<AIRequest, TramexError>
Build the HTTP request for explaining a trace. Read more
Source§fn parse_response(&self, response_body: &str) -> Result<String, TramexError>
fn parse_response(&self, response_body: &str) -> Result<String, TramexError>
Parse the API response body into a human-readable explanation. Read more
Auto Trait Implementations§
impl Freeze for AnthropicConnector
impl RefUnwindSafe for AnthropicConnector
impl Send for AnthropicConnector
impl Sync for AnthropicConnector
impl Unpin for AnthropicConnector
impl UnwindSafe for AnthropicConnector
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