pub struct Trajectory {
pub turns: Vec<String>,
pub calls: Vec<RecordedCall>,
pub final_text: String,
pub steered: bool,
}Expand description
A transcript reduced to what a replay needs.
Fields§
§turns: Vec<String>The user’s turns, in order — the input side of the replay.
calls: Vec<RecordedCall>Every tool call, in order, with its recorded result.
final_text: StringThe last assistant text. The weakest signal, kept for reporting only.
steered: boolTrue when the recording contains mid-run steering.
Steering text rides in the same user message as the tool results it
accompanies, because there is no legal slot between a tool_use and its
result. That makes it indistinguishable from a turn once flattened, and
re-submitting it as one would change the shape of the conversation being
replayed. Flagged rather than silently dropped: a caller that replays a
steered session anyway should know the comparison is approximate.
Trait Implementations§
Source§impl Clone for Trajectory
impl Clone for Trajectory
Source§fn clone(&self) -> Trajectory
fn clone(&self) -> Trajectory
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 Trajectory
impl Debug for Trajectory
Source§impl Default for Trajectory
impl Default for Trajectory
Source§fn default() -> Trajectory
fn default() -> Trajectory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Trajectory
impl<'de> Deserialize<'de> for Trajectory
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 Trajectory
impl RefUnwindSafe for Trajectory
impl Send for Trajectory
impl Sync for Trajectory
impl Unpin for Trajectory
impl UnsafeUnpin for Trajectory
impl UnwindSafe for Trajectory
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