What is agent trajectory data?
By Plety. Updated
Agent trajectory data is the step-by-step record of an AI agent working on a task: the instruction, each thought and action it took, what the tools or environment returned, and whether it succeeded. Developers use trajectories to fine-tune agents and to train checkers that score them. Public examples include AgentInstruct, with 1,866 filtered trajectories, and a set of 80,036 coding agent trajectories.
What is agent trajectory data?
Agent trajectory data is the log of one attempt at a task, kept in order from the first instruction to the final result. Each step usually has three parts: the agent's reasoning, the action it took, such as a search, a click or a command, and the observation that came back. The ReAct paper by Shunyu Yao and colleagues (arXiv, October 2022) set the pattern by having language models generate reasoning traces and task-specific actions in an interleaved manner, which it said produces human-like task-solving trajectories that are more interpretable than those without reasoning traces.
A trajectory differs from a chat transcript because it records actions and their effects, not only words, and it carries an outcome. The outcome is what lets developers keep successful attempts for training and study the failed ones.
What does a trajectory record contain?
A trajectory record contains the task, the sequence of steps and the outcome, plus enough metadata to check it. Field names vary between datasets. The table compares two public examples, from their Hugging Face dataset cards as read in November 2026.
| Field | AgentInstruct (THUDM) | SWE-agent trajectories (Nebius) |
|---|---|---|
| Task identifier | id, for example os_0 | instance_id: the repository and issue |
| Steps | conversations: a list of turns, each with from, loss and value fields | trajectory: reasoning, actions and environment observations, with the system prompt first |
| Model | GPT-4 for all trajectories | model_name, for example swe-agent-llama-70b |
| Outcome | Only trajectories that passed strict reward filtering were kept | target: whether the model solved the issue; exit_status: how the run ended |
| Evidence | No separate field | generated_patch and the eval_logs of the tests that checked it |
Which public datasets record agent trajectories?
Public datasets that record agent trajectories include AgentInstruct and Nebius's SWE-agent trajectories, while Mind2Web records human action sequences and SWE-Gym supplies executable tasks for producing trajectories. The table compares the four, with figures from each paper or dataset card.
Mind2Web differs from the others because its sequences come from people rather than models, so they show how humans actually complete web tasks. SWE-Gym's authors also trained verifiers on agent trajectories, and with their fine-tuned agents reported 32.0% on SWE-Bench Verified and 26.0% on SWE-Bench Lite.
| Dataset | What it records | Size | How it was made |
|---|---|---|---|
| AgentInstruct (Zeng and colleagues, October 2023) | Agent interactions across six tasks, from household routines to databases and operating systems | 1,866 trajectories, 5.24 turns on average | Generated by GPT-4 with ReAct-style reasoning, then filtered by strict rewards |
| Mind2Web (Deng and colleagues, June 2023) | Action sequences for open-ended tasks on real websites | Over 2,000 tasks from 137 websites in 31 domains | Crowdsourced action sequences |
| SWE-agent trajectories (Nebius) | Coding agent attempts to fix GitHub issues | 80,036 trajectories, 13,389 marked as resolving the issue | SWE-agent with several models, on issues from SWE-bench-extra and the SWE-bench dev split |
| SWE-Gym (Pan and colleagues, December 2024) | Executable Python tasks for training coding agents and verifiers | 2,438 real-world task instances | Each has a codebase, a runtime environment, unit tests and a task in natural language |
How is trajectory data used to train agents?
Trajectory data is used mainly for fine-tuning: successful trajectories become examples that teach a model to reason and act in the same way. AgentTuning, by Aohan Zeng and colleagues (arXiv, October 2023), mixed AgentInstruct with open-source general instructions to fine-tune Llama 2 models, and reported that its AgentLM-70B was comparable to GPT-3.5-turbo on unseen agent tasks without losing general abilities.
Failed trajectories are useful too. A set that marks success and failure, as the Nebius data does with its target field, can train a verifier that scores new attempts. Epoch AI lists supervised fine-tuning on trajectories that solve a task as one of the three main uses of an RL environment, alongside reinforcement learning and benchmarking.
Where do real business records fit?
Real business records are not agent trajectories, but many hold the same structure made by people: a request, a series of actions in tools and a recorded result. A support ticket with its status changes, internal notes and resolution, a code issue with its commits, review comments and test results, or a CRM opportunity with its logged calls and stage changes each reads as a human trajectory through a real workflow.
That makes them useful in two ways. They can be converted into demonstration trajectories, like Mind2Web's human action sequences but drawn from years of real work. And they can supply the tasks and success checks against which model trajectories are generated and filtered. Either way, the records need stable IDs linking each step, timestamps in order, the outcome, and personal data masked consistently so that one person keeps one token across the whole sequence.
Why agent developers want workflow records in the first place is covered at https://plety-desk.vercel.app/about/for-buyers/why-agentic-ai-developers-want-workflow-records. Trajectories are the format those records are turned into.
Questions
- Is a trajectory the same as a log file?
- No. A system log records events across a system, while a trajectory records one agent's attempt at one task, with its reasoning and outcome. A log can be turned into trajectories by grouping events by task and adding the instruction and the result.
- Can trajectories contain personal data?
- Yes. Observations returned by tools often contain names, email addresses or account numbers from the underlying records, so trajectories need the same masking as the records themselves.
- Who controls trajectories an agent produces on licensed records?
- The licence should say. If an agent works inside a copy of a company's records, its trajectories carry that content, so the licence should cover whether they may be kept, used for training or shared.
- What licence do public trajectory datasets carry?
- It varies. The Nebius SWE-agent trajectories card states a Creative Commons Attribution 4.0 licence and says users must also respect the licence of each source repository.
Looking for licensed records from UK companies?
Email Herman or book a 30-minute call with what you license: record types, languages, volume, date range and terms.
Sources
- Zeng and colleagues, AgentTuning: Enabling Generalized Agent Abilities for LLMs (arXiv, October 2023)
- THUDM, AgentInstruct dataset card (Hugging Face)
- Yao and colleagues, ReAct: Synergizing Reasoning and Acting in Language Models (arXiv, October 2022)
- Deng and colleagues, Mind2Web: Towards a Generalist Agent for the Web (arXiv, June 2023)
- Nebius, SWE-agent-trajectories dataset card (Hugging Face)
- Pan and colleagues, Training Software Engineering Agents and Verifiers with SWE-Gym (arXiv, December 2024)
- Epoch AI, Denain and Barber, An FAQ on reinforcement learning environments (12 January 2026)
This page is general information, not legal advice. Take advice on your own company's records and contracts.