pub struct AnthropicRequest {
pub model: String,
pub max_tokens: u32,
pub messages: Vec<AnthropicMessage>,
pub system: Option<String>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub stream: Option<bool>,
}Fields§
§model: String§max_tokens: u32§messages: Vec<AnthropicMessage>§system: Option<String>§temperature: Option<f32>§top_p: Option<f32>§stream: Option<bool>Trait Implementations§
Source§impl Debug for AnthropicRequest
impl Debug for AnthropicRequest
Auto Trait Implementations§
impl Freeze for AnthropicRequest
impl RefUnwindSafe for AnthropicRequest
impl Send for AnthropicRequest
impl Sync for AnthropicRequest
impl Unpin for AnthropicRequest
impl UnwindSafe for AnthropicRequest
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