pub struct Request {
pub model: String,
pub messages: Vec<Message>,
pub system: Option<System>,
pub max_tokens: u32,
pub metadata: Option<Value>,
pub stop_sequences: Option<Vec<String>>,
pub stream: Option<bool>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub top_k: Option<u32>,
pub tools: Option<Vec<Tool>>,
pub thinking: Option<Thinking>,
}
Fields§
§model: String
§messages: Vec<Message>
§system: Option<System>
§max_tokens: u32
§metadata: Option<Value>
§stop_sequences: Option<Vec<String>>
§stream: Option<bool>
§temperature: Option<f32>
§top_p: Option<f32>
§top_k: Option<u32>
§tools: Option<Vec<Tool>>
§thinking: Option<Thinking>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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