pub struct CrossCheck<'a> { /* private fields */ }Expand description
The whole-turn check, over one turn.
Implementations§
Source§impl<'a> CrossCheck<'a>
impl<'a> CrossCheck<'a>
Sourcepub const fn new(turn: &'a UnderstandingInput) -> Self
pub const fn new(turn: &'a UnderstandingInput) -> Self
The task for turn.
Trait Implementations§
Source§impl<'a> Clone for CrossCheck<'a>
impl<'a> Clone for CrossCheck<'a>
impl<'a> Copy for CrossCheck<'a>
Source§impl<'a> Debug for CrossCheck<'a>
impl<'a> Debug for CrossCheck<'a>
Source§impl ModelTask for CrossCheck<'_>
impl ModelTask for CrossCheck<'_>
Source§type Input = CrossCheckInput
type Input = CrossCheckInput
Everything the task’s context is built from.
Source§type Output = CrossChecked
type Output = CrossChecked
The answer, as the schema allows it.
Source§fn prompt_name(&self) -> &str
fn prompt_name(&self) -> &str
The prompt name a prompt source is asked for, such as
understand.segment.Source§fn instructions(&self) -> &str
fn instructions(&self) -> &str
The built-in instructions, used when no source supplies the prompt.
Source§fn schema(&self, input: &CrossCheckInput) -> Value
fn schema(&self, input: &CrossCheckInput) -> Value
The answer’s JSON Schema for this input, with its closed sets filled in.
Source§fn render(&self, input: &CrossCheckInput) -> Vec<Message>
fn render(&self, input: &CrossCheckInput) -> Vec<Message>
The context messages, static parts first.
Source§fn check(
&self,
input: &CrossCheckInput,
output: &CrossChecked,
) -> Result<(), StructuralError>
fn check( &self, input: &CrossCheckInput, output: &CrossChecked, ) -> Result<(), StructuralError>
Structural checks the schema cannot express, such as a pointer in range. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CrossCheck<'a>
impl<'a> !UnwindSafe for CrossCheck<'a>
impl<'a> Freeze for CrossCheck<'a>
impl<'a> Send for CrossCheck<'a>
impl<'a> Sync for CrossCheck<'a>
impl<'a> Unpin for CrossCheck<'a>
impl<'a> UnsafeUnpin for CrossCheck<'a>
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