pub struct AuthorTask {
pub name: Symbol,
pub goal: String,
pub target_codec: Symbol,
pub query: ShapeQuery,
pub contract_cards: Vec<RankedContractCard>,
pub projection_caps: ContractProjectionCaps,
pub return_shape_expr: Expr,
pub return_shape: Arc<dyn Shape>,
pub verifiers: Vec<Symbol>,
pub strict_grammar: bool,
}Expand description
One contract-native authoring task to send to a model runner.
Fields§
§name: SymbolStable task name for routing, diagnostics, and cassette rows.
goal: StringHuman goal the authoring request must satisfy.
target_codec: SymbolCodec the model must use for the returned checked form.
query: ShapeQueryShape query used to retrieve the projected contract cards.
contract_cards: Vec<RankedContractCard>Ranked contract cards available for the task projection.
projection_caps: ContractProjectionCapsToken and example limits used when projecting contract cards.
return_shape_expr: ExprNormalized expression naming or constructing the return Shape.
return_shape: Arc<dyn Shape>Shape the model’s returned form must satisfy and the grammar is derived from.
verifiers: Vec<Symbol>Semantic verifier ids that must accept the realized form.
strict_grammar: boolWhether grammar-constrained output is mandatory.
Trait Implementations§
Source§impl Clone for AuthorTask
impl Clone for AuthorTask
Source§fn clone(&self) -> AuthorTask
fn clone(&self) -> AuthorTask
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AuthorTask
impl !UnwindSafe for AuthorTask
impl Freeze for AuthorTask
impl Send for AuthorTask
impl Sync for AuthorTask
impl Unpin for AuthorTask
impl UnsafeUnpin for AuthorTask
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