pub struct TimeoutConfig {
pub skill_timeout: Duration,
pub step_timeout: Duration,
pub tool_timeout: Duration,
pub timeout_action: TimeoutAction,
}Expand description
Configuration for execution timeouts.
Fields§
§skill_timeout: DurationMaximum time for entire skill execution.
step_timeout: DurationMaximum time for a single step.
tool_timeout: DurationMaximum time for a single tool call.
timeout_action: TimeoutActionAction to take on timeout.
Implementations§
Source§impl TimeoutConfig
impl TimeoutConfig
Sourcepub fn with_skill_timeout(self, timeout: Duration) -> Self
pub fn with_skill_timeout(self, timeout: Duration) -> Self
Set the skill timeout.
Sourcepub fn with_step_timeout(self, timeout: Duration) -> Self
pub fn with_step_timeout(self, timeout: Duration) -> Self
Set the step timeout.
Sourcepub fn with_tool_timeout(self, timeout: Duration) -> Self
pub fn with_tool_timeout(self, timeout: Duration) -> Self
Set the tool timeout.
Sourcepub fn with_timeout_action(self, action: TimeoutAction) -> Self
pub fn with_timeout_action(self, action: TimeoutAction) -> Self
Set the timeout action.
Trait Implementations§
Source§impl Clone for TimeoutConfig
impl Clone for TimeoutConfig
Source§fn clone(&self) -> TimeoutConfig
fn clone(&self) -> TimeoutConfig
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 TimeoutConfig
impl Debug for TimeoutConfig
Auto Trait Implementations§
impl Freeze for TimeoutConfig
impl RefUnwindSafe for TimeoutConfig
impl Send for TimeoutConfig
impl Sync for TimeoutConfig
impl Unpin for TimeoutConfig
impl UnsafeUnpin for TimeoutConfig
impl UnwindSafe for TimeoutConfig
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