pub struct EnginePolicy {Show 15 fields
pub max_steps: usize,
pub max_execution_time_ms: u64,
pub provider_timeout_ms: u64,
pub max_tool_timeout_ms: u64,
pub max_consecutive_tool_failures: usize,
pub cache_threshold_tokens: usize,
pub max_cost_per_session: f64,
pub max_parallel_skill_calls: usize,
pub max_inline_attachment_bytes: usize,
pub allow_native_skills: bool,
pub validate_tool_args: bool,
pub max_ready_tool_nodes: usize,
pub max_tool_retries_per_step: usize,
pub enable_tool_dry_run: bool,
pub self_improvement: SelfImprovementPolicy,
}Fields§
§max_steps: usize§max_execution_time_ms: u64§provider_timeout_ms: u64§max_tool_timeout_ms: u64§max_consecutive_tool_failures: usize§cache_threshold_tokens: usize§max_cost_per_session: f64§max_parallel_skill_calls: usize§max_inline_attachment_bytes: usize§allow_native_skills: bool§validate_tool_args: bool§max_ready_tool_nodes: usize§max_tool_retries_per_step: usize§enable_tool_dry_run: bool§self_improvement: SelfImprovementPolicyImplementations§
Source§impl EnginePolicy
impl EnginePolicy
pub fn with_overlay(self, overlay: Option<PolicyOverlay>) -> Self
pub fn max_execution_time(&self) -> Duration
pub fn provider_timeout(&self) -> Duration
Trait Implementations§
Source§impl Clone for EnginePolicy
impl Clone for EnginePolicy
Source§fn clone(&self) -> EnginePolicy
fn clone(&self) -> EnginePolicy
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 EnginePolicy
impl Debug for EnginePolicy
Source§impl Default for EnginePolicy
impl Default for EnginePolicy
Source§impl<'de> Deserialize<'de> for EnginePolicy
impl<'de> Deserialize<'de> for EnginePolicy
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 PartialEq for EnginePolicy
impl PartialEq for EnginePolicy
Source§fn eq(&self, other: &EnginePolicy) -> bool
fn eq(&self, other: &EnginePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EnginePolicy
impl Serialize for EnginePolicy
impl StructuralPartialEq for EnginePolicy
Auto Trait Implementations§
impl Freeze for EnginePolicy
impl RefUnwindSafe for EnginePolicy
impl Send for EnginePolicy
impl Sync for EnginePolicy
impl Unpin for EnginePolicy
impl UnsafeUnpin for EnginePolicy
impl UnwindSafe for EnginePolicy
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