pub struct ScenarioExpected {
pub tool_calls: Vec<ExpectedToolCall>,
pub output_schema: Option<Value>,
pub pass_criteria: String,
pub min_turns: Option<u32>,
pub max_turns: Option<u32>,
}Expand description
The expected outcomes for a scenario.
Fields§
§tool_calls: Vec<ExpectedToolCall>Tool calls that should be made (in order if sequence matters).
output_schema: Option<Value>JSON Schema the final output must validate against.
pass_criteria: StringNatural language description of what passing looks like (for LLM judge).
min_turns: Option<u32>Minimum number of turns expected.
max_turns: Option<u32>Maximum number of turns allowed (looping detection).
Trait Implementations§
Source§impl Clone for ScenarioExpected
impl Clone for ScenarioExpected
Source§fn clone(&self) -> ScenarioExpected
fn clone(&self) -> ScenarioExpected
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 moreSource§impl Debug for ScenarioExpected
impl Debug for ScenarioExpected
Source§impl<'de> Deserialize<'de> for ScenarioExpected
impl<'de> Deserialize<'de> for ScenarioExpected
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 ScenarioExpected
impl RefUnwindSafe for ScenarioExpected
impl Send for ScenarioExpected
impl Sync for ScenarioExpected
impl Unpin for ScenarioExpected
impl UnsafeUnpin for ScenarioExpected
impl UnwindSafe for ScenarioExpected
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