pub struct Task {
pub kind: TaskKind,
pub context: Value,
pub system_prompt: Option<String>,
}Expand description
A task to be executed by the engine.
A task combines a task kind with context data for template rendering and an optional system prompt override.
Fields§
§kind: TaskKindThe kind of task to execute.
context: ValueContext data for template rendering.
This is passed to the Jinja templates when rendering the system and user prompts.
system_prompt: Option<String>Optional system prompt override.
If provided, this completely overrides the rendered system prompt from the template.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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