pub struct AnthropicModel { /* private fields */ }Implementations§
Source§impl AnthropicModel
impl AnthropicModel
pub fn new(model_id: impl Into<String>, options: AnthropicModelOptions) -> Self
pub fn with_metadata(self, metadata: LanguageModelMetadata) -> Self
Trait Implementations§
Source§impl LanguageModel for AnthropicModel
impl LanguageModel for AnthropicModel
fn provider(&self) -> &'static str
fn model_id(&self) -> String
fn metadata(&self) -> Option<&LanguageModelMetadata>
fn generate( &self, input: LanguageModelInput, ) -> BoxFuture<'_, LanguageModelResult<ModelResponse>>
fn stream( &self, input: LanguageModelInput, ) -> BoxFuture<'_, LanguageModelResult<LanguageModelStream>>
Auto Trait Implementations§
impl Freeze for AnthropicModel
impl !RefUnwindSafe for AnthropicModel
impl Send for AnthropicModel
impl Sync for AnthropicModel
impl Unpin for AnthropicModel
impl !UnwindSafe for AnthropicModel
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