Skip to main content
Helios writes execution traces in ATIF v1.5 format. Each run includes a trajectory.json file that captures the full interaction history, tool calls, observations, and metrics.

File Location

  • Single run: output/<task_name>_<timestamp>/agent/trajectory.json
  • Batch run: output/<batch>/<task>_<timestamp>/agent/trajectory.json (one per task or attempt)
The trajectory.json file is stored alongside result.json, verifier logs, and screenshots inside the agent/ folder for each run.

Root Object

FieldTypeRequiredDescription
schema_versionstringATIF compatibility, e.g. ATIF-v1.5.
session_idstringUnique identifier for the run.
agentobjectAgent configuration (see Agent object).
stepsarrayOrdered list of steps (see Step object).
notesstringOptional notes or annotations.
final_metricsobjectAggregate metrics for the run.
continued_trajectory_refstringReference to a continuation file, if used.
extraobjectHelios metadata (see Error Metadata).

Agent Object

FieldTypeRequiredDescription
namestringAgent system name (e.g., helios).
versionstringAgent version identifier.
model_namestringDefault model name for the run.
tool_definitionsarrayTool schema definitions (OpenAI-style function calling).
extraobjectCustom agent metadata.

Step Object

Every element in steps is a step in the interaction history.
FieldTypeRequiredDescription
step_idinteger1-based sequential index.
timestampstringISO 8601 timestamp.
sourcestringOne of system, user, agent.
model_namestringModel used for the step (agent-only).
reasoning_effortstring | numberQualitative or numeric effort (agent-only).
messagestringStep text (can be empty).
reasoning_contentstringExplicit reasoning content (agent-only).
tool_callsarrayTool calls invoked by the agent.
observationobjectTool or system observations.
metricsobjectLLM metrics for the step (agent-only).
is_copied_contextbooleanMarks copied context steps.
extraobjectCustom step metadata.
Agent-only fields (model_name, reasoning_effort, reasoning_content, tool_calls, metrics) must not appear on system or user steps.

Tool Calls

Each element in tool_calls:
FieldTypeRequiredDescription
tool_call_idstringUnique tool call ID.
function_namestringTool/function name.
argumentsobjectJSON arguments (can be {}).

Observations

observation.results is a list of results from tool calls or system events.
FieldTypeRequiredDescription
source_call_idstringTool call ID this result corresponds to.
contentstringText output or result.
subagent_trajectory_refarrayReferences delegated trajectories.
subagent_trajectory_ref entries:
FieldTypeRequiredDescription
session_idstringSubagent session ID.
trajectory_pathstringPath or URL to subagent trajectory.
extraobjectSubagent metadata.

Metrics Object

FieldTypeRequiredDescription
prompt_tokensintegerTotal input tokens (cached + non-cached).
completion_tokensintegerTotal generated tokens.
cached_tokensintegerCached tokens within prompt_tokens.
cost_usdnumberMonetary cost of the step.
prompt_token_idsarrayToken IDs for prompt tokens.
completion_token_idsarrayToken IDs for completion tokens.
logprobsarrayLog probability per completion token.
extraobjectProvider-specific metrics.

Final Metrics

FieldTypeRequiredDescription
total_prompt_tokensintegerSum of prompt tokens across steps.
total_completion_tokensintegerSum of completion tokens across steps.
total_cached_tokensintegerSum of cached tokens across steps.
total_cost_usdnumberTotal cost for the run.
total_stepsintegerTotal step count.
extraobjectCustom aggregate metrics.

Error Metadata

Helios does not add custom error fields to the schema. Instead, fatal errors are recorded inside the extra objects:
  • steps[].extra.error contains the structured error for the fatal system step.
  • extra.error contains the same structured error at the root for easy access.
Error payload fields follow helios.errors.CUAError.to_dict() and include:
FieldTypeDescription
typestringError class name.
codestringMachine-readable error code.
messagestringHuman-readable error message.
timestampstringISO 8601 timestamp.
hintstringOptional suggestion.
docs_urlstringOptional documentation link.
contextobjectOptional execution context.
causestringUnderlying exception message.
tracebackstringFull traceback (if captured).

Example (Minimal)

{
  "schema_version": "ATIF-v1.5",
  "session_id": "abc123",
  "agent": {
    "name": "helios",
    "version": "1.2.3",
    "model_name": "gemini/gemini-2.5-computer-use-preview-10-2025"
  },
  "steps": [
    {
      "step_id": 1,
      "source": "user",
      "message": "Create hello.txt"
    },
    {
      "step_id": 2,
      "source": "agent",
      "model_name": "gemini/gemini-2.5-computer-use-preview-10-2025",
      "message": "Creating the file.",
      "tool_calls": [
        {
          "tool_call_id": "call_1",
          "function_name": "bash",
          "arguments": {"command": "echo 'Hello' > hello.txt"}
        }
      ],
      "observation": {
        "results": [
          {
            "source_call_id": "call_1",
            "content": ""
          }
        ]
      }
    }
  ]
}