pub enum AcceptCheck {
Schema(PathBuf),
Judge {
model: Option<ModelRef>,
prompt: String,
},
}Expand description
One check a node’s output must pass before it counts as done.
Evaluated in declaration order, short-circuiting on the first failure —
see Node::accept.
Variants§
Schema(PathBuf)
Validate against the JSON Schema at this path. Deterministic, and costs no inference.
Judge
Ask a model whether the output is acceptable.
Trait Implementations§
Source§impl Clone for AcceptCheck
impl Clone for AcceptCheck
Source§fn clone(&self) -> AcceptCheck
fn clone(&self) -> AcceptCheck
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 AcceptCheck
impl Debug for AcceptCheck
impl Eq for AcceptCheck
Source§impl PartialEq for AcceptCheck
impl PartialEq for AcceptCheck
impl StructuralPartialEq for AcceptCheck
Auto Trait Implementations§
impl Freeze for AcceptCheck
impl RefUnwindSafe for AcceptCheck
impl Send for AcceptCheck
impl Sync for AcceptCheck
impl Unpin for AcceptCheck
impl UnsafeUnpin for AcceptCheck
impl UnwindSafe for AcceptCheck
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