DEV Community · Schema
AgentSessionShow
Full representation of an agent session including messages and curation data
Developer CommunityArticlesBloggingSocialContentOpen Source
Properties
| Name | Type | Description |
|---|---|---|
| id | integer | |
| slug | string | |
| title | string | |
| tool_name | string | Tool that produced the session (e.g. claude_code, codex) |
| total_messages | integer | |
| curated_count | integer | Number of curated messages selected for display |
| published | boolean | |
| metadata | object | Session metadata (tool-specific) |
| messages | array | All normalized messages in the session |
| slices | array | Named slices grouping message ranges |
| created_at | string | |
| updated_at | string | |
| url | string |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "AgentSessionShow",
"description": "Full representation of an agent session including messages and curation data",
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"slug": {
"type": "string"
},
"title": {
"type": "string"
},
"tool_name": {
"type": "string",
"description": "Tool that produced the session (e.g. claude_code, codex)"
},
"total_messages": {
"type": "integer",
"format": "int32"
},
"curated_count": {
"type": "integer",
"format": "int32",
"description": "Number of curated messages selected for display"
},
"published": {
"type": "boolean"
},
"metadata": {
"type": "object",
"nullable": true,
"description": "Session metadata (tool-specific)"
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "All normalized messages in the session"
},
"slices": {
"type": "array",
"items": {
"type": "object"
},
"description": "Named slices grouping message ranges"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"url": {
"type": "string",
"format": "url"
}
},
"required": [
"id",
"slug",
"title",
"tool_name",
"total_messages",
"curated_count",
"published",
"messages",
"slices",
"created_at",
"updated_at",
"url"
]
}