eval_ingest_trace
Convert a JSON agent trace into an EvalCase payload for immediate scoring without re-running the agent. Supports LangGraph, OpenAI Agents, and manual frameworks.
Instructions
Convert a JSON agent trace into a JSON-friendly EvalCase payload.
Parses a serialised agent trajectory and returns the
:class:EvalCase shape the rest of the eval pipeline (and the
other eval_* MCP tools) expect. Use this when your agent
has just finished a trajectory at runtime and you want to
score that trajectory immediately — no need to re-run anything.
Supports three frameworks:
"langgraph"(default): canonical universal step list"openai_agents": canonical OR{"new_items": [...]}from aRunResultyou serialised"manual": canonical step list
Args:
trace_json: The trace as a JSON-friendly dict. Must include
input; steps (or new_items for
openai_agents) is strongly recommended.
framework: One of "langgraph", "openai_agents",
"manual". Defaults to "langgraph".
Returns:
A dict with input, expected_output, context,
expected_tool_calls, agent_trace (list of step
dicts), and metadata — ready to feed back into other
eval_* MCP tools or to persist as part of an eval
dataset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_json | Yes | ||
| framework | No | langgraph |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||