pub struct ActorSimulator { /* private fields */ }Expand description
Drives a scripted user persona over multiple dialogue turns.
Implementations§
Source§impl ActorSimulator
impl ActorSimulator
Sourcepub const DEFAULT_MAX_TURNS: u32 = 10
pub const DEFAULT_MAX_TURNS: u32 = 10
Default turn cap if callers do not override it.
pub fn new( profile: ActorProfile, judge: Arc<dyn JudgeClient>, model_id: impl Into<String>, ) -> Self
Sourcepub fn with_greeting_pool(self, pool: Vec<String>) -> Self
pub fn with_greeting_pool(self, pool: Vec<String>) -> Self
Override the greeting pool. Empty input is coerced to a single default.
pub const fn with_max_turns(self, max_turns: u32) -> Self
pub fn with_goal_completion_signal(self, signal: impl Into<String>) -> Self
pub const fn profile(&self) -> &ActorProfile
pub const fn max_turns(&self) -> u32
pub fn goal_completion_signal(&self) -> Option<&str>
pub fn model_id(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ActorSimulator
impl !RefUnwindSafe for ActorSimulator
impl Send for ActorSimulator
impl Sync for ActorSimulator
impl Unpin for ActorSimulator
impl UnsafeUnpin for ActorSimulator
impl !UnwindSafe for ActorSimulator
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