pub enum ExitCondition {
ToolCalled {
tool_name: String,
},
OutputContains {
pattern: String,
compiled: Regex,
},
MaxIterations,
}Expand description
Controls when a loop pipeline terminates.
Variants§
ToolCalled
Exit when the body agent invokes the named tool.
OutputContains
Exit when the output matches the regex pattern.
MaxIterations
Always run to the max_iterations cap.
Implementations§
Source§impl ExitCondition
impl ExitCondition
Trait Implementations§
Source§impl Clone for ExitCondition
impl Clone for ExitCondition
Source§fn clone(&self) -> ExitCondition
fn clone(&self) -> ExitCondition
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 ExitCondition
impl Debug for ExitCondition
Source§impl<'de> Deserialize<'de> for ExitCondition
impl<'de> Deserialize<'de> for ExitCondition
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExitCondition
impl RefUnwindSafe for ExitCondition
impl Send for ExitCondition
impl Sync for ExitCondition
impl Unpin for ExitCondition
impl UnsafeUnpin for ExitCondition
impl UnwindSafe for ExitCondition
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