pub struct Request {
pub model: String,
pub system: Option<Vec<Content>>,
pub messages: Vec<Message>,
pub max_tokens: u32,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
pub stop: Option<Vec<String>>,
pub tools: Option<Vec<Tool>>,
pub tool_choice: Option<ToolChoice>,
pub thinking: Option<Thinking>,
pub stream: bool,
}Fields§
§model: String§system: Option<Vec<Content>>§messages: Vec<Message>§max_tokens: u32§temperature: Option<f64>§top_p: Option<f64>§stop: Option<Vec<String>>§tools: Option<Vec<Tool>>§tool_choice: Option<ToolChoice>§thinking: Option<Thinking>§stream: boolTrait Implementations§
Source§impl From<&GeminiRequest> for Request
impl From<&GeminiRequest> for Request
Source§fn from(req: &GeminiRequest) -> Self
fn from(req: &GeminiRequest) -> Self
Converts to this type from the input type.
Source§impl From<&Request> for AnthropicRequest
impl From<&Request> for AnthropicRequest
Source§impl From<&Request> for ChatCompletionRequest
impl From<&Request> for ChatCompletionRequest
Source§impl From<AnthropicRequest> for Request
impl From<AnthropicRequest> for Request
Source§fn from(req: AnthropicRequest) -> Self
fn from(req: AnthropicRequest) -> Self
Converts to this type from the input type.
Source§impl From<ChatCompletionRequest> for Request
impl From<ChatCompletionRequest> for Request
Source§fn from(req: ChatCompletionRequest) -> Self
fn from(req: ChatCompletionRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin 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