pub enum SimStep {
User(String),
Set {
key: String,
value: Value,
},
ToolOk(String),
ScheduleTool {
tool: String,
after: u32,
},
Turn,
ExpectActive(Vec<String>),
ExpectDenied(String),
ExpectAllowed(String),
ExpectSlot {
key: String,
value: Value,
},
ExpectComplete,
}Expand description
One step in a serializable Scenario.
Variants§
User(String)
The fake user speaks (recognizers fill slots), then a turn advances.
Set
Set a state value directly.
ToolOk(String)
A tool succeeds now.
ScheduleTool
Schedule a tool to succeed after N turns (latency).
Turn
Advance a turn with no input.
ExpectActive(Vec<String>)
Assert these step ids are active.
ExpectDenied(String)
Assert a tool is currently blocked.
ExpectAllowed(String)
Assert a tool is currently admitted.
ExpectSlot
Assert a slot equals a value.
ExpectComplete
Assert the conversation is complete.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SimStep
impl<'de> Deserialize<'de> for SimStep
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 SimStep
impl RefUnwindSafe for SimStep
impl Send for SimStep
impl Sync for SimStep
impl Unpin for SimStep
impl UnwindSafe for SimStep
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