Skip to main content

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:
Note: Message order (sequence_number) and step order (step_order) are automatically inferred from array positions.

Required vs Optional Fields

Required Fields

Optional Fields

The meta Field

Every level supports an optional meta field for storing custom data:
This data is preserved but not used by TurnWise evaluations unless referenced in custom metrics.

Next Steps

Conversations

Learn about conversation structure

Messages

Understand message roles and content

Steps

Capture reasoning and tool usage

Agents

Define agent capabilities