pub struct ExecutionSection {
pub max_turns: Option<usize>,
pub max_total_tokens: Option<usize>,
pub max_duration_secs: Option<u64>,
pub max_cost: Option<f64>,
pub retry: RetrySection,
pub cache: CacheSection,
}Expand description
Execution limits and related configuration.
Fields§
§max_turns: Option<usize>Maximum number of LLM turns.
max_total_tokens: Option<usize>Maximum total tokens consumed across all turns.
max_duration_secs: Option<u64>Maximum wall-clock duration in seconds.
max_cost: Option<f64>Maximum cumulative dollar cost.
retry: RetrySectionRetry configuration.
cache: CacheSectionCache configuration.
Trait Implementations§
Source§impl Clone for ExecutionSection
impl Clone for ExecutionSection
Source§fn clone(&self) -> ExecutionSection
fn clone(&self) -> ExecutionSection
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 ExecutionSection
impl Debug for ExecutionSection
Source§impl Default for ExecutionSection
impl Default for ExecutionSection
Source§fn default() -> ExecutionSection
fn default() -> ExecutionSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionSectionwhere
ExecutionSection: Default,
impl<'de> Deserialize<'de> for ExecutionSectionwhere
ExecutionSection: Default,
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 ExecutionSection
impl RefUnwindSafe for ExecutionSection
impl Send for ExecutionSection
impl Sync for ExecutionSection
impl Unpin for ExecutionSection
impl UnsafeUnpin for ExecutionSection
impl UnwindSafe for ExecutionSection
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