pub struct AgentStrategy {
pub reasoning_depth: Option<ReasoningDepth>,
pub execution_mode: Option<ExecutionMode>,
pub replanning: Option<ReplanningConfig>,
pub external_tool_timeout_secs: Option<u64>,
}Expand description
Unified Agent Strategy Configuration
Fields§
§reasoning_depth: Option<ReasoningDepth>Depth of reasoning (shallow, standard, deep)
execution_mode: Option<ExecutionMode>Execution mode - tools vs code
replanning: Option<ReplanningConfig>When to replan
external_tool_timeout_secs: Option<u64>Timeout in seconds for external tool execution (default: 120) External tools are tools that delegate execution to the frontend/client.
Implementations§
Source§impl AgentStrategy
impl AgentStrategy
Sourcepub fn get_reasoning_depth(&self) -> ReasoningDepth
pub fn get_reasoning_depth(&self) -> ReasoningDepth
Get reasoning depth with default fallback
Sourcepub fn get_execution_mode(&self) -> ExecutionMode
pub fn get_execution_mode(&self) -> ExecutionMode
Get execution mode with default fallback
Sourcepub fn get_replanning(&self) -> ReplanningConfig
pub fn get_replanning(&self) -> ReplanningConfig
Get replanning config with default fallback
Sourcepub fn get_external_tool_timeout_secs(&self) -> u64
pub fn get_external_tool_timeout_secs(&self) -> u64
Get external tool timeout with default fallback
Trait Implementations§
Source§impl Clone for AgentStrategy
impl Clone for AgentStrategy
Source§fn clone(&self) -> AgentStrategy
fn clone(&self) -> AgentStrategy
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 Debug for AgentStrategy
impl Debug for AgentStrategy
Source§impl Default for AgentStrategy
impl Default for AgentStrategy
Source§impl<'de> Deserialize<'de> for AgentStrategy
impl<'de> Deserialize<'de> for AgentStrategy
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
Source§impl JsonSchema for AgentStrategy
impl JsonSchema for AgentStrategy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AgentStrategy
impl RefUnwindSafe for AgentStrategy
impl Send for AgentStrategy
impl Sync for AgentStrategy
impl Unpin for AgentStrategy
impl UnsafeUnpin for AgentStrategy
impl UnwindSafe for AgentStrategy
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