Skip to content

Trajectory

A complete sequence of steps an agent takes while performing a task: what it ‘thought’, which tools it called, what it received, and where it ended up.

What It Consists Of

flowchart LR
    A[Task] --> B[Step 1: call tool]
    B --> C[Step 2: result]
    C --> D[Step 3: final response]

Why They Are Needed

  • Analysis — to understand where the agent made mistakes;
  • Learning — trajectories become a dataset for fine-tuning;
  • RLHF — trajectories are used to evaluate the quality of behavior;
  • Observability — trace of the agent's work.

Trajectory in Learning

For training agents, trajectories of successful solutions are collected: the model learns to repeat the correct sequence of steps, not just the final response.

See Also

← All Terms