Data Format Overview
TurnWise uses a hierarchical JSON format to represent AI agent conversations. This format captures the full context of conversations including messages, tool usage, and agent reasoning.Structure
Minimal Example
The simplest valid TurnWise file:sequence_number) and step order (step_order) are automatically inferred from array positions.
Required vs Optional Fields
Required Fields
| Field | Level | Description |
|---|---|---|
conversations | Root | Array of conversation objects |
messages | Conversation | Array of message objects |
role | Message | One of: user, assistant, system, tool |
Optional Fields
| Field | Level | Description |
|---|---|---|
name | Conversation | Human-readable name |
description | Conversation | Description text |
agents | Conversation | Agent definitions |
content | Message | Message text content |
steps | Message | Processing steps |
thinking | Step | Model’s reasoning |
tool_call | Step | Tool invocation |
tool_result | Step | Tool output |
output_content | Step | Final output |
meta | All levels | Custom metadata |
The meta Field
Every level supports an optional meta field for storing custom data: