pub enum RepeatUntilCondition {
OutputFieldEquals {
field: StepOutputField,
expected: Value,
},
}Expand description
A deterministic condition that ends semantic step repetition.
Variants§
OutputFieldEquals
Stop when one top-level structured output field equals the declared JSON value exactly. Missing fields do not satisfy the condition.
Implementations§
Source§impl RepeatUntilCondition
impl RepeatUntilCondition
pub fn output_field_equals(field: StepOutputField, expected: Value) -> Self
pub fn is_satisfied(&self, output: &StepOutput) -> bool
Trait Implementations§
Source§impl Clone for RepeatUntilCondition
impl Clone for RepeatUntilCondition
Source§fn clone(&self) -> RepeatUntilCondition
fn clone(&self) -> RepeatUntilCondition
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 RepeatUntilCondition
impl Debug for RepeatUntilCondition
Source§impl<'de> Deserialize<'de> for RepeatUntilCondition
impl<'de> Deserialize<'de> for RepeatUntilCondition
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
impl Eq for RepeatUntilCondition
Source§impl PartialEq for RepeatUntilCondition
impl PartialEq for RepeatUntilCondition
Source§impl Serialize for RepeatUntilCondition
impl Serialize for RepeatUntilCondition
impl StructuralPartialEq for RepeatUntilCondition
Auto Trait Implementations§
impl Freeze for RepeatUntilCondition
impl RefUnwindSafe for RepeatUntilCondition
impl Send for RepeatUntilCondition
impl Sync for RepeatUntilCondition
impl Unpin for RepeatUntilCondition
impl UnsafeUnpin for RepeatUntilCondition
impl UnwindSafe for RepeatUntilCondition
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