pub struct AnthropicProvider {
pub api_key: String,
pub base_url: String,
/* private fields */
}Fields§
§api_key: String§base_url: StringImplementations§
Trait Implementations§
Source§impl LlmProvider for AnthropicProvider
impl LlmProvider for AnthropicProvider
fn name(&self) -> &str
fn request_snapshot(&self, req: &LLMRequest) -> Value
fn chat_completion<'life0, 'async_trait>(
&'life0 self,
req: LLMRequest,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'static, Result<ProviderStreamChunk, ProviderError>>, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for AnthropicProvider
impl !UnwindSafe for AnthropicProvider
impl Freeze for AnthropicProvider
impl Send for AnthropicProvider
impl Sync for AnthropicProvider
impl Unpin for AnthropicProvider
impl UnsafeUnpin for AnthropicProvider
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