pub struct PrimaryTurnRequest {
pub model: String,
pub messages: Vec<Message>,
pub max_tokens: u32,
pub system: Option<SystemPrompt>,
pub tools: Option<Vec<Tool>>,
pub tool_choice: Option<Value>,
pub reasoning_effort: Option<String>,
}Expand description
Inputs that distinguish a primary agent-turn request.
Provider-neutral defaults (stream = true, no metadata, no provider-side
thinking object, and no sampling overrides) are applied once by
prepare_primary_turn_request. Both the production turn loop and its
read-only preview use this input so those defaults cannot drift.
Fields§
§model: String§messages: Vec<Message>§max_tokens: u32§system: Option<SystemPrompt>§tools: Option<Vec<Tool>>§tool_choice: Option<Value>§reasoning_effort: Option<String>Trait Implementations§
Source§impl Clone for PrimaryTurnRequest
impl Clone for PrimaryTurnRequest
Source§fn clone(&self) -> PrimaryTurnRequest
fn clone(&self) -> PrimaryTurnRequest
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 PrimaryTurnRequest
impl RefUnwindSafe for PrimaryTurnRequest
impl Send for PrimaryTurnRequest
impl Sync for PrimaryTurnRequest
impl Unpin for PrimaryTurnRequest
impl UnsafeUnpin for PrimaryTurnRequest
impl UnwindSafe for PrimaryTurnRequest
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