pub struct TrajectoryDetailRecord {Show 13 fields
pub id: Uuid,
pub episode_id: Uuid,
pub graph_trajectory_node_id: Option<Uuid>,
pub agent_id: String,
pub session_id: String,
pub project_id: Option<String>,
pub recorded_at: i64,
pub outcome: TrajectoryOutcome,
pub ainl_source_hash: Option<String>,
pub duration_ms: u64,
pub steps: Vec<TrajectoryStep>,
pub frame_vars: Option<Value>,
pub fitness_delta: Option<f32>,
}Expand description
One persisted trajectory run: episode-linked, JSON-step payload, optional graph node cross-ref.
Fields§
§id: Uuid§episode_id: Uuid§graph_trajectory_node_id: Option<Uuid>Corresponding AinlNodeType::Trajectory node id when also written to the graph.
agent_id: String§session_id: String§project_id: Option<String>§recorded_at: i64§outcome: TrajectoryOutcome§ainl_source_hash: Option<String>§duration_ms: u64§steps: Vec<TrajectoryStep>§frame_vars: Option<Value>§fitness_delta: Option<f32>Implementations§
Source§impl TrajectoryDetailRecord
impl TrajectoryDetailRecord
Sourcepub fn to_replay_line(&self) -> TrajectoryReplayLine
pub fn to_replay_line(&self) -> TrajectoryReplayLine
Map this DB row to a ainl_trajectory::TrajectoryReplayLine for JSONL export.
Sourcepub fn to_replay_jsonl(&self) -> Result<String, Error>
pub fn to_replay_jsonl(&self) -> Result<String, Error>
One JSON object + newline (JSONL) for tooling / replay files.
Trait Implementations§
Source§impl Clone for TrajectoryDetailRecord
impl Clone for TrajectoryDetailRecord
Source§fn clone(&self) -> TrajectoryDetailRecord
fn clone(&self) -> TrajectoryDetailRecord
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 TrajectoryDetailRecord
impl Debug for TrajectoryDetailRecord
Source§impl<'de> Deserialize<'de> for TrajectoryDetailRecord
impl<'de> Deserialize<'de> for TrajectoryDetailRecord
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 TrajectoryDetailRecord
impl PartialEq for TrajectoryDetailRecord
Source§fn eq(&self, other: &TrajectoryDetailRecord) -> bool
fn eq(&self, other: &TrajectoryDetailRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TrajectoryDetailRecord
impl Serialize for TrajectoryDetailRecord
impl StructuralPartialEq for TrajectoryDetailRecord
Auto Trait Implementations§
impl Freeze for TrajectoryDetailRecord
impl RefUnwindSafe for TrajectoryDetailRecord
impl Send for TrajectoryDetailRecord
impl Sync for TrajectoryDetailRecord
impl Unpin for TrajectoryDetailRecord
impl UnsafeUnpin for TrajectoryDetailRecord
impl UnwindSafe for TrajectoryDetailRecord
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