pub struct ConversationRequest {
pub messages: Vec<Message>,
pub tools: Vec<ToolSpec>,
pub sampling_args: SamplingArgs,
pub cache_hint: CacheHint,
}Expand description
One provider-neutral sampling request (ADR-0007).
The loop builds exactly one of these and knows nothing about any wire. Per
ADR-0013 there is no separate system field — messages carries the whole
role-tagged stream (System/Developer included), and each wire hoists leading
System messages into its own top-level slot (e.g. Anthropic’s system).
Fields§
§messages: Vec<Message>The full role-tagged conversation stream (System/Developer/User/Assistant).
tools: Vec<ToolSpec>The tool specs offered to the model, mapped by the wire to its tool format.
sampling_args: SamplingArgsProvider-neutral sampling knobs.
cache_hint: CacheHintA hint for where the wire should place prompt-cache breakpoints.
Trait Implementations§
Source§impl Clone for ConversationRequest
impl Clone for ConversationRequest
Source§fn clone(&self) -> ConversationRequest
fn clone(&self) -> ConversationRequest
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 moreAuto Trait Implementations§
impl Freeze for ConversationRequest
impl RefUnwindSafe for ConversationRequest
impl Send for ConversationRequest
impl Sync for ConversationRequest
impl Unpin for ConversationRequest
impl UnsafeUnpin for ConversationRequest
impl UnwindSafe for ConversationRequest
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