pub struct SimulatedUser {
pub persona: String,
pub done_when: Option<String>,
pub max_turns: Option<u32>,
}Expand description
The simulated-user block that turns a single-turn case into a multi-turn one.
When present, after each assistant turn the runner asks the provider to play
the user (guided by persona) until done_when holds or max_turns is hit.
Fields§
§persona: StringInstructions describing how the simulated user should behave.
done_when: Option<String>A plain-English condition; when the judge decides it holds, the
conversation ends. Optional — without it the run ends at max_turns or
when the skill reports itself done.
max_turns: Option<u32>Per-case override of the global assistant-turn cap.
Trait Implementations§
Source§impl Clone for SimulatedUser
impl Clone for SimulatedUser
Source§fn clone(&self) -> SimulatedUser
fn clone(&self) -> SimulatedUser
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 SimulatedUser
impl Debug for SimulatedUser
Source§impl<'de> Deserialize<'de> for SimulatedUser
impl<'de> Deserialize<'de> for SimulatedUser
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
Source§impl PartialEq for SimulatedUser
impl PartialEq for SimulatedUser
Source§fn eq(&self, other: &SimulatedUser) -> bool
fn eq(&self, other: &SimulatedUser) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SimulatedUser
impl Serialize for SimulatedUser
impl StructuralPartialEq for SimulatedUser
Auto Trait Implementations§
impl Freeze for SimulatedUser
impl RefUnwindSafe for SimulatedUser
impl Send for SimulatedUser
impl Sync for SimulatedUser
impl Unpin for SimulatedUser
impl UnsafeUnpin for SimulatedUser
impl UnwindSafe for SimulatedUser
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