pub struct ChatRequest<'a> {
pub messages: &'a [ChatMessage],
pub tools: Option<&'a [ToolSpec]>,
pub thinking: Option<NativeThinkingParams>,
}Expand description
Request payload for model_provider chat calls.
Fields§
§messages: &'a [ChatMessage]§tools: Option<&'a [ToolSpec]>§thinking: Option<NativeThinkingParams>Native extended thinking parameters. When Some, providers that
support extended thinking should send a dedicated thinking budget
in the API request and force temperature = 1.0.
Trait Implementations§
Source§impl<'a> Clone for ChatRequest<'a>
impl<'a> Clone for ChatRequest<'a>
Source§fn clone(&self) -> ChatRequest<'a>
fn clone(&self) -> ChatRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ChatRequest<'a>
impl<'a> Debug for ChatRequest<'a>
impl<'a> Copy for ChatRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChatRequest<'a>
impl<'a> RefUnwindSafe for ChatRequest<'a>
impl<'a> Send for ChatRequest<'a>
impl<'a> Sync for ChatRequest<'a>
impl<'a> Unpin for ChatRequest<'a>
impl<'a> UnsafeUnpin for ChatRequest<'a>
impl<'a> UnwindSafe for ChatRequest<'a>
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