pub struct TurnExecution {
pub record: ReplayRecord,
pub response: AssistantTurn,
}Expand description
One execution of a turn: what it recorded, and what it answered.
The pair is the unit a replay assertion works on, because half of determinism lives in the record (plan, commands, events) and half in the answer (the ordered blocks the user saw).
Fields§
§record: ReplayRecordWhat the turn recorded about itself.
response: AssistantTurnWhat the turn returned.
Implementations§
Source§impl TurnExecution
impl TurnExecution
Sourcepub fn new(record: ReplayRecord, response: AssistantTurn) -> Self
pub fn new(record: ReplayRecord, response: AssistantTurn) -> Self
Pairs a record with the answer it explains.
Sourcepub fn same_as(&self, other: &Self) -> Result<(), ReplayDivergence>
pub fn same_as(&self, other: &Self) -> Result<(), ReplayDivergence>
Trait Implementations§
Source§impl Clone for TurnExecution
impl Clone for TurnExecution
Source§impl Debug for TurnExecution
impl Debug for TurnExecution
Source§impl PartialEq for TurnExecution
impl PartialEq for TurnExecution
impl StructuralPartialEq for TurnExecution
Auto Trait Implementations§
impl Freeze for TurnExecution
impl RefUnwindSafe for TurnExecution
impl Send for TurnExecution
impl Sync for TurnExecution
impl Unpin for TurnExecution
impl UnsafeUnpin for TurnExecution
impl UnwindSafe for TurnExecution
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