Skip to main content

Module trajectory

Module trajectory 

Source
Expand description

Trajectory export for RL training data generation.

Captures full ReAct steps (thought → action → observation → response) and serializes to JSON for fine-tuning or evaluation.

Port from hermes-rs trajectory.rs.

pontytail: JSON file output only. Parquet/Arrow can be added when large-scale training pipelines need direct export.

Structs§

Trajectory
A complete trajectory (conversation) ready for training.
TrajectoryCollector
TrajectoryCollector — collects trajectory data during an agent run.
TrajectoryMessage
A single message in the conversation for training data.
TrajectoryStep
A single step in a trajectory (one tool call + result)