pub struct HitlConfig {
pub timeout_secs: u32,
pub max_iterations: Option<u32>,
pub max_tokens: Option<u64>,
}Fields§
§timeout_secs: u32§max_iterations: Option<u32>Hard cap on agentic-loop iterations (one LLM turn + its tool calls).
None falls back to the runner default (25). On exceeding the cap the
loop exits gracefully with a summary, not a hard error.
max_tokens: Option<u64>Per-task ceiling on cumulative input tokens for the agentic loop. When
crossed before a turn, the loop stops gracefully with a summary.
None falls back to the runner default (750_000 ≈ a few dollars on
Sonnet); set a lower value per profile to bound spend tightly.
Trait Implementations§
Source§impl Clone for HitlConfig
impl Clone for HitlConfig
Source§fn clone(&self) -> HitlConfig
fn clone(&self) -> HitlConfig
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 HitlConfig
impl Debug for HitlConfig
Source§impl Default for HitlConfig
impl Default for HitlConfig
Source§impl<'de> Deserialize<'de> for HitlConfig
impl<'de> Deserialize<'de> for HitlConfig
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 HitlConfig
impl PartialEq for HitlConfig
Source§fn eq(&self, other: &HitlConfig) -> bool
fn eq(&self, other: &HitlConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HitlConfig
impl Serialize for HitlConfig
impl StructuralPartialEq for HitlConfig
Auto Trait Implementations§
impl Freeze for HitlConfig
impl RefUnwindSafe for HitlConfig
impl Send for HitlConfig
impl Sync for HitlConfig
impl Unpin for HitlConfig
impl UnsafeUnpin for HitlConfig
impl UnwindSafe for HitlConfig
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