pub struct ScenarioInput {
pub user_message: String,
pub conversation_history: Vec<ConversationTurn>,
pub context: Option<Value>,
}Expand description
The input side of a scenario.
Fields§
§user_message: StringUser message or task description.
conversation_history: Vec<ConversationTurn>Prior conversation turns, if any (multi-turn scenarios).
context: Option<Value>Any context injected into the conversation (e.g., user data).
Trait Implementations§
Source§impl Clone for ScenarioInput
impl Clone for ScenarioInput
Source§fn clone(&self) -> ScenarioInput
fn clone(&self) -> ScenarioInput
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 ScenarioInput
impl Debug for ScenarioInput
Source§impl<'de> Deserialize<'de> for ScenarioInput
impl<'de> Deserialize<'de> for ScenarioInput
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 ScenarioInput
impl RefUnwindSafe for ScenarioInput
impl Send for ScenarioInput
impl Sync for ScenarioInput
impl Unpin for ScenarioInput
impl UnsafeUnpin for ScenarioInput
impl UnwindSafe for ScenarioInput
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