pub struct QuestionFrame<'a> { /* private fields */ }Expand description
The question-framing task, over one turn.
Implementations§
Source§impl<'a> QuestionFrame<'a>
impl<'a> QuestionFrame<'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 QuestionFrame<'a>
impl<'a> Clone for QuestionFrame<'a>
impl<'a> Copy for QuestionFrame<'a>
Source§impl<'a> Debug for QuestionFrame<'a>
impl<'a> Debug for QuestionFrame<'a>
Source§impl<'a> ModelTask for QuestionFrame<'a>
impl<'a> ModelTask for QuestionFrame<'a>
Source§type Input = QuestionInput<'a>
type Input = QuestionInput<'a>
Everything the task’s context is built from.
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: &QuestionInput<'a>) -> Value
fn schema(&self, input: &QuestionInput<'a>) -> Value
The answer’s JSON Schema for this input, with its closed sets filled in.
Source§fn render(&self, input: &QuestionInput<'a>) -> Vec<Message>
fn render(&self, input: &QuestionInput<'a>) -> Vec<Message>
The context messages, static parts first.
Source§fn check(
&self,
input: &QuestionInput<'a>,
output: &Framing,
) -> Result<(), StructuralError>
fn check( &self, input: &QuestionInput<'a>, output: &Framing, ) -> Result<(), StructuralError>
Structural checks the schema cannot express, such as a pointer in range. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for QuestionFrame<'a>
impl<'a> !UnwindSafe for QuestionFrame<'a>
impl<'a> Freeze for QuestionFrame<'a>
impl<'a> Send for QuestionFrame<'a>
impl<'a> Sync for QuestionFrame<'a>
impl<'a> Unpin for QuestionFrame<'a>
impl<'a> UnsafeUnpin for QuestionFrame<'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