pub struct AnthropicCodecOptions {
pub model: String,
pub max_tokens: u64,
pub stream: bool,
pub tools: bool,
}Expand description
Options for Anthropic Messages request JSON generation.
Fields§
§model: StringModel identifier to place in the generated request.
max_tokens: u64Maximum output tokens for the request body.
stream: boolWhether to request a streamed SSE response.
tools: boolWhether to include tool schemas from the request transcript.
Implementations§
Trait Implementations§
Source§impl Clone for AnthropicCodecOptions
impl Clone for AnthropicCodecOptions
Source§fn clone(&self) -> AnthropicCodecOptions
fn clone(&self) -> AnthropicCodecOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnthropicCodecOptions
impl Debug for AnthropicCodecOptions
impl Eq for AnthropicCodecOptions
Source§impl PartialEq for AnthropicCodecOptions
impl PartialEq for AnthropicCodecOptions
impl StructuralPartialEq for AnthropicCodecOptions
Auto Trait Implementations§
impl Freeze for AnthropicCodecOptions
impl RefUnwindSafe for AnthropicCodecOptions
impl Send for AnthropicCodecOptions
impl Sync for AnthropicCodecOptions
impl Unpin for AnthropicCodecOptions
impl UnsafeUnpin for AnthropicCodecOptions
impl UnwindSafe for AnthropicCodecOptions
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