pub struct AgentRuntimePolicy {
pub max_steps: usize,
pub output_retries: usize,
pub end_strategy: AgentEndStrategy,
pub tool_execution: AgentToolExecutionMode,
}Expand description
Runtime policy for bare agent runs.
Fields§
§max_steps: usizeMaximum model requests in one run.
output_retries: usizeMaximum output validation retries.
end_strategy: AgentEndStrategyHow to handle ordinary tool calls returned alongside a final output function.
tool_execution: AgentToolExecutionModeHow to schedule batches of model-returned tool calls.
Trait Implementations§
Source§impl Clone for AgentRuntimePolicy
impl Clone for AgentRuntimePolicy
Source§fn clone(&self) -> AgentRuntimePolicy
fn clone(&self) -> AgentRuntimePolicy
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 AgentRuntimePolicy
impl Debug for AgentRuntimePolicy
Source§impl Default for AgentRuntimePolicy
impl Default for AgentRuntimePolicy
Source§impl<'de> Deserialize<'de> for AgentRuntimePolicy
impl<'de> Deserialize<'de> for AgentRuntimePolicy
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
impl Eq for AgentRuntimePolicy
Source§impl PartialEq for AgentRuntimePolicy
impl PartialEq for AgentRuntimePolicy
Source§fn eq(&self, other: &AgentRuntimePolicy) -> bool
fn eq(&self, other: &AgentRuntimePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentRuntimePolicy
impl Serialize for AgentRuntimePolicy
impl StructuralPartialEq for AgentRuntimePolicy
Auto Trait Implementations§
impl Freeze for AgentRuntimePolicy
impl RefUnwindSafe for AgentRuntimePolicy
impl Send for AgentRuntimePolicy
impl Sync for AgentRuntimePolicy
impl Unpin for AgentRuntimePolicy
impl UnsafeUnpin for AgentRuntimePolicy
impl UnwindSafe for AgentRuntimePolicy
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