Skip to main content

Crate ainl_trajectory

Crate ainl_trajectory 

Source
Expand description

Execution trajectory helpers for the self-learning stack.

Hosts (openfang-runtime, ainl-runtime, MCP tooling) share TrajectoryDraft and replay::TrajectoryReplayLine JSONL for exports; persistence lives in ainl-memory.

Re-exports§

pub use replay::parse_jsonl;
pub use replay::trajectory_replay_line;
pub use replay::TrajectoryReplayLine;
pub use replay::TRAJECTORY_REPLAY_SCHEMA_VERSION;

Modules§

replay
JSONL replay encoding (one JSON object per line) for trajectory exports and tooling.

Structs§

ClusterPolicy
ExperienceCluster
TrajectoryDraft
In-memory trajectory being assembled before commit to ainl_memory as [ainl_memory::TrajectoryNode].
TrajectoryStep
One step in an execution trajectory (tool / adapter granularity).

Enums§

TrajectoryOutcome
Overall outcome of a recorded trajectory.

Functions§

build_experience_bundle
cluster_experiences
cluster_experiences_with_policy
stable_tool_sequence
trajectory_fingerprint