---
source: crates/agtrace-engine/tests/session.rs
expression: session
---
{
"session_id": "00000000-0000-0000-0000-000000000001",
"stream_id": {
"stream_type": "main"
},
"start_time": "2025-12-14T00:00:00Z",
"end_time": "2025-12-14T00:00:00Z",
"turns": [
{
"id": "00000000-0000-0000-0000-000000000002",
"timestamp": "2025-12-14T00:00:00Z",
"user": {
"event_id": "00000000-0000-0000-0000-000000000002",
"content": {
"text": "Hello"
},
"origin": {
"type": "user"
}
},
"steps": [
{
"id": "00000000-0000-0000-0000-000000000003",
"timestamp": "2025-12-14T00:00:00Z",
"reasoning": {
"event_id": "00000000-0000-0000-0000-000000000003",
"content": {
"text": "I should respond"
}
},
"message": {
"event_id": "00000000-0000-0000-0000-000000000006",
"content": {
"text": "Done!"
}
},
"tools": [
{
"call": {
"event_id": "00000000-0000-0000-0000-000000000004",
"timestamp": "2025-12-14T00:00:00Z",
"provider_call_id": "call_1",
"content": {
"name": "bash",
"arguments": {
"command": "echo hello"
},
"provider_call_id": "call_1"
}
},
"result": {
"event_id": "00000000-0000-0000-0000-000000000005",
"timestamp": "2025-12-14T00:00:00Z",
"tool_call_id": "00000000-0000-0000-0000-000000000004",
"content": {
"output": "hello",
"tool_call_id": "00000000-0000-0000-0000-000000000004",
"is_error": false
}
},
"duration_ms": 0,
"is_error": false
}
],
"usage": {
"fresh_input": 100,
"cache_creation": 0,
"cache_read": 0,
"output": 50
},
"is_failed": false,
"status": "done"
}
],
"stats": {
"duration_ms": 0,
"step_count": 1,
"total_tokens": 150
}
}
],
"stats": {
"total_turns": 1,
"duration_seconds": 0,
"total_tokens": 150
}
}