pub struct TuneTask {
pub id: String,
pub category: TaskCategory,
pub system_prompt: Option<String>,
pub history: Option<Vec<AgentMessage>>,
pub user_prompt: String,
pub tools: Vec<ToolDefinition>,
pub expected: ExpectedOutcome,
}Expand description
A single scripted agentic scenario evaluated during a tune run.
Fields§
§id: StringStable identifier for this task (used in results and diagnostics).
category: TaskCategoryBFCL-style category this task belongs to.
system_prompt: Option<String>Optional system prompt for this task.
history: Option<Vec<AgentMessage>>Simulated prior conversation turns injected before user_prompt,
used by TaskCategory::LongContext tasks to test whether context
degradation over a long session induces loop/stagnation behavior
that would not occur from a cold start. None/empty for every other
category.
user_prompt: StringUser prompt sent to the agent loop (after history, if present).
tools: Vec<ToolDefinition>Tools advertised to the model for this task (OpenAI-format schema).
expected: ExpectedOutcomeExpected outcome used to score the recorded tool calls.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TuneTask
impl<'de> Deserialize<'de> for TuneTask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TuneTask
impl RefUnwindSafe for TuneTask
impl Send for TuneTask
impl Sync for TuneTask
impl Unpin for TuneTask
impl UnsafeUnpin for TuneTask
impl UnwindSafe for TuneTask
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