pub enum Oracle {
FinalPageContains(String),
AgentAnswerContains(String),
UrlContains(String),
}Expand description
A deterministic success oracle, graded against the REAL post-run page and the agent’s answer — independent of whatever the agent claims it did.
Variants§
FinalPageContains(String)
The final-page accessibility snapshot must contain this verbatim substring (e.g. a success banner that only renders once the task is complete).
AgentAnswerContains(String)
The agent’s text answer must contain this substring (case-insensitive) — for extraction tasks where the proof is the value reported, not page state.
UrlContains(String)
The final page URL must contain this fragment (e.g. /secure after login).
Implementations§
Trait Implementations§
impl Eq for Oracle
impl StructuralPartialEq for Oracle
Auto Trait Implementations§
impl Freeze for Oracle
impl RefUnwindSafe for Oracle
impl Send for Oracle
impl Sync for Oracle
impl Unpin for Oracle
impl UnsafeUnpin for Oracle
impl UnwindSafe for Oracle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.