Retrieve all events and chat metadata for the specified chat conversation. If the chat has a structured output schema, the generated structured output is returned in chat.result.
API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here
Query Parameters
chatId
string<uuid>
required
Unique identifier of the chat to retrieve history for
limit
number
Optional page size for paginated history fetch (1-100)
Required range: 1 <= x <= 100
beforeCursor
string
Cursor for loading older events
Pattern: ^\d+:[0-9a-fA-F-]{36}$
Response
Successful response
Chat history response containing events and chat metadata
events
object[]
required
Array of chat event objects
A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field "type" that determines its structure.
Option 1
Option 2
Option 3
Option 4
Option 5
Option 6
Option 7
Option 8
Option 9
Option 10
Option 11
Option 12
Option 13
Option 14
Option 15
Option 16
Option 17
Option 18
Option 19
Option 20
Option 21
Option 22
Option 23
Option 24
Option 25
Option 26
Option 27
Option 28
Option 29
Show child attributes
chat
object | null
required
Chat details or null if not found
Show child attributes
feedbackByEvent
object
Latest human thumb feedback keyed by chat event id
Show child attributes
nextCursor
string | null
Cursor for loading older events
Pattern: ^\d+:[0-9a-fA-F-]{36}$
hasMore
boolean
Whether more older events are available
Was this page helpful?
⌘I
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Cotool Documentation","colors":{"primary":"#A9D5F5","light":"#A9D5F5","dark":"#ADB7C2"},"logo":{"light":"https://mintcdn.com/cotool-bcb49c92/2D7q2Y6FoJjh0OqV/logo/light.svg?fit=max\u0026auto=format\u0026n=2D7q2Y6FoJjh0OqV\u0026q=85\u0026s=ed5fa6ba5fadea78cb6d1341380b9873","dark":"https://mintcdn.com/cotool-bcb49c92/2D7q2Y6FoJjh0OqV/logo/dark.svg?fit=max\u0026auto=format\u0026n=2D7q2Y6FoJjh0OqV\u0026q=85\u0026s=fab6122c7e0ad6a1e8299f49397231f5"},"favicon":"https://mintcdn.com/cotool-bcb49c92/YkFCFtl3swKv9Xqp/favicon.png?fit=max\u0026auto=format\u0026n=YkFCFtl3swKv9Xqp\u0026q=85\u0026s=4c02ec1d53713897f1c2b6f7815e864b","api":{"playground":{"display":"simple"},"examples":{"defaults":"all","languages":["curl","python","javascript","java","go"]}},"navbar":{"links":[{"href":"mailto:support@cotool.ai","label":"Support"}]},"footer":{"socials":{"x":"https://x.com/cotoolai","linkedin":"https://www.linkedin.com/company/cotool-ai","website":"https://cotool.ai"}},"integrations":{"ga4":{"measurementId":"G-RJSB18V7N5"},"gtm":{"tagId":"GTM-5BPJH7T2"}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"background":{"color":{"light":"#fcfeff","dark":"#0e0f12"}},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://cotool.ai/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cotool-bcb49c92","hasAudioNarration":false,"actualSubdomain":"cotool-bcb49c92","customDomains":["docs.cotool.ai"],"gitSource":{"type":"github","owner":"cotool","repo":"cogent-client","deployBranch":"stable","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af626646bcf3eee99974073","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":160},{"language":"default","tag":"Endpoints","count":159},{"language":"default","tag":"Documentation","count":62},{"language":"default","tag":"Agents","count":30},{"language":"default","tag":"Alerts","count":23},{"language":"default","tag":"Integrations","count":19},{"language":"default","tag":"Agent Runs","count":14},{"language":"default","tag":"Agent Triggers","count":14},{"language":"default","tag":"Hunt","count":13},{"language":"default","tag":"Intel","count":11}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/chat/get-chat-history","slug":"/api-reference/chat/get-chat-history","pageMetadata":{"title":"Get chat history","description":"Retrieve all events and chat metadata for the specified chat conversation. If the chat has a structured output schema, the generated structured output is returned in `chat.result`.","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/chat/history","href":"/api-reference/chat/get-chat-history","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Retrieve all events and chat metadata for the specified chat conversation. If the chat has a structured output schema, the generated structured output is returned in \", _jsx(_components.code, {\n children: \"chat.result\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get chat history","description":"Retrieve all events and chat metadata for the specified chat conversation. If the chat has a structured output schema, the generated structured output is returned in `chat.result`.","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/chat/history","href":"/api-reference/chat/get-chat-history","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Get chat history","description":"Retrieve all events and chat metadata for the specified chat conversation. If the chat has a structured output schema, the generated structured output is returned in `chat.result`.","tags":["Chat"],"x-codeSamples":[{"lang":"shell","label":"cURL","source":"curl -X GET \"https://app.cotool.ai/api/chat/history\" \\\n -H \"Authorization: Bearer YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\""}],"parameters":["0481792e-3592-47bb-aee4-d9fd65e23eb5","d6677bac-1961-4f1b-ad7c-f64776d51997","32d1b1a2-9567-45dc-acef-f212e2b10621"],"responses":{"200":"3bc426e2-12e5-4ef9-a7a5-2e76e64ef8df","400":"b67c84b8-de17-4d9a-9e03-50641f81b13a","401":"3d53d4bb-cfcc-4636-9d91-3516bb20c756","403":"3a95a06d-2fa0-4a8c-b284-007ef72d1470","500":"297775f0-3077-4541-a28f-ca461b77a27a"},"method":"get","type":"path","servers":["6eb08f36-bec7-4b93-83a6-ab082fdfa33d"],"security":["c876ec86-a10e-4cf3-97f0-dec70cca7543"],"path":"/api/chat/history","baseUrlOptions":["https://app.cotool.ai"],"title":"Get chat history","codeSamples":[{"label":"cURL","lang":"shell","source":"curl -X GET \"https://app.cotool.ai/api/chat/history\" \\\n -H \"Authorization: Bearer YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\""}],"requestExampleLanguages":["bash","python","javascript","java","go"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"0481792e-3592-47bb-aee4-d9fd65e23eb5":{"in":"query","name":"chatId","description":"Unique identifier of the chat to retrieve history for","schema":{"type":"string","format":"uuid","description":"Unique identifier of the chat to retrieve history for","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"},"required":true},"d6677bac-1961-4f1b-ad7c-f64776d51997":{"in":"query","name":"limit","description":"Optional page size for paginated history fetch (1-100)","schema":{"type":"number","minimum":1,"maximum":100,"description":"Optional page size for paginated history fetch (1-100)","uniqueKey":"","typeLabel":"number"}},"32d1b1a2-9567-45dc-acef-f212e2b10621":{"in":"query","name":"beforeCursor","description":"Cursor for loading older events","schema":{"type":"string","pattern":"^\\d+:[0-9a-fA-F-]{36}$","description":"Cursor for loading older events","uniqueKey":"","typeLabel":"string"}}},"responses":{"3bc426e2-12e5-4ef9-a7a5-2e76e64ef8df":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"oneOf":[{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","sender","messageType","modelAlias"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.id","typeLabel":"string"},"type":{"type":"string","const":"chat","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.chatId","typeLabel":"string"},"sender":{"type":"string","enum":["user","assistant"],"description":"Who sent the message","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.sender","typeLabel":"enum\u003cstring>"},"messageType":{"type":"string","enum":["text","image","file","tool_result","tool_call"],"description":"Type of message content","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.messageType","typeLabel":"enum\u003cstring>"},"modelAlias":{"description":"Model used for this message","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.modelAlias","typeLabel":"any"},"content":{"type":"string","description":"Message content","uniqueKey":"events.items.[INDEX].oneOf.0.content","typeLabel":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string","description":"Unique file identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.attachments.items.[INDEX].fileId","typeLabel":"string"},"fileName":{"type":"string","description":"Original file name","uniqueKey":"events.items.[INDEX].oneOf.0.attachments.items.[INDEX].fileName","typeLabel":"string"},"size":{"type":"number","description":"File size in bytes","uniqueKey":"events.items.[INDEX].oneOf.0.attachments.items.[INDEX].size","typeLabel":"number"},"objectPath":{"type":"string","description":"Storage path for retrieval","uniqueKey":"events.items.[INDEX].oneOf.0.attachments.items.[INDEX].objectPath","typeLabel":"string"},"fileType":{"type":"string","enum":["image","pdf","spreadsheet","document","presentation","file"],"description":"Semantic file type","uniqueKey":"events.items.[INDEX].oneOf.0.attachments.items.[INDEX].fileType","typeLabel":"enum\u003cstring>"},"previewText":{"type":"string","description":"Optional preview text for text files","uniqueKey":"events.items.[INDEX].oneOf.0.attachments.items.[INDEX].previewText","typeLabel":"string"}},"required":["fileId"],"uniqueKey":"events.items.[INDEX].oneOf.0.attachments.items.[INDEX]","typeLabel":"object"},"description":"Optional message attachments","uniqueKey":"events.items.[INDEX].oneOf.0.attachments","typeLabel":"object[]"},"agentInputVersion":{"type":"integer","description":"Version of structured agent input metadata","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputVersion","typeLabel":"integer"},"agentInputSourceType":{"type":"string","description":"Source type for structured agent input (e.g. jira_webhook, cron_trigger)","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputSourceType","typeLabel":"string"},"agentInputSchemaType":{"type":"string","description":"Human-readable schema classification for structured agent input","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputSchemaType","typeLabel":"string"},"agentInputHeadline":{"type":"string","description":"Primary summary line for structured agent input","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputHeadline","typeLabel":"string"},"agentInputContext":{"type":"string","description":"Secondary context summary for structured agent input","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputContext","typeLabel":"string"},"agentInputSeverity":{"type":"string","description":"Severity level for structured agent input, when available","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputSeverity","typeLabel":"string"},"agentInputLinkLabel":{"type":"string","description":"Label for an external deep-link associated with structured agent input","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputLinkLabel","typeLabel":"string"},"agentInputLinkUrl":{"type":"string","description":"URL for an external deep-link associated with structured agent input","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputLinkUrl","typeLabel":"string"},"agentInputPayload":{"oneOf":[{"type":"string","description":"Normalized structured agent input payload","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputPayload.oneOf.0","typeLabel":"string"},{"type":"number","description":"Normalized structured agent input payload","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputPayload.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"Normalized structured agent input payload","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputPayload.oneOf.2","typeLabel":"boolean"},{"type":"null","description":"Normalized structured agent input payload","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputPayload.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"events.items.[INDEX].oneOf.0.agentInputPayload.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Normalized structured agent input payload","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputPayload.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Normalized structured agent input payload","uniqueKey":"events.items.[INDEX].oneOf.0.agentInputPayload.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.0.agentInputPayload","typeLabel":"string | number | boolean | null | any[] | object"},"toolCalls":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"tool-call","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.toolCalls.items.[INDEX].type","typeLabel":"string"},"toolCallId":{"type":"string","description":"Unique tool call identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.toolCalls.items.[INDEX].toolCallId","typeLabel":"string"},"toolName":{"type":"string","description":"Name of the tool being called","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.toolCalls.items.[INDEX].toolName","typeLabel":"string"},"input":{"description":"Tool arguments","uniqueKey":"events.items.[INDEX].oneOf.0.toolCalls.items.[INDEX].input","typeLabel":"any"}},"required":["type","toolCallId","toolName"],"uniqueKey":"events.items.[INDEX].oneOf.0.toolCalls.items.[INDEX]","typeLabel":"object"},"description":"Tool calls made in this message","uniqueKey":"events.items.[INDEX].oneOf.0.toolCalls","typeLabel":"object[]"},"providerToolSearch":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["openai","anthropic"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].provider","typeLabel":"enum\u003cstring>"},"toolCallId":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].toolCallId","typeLabel":"string"},"toolName":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].toolName","typeLabel":"string"},"input":{"oneOf":[{"type":"string","description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].input.oneOf.0","typeLabel":"string"},{"type":"number","description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].input.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].input.oneOf.2","typeLabel":"boolean"},{"type":"null","description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].input.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].input.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].input.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].input.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].input","typeLabel":"string | number | boolean | null | any[] | object"},"output":{"oneOf":[{"type":"string","description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].output.oneOf.0","typeLabel":"string"},{"type":"number","description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].output.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].output.oneOf.2","typeLabel":"boolean"},{"type":"null","description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].output.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].output.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].output.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"A JSON value (string, number, boolean, null, array, or object)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].output.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].output","typeLabel":"string | number | boolean | null | any[] | object"},"callProviderMetadata":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].callProviderMetadata.additionalProperties.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].callProviderMetadata.additionalProperties.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].callProviderMetadata.additionalProperties.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].callProviderMetadata.additionalProperties.additionalProperties.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].callProviderMetadata.additionalProperties.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].callProviderMetadata.additionalProperties.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].callProviderMetadata.additionalProperties.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].callProviderMetadata.additionalProperties.additionalProperties","typeLabel":"string | number | boolean | null | any[] | object"},"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].callProviderMetadata.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].callProviderMetadata","typeLabel":"object"},"resultProviderMetadata":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].resultProviderMetadata.additionalProperties.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].resultProviderMetadata.additionalProperties.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].resultProviderMetadata.additionalProperties.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].resultProviderMetadata.additionalProperties.additionalProperties.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].resultProviderMetadata.additionalProperties.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].resultProviderMetadata.additionalProperties.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].resultProviderMetadata.additionalProperties.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].resultProviderMetadata.additionalProperties.additionalProperties","typeLabel":"string | number | boolean | null | any[] | object"},"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].resultProviderMetadata.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX].resultProviderMetadata","typeLabel":"object"}},"required":["provider","toolCallId","toolName","input","output"],"uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch.items.[INDEX]","typeLabel":"object"},"description":"Provider-executed tool searches in this message, replayed only to the same provider","uniqueKey":"events.items.[INDEX].oneOf.0.providerToolSearch","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","text"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.id","typeLabel":"string"},"type":{"type":"string","const":"liveStatus","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.chatId","typeLabel":"string"},"text":{"type":"string","description":"Status text (e.g., \"Thinking\", \"Planning\")","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.text","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","toolUseId","toolName","toolDisplayName","briefActionDescription","status"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.id","typeLabel":"string"},"type":{"type":"string","const":"toolUsed","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.chatId","typeLabel":"string"},"toolUseId":{"type":"string","description":"Unique tool use identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.toolUseId","typeLabel":"string"},"toolName":{"type":"string","description":"Name of the tool used","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.toolName","typeLabel":"string"},"toolDisplayName":{"type":"string","description":"Display name of the tool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.toolDisplayName","typeLabel":"string"},"briefActionDescription":{"type":"string","description":"Brief description of the action","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.briefActionDescription","typeLabel":"string"},"status":{"type":"string","enum":["inProgress","success","error"],"description":"Tool execution status","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.status","typeLabel":"enum\u003cstring>"},"parentToolUseId":{"type":"string","description":"Parent tool use identifier when this tool was invoked by another tool","uniqueKey":"events.items.[INDEX].oneOf.2.parentToolUseId","typeLabel":"string"},"codeModeBlockId":{"type":"string","description":"Code Mode JavaScript block or marimo cell that invoked this tool","uniqueKey":"events.items.[INDEX].oneOf.2.codeModeBlockId","typeLabel":"string"},"visibleActionInput":{"type":"string","description":"Visible input to the tool","uniqueKey":"events.items.[INDEX].oneOf.2.visibleActionInput","typeLabel":"string"},"noRender":{"type":"boolean","description":"Whether this tool event should stay out of the chat timeline","uniqueKey":"events.items.[INDEX].oneOf.2.noRender","typeLabel":"boolean"},"outputDisplay":{"type":"string","enum":["peek","collapsed","panel"],"description":"How the output shows in the chat log: peek (always shown under the row), collapsed (behind the row) or panel (side panel only). Left out, the frontend derives it from the result type.","uniqueKey":"events.items.[INDEX].oneOf.2.outputDisplay","typeLabel":"enum\u003cstring>"},"input":{"description":"Tool input data","uniqueKey":"events.items.[INDEX].oneOf.2.input","typeLabel":"any"},"frontendOutput":{"description":"Tool output for frontend display","uniqueKey":"events.items.[INDEX].oneOf.2.frontendOutput","typeLabel":"any"},"rawOutputUuid":{"type":"string","description":"UUID for raw output retrieval","uniqueKey":"events.items.[INDEX].oneOf.2.rawOutputUuid","typeLabel":"string"},"toolResultPart":{"description":"Raw result for LLM","uniqueKey":"events.items.[INDEX].oneOf.2.toolResultPart","typeLabel":"any"},"agentChatId":{"type":"string","description":"Chat ID where agent execution occurred (for agent tools)","uniqueKey":"events.items.[INDEX].oneOf.2.agentChatId","typeLabel":"string"},"slackThread":{"type":"object","properties":{"teamId":{"type":"string","description":"Slack workspace/team ID","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.slackThread.teamId","typeLabel":"string"},"channelId":{"type":"string","description":"Slack channel ID","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.slackThread.channelId","typeLabel":"string"},"threadTs":{"type":"string","description":"Thread timestamp (parent message ts)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.slackThread.threadTs","typeLabel":"string"}},"required":["teamId","channelId","threadTs"],"description":"Slack thread metadata for linking this tool call to a Slack thread","uniqueKey":"events.items.[INDEX].oneOf.2.slackThread","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","toolName","toolDescription","uuid"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.id","typeLabel":"string"},"type":{"type":"string","const":"toolUseConfirmation","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.chatId","typeLabel":"string"},"toolName":{"type":"string","description":"Name of the tool requiring confirmation","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.toolName","typeLabel":"string"},"toolDescription":{"type":"string","description":"Description of the tool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.toolDescription","typeLabel":"string"},"uuid":{"type":"string","description":"Confirmation UUID","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.uuid","typeLabel":"string"},"input":{"description":"Tool input data","uniqueKey":"events.items.[INDEX].oneOf.3.input","typeLabel":"any"},"toolDisplayName":{"type":"string","description":"Display name of the tool","uniqueKey":"events.items.[INDEX].oneOf.3.toolDisplayName","typeLabel":"string"},"briefActionDescription":{"type":"string","description":"Brief description of the action","uniqueKey":"events.items.[INDEX].oneOf.3.briefActionDescription","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","toolName","toolCallId","toolEventId","toolUseId","message","buttonLabels","promptStatus"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.id","typeLabel":"string"},"type":{"type":"string","const":"waitingForUserResponse","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.chatId","typeLabel":"string"},"toolName":{"type":"string","description":"Name of the tool that is waiting","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.toolName","typeLabel":"string"},"toolCallId":{"type":"string","description":"The AI SDK tool call ID","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.toolCallId","typeLabel":"string"},"toolEventId":{"type":"string","description":"The tool event ID for updates","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.toolEventId","typeLabel":"string"},"toolUseId":{"type":"string","description":"The unique tool use ID","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.toolUseId","typeLabel":"string"},"message":{"type":"string","description":"The message/question being asked","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.message","typeLabel":"string"},"buttonLabels":{"type":"array","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.buttonLabels.items.[INDEX]","typeLabel":"string"},"description":"Labels for the response buttons","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.buttonLabels","typeLabel":"string[]"},"promptStatus":{"type":"string","enum":["pending","resolved","cancelled"],"description":"Current status of the waiting prompt","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.promptStatus","typeLabel":"enum\u003cstring>"},"slackChannelId":{"type":"string","description":"Slack channel ID if message was sent to Slack","uniqueKey":"events.items.[INDEX].oneOf.4.slackChannelId","typeLabel":"string"},"slackMessageTs":{"type":"string","description":"Slack message timestamp if message was sent to Slack","uniqueKey":"events.items.[INDEX].oneOf.4.slackMessageTs","typeLabel":"string"},"selectedLabel":{"type":"string","description":"The label that was selected (when resolved)","uniqueKey":"events.items.[INDEX].oneOf.4.selectedLabel","typeLabel":"string"},"answeredBy":{"type":"string","enum":["slack","ui","timeout"],"description":"How the prompt was resolved: a response from Slack or the UI, or `timeout` when it elapsed with no user response (mirrors the timed-wait event's resolvedBy discriminator).","uniqueKey":"events.items.[INDEX].oneOf.4.answeredBy","typeLabel":"enum\u003cstring>"},"slackUserId":{"type":"string","description":"Slack user ID of responder if answered via Slack","uniqueKey":"events.items.[INDEX].oneOf.4.slackUserId","typeLabel":"string"},"toolApproval":{"type":"object","properties":{"toolName":{"type":"string","description":"Tool action awaiting approval","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.toolApproval.toolName","typeLabel":"string"},"argumentsJson":{"type":"string","description":"Pretty-printed JSON arguments of the gated call","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.toolApproval.argumentsJson","typeLabel":"string"},"toolDisplayName":{"type":"string","description":"Human-readable name of the tool action","uniqueKey":"events.items.[INDEX].oneOf.4.toolApproval.toolDisplayName","typeLabel":"string"},"decidedBy":{"type":"string","description":"Email or name of the person who decided","uniqueKey":"events.items.[INDEX].oneOf.4.toolApproval.decidedBy","typeLabel":"string"},"notificationFailures":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["slack","teams"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.toolApproval.notificationFailures.items.[INDEX].channel","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"What went wrong, written for the user","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.toolApproval.notificationFailures.items.[INDEX].message","typeLabel":"string"}},"required":["channel","message"],"uniqueKey":"events.items.[INDEX].oneOf.4.toolApproval.notificationFailures.items.[INDEX]","typeLabel":"object"},"description":"Slack or Teams notifications that could not be sent; approval still works in Cotool","uniqueKey":"events.items.[INDEX].oneOf.4.toolApproval.notificationFailures","typeLabel":"object[]"}},"required":["toolName","argumentsJson"],"description":"Present when the prompt is an approval request for a gated tool call","uniqueKey":"events.items.[INDEX].oneOf.4.toolApproval","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","toolName","toolCallId","toolEventId","toolUseId","waitSeconds","resumeAtTimestamp","waitStatus"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.id","typeLabel":"string"},"type":{"type":"string","const":"timedWait","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.chatId","typeLabel":"string"},"toolName":{"type":"string","description":"Name of the wait tool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.toolName","typeLabel":"string"},"toolCallId":{"type":"string","description":"The AI SDK tool call ID","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.toolCallId","typeLabel":"string"},"toolEventId":{"type":"string","description":"The tool event ID for updates","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.toolEventId","typeLabel":"string"},"toolUseId":{"type":"string","description":"The unique tool use ID","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.toolUseId","typeLabel":"string"},"waitSeconds":{"type":"integer","minimum":60,"maximum":86400,"description":"Requested wait duration in seconds","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.waitSeconds","typeLabel":"integer"},"resumeAtTimestamp":{"type":"number","description":"Unix timestamp in milliseconds when the wait should resume","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.resumeAtTimestamp","typeLabel":"number"},"waitStatus":{"type":"string","enum":["pending","completed","cancelled"],"description":"Current status of the timed wait","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.waitStatus","typeLabel":"enum\u003cstring>"},"resolvedBy":{"type":"string","enum":["timer","user"],"description":"How the wait finished","uniqueKey":"events.items.[INDEX].oneOf.5.resolvedBy","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","agentStatus","brief"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.id","typeLabel":"string"},"type":{"type":"string","const":"statusUpdate","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.chatId","typeLabel":"string"},"agentStatus":{"type":"string","enum":["planning","warning","executing","error","completed","idle"],"description":"Current agent status","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.agentStatus","typeLabel":"enum\u003cstring>"},"brief":{"type":"string","description":"Brief status summary","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.brief","typeLabel":"string"},"description":{"type":"string","description":"Detailed status description","uniqueKey":"events.items.[INDEX].oneOf.6.description","typeLabel":"string"},"planStepId":{"type":"string","description":"Associated plan step ID","uniqueKey":"events.items.[INDEX].oneOf.6.planStepId","typeLabel":"string"},"noRender":{"type":"boolean","description":"UI rendering hint","uniqueKey":"events.items.[INDEX].oneOf.6.noRender","typeLabel":"boolean"},"slackThread":{"type":"object","properties":{"teamId":{"type":"string","description":"Slack workspace/team ID","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.slackThread.teamId","typeLabel":"string"},"channelId":{"type":"string","description":"Slack channel ID","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.slackThread.channelId","typeLabel":"string"},"threadTs":{"type":"string","description":"Thread timestamp (parent message ts)","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.slackThread.threadTs","typeLabel":"string"}},"required":["teamId","channelId","threadTs"],"description":"Slack thread metadata linking this chat to a Slack thread for re-entry lookup","uniqueKey":"events.items.[INDEX].oneOf.6.slackThread","typeLabel":"object"},"modelFallback":{"type":"object","properties":{"fromModelAlias":{"description":"Model the run was asked to use","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.modelFallback.fromModelAlias","typeLabel":"any"},"toModelAlias":{"description":"Model the run actually continues on","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.modelFallback.toModelAlias","typeLabel":"any"},"sticky":{"type":"boolean","description":"Whether the chat stays on toModelAlias for its later turns (content-filter fallbacks) rather than only this turn","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.modelFallback.sticky","typeLabel":"boolean"}},"required":["fromModelAlias","toModelAlias","sticky"],"description":"Set on model-fallback notices so clients can reflect the model actually serving the chat","uniqueKey":"events.items.[INDEX].oneOf.6.modelFallback","typeLabel":"object"},"metadata":{"type":"object","properties":{"turnId":{"type":"string","description":"The chat turn whose run this status reports on","uniqueKey":"events.items.[INDEX].oneOf.6.metadata.turnId","typeLabel":"string"}},"description":"Run identity, so clients can tell runs of one chat apart","uniqueKey":"events.items.[INDEX].oneOf.6.metadata","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","status"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.id","typeLabel":"string"},"type":{"type":"string","const":"structuredOutputStatus","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.chatId","typeLabel":"string"},"status":{"type":"string","enum":["pending","generating","ready","error"],"description":"Current status of structured output generation","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.status","typeLabel":"enum\u003cstring>"},"error":{"type":"string","description":"Error information when generation fails","uniqueKey":"events.items.[INDEX].oneOf.7.error","typeLabel":"string"},"output":{"type":"object","properties":{"result":{"oneOf":[{"type":"string","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.result.oneOf.0","typeLabel":"string"},{"type":"number","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.result.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.result.oneOf.2","typeLabel":"boolean"},{"type":"null","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.result.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"events.items.[INDEX].oneOf.7.output.result.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.result.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.result.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.7.output.result","typeLabel":"string | number | boolean | null | any[] | object"},"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","number","boolean","null","object","array"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.type","typeLabel":"enum\u003cstring>"},"title":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.title","typeLabel":"string"},"description":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.description","typeLabel":"string"},"properties":{"type":"object","additionalProperties":{"$circularRef":"26a0b8a8-5ed9-4a81-bd55-b60fe795672c"},"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.properties","typeLabel":"object"},"items":{"oneOf":[{"$circularRef":"26a0b8a8-5ed9-4a81-bd55-b60fe795672c"}],"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.\\items","typeLabel":"any"},"minItems":{"type":"integer","minimum":0,"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.minItems","typeLabel":"integer"},"maxItems":{"type":"integer","minimum":0,"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.maxItems","typeLabel":"integer"},"required":{"type":"array","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.required.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.required","typeLabel":"string[]"},"enum":{"type":"array","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.enum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.enum","typeLabel":"string[]"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.\\additionalProperties","typeLabel":"boolean"},"x-cotool":{"type":"object","properties":{"presetId":{"type":"string","enum":["classification","markdown","templatedReport","toolCallEvidence"],"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool.presetId","typeLabel":"enum\u003cstring>"},"viewerId":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool.viewerId","typeLabel":"string"}},"additionalProperties":{"oneOf":[{"type":"string","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool.additionalProperties.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool.additionalProperties","typeLabel":"string | number | boolean | null | any[] | object"},"uniqueKey":"events.items.[INDEX].oneOf.7.output.schema.x-cotool","typeLabel":"object"}},"required":["type"],"description":"A JSON Schema definition with Cotool-specific extensions for structured output presets","uniqueKey":"events.items.[INDEX].oneOf.7.output.schema","typeLabel":"object"}},"description":"The structured output result and schema when ready","uniqueKey":"events.items.[INDEX].oneOf.7.output","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","sender","chunk","position"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.id","typeLabel":"string"},"type":{"type":"string","const":"chatChunk","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.chatId","typeLabel":"string"},"sender":{"type":"string","const":"assistant","description":"Always assistant for streaming","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.sender","typeLabel":"string"},"chunk":{"type":"string","description":"Text chunk delta","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.chunk","typeLabel":"string"},"position":{"type":"number","description":"Chunk position in overall content","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.position","typeLabel":"number"},"modelAlias":{"description":"Model alias for the chunk","uniqueKey":"events.items.[INDEX].oneOf.8.modelAlias","typeLabel":"any"},"isReasoning":{"type":"boolean","description":"Whether this is a reasoning chunk","uniqueKey":"events.items.[INDEX].oneOf.8.isReasoning","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","position","content"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.id","typeLabel":"string"},"type":{"type":"string","const":"reportChunk","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.chatId","typeLabel":"string"},"position":{"type":"number","description":"Chunk position in report","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.position","typeLabel":"number"},"content":{"type":"string","description":"Report chunk content","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.content","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","content"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.id","typeLabel":"string"},"type":{"type":"string","const":"reportComplete","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.chatId","typeLabel":"string"},"content":{"type":"string","description":"Complete report content","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.content","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","content"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.id","typeLabel":"string"},"type":{"type":"string","const":"reportError","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.chatId","typeLabel":"string"},"content":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.content","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","artifactId","artifactType","title","docStoreKeyStr"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.id","typeLabel":"string"},"type":{"type":"string","const":"artifact","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.chatId","typeLabel":"string"},"artifactId":{"type":"string","description":"Unique artifact identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.artifactId","typeLabel":"string"},"artifactType":{"type":"string","enum":["markdown-file","file","image","pdf","spreadsheet"],"description":"Type of artifact","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.artifactType","typeLabel":"enum\u003cstring>"},"title":{"type":"string","description":"Artifact title","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.title","typeLabel":"string"},"docStoreKeyStr":{"type":"string","description":"Document store key for retrieval","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.docStoreKeyStr","typeLabel":"string"},"description":{"type":"string","description":"Artifact description","uniqueKey":"events.items.[INDEX].oneOf.12.description","typeLabel":"string"},"isReport":{"type":"boolean","description":"Whether this is a report artifact","uniqueKey":"events.items.[INDEX].oneOf.12.isReport","typeLabel":"boolean"},"previewText":{"type":"string","description":"Content preview","uniqueKey":"events.items.[INDEX].oneOf.12.previewText","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"events.items.[INDEX].oneOf.12.metadata.additionalProperties","typeLabel":"any"},"description":"Additional metadata","uniqueKey":"events.items.[INDEX].oneOf.12.metadata","typeLabel":"object"},"fileName":{"type":"string","description":"Original file name if this is a file-based artifact","uniqueKey":"events.items.[INDEX].oneOf.12.fileName","typeLabel":"string"},"mimeType":{"type":"string","description":"MIME type for file-based artifacts","uniqueKey":"events.items.[INDEX].oneOf.12.mimeType","typeLabel":"string"},"size":{"type":"number","description":"File size in bytes for file-based artifacts","uniqueKey":"events.items.[INDEX].oneOf.12.size","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","artifactId","artifactType","title"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.id","typeLabel":"string"},"type":{"type":"string","const":"artifactUpdate","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.chatId","typeLabel":"string"},"artifactId":{"type":"string","description":"Artifact being updated","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.artifactId","typeLabel":"string"},"artifactType":{"type":"string","enum":["markdown-file","file","image","pdf","spreadsheet"],"description":"Type of artifact","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.artifactType","typeLabel":"enum\u003cstring>"},"title":{"type":"string","description":"Updated artifact title","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.title","typeLabel":"string"},"description":{"type":"string","description":"Updated artifact description","uniqueKey":"events.items.[INDEX].oneOf.13.description","typeLabel":"string"},"isReport":{"type":"boolean","description":"Whether this is a report artifact","uniqueKey":"events.items.[INDEX].oneOf.13.isReport","typeLabel":"boolean"},"previewText":{"type":"string","description":"Updated content preview","uniqueKey":"events.items.[INDEX].oneOf.13.previewText","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"events.items.[INDEX].oneOf.13.metadata.additionalProperties","typeLabel":"any"},"description":"Updated metadata","uniqueKey":"events.items.[INDEX].oneOf.13.metadata","typeLabel":"object"},"fileName":{"type":"string","description":"Original file name if this is a file-based artifact","uniqueKey":"events.items.[INDEX].oneOf.13.fileName","typeLabel":"string"},"mimeType":{"type":"string","description":"MIME type for file-based artifacts","uniqueKey":"events.items.[INDEX].oneOf.13.mimeType","typeLabel":"string"},"size":{"type":"number","description":"File size in bytes for file-based artifacts","uniqueKey":"events.items.[INDEX].oneOf.13.size","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","sender","content"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.id","typeLabel":"string"},"type":{"type":"string","const":"reasoningMessage","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.chatId","typeLabel":"string"},"sender":{"type":"string","const":"assistant","description":"Always assistant for reasoning","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.sender","typeLabel":"string"},"content":{"type":"string","description":"Reasoning content","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.content","typeLabel":"string"},"modelAlias":{"description":"Model that generated the reasoning","uniqueKey":"events.items.[INDEX].oneOf.14.modelAlias","typeLabel":"any"},"signature":{"type":"string","description":"Reasoning signature","uniqueKey":"events.items.[INDEX].oneOf.14.signature","typeLabel":"string"},"metadata":{"type":"object","properties":{"openai":{"type":"object","properties":{"itemId":{"type":"string","description":"Responses API reasoning item ID","uniqueKey":"events.items.[INDEX].oneOf.14.metadata.openai.itemId","typeLabel":"string"},"reasoningEncryptedContent":{"oneOf":[{"type":"string","description":"Opaque encrypted Responses API reasoning state","uniqueKey":"events.items.[INDEX].oneOf.14.metadata.openai.reasoningEncryptedContent.oneOf.0","typeLabel":"string"},{"type":"null","description":"Opaque encrypted Responses API reasoning state","uniqueKey":"events.items.[INDEX].oneOf.14.metadata.openai.reasoningEncryptedContent.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.14.metadata.openai.reasoningEncryptedContent","typeLabel":"string | null"}},"uniqueKey":"events.items.[INDEX].oneOf.14.metadata.openai","typeLabel":"object"},"xai":{"type":"object","properties":{"itemId":{"type":"string","description":"Responses API reasoning item ID","uniqueKey":"events.items.[INDEX].oneOf.14.metadata.xai.itemId","typeLabel":"string"},"reasoningEncryptedContent":{"oneOf":[{"type":"string","description":"Opaque encrypted Responses API reasoning state","uniqueKey":"events.items.[INDEX].oneOf.14.metadata.xai.reasoningEncryptedContent.oneOf.0","typeLabel":"string"},{"type":"null","description":"Opaque encrypted Responses API reasoning state","uniqueKey":"events.items.[INDEX].oneOf.14.metadata.xai.reasoningEncryptedContent.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.14.metadata.xai.reasoningEncryptedContent","typeLabel":"string | null"}},"uniqueKey":"events.items.[INDEX].oneOf.14.metadata.xai","typeLabel":"object"}},"description":"Provider state required to continue reasoning across model turns","uniqueKey":"events.items.[INDEX].oneOf.14.metadata","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.id","typeLabel":"string"},"type":{"type":"string","const":"compactionStarted","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.chatId","typeLabel":"string"},"modelAlias":{"description":"Model alias used for compaction","uniqueKey":"events.items.[INDEX].oneOf.15.modelAlias","typeLabel":"any"},"trigger":{"type":"string","enum":["automatic","manual"],"description":"Whether compaction was automatic or user-requested","uniqueKey":"events.items.[INDEX].oneOf.15.trigger","typeLabel":"enum\u003cstring>"},"beforeMessages":{"type":"integer","minimum":0,"description":"Model messages before compaction","uniqueKey":"events.items.[INDEX].oneOf.15.beforeMessages","typeLabel":"integer"}},"uniqueKey":"events.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","content"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.id","typeLabel":"string"},"type":{"type":"string","const":"compactionFinished","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.chatId","typeLabel":"string"},"content":{"type":"string","description":"Hidden compacted context payload used to reconstruct future model history","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.content","typeLabel":"string"},"modelAlias":{"description":"Model alias that produced the compacted payload","uniqueKey":"events.items.[INDEX].oneOf.16.modelAlias","typeLabel":"any"},"trigger":{"type":"string","enum":["automatic","manual"],"description":"Whether compaction was automatic or user-requested","uniqueKey":"events.items.[INDEX].oneOf.16.trigger","typeLabel":"enum\u003cstring>"},"completedAt":{"type":"number","description":"Wall-clock completion time when timestamp is backdated for history replay","uniqueKey":"events.items.[INDEX].oneOf.16.completedAt","typeLabel":"number"},"metadata":{"oneOf":[{"type":"object","description":"Provider-native state required to resume from this compaction","required":["provider"],"properties":{"provider":{"type":"string","const":"anthropic","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.metadata.oneOf.0.provider","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.16.metadata.oneOf.0","typeLabel":"object"},{"type":"object","description":"Provider-native state required to resume from this compaction","required":["provider","itemId"],"properties":{"provider":{"type":"string","const":"openai","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.metadata.oneOf.1.provider","typeLabel":"string"},"itemId":{"type":"string","description":"Opaque OpenAI compaction item identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.metadata.oneOf.1.itemId","typeLabel":"string"},"encryptedContent":{"type":"string","description":"Opaque encrypted OpenAI compaction state","uniqueKey":"events.items.[INDEX].oneOf.16.metadata.oneOf.1.encryptedContent","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.16.metadata.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.16.metadata","typeLabel":"object"},"stats":{"type":"object","properties":{"beforeTokens":{"type":"integer","minimum":0,"description":"Estimated conversation message tokens before compaction, excluding the system prompt and tool definitions","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.stats.beforeTokens","typeLabel":"integer"},"afterTokens":{"type":"integer","minimum":0,"description":"Estimated conversation message tokens after compaction, excluding the system prompt and tool definitions","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.stats.afterTokens","typeLabel":"integer"},"savedTokens":{"type":"integer","minimum":0,"description":"Estimated tokens removed by compaction","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.stats.savedTokens","typeLabel":"integer"},"reductionPercentage":{"type":"number","minimum":0,"maximum":100,"description":"Estimated percentage reduction in context tokens","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.stats.reductionPercentage","typeLabel":"number"},"beforeMessages":{"type":"integer","minimum":0,"description":"Model messages before compaction","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.stats.beforeMessages","typeLabel":"integer"},"afterMessages":{"type":"integer","minimum":0,"description":"Model messages after compaction","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.stats.afterMessages","typeLabel":"integer"},"contextTokensAfter":{"type":"integer","minimum":0,"description":"Estimated size of the next model request after compaction: system prompt, tool definitions, and compacted messages. Absent when the compacting caller does not know the next request.","uniqueKey":"events.items.[INDEX].oneOf.16.stats.contextTokensAfter","typeLabel":"integer"}},"required":["beforeTokens","afterTokens","savedTokens","reductionPercentage","beforeMessages","afterMessages"],"description":"Estimated context size before and after compaction","uniqueKey":"events.items.[INDEX].oneOf.16.stats","typeLabel":"object"},"status":{"type":"string","const":"error","description":"Marks a started compaction that did not produce reusable state","uniqueKey":"events.items.[INDEX].oneOf.16.status","typeLabel":"string"},"description":{"type":"string","description":"User-facing explanation when compaction fails","uniqueKey":"events.items.[INDEX].oneOf.16.description","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.16","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","modelAlias","inputTokens","outputTokens","totalTokens","inputTokensCumulative","outputTokensCumulative","totalTokensCumulative","loop"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.id","typeLabel":"string"},"type":{"type":"string","const":"tokenUsage","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.chatId","typeLabel":"string"},"modelAlias":{"description":"Model for which usage is tracked","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.modelAlias","typeLabel":"any"},"inputTokens":{"type":"number","description":"Tokens used for prompt in this turn","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.inputTokens","typeLabel":"number"},"outputTokens":{"type":"number","description":"Tokens used for completion in this turn","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.outputTokens","typeLabel":"number"},"totalTokens":{"type":"number","description":"Total tokens used in this turn","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.totalTokens","typeLabel":"number"},"inputTokensCumulative":{"type":"number","description":"Cumulative prompt tokens","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.inputTokensCumulative","typeLabel":"number"},"outputTokensCumulative":{"type":"number","description":"Cumulative completion tokens","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.outputTokensCumulative","typeLabel":"number"},"totalTokensCumulative":{"type":"number","description":"Cumulative total tokens","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.totalTokensCumulative","typeLabel":"number"},"loop":{"type":"number","description":"Turn/loop number that produced this usage","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.loop","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.17","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","modelAlias","totalTokens","contextManagedInputTokens","contextManagedOutputTokens","contextManagedTotalTokens","loop"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.id","typeLabel":"string"},"type":{"type":"string","const":"tokenUsageV2","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.chatId","typeLabel":"string"},"modelAlias":{"description":"Model for which usage is tracked","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.modelAlias","typeLabel":"any"},"totalTokens":{"type":"number","description":"The estimated context occupancy for the next model turn. This is not cumulative usage across the agent run.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.totalTokens","typeLabel":"number"},"contextManagedInputTokens":{"type":"number","description":"The provider-reported input tokens for the current model turn, including cached input exactly once.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.contextManagedInputTokens","typeLabel":"number"},"contextManagedOutputTokens":{"type":"number","description":"The provider-reported output tokens generated by the current model turn.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.contextManagedOutputTokens","typeLabel":"number"},"contextManagedTotalTokens":{"type":"number","description":"The provider-reported input plus output tokens for the current model turn. Unlike totalTokens, this includes the input a native compaction step consumed inside the same request.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.contextManagedTotalTokens","typeLabel":"number"},"loop":{"type":"number","description":"Turn/loop number that produced this usage","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.loop","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.18","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","content","modelAlias"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.id","typeLabel":"string"},"type":{"type":"string","const":"parseError","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.chatId","typeLabel":"string"},"content":{"type":"string","description":"Error content","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.content","typeLabel":"string"},"modelAlias":{"description":"Model alias that produced the error","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.modelAlias","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.19","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.id","typeLabel":"string"},"type":{"type":"string","const":"userFileUploaded","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.chatId","typeLabel":"string"},"fileId":{"type":"string","description":"Unique file identifier","uniqueKey":"events.items.[INDEX].oneOf.20.fileId","typeLabel":"string"},"fileName":{"type":"string","description":"Original file name","uniqueKey":"events.items.[INDEX].oneOf.20.fileName","typeLabel":"string"},"mimeType":{"type":"string","description":"MIME type of the file","uniqueKey":"events.items.[INDEX].oneOf.20.mimeType","typeLabel":"string"},"size":{"type":"number","description":"File size in bytes","uniqueKey":"events.items.[INDEX].oneOf.20.size","typeLabel":"number"},"fileType":{"type":"string","enum":["image","pdf","spreadsheet","document","presentation","file"],"description":"Type of file","uniqueKey":"events.items.[INDEX].oneOf.20.fileType","typeLabel":"enum\u003cstring>"},"objectPath":{"type":"string","description":"Storage path for file retrieval","uniqueKey":"events.items.[INDEX].oneOf.20.objectPath","typeLabel":"string"},"previewText":{"type":"string","description":"Content preview for text files","uniqueKey":"events.items.[INDEX].oneOf.20.previewText","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"events.items.[INDEX].oneOf.20.metadata.additionalProperties","typeLabel":"any"},"description":"Additional file metadata","uniqueKey":"events.items.[INDEX].oneOf.20.metadata","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.20","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","content"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.id","typeLabel":"string"},"type":{"type":"string","const":"persistentWorkspaceManifest","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.chatId","typeLabel":"string"},"content":{"type":"string","description":"Rendered \u003cpersistent_workspace_manifest> block","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.content","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.21","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","title"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.id","typeLabel":"string"},"type":{"type":"string","const":"chatTitleChanged","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.chatId","typeLabel":"string"},"title":{"type":"string","description":"New chat title","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.title","typeLabel":"string"},"previousTitle":{"type":"string","description":"Previous title if available","uniqueKey":"events.items.[INDEX].oneOf.22.previousTitle","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.22","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","brief","metadata"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.23.id","typeLabel":"string"},"type":{"type":"string","const":"runDelivery","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.23.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.23.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.23.chatId","typeLabel":"string"},"brief":{"type":"string","description":"Human-readable summary, e.g. \"Output delivery to Ops webhook\"","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.23.brief","typeLabel":"string"},"metadata":{"type":"object","properties":{"deliveryId":{"type":"string","format":"uuid","description":"deliveries row this event points at; live status is read from there","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.23.metadata.deliveryId","typeLabel":"string\u003cuuid>"},"purpose":{"type":"string","enum":["response","acceptance-criteria"],"description":"Whether this is the turn output delivery or an acceptance-criteria notification","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.23.metadata.purpose","typeLabel":"enum\u003cstring>"},"destinationType":{"type":"string","enum":["webhook","teams","slack","pagerduty","linear","tines","incidentio"],"description":"Destination type snapshotted at enqueue time","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.23.metadata.destinationType","typeLabel":"enum\u003cstring>"},"destinationName":{"type":"string","description":"Destination name snapshotted at enqueue time","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.23.metadata.destinationName","typeLabel":"string"}},"required":["deliveryId","purpose","destinationType","destinationName"],"description":"Delivery reference and destination snapshot","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.23.metadata","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.23","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","reason","revision","staleStepIds","structural"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.24.id","typeLabel":"string"},"type":{"type":"string","const":"codeDetectionInterpretationStale","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.24.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.24.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.24.chatId","typeLabel":"string"},"reason":{"type":"string","enum":["stale","changed"],"description":"Whether notebook edits made the current interpretation stale or a refreshed interpretation is now available","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.24.reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"string","description":"Notebook revision associated with the staleness or refreshed interpretation","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.24.revision","typeLabel":"string"},"staleStepIds":{"type":"array","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.24.staleStepIds.items.[INDEX]","typeLabel":"string"},"description":"Interpretation steps whose cells changed for stale events; empty when the whole view is stale or the interpretation changed","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.24.staleStepIds","typeLabel":"string[]"},"structural":{"type":"boolean","description":"Whether the update should render as a structural workflow change","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.24.structural","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.24","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","cellHash"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.25.id","typeLabel":"string"},"type":{"type":"string","const":"codeDetectionCellExecutionProgress","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.25.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.25.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.25.chatId","typeLabel":"string"},"cellHash":{"type":"string","description":"Content hash of the notebook cell that started executing","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.25.cellHash","typeLabel":"string"},"runId":{"type":"string","description":"Identity of the run this progress belongs to; matches the runId of the corresponding codeDetectionRunStarted event. Optional only for events persisted before run identity existed.","uniqueKey":"events.items.[INDEX].oneOf.25.runId","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.25","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","runStartedAt"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.26.id","typeLabel":"string"},"type":{"type":"string","const":"codeDetectionRunStarted","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.26.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.26.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.26.chatId","typeLabel":"string"},"runStartedAt":{"type":"number","description":"Epoch ms the run started; correlates progress and completion events","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.26.runStartedAt","typeLabel":"number"},"runId":{"type":"string","description":"Identity shared by this run's start, progress, and completion events so overlapping runs cannot cross-contaminate. Optional only for events persisted before run identity existed.","uniqueKey":"events.items.[INDEX].oneOf.26.runId","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.26","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","runStartedAt","execution"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.id","typeLabel":"string"},"type":{"type":"string","const":"codeDetectionRunCompleted","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.chatId","typeLabel":"string"},"runStartedAt":{"type":"number","description":"Epoch ms the run started; matches the corresponding codeDetectionRunStarted event","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.runStartedAt","typeLabel":"number"},"execution":{"type":"object","properties":{"revision":{"type":"string","description":"Executed notebook revision","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.execution.revision","typeLabel":"string"},"returnCode":{"type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.execution.returnCode","typeLabel":"integer"},"stdout":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.execution.stdout","typeLabel":"string"},"stderr":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.execution.stderr","typeLabel":"string"},"results":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.27.execution.results.oneOf.0.items.[INDEX].additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.27.execution.results.oneOf.0.items.[INDEX].additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.27.execution.results.oneOf.0.items.[INDEX].additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.27.execution.results.oneOf.0.items.[INDEX].additionalProperties.oneOf.3","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.27.execution.results.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"string | number | boolean | null"},"uniqueKey":"events.items.[INDEX].oneOf.27.execution.results.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Rows the notebook passed to emit_results(), or null when it never called it","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.execution.results.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"description":"Rows the notebook passed to emit_results(), or null when it never called it","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.execution.results.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.execution.results","typeLabel":"object[] | null"},"executionTimeMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.execution.executionTimeMs","typeLabel":"integer"},"executionId":{"oneOf":[{"type":"string","format":"uuid","description":"Persisted execution identity, or null when the editor run has no detection record","uniqueKey":"events.items.[INDEX].oneOf.27.execution.executionId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Persisted execution identity, or null when the editor run has no detection record","uniqueKey":"events.items.[INDEX].oneOf.27.execution.executionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.27.execution.executionId","typeLabel":"string\u003cuuid> | null"}},"required":["revision","returnCode","stdout","stderr","results","executionTimeMs"],"additionalProperties":false,"description":"Run outcome in the same shape as a panel-initiated run response","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.27.execution","typeLabel":"object"},"runId":{"type":"string","description":"Identity of the run that completed; matches the runId of the corresponding codeDetectionRunStarted event. Optional only for events persisted before run identity existed.","uniqueKey":"events.items.[INDEX].oneOf.27.runId","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.27","typeLabel":"object"},{"type":"object","description":"A chat event that can be one of many types: chat messages, tool usage, status updates, artifacts, etc. Each event has a discriminator field \"type\" that determines its structure.","required":["id","type","timestamp","chatId","editorUrl"],"properties":{"id":{"type":"string","description":"Unique event identifier","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.28.id","typeLabel":"string"},"type":{"type":"string","const":"codeDetectionEditorUrlChanged","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.28.type","typeLabel":"string"},"timestamp":{"type":"number","description":"Event timestamp","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.28.timestamp","typeLabel":"number"},"chatId":{"type":"string","description":"Chat ID this event belongs to","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.28.chatId","typeLabel":"string"},"editorUrl":{"type":"string","description":"Tunnel URL of the recreated notebook editor","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.28.editorUrl","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.28","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX]","typeLabel":"object"},"description":"Array of chat event objects","isRequired":true,"uniqueKey":"events","typeLabel":"object[]"},"chat":{"oneOf":[{"type":"object","description":"Chat details or null if not found","required":["id","organizationId","title","createdAt","updatedAt","experience","modelAlias","status"],"properties":{"id":{"type":"string","description":"Unique chat identifier","isRequired":true,"uniqueKey":"chat.oneOf.0.id","typeLabel":"string"},"organizationId":{"type":"string","description":"Organization this chat belongs to","isRequired":true,"uniqueKey":"chat.oneOf.0.organizationId","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Chat title","isRequired":true,"uniqueKey":"chat.oneOf.0.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Chat title","isRequired":true,"uniqueKey":"chat.oneOf.0.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"chat.oneOf.0.title","typeLabel":"string | null"},"createdAt":{"type":"string","description":"When the chat was created","format":"date-time","example":"2025-06-17T12:34:56.789Z","isRequired":true,"uniqueKey":"chat.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","description":"When the chat was last updated","format":"date-time","example":"2025-06-17T12:34:56.789Z","isRequired":true,"uniqueKey":"chat.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"},"experience":{"type":"string","enum":["chat","write-detection"],"description":"The type of chat experience. Default is \"chat\".","isRequired":true,"uniqueKey":"chat.oneOf.0.experience","typeLabel":"enum\u003cstring>"},"modelAlias":{"description":"Model alias used for this chat. Must be a valid model from the registry: auto:chat:default, anthropic:chat:latest-opus, anthropic:chat:latest-sonnet, openai:chat:latest-sol, openai:chat:latest-terra, openai:chat:latest-luna, anthropic:chat:fable-5.2, openai:chat:gpt-6-astra, google:chat:gemini-4-carbon, anthropic:chat:sonnet-5.5, anthropic:chat:sonnet-5, anthropic:chat:sonnet-4.6, anthropic:chat:haiku-5.5, anthropic:chat:opus-5.5, anthropic:chat:opus-5, anthropic:chat:opus-4.8, anthropic:chat:opus-4.6, anthropic:chat:opus-4.5, anthropic:chat:opus-4.1, anthropic:chat:opus, openai:chat:gpt-6.1-sol, openai:chat:gpt-6.1-sol-ultrafast, openai:chat:gpt-6-sol, openai:chat:gpt-6-luna, openai:chat:gpt-5.6-sol, openai:chat:gpt-6.1-terra, openai:chat:gpt-5.6-terra, openai:chat:gpt-5.6-luna, openai:chat:gpt-5.4, openai:chat:gpt-5.2, openai:chat:gpt-5, openai:chat:latest, openai:chat:4o, xai:chat:grok-4.6, fireworks:chat:glm-5.3, fireworks:chat:glm-5.3-flash, fireworks:chat:deepseek-v4.1-flash, fireworks:chat:kimi-k3, anthropic:chat:latest-no-reasoning, anthropic:chat:latest, anthropic:chat:sonnet-4.5, google:chat:latest, google:chat:gemini-4-argon, openai:chat:gpt-5.3-codex, openai:chat:gpt-5.2-codex, openai:chat:gpt-5.5, openai:chat:gpt-5.1, openai:chat:o3, fireworks:chat:glm-5.2, fireworks:chat:glm-5.2-fast, fireworks:chat:deepseek-v4-pro, fireworks:chat:deepseek-v4-flash, fireworks:chat:kimi-k2.7-code, fireworks:chat:kimi-k2.6, fireworks:chat:minimax-m3, fireworks:chat:qwen3.7-plus","isRequired":true,"uniqueKey":"chat.oneOf.0.modelAlias","typeLabel":"any"},"status":{"type":"string","enum":["queued","running","waiting","done","error","interrupted"],"description":"Chat execution status: queued (created but not yet claimed), running (actively executing), waiting (awaiting user response), done (completed), error (failed), interrupted (stopped by user)","isRequired":true,"uniqueKey":"chat.oneOf.0.status","typeLabel":"enum\u003cstring>"},"userId":{"oneOf":[{"type":"string","description":"User who owns this chat (null for agent or detection chats)","uniqueKey":"chat.oneOf.0.userId.oneOf.0","typeLabel":"string"},{"type":"null","description":"User who owns this chat (null for agent or detection chats)","uniqueKey":"chat.oneOf.0.userId.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.userId","typeLabel":"string | null"},"agentId":{"oneOf":[{"type":"string","description":"Agent who owns this chat (null for user or detection chats)","uniqueKey":"chat.oneOf.0.agentId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Agent who owns this chat (null for user or detection chats)","uniqueKey":"chat.oneOf.0.agentId.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.agentId","typeLabel":"string | null"},"detectionId":{"oneOf":[{"type":"string","description":"Detection this chat belongs to (null for user or agent chats)","uniqueKey":"chat.oneOf.0.detectionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Detection this chat belongs to (null for user or agent chats)","uniqueKey":"chat.oneOf.0.detectionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.detectionId","typeLabel":"string | null"},"parentChatId":{"oneOf":[{"type":"string","description":"Parent chat for nested sub-agent chats (null for top-level chats)","uniqueKey":"chat.oneOf.0.parentChatId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Parent chat for nested sub-agent chats (null for top-level chats)","uniqueKey":"chat.oneOf.0.parentChatId.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.parentChatId","typeLabel":"string | null"},"command":{"oneOf":[{"type":"string","enum":["create-agent","create-detection-agent","create-response-agent","create-skill","hunt-intel","hunt-intel-new","merge-library-update","tune-detection","update-detection-agent","update-response-agent","update-skill",null],"description":"Slash command that started this chat (e.g., create-response-agent). Null for regular chats.","uniqueKey":"chat.oneOf.0.command.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["create-agent","create-detection-agent","create-response-agent","create-skill","hunt-intel","hunt-intel-new","merge-library-update","tune-detection","update-detection-agent","update-response-agent","update-skill",null],"description":"Slash command that started this chat (e.g., create-response-agent). Null for regular chats.","uniqueKey":"chat.oneOf.0.command.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.command","typeLabel":"enum\u003cstring> | null"},"codeDetectionId":{"oneOf":[{"type":"string","format":"uuid","description":"Code detection this chat is bound to, for Code Mode editor/tuning sessions. Null for regular chats.","uniqueKey":"chat.oneOf.0.codeDetectionId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Code detection this chat is bound to, for Code Mode editor/tuning sessions. Null for regular chats.","uniqueKey":"chat.oneOf.0.codeDetectionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.codeDetectionId","typeLabel":"string\u003cuuid> | null"},"codeDetectionSessionMode":{"oneOf":[{"type":"string","enum":["editor","tuning",null],"description":"How this chat relates to its bound code detection: freeform editing or feedback-driven tuning. Detection-bound chats open in the Code Mode layout.","uniqueKey":"chat.oneOf.0.codeDetectionSessionMode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["editor","tuning",null],"description":"How this chat relates to its bound code detection: freeform editing or feedback-driven tuning. Detection-bound chats open in the Code Mode layout.","uniqueKey":"chat.oneOf.0.codeDetectionSessionMode.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.codeDetectionSessionMode","typeLabel":"enum\u003cstring> | null"},"contentFilterFallbackModelAlias":{"oneOf":[{"type":"string","description":"Active content-filter fallback model for this chat. Later turns use this model until the user explicitly selects a model. Chat history returns null when fallback policy or model availability prevents using the stored pin.","uniqueKey":"chat.oneOf.0.contentFilterFallbackModelAlias.oneOf.0","typeLabel":"string"},{"type":"null","description":"Active content-filter fallback model for this chat. Later turns use this model until the user explicitly selects a model. Chat history returns null when fallback policy or model availability prevents using the stored pin.","uniqueKey":"chat.oneOf.0.contentFilterFallbackModelAlias.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.contentFilterFallbackModelAlias","typeLabel":"string | null"},"triggerId":{"oneOf":[{"type":"string","description":"ID of the trigger that created this chat","uniqueKey":"chat.oneOf.0.triggerId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID of the trigger that created this chat","uniqueKey":"chat.oneOf.0.triggerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.triggerId","typeLabel":"string | null"},"triggerName":{"oneOf":[{"type":"string","description":"Name of the trigger","uniqueKey":"chat.oneOf.0.triggerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the trigger","uniqueKey":"chat.oneOf.0.triggerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.triggerName","typeLabel":"string | null"},"triggerSource":{"oneOf":[{"type":"string","description":"Source of the trigger (e.g., api, manual, jira, cron, slack)","uniqueKey":"chat.oneOf.0.triggerSource.oneOf.0","typeLabel":"string"},{"type":"null","description":"Source of the trigger (e.g., api, manual, jira, cron, slack)","uniqueKey":"chat.oneOf.0.triggerSource.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.triggerSource","typeLabel":"string | null"},"triggerDescription":{"oneOf":[{"type":"string","description":"Description of the trigger","uniqueKey":"chat.oneOf.0.triggerDescription.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the trigger","uniqueKey":"chat.oneOf.0.triggerDescription.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.triggerDescription","typeLabel":"string | null"},"linearOrganizationId":{"oneOf":[{"type":"string","description":"Linear workspace bound to this chat for Agent Session re-entry","uniqueKey":"chat.oneOf.0.linearOrganizationId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Linear workspace bound to this chat for Agent Session re-entry","uniqueKey":"chat.oneOf.0.linearOrganizationId.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.linearOrganizationId","typeLabel":"string | null"},"linearIssueId":{"oneOf":[{"type":"string","description":"Linear issue used while reserving an API-created Agent Session","uniqueKey":"chat.oneOf.0.linearIssueId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Linear issue used while reserving an API-created Agent Session","uniqueKey":"chat.oneOf.0.linearIssueId.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.linearIssueId","typeLabel":"string | null"},"linearAgentSessionId":{"oneOf":[{"type":"string","description":"Linear Agent Session bound to this chat for follow-up routing","uniqueKey":"chat.oneOf.0.linearAgentSessionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Linear Agent Session bound to this chat for follow-up routing","uniqueKey":"chat.oneOf.0.linearAgentSessionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.linearAgentSessionId","typeLabel":"string | null"},"statusMessage":{"oneOf":[{"type":"string","description":"Additional status context, typically error messages for error status or waiting prompt details","uniqueKey":"chat.oneOf.0.statusMessage.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional status context, typically error messages for error status or waiting prompt details","uniqueKey":"chat.oneOf.0.statusMessage.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.statusMessage","typeLabel":"string | null"},"result":{"oneOf":[{"type":"string","description":"Structured chat result data that matches the agent schema","uniqueKey":"chat.oneOf.0.result.oneOf.0","typeLabel":"string"},{"type":"number","description":"Structured chat result data that matches the agent schema","uniqueKey":"chat.oneOf.0.result.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"Structured chat result data that matches the agent schema","uniqueKey":"chat.oneOf.0.result.oneOf.2","typeLabel":"boolean"},{"type":"null","description":"Structured chat result data that matches the agent schema","uniqueKey":"chat.oneOf.0.result.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"chat.oneOf.0.result.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Structured chat result data that matches the agent schema","uniqueKey":"chat.oneOf.0.result.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Structured chat result data that matches the agent schema","uniqueKey":"chat.oneOf.0.result.oneOf.5","typeLabel":"object"},{"type":"null","description":"Structured chat result data that matches the agent schema","uniqueKey":"chat.oneOf.0.result.oneOf.6","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.result","typeLabel":"string · number · boolean · null · any[] · object · null"},"structuredOutputSchema":{"oneOf":[{"type":"object","description":"The schema used to generate the structured output result","required":["type"],"properties":{"type":{"type":"string","enum":["string","number","boolean","null","object","array"],"isRequired":true,"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.type","typeLabel":"enum\u003cstring>"},"title":{"type":"string","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.title","typeLabel":"string"},"description":{"type":"string","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.description","typeLabel":"string"},"properties":{"type":"object","additionalProperties":{"$circularRef":"26a0b8a8-5ed9-4a81-bd55-b60fe795672c"},"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.properties","typeLabel":"object"},"items":{"oneOf":[{"$circularRef":"26a0b8a8-5ed9-4a81-bd55-b60fe795672c"}],"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.\\items","typeLabel":"any"},"minItems":{"type":"integer","minimum":0,"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.minItems","typeLabel":"integer"},"maxItems":{"type":"integer","minimum":0,"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.maxItems","typeLabel":"integer"},"required":{"type":"array","items":{"type":"string","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.required.items.[INDEX]","typeLabel":"string"},"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.required","typeLabel":"string[]"},"enum":{"type":"array","items":{"type":"string","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.enum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.enum","typeLabel":"string[]"},"additionalProperties":{"type":"boolean","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.\\additionalProperties","typeLabel":"boolean"},"x-cotool":{"type":"object","properties":{"presetId":{"type":"string","enum":["classification","markdown","templatedReport","toolCallEvidence"],"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool.presetId","typeLabel":"enum\u003cstring>"},"viewerId":{"type":"string","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool.viewerId","typeLabel":"string"}},"additionalProperties":{"oneOf":[{"type":"string","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool.additionalProperties.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"A JSON value (string, number, boolean, null, array, or object)","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool.additionalProperties","typeLabel":"string | number | boolean | null | any[] | object"},"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0.x-cotool","typeLabel":"object"}},"uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.0","typeLabel":"object"},{"type":"null","description":"The schema used to generate the structured output result","uniqueKey":"chat.oneOf.0.structuredOutputSchema.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.structuredOutputSchema","typeLabel":"object | null"},"shareToken":{"oneOf":[{"type":"string","format":"uuid","description":"Share token for this chat (null if not shared)","uniqueKey":"chat.oneOf.0.shareToken.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Share token for this chat (null if not shared)","uniqueKey":"chat.oneOf.0.shareToken.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.shareToken","typeLabel":"string\u003cuuid> | null"},"isPinned":{"type":"boolean","description":"Whether the chat is pinned by its owner. Pinned chats appear in a dedicated section in the sidebar.","uniqueKey":"chat.oneOf.0.isPinned","typeLabel":"boolean"},"evalScore":{"oneOf":[{"type":"number","description":"LLM judge evaluation score (0-100)","uniqueKey":"chat.oneOf.0.evalScore.oneOf.0","typeLabel":"number"},{"type":"null","description":"LLM judge evaluation score (0-100)","uniqueKey":"chat.oneOf.0.evalScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.evalScore","typeLabel":"number | null"},"evalExplanation":{"oneOf":[{"type":"string","description":"Explanation for the evaluation score","uniqueKey":"chat.oneOf.0.evalExplanation.oneOf.0","typeLabel":"string"},{"type":"null","description":"Explanation for the evaluation score","uniqueKey":"chat.oneOf.0.evalExplanation.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.evalExplanation","typeLabel":"string | null"},"evalBulletSummary":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"chat.oneOf.0.evalBulletSummary.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Bullet point summary of the evaluation","uniqueKey":"chat.oneOf.0.evalBulletSummary.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Bullet point summary of the evaluation","uniqueKey":"chat.oneOf.0.evalBulletSummary.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.evalBulletSummary","typeLabel":"string[] | null"},"evalId":{"oneOf":[{"type":"string","description":"ID of the current evaluation; changes when the chat is evaluated again","uniqueKey":"chat.oneOf.0.evalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID of the current evaluation; changes when the chat is evaluated again","uniqueKey":"chat.oneOf.0.evalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.evalId","typeLabel":"string | null"},"criticalIssue":{"oneOf":[{"type":"object","properties":{"category":{"type":"string","enum":["authentication","connectivity","missing_data","permission","configuration","service_unavailable","content_filter"],"description":"Category of the critical issue (see: authentication, connectivity, missing_data, permission, configuration, service_unavailable)","isRequired":true,"uniqueKey":"chat.oneOf.0.criticalIssue.oneOf.0.category","typeLabel":"enum\u003cstring>"},"explanation":{"type":"string","description":"One sentence explaining what went wrong","isRequired":true,"uniqueKey":"chat.oneOf.0.criticalIssue.oneOf.0.explanation","typeLabel":"string"}},"required":["category","explanation"],"description":"Critical external blocker detected by LLM judge evaluation","uniqueKey":"chat.oneOf.0.criticalIssue.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"category":{"type":"string","enum":["authentication","connectivity","missing_data","permission","configuration","service_unavailable","content_filter"],"description":"Category of the critical issue (see: authentication, connectivity, missing_data, permission, configuration, service_unavailable)"},"explanation":{"type":"string","description":"One sentence explaining what went wrong"}},"required":["category","explanation"],"description":"Critical external blocker detected by LLM judge evaluation","uniqueKey":"chat.oneOf.0.criticalIssue.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.criticalIssue","typeLabel":"object | null"},"acceptanceCriteriaResults":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"criterion":{"type":"string","description":"The acceptance criterion being evaluated","isRequired":true,"uniqueKey":"chat.oneOf.0.acceptanceCriteriaResults.oneOf.0.items.[INDEX].criterion","typeLabel":"string"},"met":{"type":"boolean","description":"Whether the agent run satisfied this acceptance criterion","isRequired":true,"uniqueKey":"chat.oneOf.0.acceptanceCriteriaResults.oneOf.0.items.[INDEX].met","typeLabel":"boolean"},"explanation":{"type":"string","description":"Brief explanation of why the criterion was or was not met","isRequired":true,"uniqueKey":"chat.oneOf.0.acceptanceCriteriaResults.oneOf.0.items.[INDEX].explanation","typeLabel":"string"}},"required":["criterion","met","explanation"],"uniqueKey":"chat.oneOf.0.acceptanceCriteriaResults.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Per-criterion acceptance criteria evaluation results from the LLM judge","uniqueKey":"chat.oneOf.0.acceptanceCriteriaResults.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"criterion":{"type":"string","description":"The acceptance criterion being evaluated"},"met":{"type":"boolean","description":"Whether the agent run satisfied this acceptance criterion"},"explanation":{"type":"string","description":"Brief explanation of why the criterion was or was not met"}},"required":["criterion","met","explanation"]},"description":"Per-criterion acceptance criteria evaluation results from the LLM judge","uniqueKey":"chat.oneOf.0.acceptanceCriteriaResults.oneOf.1","typeLabel":"null"}],"uniqueKey":"chat.oneOf.0.acceptanceCriteriaResults","typeLabel":"object[] | null"}},"isRequired":true,"uniqueKey":"chat.oneOf.0","typeLabel":"object"},{"type":"null","description":"Chat details or null if not found","isRequired":true,"uniqueKey":"chat.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"chat","typeLabel":"object | null"},"feedbackByEvent":{"type":"object","additionalProperties":{"type":"object","properties":{"label":{"type":"string","enum":["up","down"],"isRequired":true,"uniqueKey":"feedbackByEvent.additionalProperties.label","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","isRequired":true,"uniqueKey":"feedbackByEvent.additionalProperties.createdAt","typeLabel":"string"}},"required":["label","createdAt"],"uniqueKey":"feedbackByEvent.additionalProperties","typeLabel":"object"},"description":"Latest human thumb feedback keyed by chat event id","uniqueKey":"feedbackByEvent","typeLabel":"object"},"nextCursor":{"oneOf":[{"type":"string","pattern":"^\\d+:[0-9a-fA-F-]{36}$","description":"Cursor for loading older events","uniqueKey":"nextCursor.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d+:[0-9a-fA-F-]{36}$","description":"Cursor for loading older events","uniqueKey":"nextCursor.oneOf.1","typeLabel":"null"}],"uniqueKey":"nextCursor","typeLabel":"string | null"},"hasMore":{"type":"boolean","description":"Whether more older events are available","uniqueKey":"hasMore","typeLabel":"boolean"}},"required":["events","chat"],"description":"Chat history response containing events and chat metadata","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"events":[{"id":"\u003cstring>","type":"chat","timestamp":123,"chatId":"\u003cstring>","sender":"user","messageType":"text","modelAlias":"\u003cunknown>","content":"\u003cstring>","attachments":[{"fileId":"\u003cstring>","fileName":"\u003cstring>","size":123,"objectPath":"\u003cstring>","fileType":"image","previewText":"\u003cstring>"}],"agentInputVersion":123,"agentInputSourceType":"\u003cstring>","agentInputSchemaType":"\u003cstring>","agentInputHeadline":"\u003cstring>","agentInputContext":"\u003cstring>","agentInputSeverity":"\u003cstring>","agentInputLinkLabel":"\u003cstring>","agentInputLinkUrl":"\u003cstring>","agentInputPayload":"\u003cstring>","toolCalls":[{"type":"tool-call","toolCallId":"\u003cstring>","toolName":"\u003cstring>","input":"\u003cunknown>"}],"providerToolSearch":[{"provider":"openai","toolCallId":"\u003cstring>","toolName":"\u003cstring>","input":"\u003cstring>","output":"\u003cstring>","callProviderMetadata":{},"resultProviderMetadata":{}}]}],"chat":{"id":"\u003cstring>","organizationId":"\u003cstring>","title":"\u003cstring>","createdAt":"2025-06-17T12:34:56.789Z","updatedAt":"2025-06-17T12:34:56.789Z","experience":"chat","modelAlias":"\u003cunknown>","status":"queued","userId":"\u003cstring>","agentId":"\u003cstring>","detectionId":"\u003cstring>","parentChatId":"\u003cstring>","command":"create-agent","codeDetectionId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","codeDetectionSessionMode":"editor","contentFilterFallbackModelAlias":"\u003cstring>","triggerId":"\u003cstring>","triggerName":"\u003cstring>","triggerSource":"\u003cstring>","triggerDescription":"\u003cstring>","linearOrganizationId":"\u003cstring>","linearIssueId":"\u003cstring>","linearAgentSessionId":"\u003cstring>","statusMessage":"\u003cstring>","result":"\u003cstring>","structuredOutputSchema":{"type":"string","title":"\u003cstring>","description":"\u003cstring>","properties":{},"items":"\u003cunknown>","minItems":1,"maxItems":1,"required":["\u003cstring>"],"enum":["\u003cstring>"],"additionalProperties":true,"x-cotool":{"presetId":"classification","viewerId":"\u003cstring>"}},"shareToken":"3c90c3cc-0d44-4b50-8888-8dd25736052a","isPinned":true,"evalScore":123,"evalExplanation":"\u003cstring>","evalBulletSummary":["\u003cstring>"],"evalId":"\u003cstring>","criticalIssue":{"category":"authentication","explanation":"\u003cstring>"},"acceptanceCriteriaResults":[{"criterion":"\u003cstring>","met":true,"explanation":"\u003cstring>"}]},"feedbackByEvent":{},"nextCursor":"\u003cstring>","hasMore":true}}},"exampleType":"generated"}},"exampleType":"generated"},"b67c84b8-de17-4d9a-9e03-50641f81b13a":{"description":"Bad request — input validation failed or the request was malformed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"issues":{"type":"array","description":"Detailed validation issues, present when request or response schema validation fails","items":{"type":"object","additionalProperties":true,"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","issues":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"},"3d53d4bb-cfcc-4636-9d91-3516bb20c756":{"description":"Unauthorized — missing or invalid API key / session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code, present when the error has one. Branch on this instead of the message.","uniqueKey":"code","typeLabel":"string"},"details":{"type":"object","description":"Structured details for `code`, whose shape depends on the code","uniqueKey":"details","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"3a95a06d-2fa0-4a8c-b284-007ef72d1470":{"description":"Forbidden — the authenticated user lacks the required permissions","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"missingPerms":{"type":"array","description":"Permissions the authenticated user is missing for this operation","items":{"type":"string","uniqueKey":"missingPerms.items.[INDEX]","typeLabel":"string"},"uniqueKey":"missingPerms","typeLabel":"string[]"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","missingPerms":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"297775f0-3077-4541-a28f-ca461b77a27a":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code, present when the error has one. Branch on this instead of the message.","uniqueKey":"code","typeLabel":"string"},"details":{"type":"object","description":"Structured details for `code`, whose shape depends on the code","uniqueKey":"details","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c876ec86-a10e-4cf3-97f0-dec70cca7543":{"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API Key authentication for programmatic access. Include your API key in the Authorization header as: `Bearer your_api_key_here`","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"6eb08f36-bec7-4b93-83a6-ab082fdfa33d":{"url":"https://app.cotool.ai","description":"Production server"}},"schemas":{"26a0b8a8-5ed9-4a81-bd55-b60fe795672c":{"type":"object","properties":{"type":{"type":"string","enum":["string","number","boolean","null","object","array"],"isRequired":true},"title":{"type":"string"},"description":{"type":"string"},"properties":{"type":"object","additionalProperties":{"$circularRef":"26a0b8a8-5ed9-4a81-bd55-b60fe795672c"}},"items":{"oneOf":[{}]},"minItems":{"type":"integer","minimum":0},"maxItems":{"type":"integer","minimum":0},"required":{"type":"array","items":{"type":"string"}},"enum":{"type":"array","items":{"type":"string"}},"additionalProperties":{"type":"boolean"},"x-cotool":{"type":"object","properties":{"presetId":{"type":"string","enum":["classification","markdown","templatedReport","toolCallEvidence"]},"viewerId":{"type":"string"}},"additionalProperties":{"oneOf":[{"type":"string","description":"A JSON value (string, number, boolean, null, array, or object)"},{"type":"number","description":"A JSON value (string, number, boolean, null, array, or object)"},{"type":"boolean","description":"A JSON value (string, number, boolean, null, array, or object)"},{"type":"null","description":"A JSON value (string, number, boolean, null, array, or object)"},{"type":"array","items":{"oneOf":[{}]},"description":"A JSON value (string, number, boolean, null, array, or object)"},{"type":"object","description":"A JSON value (string, number, boolean, null, array, or object)"}]}}},"required":["type"],"description":"A JSON Schema definition with Cotool-specific extensions for structured output presets"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API Key authentication for programmatic access. Include your API key in the Authorization header as: `Bearer your_api_key_here`","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API Key authentication for programmatic access. Include your API key in the Authorization header as: `Bearer your_api_key_here`","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"https://app.cotool.ai/api/docs/openapi.json"},"subdomain":"cotool-bcb49c92","siteName":"Cotool Documentation","title":"Get chat history - Cotool Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T20:50:03.035Z","originalFileLocation":"api-reference/chat/get-chat-history.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieve all events and chat metadata for the specified chat conversation. If the chat has a structured output schema, the generated structured output is returned in chat.result.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cotool Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cotool-bcb49c92/LJnfYfYlhELWbHCE/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cotool-bcb49c92/LJnfYfYlhELWbHCE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cotool-bcb49c92/LJnfYfYlhELWbHCE/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cotool-bcb49c92/LJnfYfYlhELWbHCE/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cotool-bcb49c92/LJnfYfYlhELWbHCE/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cotool-bcb49c92/LJnfYfYlhELWbHCE/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cotool-bcb49c92/LJnfYfYlhELWbHCE/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cotool-bcb49c92/LJnfYfYlhELWbHCE/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cotool-bcb49c92/LJnfYfYlhELWbHCE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get chat history - Cotool Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve all events and chat metadata for the specified chat conversation. If the chat has a structured output schema, the generated structured output is returned in chat.result.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cotool Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cotool.ai/api-reference/chat/get-chat-history\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cotool-bcb49c92.mintlify.site/_mintlify/api/og/v2?division=Chat\u0026amp;title=Get+chat+history\u0026amp;description=Retrieve+all+events+and+chat+metadata+for+the+specified+chat+conversation.+If+the+chat+has+a+structured+output+schema%2C+the+generated+structured+output+is+return\u0026amp;theme=9cf48588ea89a0ad039b77ef\u0026amp;signature=1a9fd085fcb889fefd55e380ad887a2f37423a4cb503c13e62848a71b94d7de0\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get chat history - Cotool Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve all events and chat metadata for the specified chat conversation. If the chat has a structured output schema, the generated structured output is returned in chat.result.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cotool-bcb49c92.mintlify.site/_mintlify/api/og/v2?division=Chat\u0026amp;title=Get+chat+history\u0026amp;description=Retrieve+all+events+and+chat+metadata+for+the+specified+chat+conversation.+If+the+chat+has+a+structured+output+schema%2C+the+generated+structured+output+is+return\u0026amp;theme=9cf48588ea89a0ad039b77ef\u0026amp;signature=1a9fd085fcb889fefd55e380ad887a2f37423a4cb503c13e62848a71b94d7de0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cotool-bcb49c92/LJnfYfYlhELWbHCE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cotool Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#A9D5F5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cotool.ai/api-reference/chat/get-chat-history\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/chat/get-chat-history.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cotool.ai/#organization\",\"name\":\"Cotool Documentation\",\"url\":\"https://docs.cotool.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cotool-bcb49c92/2D7q2Y6FoJjh0OqV/logo/light.svg?fit=max\u0026auto=format\u0026n=2D7q2Y6FoJjh0OqV\u0026q=85\u0026s=ed5fa6ba5fadea78cb6d1341380b9873\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cotool.ai#website\",\"name\":\"Cotool Documentation\",\"url\":\"https://docs.cotool.ai\",\"publisher\":{\"@id\":\"https://docs.cotool.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cotool.ai/api-reference/chat/get-chat-history#webpage\",\"url\":\"https://docs.cotool.ai/api-reference/chat/get-chat-history\",\"name\":\"Get chat history\",\"description\":\"Retrieve all events and chat metadata for the specified chat conversation. If the chat has a structured output schema, the generated structured output is returned in chat.result.\",\"dateModified\":\"2026-11-12T20:50:03.035Z\",\"isPartOf\":{\"@id\":\"https://docs.cotool.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cotool.ai/api-reference/chat/get-chat-history#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cotool.ai/api-reference/chat/get-chat-history#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.cotool.ai/api-reference/agent-triggers/list-agent-triggers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get chat history\",\"item\":\"https://docs.cotool.ai/api-reference/chat/get-chat-history\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cotool.ai/api-reference/chat/get-chat-history#apireference\",\"headline\":\"Get chat history\",\"name\":\"Get chat history\",\"description\":\"Retrieve all events and chat metadata for the specified chat conversation. If the chat has a structured output schema, the generated structured output is returned in chat.result.\",\"url\":\"https://docs.cotool.ai/api-reference/chat/get-chat-history\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cotool.ai/api-reference/chat/get-chat-history#webpage\"},\"dateModified\":\"2026-11-12T20:50:03.035Z\",\"publisher\":{\"@id\":\"https://docs.cotool.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cotool.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cotool Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cotool Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/chat/get-chat-history.md","siteName":"Cotool Documentation","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://cotool.ai/blog"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Overview","href":"/api-reference/introduction"}]},{"group":"Endpoints","pages":[{"group":"Agent Triggers","pages":[{"title":"List agent triggers","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/trigger","href":"/api-reference/agent-triggers/list-agent-triggers"},{"title":"Retrieve an agent trigger secret","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/trigger/{triggerId}/secret","href":"/api-reference/agent-triggers/retrieve-an-agent-trigger-secret"},{"title":"Update trigger status","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json patch /api/agents/{agentId}/trigger/{triggerId}/status","href":"/api-reference/agent-triggers/update-trigger-status"},{"title":"Update trigger definition","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/agents/{agentId}/trigger/{triggerId}","href":"/api-reference/agent-triggers/update-trigger-definition"},{"title":"Delete trigger","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/agents/{agentId}/trigger/{triggerId}","href":"/api-reference/agent-triggers/delete-trigger"},{"title":"Change trigger settings","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json patch /api/agents/{agentId}/trigger/{triggerId}","href":"/api-reference/agent-triggers/change-trigger-settings"},{"title":"Get webhook fields","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/trigger/{source}/fields","href":"/api-reference/agent-triggers/get-webhook-fields"},{"title":"Save trigger definition","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agents/{agentId}/trigger/save","href":"/api-reference/agent-triggers/save-trigger-definition"},{"title":"Webhook trigger","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/trigger/{source}/{triggerId}","href":"/api-reference/agent-triggers/webhook-trigger"},{"title":"Create Linear agent session for an agent","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agents/{agentId}/linear/agent-session","href":"/api-reference/agent-triggers/create-linear-agent-session-for-an-agent"},{"title":"Move trigger to another agent","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agents/{agentId}/trigger/{triggerId}/move","href":"/api-reference/agent-triggers/move-trigger-to-another-agent"},{"title":"Get webhook fields for a trigger source","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/trigger-sources/{source}/fields","href":"/api-reference/agent-triggers/get-webhook-fields-for-a-trigger-source"},{"title":"Update trigger event mode","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json patch /api/agents/{agentId}/trigger/{triggerId}/event-mode","href":"/api-reference/agent-triggers/update-trigger-event-mode"},{"title":"Update trigger alert-created notification","description":"Choose the Slack destinations notified when the trigger creates an alert. The alert's status updates and escalations reply in the thread that notification starts.","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/agents/{agentId}/trigger/{triggerId}/alert-created-notification","href":"/api-reference/agent-triggers/update-trigger-alert-created-notification"}]},{"group":"Chat","pages":[{"title":"Get chat history","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/chat/history","href":"/api-reference/chat/get-chat-history"},{"title":"Get chat metadata","description":"Retrieve lightweight chat metadata (title and per-event feedback) without loading the full event history. Prefer this over /api/chat/history when only the chat header (title + feedback) is needed.","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/chat/meta","href":"/api-reference/chat/get-chat-metadata"},{"title":"List chats","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/chats","href":"/api-reference/chat/list-chats"},{"title":"Submit thumbs feedback for a chat","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/chats/{chatId}/feedback","href":"/api-reference/chat/submit-thumbs-feedback-for-a-chat"},{"title":"Delete chat","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/chats/{chatId}","href":"/api-reference/chat/delete-chat"}]},{"group":"Agents","pages":[{"title":"Run agent asynchronously","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agents/{agentId}/run-async","href":"/api-reference/agents/run-agent-asynchronously"},{"title":"Get async run status (deprecated)","deprecated":true,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/run-async/{runId}","href":"/api-reference/agents/get-async-run-status-deprecated"},{"title":"Get async run status","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/run-async/{runId}/status","href":"/api-reference/agents/get-async-run-status"},{"title":"Get async run result","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/run-async/{runId}/result","href":"/api-reference/agents/get-async-run-result"},{"title":"Run agent synchronously","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agents/{agentId}/run-sync","href":"/api-reference/agents/run-agent-synchronously"},{"title":"List all agents","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents","href":"/api-reference/agents/list-all-agents"},{"title":"Create a new agent","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agents","href":"/api-reference/agents/create-a-new-agent"},{"title":"Get agent","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}","href":"/api-reference/agents/get-agent"},{"title":"Update agent","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/agents/{agentId}","href":"/api-reference/agents/update-agent"},{"title":"Delete agent","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/agents/{agentId}","href":"/api-reference/agents/delete-agent"},{"title":"Convert a disconnected managed agent into a manual agent","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agents/{agentId}/copy","href":"/api-reference/agents/convert-a-disconnected-managed-agent-into-a-manual-agent"},{"title":"Batch update agents","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/agents/batch","href":"/api-reference/agents/batch-update-agents"},{"title":"List agent tags","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agent-tags","href":"/api-reference/agents/list-agent-tags"},{"title":"Create agent tag","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agent-tags","href":"/api-reference/agents/create-agent-tag"},{"title":"Rename agent tag","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/agent-tags/{tagId}","href":"/api-reference/agents/rename-agent-tag"},{"title":"Delete agent tag","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/agent-tags/{tagId}","href":"/api-reference/agents/delete-agent-tag"},{"title":"List agent templates","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agent-templates","href":"/api-reference/agents/list-agent-templates"},{"title":"List agent versions","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/versions","href":"/api-reference/agents/list-agent-versions"},{"title":"Revert an agent to a previous version","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agents/{agentId}/versions/{versionId}/revert","href":"/api-reference/agents/revert-an-agent-to-a-previous-version"},{"title":"Change agent tag color","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json patch /api/agent-tags/{tagId}/color","href":"/api-reference/agents/change-agent-tag-color"},{"title":"List agent run messages","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/run-async/{runId}/messages","href":"/api-reference/agents/list-agent-run-messages"},{"title":"Send a message to an agent run","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agents/{agentId}/run-async/{runId}/messages","href":"/api-reference/agents/send-a-message-to-an-agent-run"}]},{"group":"Agent Runs","pages":[{"title":"Get response-agent notification defaults","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/response-agent-notification-defaults","href":"/api-reference/agent-runs/get-response-agent-notification-defaults"},{"title":"Update response-agent notification defaults","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/response-agent-notification-defaults","href":"/api-reference/agent-runs/update-response-agent-notification-defaults"},{"title":"List agent runs/chats","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/chats","href":"/api-reference/agent-runs/list-agent-runschats"},{"title":"List agent runs","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agent-runs","href":"/api-reference/agent-runs/list-agent-runs"},{"title":"List critical issues","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/critical-issues","href":"/api-reference/agent-runs/list-critical-issues"},{"title":"Dismiss critical issue","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/critical-issues/{issueId}/dismiss","href":"/api-reference/agent-runs/dismiss-critical-issue"},{"title":"Submit feedback for an agent run","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agent-runs/{runId}/feedback","href":"/api-reference/agent-runs/submit-feedback-for-an-agent-run"},{"title":"Submit feedback for multiple agent runs","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agent-runs/feedback-batch","href":"/api-reference/agent-runs/submit-feedback-for-multiple-agent-runs"},{"title":"Get detailed feedback metrics for an agent","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/feedback-metrics","href":"/api-reference/agent-runs/get-detailed-feedback-metrics-for-an-agent"},{"title":"Get LLM evaluation metrics","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agents/{agentId}/llm-eval-metrics","href":"/api-reference/agent-runs/get-llm-evaluation-metrics"},{"title":"Get LLM evaluation metrics for multiple agents","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agents/llm-eval-metrics/batch","href":"/api-reference/agent-runs/get-llm-evaluation-metrics-for-multiple-agents"},{"title":"List trigger sources","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agent-runs/trigger-sources","href":"/api-reference/agent-runs/list-trigger-sources"},{"title":"List output deliveries and notifications for an agent run","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/agent-runs/{runId}/deliveries","href":"/api-reference/agent-runs/list-output-deliveries-and-notifications-for-an-agent-run"},{"title":"Resend a failed output delivery or notification","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agent-runs/{runId}/deliveries/{deliveryId}/resend","href":"/api-reference/agent-runs/resend-a-failed-output-delivery-or-notification"}]},{"group":"Alerts","pages":[{"title":"List alerts","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alerts","href":"/api-reference/alerts/list-alerts"},{"title":"Get alert filter options","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alerts/filter-options","href":"/api-reference/alerts/get-alert-filter-options"},{"title":"Get alert routing overview","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alert-routing","href":"/api-reference/alerts/get-alert-routing-overview"},{"title":"Update default alert routing","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/alert-routing/defaults","href":"/api-reference/alerts/update-default-alert-routing"},{"title":"Get detection alert routing","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/detections/{id}/alert-routing","href":"/api-reference/alerts/get-detection-alert-routing"},{"title":"Get alert for run","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alerts/for-run/{runId}","href":"/api-reference/alerts/get-alert-for-run"},{"title":"Get alert","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alerts/{alertId}","href":"/api-reference/alerts/get-alert"},{"title":"Update alert details","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json patch /api/alerts/{alertId}","href":"/api-reference/alerts/update-alert-details"},{"title":"Get alert timeline","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alerts/{alertId}/timeline","href":"/api-reference/alerts/get-alert-timeline"},{"title":"Get alert source payload","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alerts/{alertId}/source-payloads/{sourcePayloadId}","href":"/api-reference/alerts/get-alert-source-payload"},{"title":"Add alert comment","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/alerts/{alertId}/comments","href":"/api-reference/alerts/add-alert-comment"},{"title":"Update alert status","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/alerts/{alertId}/status","href":"/api-reference/alerts/update-alert-status"},{"title":"Get escalated alert notification defaults","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alert-escalation-notification-defaults","href":"/api-reference/alerts/get-escalated-alert-notification-defaults"},{"title":"Update escalated alert notification defaults","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/alert-escalation-notification-defaults","href":"/api-reference/alerts/update-escalated-alert-notification-defaults"},{"title":"Update alert severity","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/alerts/{alertId}/severity","href":"/api-reference/alerts/update-alert-severity"},{"title":"Start alert triage run","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/alerts/{alertId}/triage-runs","href":"/api-reference/alerts/start-alert-triage-run"},{"title":"Update Hunt Alert routing","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/alert-routing/hunt-alerts","href":"/api-reference/alerts/update-hunt-alert-routing"},{"title":"Get alert triage routes","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alert-triage-routes","href":"/api-reference/alerts/get-alert-triage-routes"},{"title":"Replace alert triage routes","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/alert-triage-routes","href":"/api-reference/alerts/replace-alert-triage-routes"},{"title":"List alert feedback questions","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alerts/feedback-questions","href":"/api-reference/alerts/list-alert-feedback-questions"},{"title":"Confirm an alert feedback question","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/alerts/feedback-questions/{questionId}/confirm","href":"/api-reference/alerts/confirm-an-alert-feedback-question"},{"title":"Reject an alert feedback question","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/alerts/feedback-questions/{questionId}/reject","href":"/api-reference/alerts/reject-an-alert-feedback-question"},{"title":"List alert Slack threads","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/alerts/{alertId}/slack-threads","href":"/api-reference/alerts/list-alert-slack-threads"}]},{"group":"Agents as Code","pages":[{"title":"Validate Response-Agent-as-Code YAML","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/agent-sync/validate","href":"/api-reference/agents-as-code/validate-response-agent-as-code-yaml"}]},{"group":"Artifacts","pages":[{"title":"Get artifact","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/artifacts/{artifactId}","href":"/api-reference/artifacts/get-artifact"}]},{"group":"Audit Logs","pages":[{"title":"Count audit logs","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/audit-logs/count","href":"/api-reference/audit-logs/count-audit-logs"},{"title":"Get audit-log filter options","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/audit-logs/filter-options","href":"/api-reference/audit-logs/get-audit-log-filter-options"},{"title":"Get audit-log event catalog","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/audit-logs/event-catalog","href":"/api-reference/audit-logs/get-audit-log-event-catalog"},{"title":"List audit logs","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/audit-logs","href":"/api-reference/audit-logs/list-audit-logs"},{"title":"Get audit log entry","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/audit-logs/{id}","href":"/api-reference/audit-logs/get-audit-log-entry"}]},{"group":"Users","pages":[{"title":"Get current user","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/auth/me","href":"/api-reference/users/get-current-user"},{"title":"Get current user permissions and all available permissions","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/perms","href":"/api-reference/users/get-current-user-permissions-and-all-available-permissions"},{"title":"List user organizations","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/users/organizations","href":"/api-reference/users/list-user-organizations"},{"title":"List users","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/users","href":"/api-reference/users/list-users"},{"title":"Update user","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/users/{id}","href":"/api-reference/users/update-user"},{"title":"Delete user","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/users/{id}","href":"/api-reference/users/delete-user"}]},{"group":"Hunt","pages":[{"title":"Hunt overview","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/hunt/overview","href":"/api-reference/hunt/hunt-overview"},{"title":"List threat actors","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/hunt/actors","href":"/api-reference/hunt/list-threat-actors"},{"title":"List Threats","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/threats","href":"/api-reference/hunt/list-threats"},{"title":"Get Threat detail","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/threats/{id}","href":"/api-reference/hunt/get-threat-detail"},{"title":"Dismiss a Threat","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/threats/{id}/dismiss","href":"/api-reference/hunt/dismiss-a-threat"},{"title":"Restore a dismissed Threat","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/threats/{id}/restore","href":"/api-reference/hunt/restore-a-dismissed-threat"},{"title":"Reassess a Threat","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/threats/{id}/reassess","href":"/api-reference/hunt/reassess-a-threat"},{"title":"Dispose a gap via a threat finding","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/threats/{id}/deliverables/{deliverableId}/gap-status","href":"/api-reference/hunt/dispose-a-gap-via-a-threat-finding"},{"title":"Dispose an observability gap","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/hunt/gaps/{gapId}/status","href":"/api-reference/hunt/dispose-an-observability-gap"},{"title":"Get Hunt Alert creation settings","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/hunt/alert-creation-settings","href":"/api-reference/hunt/get-hunt-alert-creation-settings"},{"title":"Update Hunt Alert creation settings","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/hunt/alert-creation-settings","href":"/api-reference/hunt/update-hunt-alert-creation-settings"},{"title":"Rename a Threat","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/threats/{id}/rename","href":"/api-reference/hunt/rename-a-threat"}]},{"group":"CLIs","pages":[{"title":"List CLI integrations","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/clis/list","href":"/api-reference/clis/list-cli-integrations"},{"title":"Disconnect CLI","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/clis/{cliType}/disconnect","href":"/api-reference/clis/disconnect-cli"}]},{"group":"Detections","pages":[{"title":"Generate a SIEM query using AI","deprecated":true,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/detection-queries/generate","href":"/api-reference/detections/generate-a-siem-query-using-ai"},{"title":"List detections","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/detections","href":"/api-reference/detections/list-detections"},{"title":"List detection hits","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/detections/hits","href":"/api-reference/detections/list-detection-hits"},{"title":"List the Cotool detection library","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/detection-library","href":"/api-reference/detections/list-the-cotool-detection-library"},{"title":"Read one detection library entry","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/detection-library/{slug}","href":"/api-reference/detections/read-one-detection-library-entry"},{"title":"Add a detection library entry","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/detection-library/{slug}/add","href":"/api-reference/detections/add-a-detection-library-entry"}]},{"group":"Output Destinations","pages":[{"title":"List all output destinations","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/output-destinations","href":"/api-reference/output-destinations/list-all-output-destinations"},{"title":"Create output destination","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/output-destinations","href":"/api-reference/output-destinations/create-output-destination"},{"title":"Update output destination","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/output-destinations/{destinationId}","href":"/api-reference/output-destinations/update-output-destination"},{"title":"Delete output destination","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/output-destinations/{destinationId}","href":"/api-reference/output-destinations/delete-output-destination"},{"title":"Send a test payload to an output destination","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/output-destinations/{destinationId}/test","href":"/api-reference/output-destinations/send-a-test-payload-to-an-output-destination"},{"title":"Send a test payload to an unsaved output destination","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/output-destinations/test","href":"/api-reference/output-destinations/send-a-test-payload-to-an-unsaved-output-destination"},{"title":"Enable or disable output destination","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/output-destinations/{destinationId}/enabled","href":"/api-reference/output-destinations/enable-or-disable-output-destination"}]},{"group":"Roles","pages":[{"title":"List roles for the current organization","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/roles","href":"/api-reference/roles/list-roles-for-the-current-organization"},{"title":"Create a role","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/roles","href":"/api-reference/roles/create-a-role"},{"title":"Get role by id","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/roles/{id}","href":"/api-reference/roles/get-role-by-id"},{"title":"Update a role","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/roles/{id}","href":"/api-reference/roles/update-a-role"},{"title":"Delete a role","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/roles/{id}","href":"/api-reference/roles/delete-a-role"},{"title":"Get permissions for a role","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/roles/{id}/perms","href":"/api-reference/roles/get-permissions-for-a-role"},{"title":"Apply permission diff to a role","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/roles/{id}/perms","href":"/api-reference/roles/apply-permission-diff-to-a-role"}]},{"group":"MITRE Coverage","pages":[{"title":"Get MITRE ATT\u0026CK matrix with detection coverage","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/mitre/matrix","href":"/api-reference/mitre-coverage/get-mitre-att\u0026ck-matrix-with-detection-coverage"},{"title":"Get MITRE ATT\u0026CK technique labels","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/mitre/technique-labels","href":"/api-reference/mitre-coverage/get-mitre-att\u0026ck-technique-labels"}]},{"group":"Organizations","pages":[{"title":"Get organization-level activity metrics","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/org-metrics","href":"/api-reference/organizations/get-organization-level-activity-metrics"}]},{"group":"Skills","pages":[{"title":"List skills","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/skills","href":"/api-reference/skills/list-skills"},{"title":"Create skill","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/skills","href":"/api-reference/skills/create-skill"},{"title":"Get skill","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/skills/{skillId}","href":"/api-reference/skills/get-skill"},{"title":"Update skill","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/skills/{skillId}","href":"/api-reference/skills/update-skill"},{"title":"Delete skill","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/skills/{skillId}","href":"/api-reference/skills/delete-skill"},{"title":"List agents using skill","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/skills/{skillId}/agents","href":"/api-reference/skills/list-agents-using-skill"},{"title":"List skill versions","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/skills/{skillId}/versions","href":"/api-reference/skills/list-skill-versions"},{"title":"Get skill version","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/skills/{skillId}/versions/{versionId}","href":"/api-reference/skills/get-skill-version"},{"title":"Restore a skill version","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/skills/{skillId}/versions/{versionId}/restore","href":"/api-reference/skills/restore-a-skill-version"},{"title":"Import skill","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/skills/import","href":"/api-reference/skills/import-skill"},{"title":"Export skill","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/skills/{skillId}/export","href":"/api-reference/skills/export-skill"}]},{"group":"Tools","pages":[{"title":"List tools","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/tools/list","href":"/api-reference/tools/list-tools"},{"title":"Disconnect tool","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/tools/{toolType}/disconnect","href":"/api-reference/tools/disconnect-tool"},{"title":"Get raw tool output","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/tools/get-tool-use-raw-output","href":"/api-reference/tools/get-raw-tool-output"}]},{"group":"Threat Model","pages":[{"title":"Get threat model","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/threat-model","href":"/api-reference/threat-model/get-threat-model"},{"title":"Update threat model","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/threat-model","href":"/api-reference/threat-model/update-threat-model"},{"title":"Get structured threat model board","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/threat-model/board","href":"/api-reference/threat-model/get-structured-threat-model-board"},{"title":"Regenerate threat model","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/threat-model/regenerate","href":"/api-reference/threat-model/regenerate-threat-model"},{"title":"List threat model version history","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/threat-model/versions","href":"/api-reference/threat-model/list-threat-model-version-history"},{"title":"Get threat model version","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/threat-model/versions/{versionId}","href":"/api-reference/threat-model/get-threat-model-version"}]},{"group":"Intel","pages":[{"title":"List flattened threat-intel indicators (IOCs)","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/intel/iocs","href":"/api-reference/intel/list-flattened-threat-intel-indicators-iocs"},{"title":"List threat intelligence items","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/intel/items","href":"/api-reference/intel/list-threat-intelligence-items"},{"title":"Get specific intel item","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/intel/items/{id}","href":"/api-reference/intel/get-specific-intel-item"},{"title":"Get threat intel notification settings","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/intel/notification-settings","href":"/api-reference/intel/get-threat-intel-notification-settings"},{"title":"Update threat intel notification settings","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/intel/notification-settings","href":"/api-reference/intel/update-threat-intel-notification-settings"},{"title":"List intel sources","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/intel/sources","href":"/api-reference/intel/list-intel-sources"},{"title":"Create intel source","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/intel/sources","href":"/api-reference/intel/create-intel-source"},{"title":"Update intel source","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json put /api/intel/sources/{id}","href":"/api-reference/intel/update-intel-source"},{"title":"Delete intel source","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json delete /api/intel/sources/{id}","href":"/api-reference/intel/delete-intel-source"},{"title":"Trigger intel source sync","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json post /api/intel/sources/{id}/sync","href":"/api-reference/intel/trigger-intel-source-sync"},{"title":"Get intel feed statistics","deprecated":null,"version":null,"openapi":"https://app.cotool.ai/api/docs/openapi.json get /api/intel/stats","href":"/api-reference/intel/get-intel-feed-statistics"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Get chat history - Cotool Documentation","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}