pub struct Workload {
pub name: String,
pub description: String,
pub agent: AgentConfig,
pub model: String,
pub output_schema: Option<Value>,
pub expected_turns: usize,
pub metadata: HashMap<String, Value>,
pub schema_version: u32,
}Expand description
A benchmark workload definition loaded from JSON.
Workloads define reproducible agent scenarios for benchmarking, including agent configuration, expected behavior, and metadata.
Fields§
§name: StringUnique workload name.
description: StringHuman-readable description.
agent: AgentConfigAgent configuration for this workload.
model: StringLLM model identifier to use.
output_schema: Option<Value>Structured output schema (JSON Schema for response format).
expected_turns: usizeExpected number of agent turns.
metadata: HashMap<String, Value>Optional metadata annotations (arbitrary key-value pairs).
schema_version: u32Schema version for forward compatibility.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Workload
impl<'de> Deserialize<'de> for Workload
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
impl StructuralPartialEq for Workload
Auto Trait Implementations§
impl Freeze for Workload
impl RefUnwindSafe for Workload
impl Send for Workload
impl Sync for Workload
impl Unpin for Workload
impl UnsafeUnpin for Workload
impl UnwindSafe for Workload
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