pub struct MistralConnector { /* private fields */ }Expand description
Mistral AI connector
Implementations§
Source§impl MistralConnector
impl MistralConnector
Sourcepub fn with_model(model: &str) -> Self
pub fn with_model(model: &str) -> Self
Create a MistralConnector with a specific model
Trait Implementations§
Source§impl AIConnector for MistralConnector
impl AIConnector for MistralConnector
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 MistralConnector
impl RefUnwindSafe for MistralConnector
impl Send for MistralConnector
impl Sync for MistralConnector
impl Unpin for MistralConnector
impl UnwindSafe for MistralConnector
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