Struct ReplayHandle
pub struct ReplayHandle { /* private fields */ }Expand description
Runner-side handle for advancing the replay cursor between conversation turns.
Shares the provider’s queues (the same Arc the agent holds), so the runner can
assert per-turn consumption without owning the boxed provider.
Implementations§
Source§impl ReplayHandle
impl ReplayHandle
Sourcepub fn finish_turn(&self, turn_index: usize) -> Result<()>
pub fn finish_turn(&self, turn_index: usize) -> Result<()>
Assert the just-finished turn consumed all of its scripted steps, then advance the cursor to the next turn. Errors if any steps were left unconsumed.
Auto Trait Implementations§
impl Freeze for ReplayHandle
impl RefUnwindSafe for ReplayHandle
impl Send for ReplayHandle
impl Sync for ReplayHandle
impl Unpin for ReplayHandle
impl UnsafeUnpin for ReplayHandle
impl UnwindSafe for ReplayHandle
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more