pub struct CohereProvider { /* private fields */ }Expand description
Client for the Cohere Chat API v2 (POST {base_url}/chat).
Requests use the same message and tool shapes as OpenAI; responses differ.
Implementations§
Trait Implementations§
Source§impl Clone for CohereProvider
impl Clone for CohereProvider
Source§impl Debug for CohereProvider
impl Debug for CohereProvider
Source§impl LlmProvider for CohereProvider
impl LlmProvider for CohereProvider
fn chat<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for CohereProvider
impl !UnwindSafe for CohereProvider
impl Freeze for CohereProvider
impl Send for CohereProvider
impl Sync for CohereProvider
impl Unpin for CohereProvider
impl UnsafeUnpin for CohereProvider
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