pub enum Claude {
Sonnet35 {
version: Sonnet35Version,
},
Sonnet37 {
use_extended_thinking: bool,
},
Haiku35,
Haiku3,
Opus3,
}Expand description
Represents an Anthropic Claude model
Variants§
Trait Implementations§
Source§impl HTTPProvider<Claude> for AnthropicProvider
impl HTTPProvider<Claude> for AnthropicProvider
Source§impl ModelInfo for Claude
impl ModelInfo for Claude
Source§fn context_window(&self) -> usize
fn context_window(&self) -> usize
All anthropic models have a 200k token context window.
Source§fn max_output_tokens(&self) -> usize
fn max_output_tokens(&self) -> usize
Maximum number of output tokens
NOTE: we may want to do something smart here to have this be
context-dependent. for example if you set the right headers
for anthropic, 3.7 can output 128k instead of 64k.
impl Copy for Claude
impl Eq for Claude
impl StructuralPartialEq for Claude
Auto Trait Implementations§
impl Freeze for Claude
impl RefUnwindSafe for Claude
impl Send for Claude
impl Sync for Claude
impl Unpin for Claude
impl UnwindSafe for Claude
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.