pub struct TurnOptions {
pub output_schema: Option<Value>,
pub timeout: Option<Duration>,
pub tools: Vec<ToolDefinition>,
pub tool_choice: Option<ToolChoice>,
}Fields§
§output_schema: Option<Value>§timeout: Option<Duration>Maximum duration for this turn. If exceeded, the subprocess is killed
and AgentError::Timeout is returned.
tools: Vec<ToolDefinition>Tools available to the model for this turn.
tool_choice: Option<ToolChoice>Tool selection policy. None lets the backend decide.
Implementations§
Source§impl TurnOptions
impl TurnOptions
Sourcepub fn builder() -> TurnOptionsBuilder
pub fn builder() -> TurnOptionsBuilder
Create an instance of TurnOptions using the builder syntax
Trait Implementations§
Source§impl Clone for TurnOptions
impl Clone for TurnOptions
Source§fn clone(&self) -> TurnOptions
fn clone(&self) -> TurnOptions
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 moreSource§impl Debug for TurnOptions
impl Debug for TurnOptions
Source§impl Default for TurnOptions
impl Default for TurnOptions
Source§fn default() -> TurnOptions
fn default() -> TurnOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TurnOptions
impl<'de> Deserialize<'de> for TurnOptions
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
Auto Trait Implementations§
impl Freeze for TurnOptions
impl RefUnwindSafe for TurnOptions
impl Send for TurnOptions
impl Sync for TurnOptions
impl Unpin for TurnOptions
impl UnsafeUnpin for TurnOptions
impl UnwindSafe for TurnOptions
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