pub struct AssertReq {
pub envelope: Envelope,
pub output: Value,
pub test: TestRef,
pub prompt: Option<Value>,
pub provider: ProviderRef,
pub config: Value,
pub vars: Value,
pub tool_calls: Vec<ToolCall>,
}Expand description
An assert request (GradingResult-shaped response).
Fields§
§envelope: Envelope§output: Value§test: TestRef§prompt: Option<Value>§provider: ProviderRef§config: Value§vars: ValueThe case’s rendered variables.
An assertion frequently needs the inputs to judge the output — an expected value, a scope, the id of whatever was being asked about — and without them a child can only grade the text in isolation.
tool_calls: Vec<ToolCall>The tool calls the model made, in the order it made them; omitted when there were none.
The first time ToolCall travels domarinn → child rather than the
other way round. An assertion about behaviour — did it call search
before answering, with the scope it was given? — is unanswerable from
output alone, because a cell whose right answer is a tool call has no
prose to read.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AssertReq
impl<'de> Deserialize<'de> for AssertReq
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 AssertReq
impl RefUnwindSafe for AssertReq
impl Send for AssertReq
impl Sync for AssertReq
impl Unpin for AssertReq
impl UnsafeUnpin for AssertReq
impl UnwindSafe for AssertReq
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