Lists the events of a session’s log in chronological order (order=desc for newest first): the events sent to it, the agent’s output, status changes, errors, spans and the session.updated entries of title and metadata changes. Every event except session.updated carries the BMA extension bma_sequence, and several events can share one sequence. limit counts sequences, not events: the events of one sequence are never split across pages, so a page can hold more than limit events. next_page is the cursor of the next page, null on the last. types keeps only the named types; BMA’s own extension event types (such as session.bma_placement) are returned only when types names them. The created_at bounds keep the events created within them (an event’s processed_at for session.updated); include_archived is ignored. Archived sessions can be listed. Read-only.
Authorization: Organization API key (x-api-key: bma_org_v1_…), personal access token (Authorization: Bearer bma_pat_v1_…), OAuth access token or signed-in dashboard session; a user credential names its organization with bma-organization-id. The request acts in one workspace: the one named by bma-workspace-id (or anthropic-workspace-id; when both are sent they must agree), else the credential’s default workspace (an API key’s own workspace, else its organization’s Default workspace), else the only workspace the credential can use. Every workspace role may call it (viewer included); organization owners and admins act as workspace admins in every workspace of their organization.
Limits:
limit: default 20, maximum 100 sequences per page.
Rate limit: one request of the organization’s read budget (Rate limits).
Errors (besides the common errors (401 authentication, 429 rate_limited, 500)):
Status
error.type
error.code
Cause
Fix
400
invalid_request_error
organization_required
A user credential (personal access token, OAuth token, dashboard session) names no organization.
Name the organization with the bma-organization-id header.
400
invalid_request_error
project_required
The credential can use several workspaces and the request names none.
Name the workspace with the bma-workspace-id header.
400
invalid_request_error
workspace_id_conflict
bma-workspace-id and anthropic-workspace-id name different workspaces.
Correct the request as the message describes and send it again; the same request will keep failing.
ID of the session (ses_ followed by 26 lowercase base32 characters). A session of another workspace, a deleted session and an unknown ID all answer 404 not_found_error without an error.code.
Query Parameters
limit
number
Number of sequences per page, an integer from 1 to 100 (default 20); every event of each sequence is returned. Any other value is refused with 400.
page
string | null
Cursor from the next_page of the previous page (a decimal bma_sequence). Pass it with the same order. Omit for the first page; a value that is not a cursor is refused with 400.
created_at[gt]
string
Keeps events created after this time (RFC 3339); any other value is refused with 400.
created_at[gte]
string
Keeps events created at or after this time (RFC 3339); any other value is refused with 400.
created_at[lt]
string
Keeps events created before this time (RFC 3339); any other value is refused with 400.
created_at[lte]
string
Keeps events created at or before this time (RFC 3339); any other value is refused with 400.
order
enum<string>
asc (the default) lists the oldest events first, desc the newest first, by bma_sequence.
Available options:
asc,
desc
types
enum<string>[]
Keep only events of these types (repeat the parameter, use types[] or separate values with commas). Omit for every official type. BMA's extension event types are returned only when named here.
The type of a session event.
Available options:
user.message,
user.interrupt,
user.tool_confirmation,
user.custom_tool_result,
agent.custom_tool_use,
agent.message,
agent.thinking,
agent.mcp_tool_use,
agent.mcp_tool_result,
agent.tool_use,
agent.tool_result,
agent.thread_message_received,
agent.thread_message_sent,
agent.thread_context_compacted,
session.error,
session.status_rescheduled,
session.status_running,
session.status_idle,
session.status_terminated,
session.thread_created,
span.outcome_evaluation_start,
span.outcome_evaluation_end,
span.model_request_start,
span.model_request_end,
span.outcome_evaluation_ongoing,
user.define_outcome,
session.thread_status_running,
session.thread_status_idle,
session.thread_status_terminated,
user.tool_result,
session.thread_status_rescheduled,
session.updated,
system.message,
session.usage,
workflow_run.created,
workflow_run.status_running,
workflow_run.status_idle,
workflow_run.status_ended,
workflow_run.error,
workflow_run.phase_started,
workflow_run.phase_ended
Response
Success.
data
object[]
required
The items of this page, in the list's order.
Union type for all event types in a session.
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
Option 30
Option 31
Option 32
Option 33
Option 34
Option 35
Option 36
Option 37
Option 38
Option 39
Option 40
Option 41
Option 42
Show child attributes
next_page
string | null
required
Cursor of the next page: send it as page to continue. null on the last page.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"BMA Developer Docs","description":"BMA (BeeOS Managed Agents): an open-source agent runtime. Any brain × any hands, computer use, remote desktop, terminal, a replaceable scheduler and a durable event log, with the Anthropic Managed Agents API under /v1, the official SDKs and the Executor Protocol.","colors":{"primary":"#F97316","light":"#FB923C","dark":"#C2410C"},"logo":{"light":"/logo/light.svg","dark":"/logo/dark.svg","href":"/"},"favicon":"/favicon.svg","api":{"playground":{"display":"simple"},"examples":{"languages":["curl","python","javascript","go"]}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"https://github.com/beeos-ai/bma-sdk","label":"bma-sdk"},{"href":"https://github.com/beeos-ai/bma-executor-sdk","label":"bma-executor-sdk"}]},"footer":{"socials":{"github":"https://github.com/beeos-ai"}},"fonts":{"heading":{"family":"Inter","weight":600},"body":{"family":"Inter","weight":400}},"integrations":{"telemetry":{"enabled":false}},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"zh","href":"zh"},{"language":"zh-Hant","href":"zh-Hant"},{"language":"ja","href":"ja"},{"language":"ko","href":"ko"}]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4338"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false,"mintExport":{}},"customCss":[{"filePath":"style.css","content":"html:lang(zh){--font-family-body-custom: Inter, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", \"Noto Sans CJK SC\";--font-family-headings-custom: var(--font-family-body-custom)}html:lang(zh-Hant){--font-family-body-custom: Inter, \"PingFang TC\", \"Microsoft JhengHei\", \"Noto Sans TC\", \"Noto Sans CJK TC\"}html:is(:lang(zh),:lang(ja),:lang(ko)) [data-layout-item=\"page-header\"] .prose{font-size:1.0625rem;line-height:1.8}html:is(:lang(zh),:lang(ja),:lang(ko)) :is(h1,h2,h3,h4){letter-spacing:normal}html:is(:lang(zh),:lang(ja),:lang(ko)) .prose :not(pre)>code{padding:0.125em 0.3em}html:is(:lang(zh),:lang(ja),:lang(ko)) .prose :is(td,th){line-height:1.65}"}]}
{"page":{"pagePath":"api-reference/endpoints/sessions/list-events","slug":"/api-reference/endpoints/sessions/list-events","pageMetadata":{"openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/events","description":"Lists the events of a session's log in chronological order (`order=desc` for newest first): the events sent to it, the agent's output, status changes, errors, spans and the `session.updated` entries of title and metadata changes. Every event except `session.updated` carries the BMA extension `bma_sequence`, and several events can share one sequence. `limit` counts sequences, not events: the events of one sequence are never split across pages, so a page can hold more than `limit` events. `next_page` is the cursor of the next page, null on the last. `types` keeps only the named types; BMA's own extension event types (such as `session.bma_placement`) are returned only when `types` names them. The `created_at` bounds keep the events created within them (an event's `processed_at` for `session.updated`); `include_archived` is ignored. Archived sessions can be listed. Read-only.\n\n**Authorization:** Organization API key (`x-api-key: bma_org_v1_…`), personal access token (`Authorization: Bearer bma_pat_v1_…`), OAuth access token or signed-in dashboard session; a user credential names its organization with `bma-organization-id`. The request acts in one workspace: the one named by `bma-workspace-id` (or `anthropic-workspace-id`; when both are sent they must agree), else the credential's default workspace (an API key's own workspace, else its organization's Default workspace), else the only workspace the credential can use. Every workspace role may call it (viewer included); organization owners and admins act as workspace admins in every workspace of their organization.\n\n**Limits:**\n\n- `limit`: default 20, maximum 100 sequences per page.\n- Rate limit: one request of the organization's read budget ([Rate limits](https://docs.beeos.ai/guides/limits)).\n\n**Errors** (besides the [common errors](https://docs.beeos.ai/api-reference/errors) (401 authentication, 429 `rate_limited`, 500)):\n\n| Status | `error.type` | `error.code` | Cause | Fix |\n| --- | --- | --- | --- | --- |\n| 400 | `invalid_request_error` | `organization_required` | A user credential (personal access token, OAuth token, dashboard session) names no organization. | Name the organization with the `bma-organization-id` header. |\n| 400 | `invalid_request_error` | `project_required` | The credential can use several workspaces and the request names none. | Name the workspace with the `bma-workspace-id` header. |\n| 400 | `invalid_request_error` | `workspace_id_conflict` | `bma-workspace-id` and `anthropic-workspace-id` name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |","href":"/api-reference/endpoints/sessions/list-events","title":"List Events"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n table: \"table\",\n tbody: \"tbody\",\n td: \"td\",\n th: \"th\",\n thead: \"thead\",\n tr: \"tr\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Lists the events of a session’s log in chronological order (\", _jsx(_components.code, {\n children: \"order=desc\"\n }), \" for newest first): the events sent to it, the agent’s output, status changes, errors, spans and the \", _jsx(_components.code, {\n children: \"session.updated\"\n }), \" entries of title and metadata changes. Every event except \", _jsx(_components.code, {\n children: \"session.updated\"\n }), \" carries the BMA extension \", _jsx(_components.code, {\n children: \"bma_sequence\"\n }), \", and several events can share one sequence. \", _jsx(_components.code, {\n children: \"limit\"\n }), \" counts sequences, not events: the events of one sequence are never split across pages, so a page can hold more than \", _jsx(_components.code, {\n children: \"limit\"\n }), \" events. \", _jsx(_components.code, {\n children: \"next_page\"\n }), \" is the cursor of the next page, null on the last. \", _jsx(_components.code, {\n children: \"types\"\n }), \" keeps only the named types; BMA’s own extension event types (such as \", _jsx(_components.code, {\n children: \"session.bma_placement\"\n }), \") are returned only when \", _jsx(_components.code, {\n children: \"types\"\n }), \" names them. The \", _jsx(_components.code, {\n children: \"created_at\"\n }), \" bounds keep the events created within them (an event’s \", _jsx(_components.code, {\n children: \"processed_at\"\n }), \" for \", _jsx(_components.code, {\n children: \"session.updated\"\n }), \"); \", _jsx(_components.code, {\n children: \"include_archived\"\n }), \" is ignored. Archived sessions can be listed. Read-only.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Authorization:\"\n }), \" Organization API key (\", _jsx(_components.code, {\n children: \"x-api-key: bma_org_v1_…\"\n }), \"), personal access token (\", _jsx(_components.code, {\n children: \"Authorization: Bearer bma_pat_v1_…\"\n }), \"), OAuth access token or signed-in dashboard session; a user credential names its organization with \", _jsx(_components.code, {\n children: \"bma-organization-id\"\n }), \". The request acts in one workspace: the one named by \", _jsx(_components.code, {\n children: \"bma-workspace-id\"\n }), \" (or \", _jsx(_components.code, {\n children: \"anthropic-workspace-id\"\n }), \"; when both are sent they must agree), else the credential’s default workspace (an API key’s own workspace, else its organization’s Default workspace), else the only workspace the credential can use. Every workspace role may call it (viewer included); organization owners and admins act as workspace admins in every workspace of their organization.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Limits:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"limit\"\n }), \": default 20, maximum 100 sequences per page.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Rate limit: one request of the organization’s read budget (\", _jsx(_components.a, {\n href: \"https://docs.beeos.ai/guides/limits\",\n children: \"Rate limits\"\n }), \").\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Errors\"\n }), \" (besides the \", _jsx(_components.a, {\n href: \"https://docs.beeos.ai/api-reference/errors\",\n children: \"common errors\"\n }), \" (401 authentication, 429 \", _jsx(_components.code, {\n children: \"rate_limited\"\n }), \", 500)):\"]\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: \"Status\"\n }), _jsx(_components.th, {\n children: _jsx(_components.code, {\n children: \"error.type\"\n })\n }), _jsx(_components.th, {\n children: _jsx(_components.code, {\n children: \"error.code\"\n })\n }), _jsx(_components.th, {\n children: \"Cause\"\n }), _jsx(_components.th, {\n children: \"Fix\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"400\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_request_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"organization_required\"\n })\n }), _jsx(_components.td, {\n children: \"A user credential (personal access token, OAuth token, dashboard session) names no organization.\"\n }), _jsxs(_components.td, {\n children: [\"Name the organization with the \", _jsx(_components.code, {\n children: \"bma-organization-id\"\n }), \" header.\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"400\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_request_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"project_required\"\n })\n }), _jsx(_components.td, {\n children: \"The credential can use several workspaces and the request names none.\"\n }), _jsxs(_components.td, {\n children: [\"Name the workspace with the \", _jsx(_components.code, {\n children: \"bma-workspace-id\"\n }), \" header.\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"400\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_request_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"workspace_id_conflict\"\n })\n }), _jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"bma-workspace-id\"\n }), \" and \", _jsx(_components.code, {\n children: \"anthropic-workspace-id\"\n }), \" name different workspaces.\"]\n }), _jsx(_components.td, {\n children: \"Correct the request as the message describes and send it again; the same request will keep failing.\"\n })]\n })]\n })]\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":{"openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/events","description":"Lists the events of a session's log in chronological order (`order=desc` for newest first): the events sent to it, the agent's output, status changes, errors, spans and the `session.updated` entries of title and metadata changes. Every event except `session.updated` carries the BMA extension `bma_sequence`, and several events can share one sequence. `limit` counts sequences, not events: the events of one sequence are never split across pages, so a page can hold more than `limit` events. `next_page` is the cursor of the next page, null on the last. `types` keeps only the named types; BMA's own extension event types (such as `session.bma_placement`) are returned only when `types` names them. The `created_at` bounds keep the events created within them (an event's `processed_at` for `session.updated`); `include_archived` is ignored. Archived sessions can be listed. Read-only.\n\n**Authorization:** Organization API key (`x-api-key: bma_org_v1_…`), personal access token (`Authorization: Bearer bma_pat_v1_…`), OAuth access token or signed-in dashboard session; a user credential names its organization with `bma-organization-id`. The request acts in one workspace: the one named by `bma-workspace-id` (or `anthropic-workspace-id`; when both are sent they must agree), else the credential's default workspace (an API key's own workspace, else its organization's Default workspace), else the only workspace the credential can use. Every workspace role may call it (viewer included); organization owners and admins act as workspace admins in every workspace of their organization.\n\n**Limits:**\n\n- `limit`: default 20, maximum 100 sequences per page.\n- Rate limit: one request of the organization's read budget ([Rate limits](https://docs.beeos.ai/guides/limits)).\n\n**Errors** (besides the [common errors](https://docs.beeos.ai/api-reference/errors) (401 authentication, 429 `rate_limited`, 500)):\n\n| Status | `error.type` | `error.code` | Cause | Fix |\n| --- | --- | --- | --- | --- |\n| 400 | `invalid_request_error` | `organization_required` | A user credential (personal access token, OAuth token, dashboard session) names no organization. | Name the organization with the `bma-organization-id` header. |\n| 400 | `invalid_request_error` | `project_required` | The credential can use several workspaces and the request names none. | Name the workspace with the `bma-workspace-id` header. |\n| 400 | `invalid_request_error` | `workspace_id_conflict` | `bma-workspace-id` and `anthropic-workspace-id` name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |","href":"/api-reference/endpoints/sessions/list-events","title":"List Events"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"sessions.events.list","tags":["Sessions"],"summary":"List Events","x-bma-extension":false,"parameters":["a787de4d-e1fc-452c-b80a-26c74492099b","4b5ced94-0592-4d86-8306-26daf922390d","6678afb8-f6e6-4483-a98a-cb27a5dcdfa5","cb2c7989-8dc3-4e1c-81e8-c31c9103fe08","fd0ebc7d-1c4c-4d52-abef-fdec57ce83d3","7501faab-ae6b-4836-af2d-0a553336fc8b","7a3b99ad-e12d-4e90-b3b4-1d02dc7a1222","15527399-1e4e-4431-ac9c-88c48baf8d8f","00c94b00-ea1d-4a1b-ab10-40c32eefd7fc"],"responses":{"200":"e7c3cf6c-5565-48f2-b4a7-2cf75062d008","4XX":"0e57d0d2-0c21-4ab4-b577-0912c2d88041","5XX":"5d9801ae-00b0-48ff-bc23-c2bb1943aa20"},"description":"Lists the events of a session's log in chronological order (`order=desc` for newest first): the events sent to it, the agent's output, status changes, errors, spans and the `session.updated` entries of title and metadata changes. Every event except `session.updated` carries the BMA extension `bma_sequence`, and several events can share one sequence. `limit` counts sequences, not events: the events of one sequence are never split across pages, so a page can hold more than `limit` events. `next_page` is the cursor of the next page, null on the last. `types` keeps only the named types; BMA's own extension event types (such as `session.bma_placement`) are returned only when `types` names them. The `created_at` bounds keep the events created within them (an event's `processed_at` for `session.updated`); `include_archived` is ignored. Archived sessions can be listed. Read-only.\n\n**Authorization:** Organization API key (`x-api-key: bma_org_v1_…`), personal access token (`Authorization: Bearer bma_pat_v1_…`), OAuth access token or signed-in dashboard session; a user credential names its organization with `bma-organization-id`. The request acts in one workspace: the one named by `bma-workspace-id` (or `anthropic-workspace-id`; when both are sent they must agree), else the credential's default workspace (an API key's own workspace, else its organization's Default workspace), else the only workspace the credential can use. Every workspace role may call it (viewer included); organization owners and admins act as workspace admins in every workspace of their organization.\n\n**Limits:**\n\n- `limit`: default 20, maximum 100 sequences per page.\n- Rate limit: one request of the organization's read budget ([Rate limits](https://docs.beeos.ai/guides/limits)).\n\n**Errors** (besides the [common errors](https://docs.beeos.ai/api-reference/errors) (401 authentication, 429 `rate_limited`, 500)):\n\n| Status | `error.type` | `error.code` | Cause | Fix |\n| --- | --- | --- | --- | --- |\n| 400 | `invalid_request_error` | `organization_required` | A user credential (personal access token, OAuth token, dashboard session) names no organization. | Name the organization with the `bma-organization-id` header. |\n| 400 | `invalid_request_error` | `project_required` | The credential can use several workspaces and the request names none. | Name the workspace with the `bma-workspace-id` header. |\n| 400 | `invalid_request_error` | `workspace_id_conflict` | `bma-workspace-id` and `anthropic-workspace-id` name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |","x-bma-auth":"Organization API key (`x-api-key: bma_org_v1_…`), personal access token (`Authorization: Bearer bma_pat_v1_…`), OAuth access token or signed-in dashboard session; a user credential names its organization with `bma-organization-id`. The request acts in one workspace: the one named by `bma-workspace-id` (or `anthropic-workspace-id`; when both are sent they must agree), else the credential's default workspace (an API key's own workspace, else its organization's Default workspace), else the only workspace the credential can use. Every workspace role may call it (viewer included); organization owners and admins act as workspace admins in every workspace of their organization.","x-bma-limits":["`limit`: default 20, maximum 100 sequences per page."],"x-bma-errors":[{"code":"workspace_id_conflict","when":"`bma-workspace-id` and `anthropic-workspace-id` name different workspaces."},{"code":"project_required","when":"The credential can use several workspaces and the request names none.","fix":"Name the workspace with the `bma-workspace-id` header."},{"code":"organization_required","when":"A user credential (personal access token, OAuth token, dashboard session) names no organization.","fix":"Name the organization with the `bma-organization-id` header."}],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -sS \"$BMA_BASE_URL/v1/sessions/ses_agray4o575ytrcguudsrm73sbq/events?limit=50\u0026page=42\u0026order=desc\" \\\n -H \"x-api-key: $BMA_API_KEY\" \\\n -H \"bma-workspace-id: $BMA_PROJECT_ID\""},{"lang":"python","label":"Python","source":"from bma_sdk import Bma\n\nclient = Bma() # BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nfor item in client.beta.sessions.events.list(\n \"ses_agray4o575ytrcguudsrm73sbq\",\n limit=50,\n page=\"42\",\n order=\"desc\",\n):\n print(item)\n"},{"lang":"typescript","label":"TypeScript","source":"import { BmaClient } from \"@beeos-ai/bma-sdk\";\n\nconst client = new BmaClient(); // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nfor await (const item of client.beta.sessions.events.list(\"ses_agray4o575ytrcguudsrm73sbq\", {\n limit: 50,\n page: \"42\",\n order: \"desc\",\n})) {\n console.log(item);\n}\n"},{"lang":"go","label":"Go","source":"import (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/anthropics/anthropic-sdk-go/v2/option\"\n\tbmasdk \"github.com/beeos-ai/bma-sdk/v4\"\n)\n\nclient := bmasdk.NewClient() // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\nvar res map[string]any\nerr := client.Execute(context.TODO(), http.MethodGet, \"v1/sessions/ses_agray4o575ytrcguudsrm73sbq/events\",\n\tnil, \u0026res,\n\toption.WithQuery(\"limit\", \"50\"),\n\toption.WithQuery(\"page\", \"42\"),\n\toption.WithQuery(\"order\", \"desc\"))\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Println(res)\n"},{"lang":"bash","label":"CLI","source":"bma sessions events list ses_agray4o575ytrcguudsrm73sbq --limit 50 --page 42 --order desc"}],"method":"get","type":"path","servers":["aab6fce6-43f5-423b-92da-bb742711199d","f34f48fd-3007-467d-9d05-2d18bb2f0252"],"security":["a7a05916-0e8d-41df-b94e-ca8691ee2568","6e714eac-c5f9-497c-947a-aeaa7d4f124d"],"path":"/v1/sessions/{session_id}/events","baseUrlOptions":["https://api.beeos.ai","http://127.0.0.1:58080"],"title":"List Events","codeSamples":[{"label":"curl","lang":"bash","source":"curl -sS \"$BMA_BASE_URL/v1/sessions/ses_agray4o575ytrcguudsrm73sbq/events?limit=50\u0026page=42\u0026order=desc\" \\\n -H \"x-api-key: $BMA_API_KEY\" \\\n -H \"bma-workspace-id: $BMA_PROJECT_ID\""},{"label":"Python","lang":"python","source":"from bma_sdk import Bma\n\nclient = Bma() # BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nfor item in client.beta.sessions.events.list(\n \"ses_agray4o575ytrcguudsrm73sbq\",\n limit=50,\n page=\"42\",\n order=\"desc\",\n):\n print(item)\n"},{"label":"TypeScript","lang":"typescript","source":"import { BmaClient } from \"@beeos-ai/bma-sdk\";\n\nconst client = new BmaClient(); // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nfor await (const item of client.beta.sessions.events.list(\"ses_agray4o575ytrcguudsrm73sbq\", {\n limit: 50,\n page: \"42\",\n order: \"desc\",\n})) {\n console.log(item);\n}\n"},{"label":"Go","lang":"go","source":"import (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/anthropics/anthropic-sdk-go/v2/option\"\n\tbmasdk \"github.com/beeos-ai/bma-sdk/v4\"\n)\n\nclient := bmasdk.NewClient() // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\nvar res map[string]any\nerr := client.Execute(context.TODO(), http.MethodGet, \"v1/sessions/ses_agray4o575ytrcguudsrm73sbq/events\",\n\tnil, \u0026res,\n\toption.WithQuery(\"limit\", \"50\"),\n\toption.WithQuery(\"page\", \"42\"),\n\toption.WithQuery(\"order\", \"desc\"))\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Println(res)\n"},{"label":"CLI","lang":"bash","source":"bma sessions events list ses_agray4o575ytrcguudsrm73sbq --limit 50 --page 42 --order desc"}],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"a787de4d-e1fc-452c-b80a-26c74492099b":{"name":"session_id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"ID of the session (`ses_` followed by 26 lowercase base32 characters). A session of another workspace, a deleted session and an unknown ID all answer 404 `not_found_error` without an `error.code`.","uniqueKey":"","typeLabel":"string"},"description":"ID of the session (`ses_` followed by 26 lowercase base32 characters). A session of another workspace, a deleted session and an unknown ID all answer 404 `not_found_error` without an `error.code`.","example":"ses_agray4o575ytrcguudsrm73sbq"},"4b5ced94-0592-4d86-8306-26daf922390d":{"name":"limit","in":"query","required":false,"description":"Number of sequences per page, an integer from 1 to 100 (default 20); every event of each sequence is returned. Any other value is refused with 400.","schema":{"type":"number","isRequired":false,"description":"Number of sequences per page, an integer from 1 to 100 (default 20); every event of each sequence is returned. Any other value is refused with 400.","uniqueKey":"","typeLabel":"number"},"example":50},"6678afb8-f6e6-4483-a98a-cb27a5dcdfa5":{"name":"page","in":"query","required":false,"schema":{"oneOf":[{"type":"string","description":"Cursor from the `next_page` of the previous page (a decimal `bma_sequence`). Pass it with the same `order`. Omit for the first page; a value that is not a cursor is refused with 400.","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","description":"Cursor from the `next_page` of the previous page (a decimal `bma_sequence`). Pass it with the same `order`. Omit for the first page; a value that is not a cursor is refused with 400.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"Cursor from the `next_page` of the previous page (a decimal `bma_sequence`). Pass it with the same `order`. Omit for the first page; a value that is not a cursor is refused with 400.","example":"42"},"cb2c7989-8dc3-4e1c-81e8-c31c9103fe08":{"name":"created_at[gt]","in":"query","required":false,"description":"Keeps events created after this time (RFC 3339); any other value is refused with 400.","schema":{"type":"string","isRequired":false,"description":"Keeps events created after this time (RFC 3339); any other value is refused with 400.","uniqueKey":"","typeLabel":"string"}},"fd0ebc7d-1c4c-4d52-abef-fdec57ce83d3":{"name":"created_at[gte]","in":"query","required":false,"description":"Keeps events created at or after this time (RFC 3339); any other value is refused with 400.","schema":{"type":"string","isRequired":false,"description":"Keeps events created at or after this time (RFC 3339); any other value is refused with 400.","uniqueKey":"","typeLabel":"string"}},"7501faab-ae6b-4836-af2d-0a553336fc8b":{"name":"created_at[lt]","in":"query","required":false,"description":"Keeps events created before this time (RFC 3339); any other value is refused with 400.","schema":{"type":"string","isRequired":false,"description":"Keeps events created before this time (RFC 3339); any other value is refused with 400.","uniqueKey":"","typeLabel":"string"}},"7a3b99ad-e12d-4e90-b3b4-1d02dc7a1222":{"name":"created_at[lte]","in":"query","required":false,"description":"Keeps events created at or before this time (RFC 3339); any other value is refused with 400.","schema":{"type":"string","isRequired":false,"description":"Keeps events created at or before this time (RFC 3339); any other value is refused with 400.","uniqueKey":"","typeLabel":"string"}},"15527399-1e4e-4431-ac9c-88c48baf8d8f":{"name":"order","in":"query","required":false,"description":"`asc` (the default) lists the oldest events first, `desc` the newest first, by `bma_sequence`.","schema":{"type":"string","enum":["asc","desc"],"isRequired":false,"description":"`asc` (the default) lists the oldest events first, `desc` the newest first, by `bma_sequence`.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"example":"desc"},"00c94b00-ea1d-4a1b-ab10-40c32eefd7fc":{"name":"types","in":"query","required":false,"description":"Keep only events of these types (repeat the parameter, use `types[]` or separate values with commas). Omit for every official type. BMA's extension event types are returned only when named here.","schema":{"type":"array","items":{"type":"string","enum":["user.message","user.interrupt","user.tool_confirmation","user.custom_tool_result","agent.custom_tool_use","agent.message","agent.thinking","agent.mcp_tool_use","agent.mcp_tool_result","agent.tool_use","agent.tool_result","agent.thread_message_received","agent.thread_message_sent","agent.thread_context_compacted","session.error","session.status_rescheduled","session.status_running","session.status_idle","session.status_terminated","session.thread_created","span.outcome_evaluation_start","span.outcome_evaluation_end","span.model_request_start","span.model_request_end","span.outcome_evaluation_ongoing","user.define_outcome","session.thread_status_running","session.thread_status_idle","session.thread_status_terminated","user.tool_result","session.thread_status_rescheduled","session.updated","system.message","session.usage","workflow_run.created","workflow_run.status_running","workflow_run.status_idle","workflow_run.status_ended","workflow_run.error","workflow_run.phase_started","workflow_run.phase_ended"],"description":"The `type` of a session event.","uniqueKey":"items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":false,"description":"Keep only events of these types (repeat the parameter, use `types[]` or separate values with commas). Omit for every official type. BMA's extension event types are returned only when named here.","uniqueKey":"","typeLabel":"enum\u003cstring>[]"}}},"responses":{"e7c3cf6c-5565-48f2-b4a7-2cf75062d008":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","required":["data","next_page"],"properties":{"data":{"type":"array","description":"The items of this page, in the list's order.","items":{"oneOf":[{"type":"object","description":"Union type for all event types in a session.","required":["id","content","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.id","typeLabel":"string"},"content":{"type":"array","items":{"oneOf":[{"type":"object","description":"Regular text content.","required":["text","type"],"properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Image content specified directly as base64 data or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the image data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded image data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the image (e.g., \"image/png\", \"image/jpeg\", \"image/gif\", \"image/webp\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the image to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"type":"string","const":"image","description":"Always `image`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Document content, either specified directly as base64 data, as text, or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded document data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the document (e.g., \"application/pdf\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"The plain text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.1.data","typeLabel":"string"},"media_type":{"type":"string","const":"text/plain","description":"MIME type of the text content. Must be \"text/plain\".","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.1.media_type","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.2.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the document to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.2.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.2","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.3.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.source","typeLabel":"object"},"type":{"type":"string","const":"document","description":"Always `document`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.type","typeLabel":"string"},"context":{"oneOf":[{"type":"string","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2.title","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"Placeholder for content withheld by Anthropic model policy.","required":["type"],"properties":{"type":{"type":"string","const":"redacted","description":"Always `redacted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.0.content.items.[INDEX]","typeLabel":"object"},"description":"Array of content blocks comprising the user message.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.content","typeLabel":"object[]"},"type":{"type":"string","const":"user.message","description":"Always `user.message`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.type","typeLabel":"string"},"processed_at":{"oneOf":[{"type":"string","description":"Timestamp when the agent finished processing this message.","uniqueKey":"data.items.[INDEX].oneOf.0.processed_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Timestamp when the agent finished processing this message.","uniqueKey":"data.items.[INDEX].oneOf.0.processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.0.processed_at","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.id","typeLabel":"string"},"type":{"type":"string","const":"user.interrupt","description":"Always `user.interrupt`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.type","typeLabel":"string"},"processed_at":{"oneOf":[{"type":"string","description":"Timestamp when the interrupt was processed.","uniqueKey":"data.items.[INDEX].oneOf.1.processed_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Timestamp when the interrupt was processed.","uniqueKey":"data.items.[INDEX].oneOf.1.processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.1.processed_at","typeLabel":"string | null"},"session_thread_id":{"oneOf":[{"type":"string","description":"If absent, interrupts every non-archived thread in a multiagent session (or the primary alone in a single-agent session). If present, interrupts only the named thread.","uniqueKey":"data.items.[INDEX].oneOf.1.session_thread_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"If absent, interrupts every non-archived thread in a multiagent session (or the primary alone in a single-agent session). If present, interrupts only the named thread.","uniqueKey":"data.items.[INDEX].oneOf.1.session_thread_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.1.session_thread_id","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","result","tool_use_id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.id","typeLabel":"string"},"result":{"type":"string","enum":["allow","deny"],"description":"The confirmation result: 'allow' or 'deny'.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.result","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","description":"The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result corresponds to, which can be found in the last `session.status_idle` [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids) `stop_reason.event_ids` field.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.tool_use_id","typeLabel":"string"},"type":{"type":"string","const":"user.tool_confirmation","description":"Always `user.tool_confirmation`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.type","typeLabel":"string"},"deny_message":{"oneOf":[{"type":"string","description":"Optional message providing context for a 'deny' decision. Only allowed when result is 'deny'.","uniqueKey":"data.items.[INDEX].oneOf.2.deny_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional message providing context for a 'deny' decision. Only allowed when result is 'deny'.","uniqueKey":"data.items.[INDEX].oneOf.2.deny_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.2.deny_message","typeLabel":"string | null"},"processed_at":{"oneOf":[{"type":"string","description":"Timestamp when the confirmation was processed.","uniqueKey":"data.items.[INDEX].oneOf.2.processed_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Timestamp when the confirmation was processed.","uniqueKey":"data.items.[INDEX].oneOf.2.processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.2.processed_at","typeLabel":"string | null"},"session_thread_id":{"oneOf":[{"type":"string","description":"Set by the server to the subagent thread this confirmation was routed to. Omitted when it was routed to the primary thread.","uniqueKey":"data.items.[INDEX].oneOf.2.session_thread_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set by the server to the subagent thread this confirmation was routed to. Omitted when it was routed to the primary thread.","uniqueKey":"data.items.[INDEX].oneOf.2.session_thread_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.2.session_thread_id","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","custom_tool_use_id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.id","typeLabel":"string"},"custom_tool_use_id":{"type":"string","description":"The id of the `agent.custom_tool_use` event this result corresponds to. It is also listed in the last `session.status_idle` [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids) `stop_reason.event_ids` field.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.custom_tool_use_id","typeLabel":"string"},"type":{"type":"string","const":"user.custom_tool_result","description":"Always `user.custom_tool_result`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.type","typeLabel":"string"},"content":{"type":"array","items":{"oneOf":[{"type":"object","description":"Regular text content.","required":["text","type"],"properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Image content specified directly as base64 data or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the image data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded image data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the image (e.g., \"image/png\", \"image/jpeg\", \"image/gif\", \"image/webp\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the image to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"type":"string","const":"image","description":"Always `image`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Document content, either specified directly as base64 data, as text, or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded document data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the document (e.g., \"application/pdf\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"The plain text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.1.data","typeLabel":"string"},"media_type":{"type":"string","const":"text/plain","description":"MIME type of the text content. Must be \"text/plain\".","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.1.media_type","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.2.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the document to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.2.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.2","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.3.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.source","typeLabel":"object"},"type":{"type":"string","const":"document","description":"Always `document`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.type","typeLabel":"string"},"context":{"oneOf":[{"type":"string","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2.title","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"A block containing a web search result.","required":["citations","content","source","title","type"],"properties":{"citations":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether citations are enabled for this search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.3.citations.enabled","typeLabel":"boolean"}},"required":["enabled"],"description":"Citation settings for this search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.3.citations","typeLabel":"object"},"content":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.3.content.items.[INDEX].text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.3.content.items.[INDEX].type","typeLabel":"string"}},"required":["text","type"],"description":"Text content within a search result.","uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.3.content.items.[INDEX]","typeLabel":"object"},"description":"Array of text content blocks from the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.3.content","typeLabel":"object[]"},"source":{"type":"string","description":"The URL source of the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.3.source","typeLabel":"string"},"title":{"type":"string","description":"The title of the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.3.title","typeLabel":"string"},"type":{"type":"string","const":"search_result","description":"Always `search_result`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.3.content.items.[INDEX]","typeLabel":"object"},"description":"The result content returned by the tool.","uniqueKey":"data.items.[INDEX].oneOf.3.content","typeLabel":"object[]"},"is_error":{"oneOf":[{"type":"boolean","description":"Whether the tool execution resulted in an error.","uniqueKey":"data.items.[INDEX].oneOf.3.is_error.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool execution resulted in an error.","uniqueKey":"data.items.[INDEX].oneOf.3.is_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.3.is_error","typeLabel":"boolean | null"},"processed_at":{"oneOf":[{"type":"string","description":"Timestamp when this result was processed.","uniqueKey":"data.items.[INDEX].oneOf.3.processed_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Timestamp when this result was processed.","uniqueKey":"data.items.[INDEX].oneOf.3.processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.3.processed_at","typeLabel":"string | null"},"session_thread_id":{"oneOf":[{"type":"string","description":"Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.","uniqueKey":"data.items.[INDEX].oneOf.3.session_thread_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.","uniqueKey":"data.items.[INDEX].oneOf.3.session_thread_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.3.session_thread_id","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","input","name","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.id","typeLabel":"string"},"input":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"data.items.[INDEX].oneOf.4.input.additionalProperties","typeLabel":"any"},"description":"Input parameters for the tool call.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.input","typeLabel":"object"},"name":{"type":"string","description":"Name of the custom tool being called.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.name","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this tool use was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.processed_at","typeLabel":"string"},"type":{"type":"string","const":"agent.custom_tool_use","description":"Always `agent.custom_tool_use`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.type","typeLabel":"string"},"session_thread_id":{"oneOf":[{"type":"string","description":"When set, this event was cross-posted from a subagent's thread to surface its custom tool use on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching `user.custom_tool_result` by `custom_tool_use_id`, so clients do not send it back.","uniqueKey":"data.items.[INDEX].oneOf.4.session_thread_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"When set, this event was cross-posted from a subagent's thread to surface its custom tool use on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching `user.custom_tool_result` by `custom_tool_use_id`, so clients do not send it back.","uniqueKey":"data.items.[INDEX].oneOf.4.session_thread_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.4.session_thread_id","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","content","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.id","typeLabel":"string"},"content":{"type":"array","items":{"oneOf":[{"type":"object","description":"Regular text content.","required":["text","type"],"properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.content.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.5.content.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Placeholder for content withheld by Anthropic model policy.","required":["type"],"properties":{"type":{"type":"string","const":"redacted","description":"Always `redacted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.content.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.5.content.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.5.content.items.[INDEX]","typeLabel":"object"},"description":"Array of text blocks comprising the agent response.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.content","typeLabel":"object[]"},"processed_at":{"type":"string","description":"Timestamp when this response was generated.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.processed_at","typeLabel":"string"},"type":{"type":"string","const":"agent.message","description":"Always `agent.message`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.6.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this thinking was produced.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.6.processed_at","typeLabel":"string"},"type":{"type":"string","const":"agent.thinking","description":"Always `agent.thinking`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.6.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","input","mcp_server_name","name","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.id","typeLabel":"string"},"input":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"data.items.[INDEX].oneOf.7.input.additionalProperties","typeLabel":"any"},"description":"Input parameters for the tool call.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.input","typeLabel":"object"},"mcp_server_name":{"type":"string","description":"Name of the MCP server providing the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.mcp_server_name","typeLabel":"string"},"name":{"type":"string","description":"Name of the MCP tool being used.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.name","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.processed_at","typeLabel":"string"},"type":{"type":"string","const":"agent.mcp_tool_use","description":"Always `agent.mcp_tool_use`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.type","typeLabel":"string"},"evaluated_permission":{"type":"string","enum":["allow","ask","deny"],"description":"The evaluated permission policy for this tool invocation.","uniqueKey":"data.items.[INDEX].oneOf.7.evaluated_permission","typeLabel":"enum\u003cstring>"},"evaluation":{"oneOf":[{"type":"object","description":"Which resolved permission_policy produced evaluated_permission: always_allow, always_ask, or auto (with the server's per-invocation judgement). Absent only when the server refused the call before any policy applied (for example, the named tool is not enabled in the session); such a refusal has evaluated_permission deny. An event recorded before this field existed reads as the arm its evaluated_permission implies (always_allow for allow, always_ask for ask).","required":["type"],"properties":{"type":{"type":"string","const":"always_allow","description":"Always `always_allow`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.0","typeLabel":"object"},{"type":"object","description":"Which resolved permission_policy produced evaluated_permission: always_allow, always_ask, or auto (with the server's per-invocation judgement). Absent only when the server refused the call before any policy applied (for example, the named tool is not enabled in the session); such a refusal has evaluated_permission deny. An event recorded before this field existed reads as the arm its evaluated_permission implies (always_allow for allow, always_ask for ask).","required":["type"],"properties":{"type":{"type":"string","const":"always_ask","description":"Always `always_ask`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.1","typeLabel":"object"},{"type":"object","description":"Which resolved permission_policy produced evaluated_permission: always_allow, always_ask, or auto (with the server's per-invocation judgement). Absent only when the server refused the call before any policy applied (for example, the named tool is not enabled in the session); such a refusal has evaluated_permission deny. An event recorded before this field existed reads as the arm its evaluated_permission implies (always_allow for allow, always_ask for ask).","required":["evaluated_permission","type"],"properties":{"evaluated_permission":{"oneOf":[{"type":"object","description":"The server's judgement for this invocation.","required":["type"],"properties":{"type":{"type":"string","const":"allow","description":"Always `allow`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2.evaluated_permission.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2.evaluated_permission.oneOf.0","typeLabel":"object"},{"type":"object","description":"The server's judgement for this invocation.","required":["reason_code","type"],"properties":{"reason_code":{"type":"string","description":"The judgement's grounds in registry-bound terms, for client branching and audit rather than end-user display. Open registry; currently \"indeterminate\" (no judgement was reached). Clients must tolerate values outside this set.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2.evaluated_permission.oneOf.1.reason_code","typeLabel":"string"},"type":{"type":"string","const":"ask","description":"Always `ask`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2.evaluated_permission.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2.evaluated_permission.oneOf.1","typeLabel":"object"},{"type":"object","description":"The server's judgement for this invocation.","required":["reason_code","type"],"properties":{"reason_code":{"type":"string","description":"The judgement's grounds in registry-bound terms. Open registry; currently \"high_risk\" (judged high-risk; the call does not run). Clients must tolerate values outside this set.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2.evaluated_permission.oneOf.2.reason_code","typeLabel":"string"},"type":{"type":"string","const":"deny","description":"Always `deny`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2.evaluated_permission.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2.evaluated_permission.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2.evaluated_permission","typeLabel":"object"},"type":{"type":"string","const":"auto","description":"Always `auto`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation.oneOf.2","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.7.evaluation","typeLabel":"object"},"session_thread_id":{"oneOf":[{"type":"string","description":"When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching `user.tool_confirmation` by `tool_use_id`, so clients do not send it back.","uniqueKey":"data.items.[INDEX].oneOf.7.session_thread_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching `user.tool_confirmation` by `tool_use_id`, so clients do not send it back.","uniqueKey":"data.items.[INDEX].oneOf.7.session_thread_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.7.session_thread_id","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","mcp_tool_use_id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.id","typeLabel":"string"},"mcp_tool_use_id":{"type":"string","description":"The id of the `agent.mcp_tool_use` event this result corresponds to.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.mcp_tool_use_id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.processed_at","typeLabel":"string"},"type":{"type":"string","const":"agent.mcp_tool_result","description":"Always `agent.mcp_tool_result`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.type","typeLabel":"string"},"content":{"type":"array","items":{"oneOf":[{"type":"object","description":"Regular text content.","required":["text","type"],"properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Image content specified directly as base64 data or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the image data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded image data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the image (e.g., \"image/png\", \"image/jpeg\", \"image/gif\", \"image/webp\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the image to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"type":"string","const":"image","description":"Always `image`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Document content, either specified directly as base64 data, as text, or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded document data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the document (e.g., \"application/pdf\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"The plain text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.1.data","typeLabel":"string"},"media_type":{"type":"string","const":"text/plain","description":"MIME type of the text content. Must be \"text/plain\".","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.1.media_type","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.2.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the document to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.2.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.2","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.3.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.source","typeLabel":"object"},"type":{"type":"string","const":"document","description":"Always `document`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.type","typeLabel":"string"},"context":{"oneOf":[{"type":"string","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2.title","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"A block containing a web search result.","required":["citations","content","source","title","type"],"properties":{"citations":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether citations are enabled for this search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.3.citations.enabled","typeLabel":"boolean"}},"required":["enabled"],"description":"Citation settings for this search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.3.citations","typeLabel":"object"},"content":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.3.content.items.[INDEX].text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.3.content.items.[INDEX].type","typeLabel":"string"}},"required":["text","type"],"description":"Text content within a search result.","uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.3.content.items.[INDEX]","typeLabel":"object"},"description":"Array of text content blocks from the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.3.content","typeLabel":"object[]"},"source":{"type":"string","description":"The URL source of the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.3.source","typeLabel":"string"},"title":{"type":"string","description":"The title of the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.3.title","typeLabel":"string"},"type":{"type":"string","const":"search_result","description":"Always `search_result`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.8.content.items.[INDEX]","typeLabel":"object"},"description":"The result content returned by the tool.","uniqueKey":"data.items.[INDEX].oneOf.8.content","typeLabel":"object[]"},"is_error":{"oneOf":[{"type":"boolean","description":"Whether the tool execution resulted in an error.","uniqueKey":"data.items.[INDEX].oneOf.8.is_error.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool execution resulted in an error.","uniqueKey":"data.items.[INDEX].oneOf.8.is_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.8.is_error","typeLabel":"boolean | null"}},"uniqueKey":"data.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","input","name","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.id","typeLabel":"string"},"input":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"data.items.[INDEX].oneOf.9.input.additionalProperties","typeLabel":"any"},"description":"Input parameters for the tool call.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.input","typeLabel":"object"},"name":{"type":"string","description":"Name of the agent tool being used.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.name","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.processed_at","typeLabel":"string"},"type":{"type":"string","const":"agent.tool_use","description":"Always `agent.tool_use`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.type","typeLabel":"string"},"evaluated_permission":{"type":"string","enum":["allow","ask","deny"],"description":"The evaluated permission policy for this tool invocation.","uniqueKey":"data.items.[INDEX].oneOf.9.evaluated_permission","typeLabel":"enum\u003cstring>"},"evaluation":{"oneOf":[{"type":"object","description":"Which resolved permission_policy produced evaluated_permission: always_allow, always_ask, or auto (with the server's per-invocation judgement). Absent only when the server refused the call before any policy applied (for example, the named tool is not enabled in the session); such a refusal has evaluated_permission deny. An event recorded before this field existed reads as the arm its evaluated_permission implies (always_allow for allow, always_ask for ask).","required":["type"],"properties":{"type":{"type":"string","const":"always_allow","description":"Always `always_allow`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.0","typeLabel":"object"},{"type":"object","description":"Which resolved permission_policy produced evaluated_permission: always_allow, always_ask, or auto (with the server's per-invocation judgement). Absent only when the server refused the call before any policy applied (for example, the named tool is not enabled in the session); such a refusal has evaluated_permission deny. An event recorded before this field existed reads as the arm its evaluated_permission implies (always_allow for allow, always_ask for ask).","required":["type"],"properties":{"type":{"type":"string","const":"always_ask","description":"Always `always_ask`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.1","typeLabel":"object"},{"type":"object","description":"Which resolved permission_policy produced evaluated_permission: always_allow, always_ask, or auto (with the server's per-invocation judgement). Absent only when the server refused the call before any policy applied (for example, the named tool is not enabled in the session); such a refusal has evaluated_permission deny. An event recorded before this field existed reads as the arm its evaluated_permission implies (always_allow for allow, always_ask for ask).","required":["evaluated_permission","type"],"properties":{"evaluated_permission":{"oneOf":[{"type":"object","description":"The server's judgement for this invocation.","required":["type"],"properties":{"type":{"type":"string","const":"allow","description":"Always `allow`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2.evaluated_permission.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2.evaluated_permission.oneOf.0","typeLabel":"object"},{"type":"object","description":"The server's judgement for this invocation.","required":["reason_code","type"],"properties":{"reason_code":{"type":"string","description":"The judgement's grounds in registry-bound terms, for client branching and audit rather than end-user display. Open registry; currently \"indeterminate\" (no judgement was reached). Clients must tolerate values outside this set.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2.evaluated_permission.oneOf.1.reason_code","typeLabel":"string"},"type":{"type":"string","const":"ask","description":"Always `ask`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2.evaluated_permission.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2.evaluated_permission.oneOf.1","typeLabel":"object"},{"type":"object","description":"The server's judgement for this invocation.","required":["reason_code","type"],"properties":{"reason_code":{"type":"string","description":"The judgement's grounds in registry-bound terms. Open registry; currently \"high_risk\" (judged high-risk; the call does not run). Clients must tolerate values outside this set.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2.evaluated_permission.oneOf.2.reason_code","typeLabel":"string"},"type":{"type":"string","const":"deny","description":"Always `deny`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2.evaluated_permission.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2.evaluated_permission.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2.evaluated_permission","typeLabel":"object"},"type":{"type":"string","const":"auto","description":"Always `auto`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation.oneOf.2","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.9.evaluation","typeLabel":"object"},"session_thread_id":{"oneOf":[{"type":"string","description":"When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching `user.tool_confirmation` or `user.tool_result` by `tool_use_id`, so clients do not send it back.","uniqueKey":"data.items.[INDEX].oneOf.9.session_thread_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching `user.tool_confirmation` or `user.tool_result` by `tool_use_id`, so clients do not send it back.","uniqueKey":"data.items.[INDEX].oneOf.9.session_thread_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.9.session_thread_id","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","tool_use_id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.processed_at","typeLabel":"string"},"tool_use_id":{"type":"string","description":"The id of the `agent.tool_use` event this result corresponds to.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.tool_use_id","typeLabel":"string"},"type":{"type":"string","const":"agent.tool_result","description":"Always `agent.tool_result`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.type","typeLabel":"string"},"content":{"type":"array","items":{"oneOf":[{"type":"object","description":"Regular text content.","required":["text","type"],"properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Image content specified directly as base64 data or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the image data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded image data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the image (e.g., \"image/png\", \"image/jpeg\", \"image/gif\", \"image/webp\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the image to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"type":"string","const":"image","description":"Always `image`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Document content, either specified directly as base64 data, as text, or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded document data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the document (e.g., \"application/pdf\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"The plain text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.1.data","typeLabel":"string"},"media_type":{"type":"string","const":"text/plain","description":"MIME type of the text content. Must be \"text/plain\".","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.1.media_type","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.2.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the document to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.2.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.2","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.3.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.source","typeLabel":"object"},"type":{"type":"string","const":"document","description":"Always `document`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.type","typeLabel":"string"},"context":{"oneOf":[{"type":"string","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2.title","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"A block containing a web search result.","required":["citations","content","source","title","type"],"properties":{"citations":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether citations are enabled for this search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.3.citations.enabled","typeLabel":"boolean"}},"required":["enabled"],"description":"Citation settings for this search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.3.citations","typeLabel":"object"},"content":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.3.content.items.[INDEX].text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.3.content.items.[INDEX].type","typeLabel":"string"}},"required":["text","type"],"description":"Text content within a search result.","uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.3.content.items.[INDEX]","typeLabel":"object"},"description":"Array of text content blocks from the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.3.content","typeLabel":"object[]"},"source":{"type":"string","description":"The URL source of the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.3.source","typeLabel":"string"},"title":{"type":"string","description":"The title of the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.3.title","typeLabel":"string"},"type":{"type":"string","const":"search_result","description":"Always `search_result`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.10.content.items.[INDEX]","typeLabel":"object"},"description":"The result content returned by the tool.","uniqueKey":"data.items.[INDEX].oneOf.10.content","typeLabel":"object[]"},"is_error":{"oneOf":[{"type":"boolean","description":"Whether the tool execution resulted in an error.","uniqueKey":"data.items.[INDEX].oneOf.10.is_error.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool execution resulted in an error.","uniqueKey":"data.items.[INDEX].oneOf.10.is_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.10.is_error","typeLabel":"boolean | null"}},"uniqueKey":"data.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","content","from_session_thread_id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.id","typeLabel":"string"},"content":{"type":"array","items":{"oneOf":[{"type":"object","description":"Regular text content.","required":["text","type"],"properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Image content specified directly as base64 data or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the image data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded image data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the image (e.g., \"image/png\", \"image/jpeg\", \"image/gif\", \"image/webp\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the image to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"type":"string","const":"image","description":"Always `image`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Document content, either specified directly as base64 data, as text, or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded document data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the document (e.g., \"application/pdf\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"The plain text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.1.data","typeLabel":"string"},"media_type":{"type":"string","const":"text/plain","description":"MIME type of the text content. Must be \"text/plain\".","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.1.media_type","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.2.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the document to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.2.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.2","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.3.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.source","typeLabel":"object"},"type":{"type":"string","const":"document","description":"Always `document`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.type","typeLabel":"string"},"context":{"oneOf":[{"type":"string","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2.title","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"Placeholder for content withheld by Anthropic model policy.","required":["type"],"properties":{"type":{"type":"string","const":"redacted","description":"Always `redacted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.11.content.items.[INDEX]","typeLabel":"object"},"description":"Message content blocks.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.content","typeLabel":"object[]"},"from_session_thread_id":{"type":"string","description":"Public `sthr_` ID of the thread that sent the message.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.from_session_thread_id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when the message was received.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.processed_at","typeLabel":"string"},"type":{"type":"string","const":"agent.thread_message_received","description":"Always `agent.thread_message_received`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.11.type","typeLabel":"string"},"from_agent_name":{"oneOf":[{"type":"string","description":"Name of the callable agent this message came from. Absent when received from the primary agent.","uniqueKey":"data.items.[INDEX].oneOf.11.from_agent_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the callable agent this message came from. Absent when received from the primary agent.","uniqueKey":"data.items.[INDEX].oneOf.11.from_agent_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.11.from_agent_name","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","content","processed_at","to_session_thread_id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.id","typeLabel":"string"},"content":{"type":"array","items":{"oneOf":[{"type":"object","description":"Regular text content.","required":["text","type"],"properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Image content specified directly as base64 data or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the image data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded image data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the image (e.g., \"image/png\", \"image/jpeg\", \"image/gif\", \"image/webp\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the image to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"type":"string","const":"image","description":"Always `image`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Document content, either specified directly as base64 data, as text, or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded document data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the document (e.g., \"application/pdf\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"The plain text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.1.data","typeLabel":"string"},"media_type":{"type":"string","const":"text/plain","description":"MIME type of the text content. Must be \"text/plain\".","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.1.media_type","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.2.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the document to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.2.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.2","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.3.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.source","typeLabel":"object"},"type":{"type":"string","const":"document","description":"Always `document`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.type","typeLabel":"string"},"context":{"oneOf":[{"type":"string","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2.title","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"Placeholder for content withheld by Anthropic model policy.","required":["type"],"properties":{"type":{"type":"string","const":"redacted","description":"Always `redacted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.12.content.items.[INDEX]","typeLabel":"object"},"description":"Message content blocks.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.content","typeLabel":"object[]"},"processed_at":{"type":"string","description":"Timestamp when the message was sent.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.processed_at","typeLabel":"string"},"to_session_thread_id":{"type":"string","description":"Public `sthr_` ID of the thread the message was sent to.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.to_session_thread_id","typeLabel":"string"},"type":{"type":"string","const":"agent.thread_message_sent","description":"Always `agent.thread_message_sent`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.12.type","typeLabel":"string"},"to_agent_name":{"oneOf":[{"type":"string","description":"Name of the callable agent this message was sent to. Absent when sent to the primary agent.","uniqueKey":"data.items.[INDEX].oneOf.12.to_agent_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the callable agent this message was sent to. Absent when sent to the primary agent.","uniqueKey":"data.items.[INDEX].oneOf.12.to_agent_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.12.to_agent_name","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.13.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when compaction was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.13.processed_at","typeLabel":"string"},"type":{"type":"string","const":"agent.thread_context_compacted","description":"Always `agent.thread_context_compacted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.13.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","error","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.id","typeLabel":"string"},"error":{"oneOf":[{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.0.message","typeLabel":"string"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.0.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.0.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.0.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.0.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.0.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.0.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.0.retry_status","typeLabel":"object"},"type":{"type":"string","const":"unknown_error","description":"Always `unknown_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.0","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.1.message","typeLabel":"string"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.1.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.1.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.1.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.1.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.1.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.1.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.1.retry_status","typeLabel":"object"},"type":{"type":"string","const":"model_overloaded_error","description":"Always `model_overloaded_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.1","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.2.message","typeLabel":"string"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.2.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.2.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.2.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.2.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.2.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.2.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.2.retry_status","typeLabel":"object"},"type":{"type":"string","const":"model_rate_limited_error","description":"Always `model_rate_limited_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.2","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.3.message","typeLabel":"string"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.3.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.3.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.3.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.3.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.3.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.3.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.3.retry_status","typeLabel":"object"},"type":{"type":"string","const":"model_request_failed_error","description":"Always `model_request_failed_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.3","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["mcp_server_name","message","retry_status","type"],"properties":{"mcp_server_name":{"type":"string","description":"Name of the MCP server that failed to connect.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4.mcp_server_name","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4.message","typeLabel":"string"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4.retry_status","typeLabel":"object"},"type":{"type":"string","const":"mcp_connection_failed_error","description":"Always `mcp_connection_failed_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.4","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["mcp_server_name","message","retry_status","type"],"properties":{"mcp_server_name":{"type":"string","description":"Name of the MCP server that failed authentication.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5.mcp_server_name","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5.message","typeLabel":"string"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5.retry_status","typeLabel":"object"},"type":{"type":"string","const":"mcp_authentication_failed_error","description":"Always `mcp_authentication_failed_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.5","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.6.message","typeLabel":"string"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.6.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.6.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.6.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.6.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.6.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.6.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.6.retry_status","typeLabel":"object"},"type":{"type":"string","const":"billing_error","description":"Always `billing_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.6.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.6","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["credential_id","message","retry_status","type","vault_id"],"properties":{"credential_id":{"type":"string","description":"ID of the affected credential.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.credential_id","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.message","typeLabel":"string"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.retry_status","typeLabel":"object"},"type":{"type":"string","const":"credential_host_unreachable_error","description":"Always `credential_host_unreachable_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.type","typeLabel":"string"},"vault_id":{"type":"string","description":"ID of the vault containing the affected credential.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7.vault_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.7","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.8.message","typeLabel":"string"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.8.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.8.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.8.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.8.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.8.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.8.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.8.retry_status","typeLabel":"object"},"type":{"type":"string","const":"tool_use_limit_reached_error","description":"Always `tool_use_limit_reached_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.8.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.8","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.9.message","typeLabel":"string"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.9.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.9.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.9.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.9.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.9.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.9.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.9.retry_status","typeLabel":"object"},"type":{"type":"string","const":"compaction_limit_reached_error","description":"Always `compaction_limit_reached_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.9.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.9","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","repository_url","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.message","typeLabel":"string"},"repository_url":{"oneOf":[{"type":"string","description":"URL of the repository that could not be cloned. Null when it could not be identified.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.repository_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL of the repository that could not be cloned. Null when it could not be identified.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.repository_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.repository_url","typeLabel":"string | null"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.retry_status","typeLabel":"object"},"type":{"type":"string","const":"repository_authentication_error","description":"Always `repository_authentication_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.10","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","repository_url","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.message","typeLabel":"string"},"repository_url":{"oneOf":[{"type":"string","description":"URL of the repository that could not be cloned. Null when it could not be identified.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.repository_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL of the repository that could not be cloned. Null when it could not be identified.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.repository_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.repository_url","typeLabel":"string | null"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.retry_status","typeLabel":"object"},"type":{"type":"string","const":"repository_forbidden_error","description":"Always `repository_forbidden_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.11","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","repository_url","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.message","typeLabel":"string"},"repository_url":{"oneOf":[{"type":"string","description":"URL of the repository that could not be cloned. Null when it could not be identified.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.repository_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL of the repository that could not be cloned. Null when it could not be identified.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.repository_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.repository_url","typeLabel":"string | null"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.retry_status","typeLabel":"object"},"type":{"type":"string","const":"repository_not_found_error","description":"Always `repository_not_found_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.12","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","repository_url","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.message","typeLabel":"string"},"repository_url":{"oneOf":[{"type":"string","description":"URL of the repository that could not be cloned. Null when it could not be identified.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.repository_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL of the repository that could not be cloned. Null when it could not be identified.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.repository_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.repository_url","typeLabel":"string | null"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.retry_status","typeLabel":"object"},"type":{"type":"string","const":"repository_checkout_error","description":"Always `repository_checkout_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.13","typeLabel":"object"},{"type":"object","description":"What went wrong, typed by `error.type`. BMA also repeats a platform error's code as `code` and `bma_error_code` on the error object.","required":["message","repository_url","retry_status","type"],"properties":{"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.message","typeLabel":"string"},"repository_url":{"oneOf":[{"type":"string","description":"URL of the repository that could not be cloned. Null when it could not be identified.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.repository_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL of the repository that could not be cloned. Null when it could not be identified.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.repository_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.repository_url","typeLabel":"string | null"},"retry_status":{"oneOf":[{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"retrying","description":"Always `retrying`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.retry_status.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.retry_status.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"exhausted","description":"Always `exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.retry_status.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.retry_status.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the client should do next. Always `retrying`: the session keeps running without the repository.","required":["type"],"properties":{"type":{"type":"string","const":"terminal","description":"Always `terminal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.retry_status.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.retry_status.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.retry_status","typeLabel":"object"},"type":{"type":"string","const":"repository_clone_error","description":"Always `repository_clone_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error.oneOf.14","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.error","typeLabel":"object"},"processed_at":{"type":"string","description":"Timestamp when the error occurred.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.processed_at","typeLabel":"string"},"type":{"type":"string","const":"session.error","description":"Always `session.error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.14.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.15.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp of status change.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.15.processed_at","typeLabel":"string"},"type":{"type":"string","const":"session.status_rescheduled","description":"Always `session.status_rescheduled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.15.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.16.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp of status change.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.16.processed_at","typeLabel":"string"},"type":{"type":"string","const":"session.status_running","description":"Always `session.status_running`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.16.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.16","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","stop_details","stop_reason","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp of status change.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.processed_at","typeLabel":"string"},"stop_details":{"oneOf":[{"type":"object","description":"Always null on BMA, which never stops a turn on a refusal (the only stop with details).","required":["category","explanation","type"],"properties":{"category":{"oneOf":[{"type":"string","enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"description":"The policy category that triggered the refusal, or `null` when there is no named category. New values can be added over time.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_details.oneOf.0.category.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"description":"The policy category that triggered the refusal, or `null` when there is no named category. New values can be added over time.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_details.oneOf.0.category.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_details.oneOf.0.category","typeLabel":"enum\u003cstring> | null"},"explanation":{"oneOf":[{"type":"string","description":"Human-readable explanation of the refusal, or `null` when none is available. The wording can change, so do not parse it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_details.oneOf.0.explanation.oneOf.0","typeLabel":"string"},{"type":"null","description":"Human-readable explanation of the refusal, or `null` when none is available. The wording can change, so do not parse it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_details.oneOf.0.explanation.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_details.oneOf.0.explanation","typeLabel":"string | null"},"type":{"type":"string","const":"refusal","description":"Always `refusal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_details.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_details.oneOf.0","typeLabel":"object"},{"type":"null","description":"Always null on BMA, which never stops a turn on a refusal (the only stop with details).","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_details","typeLabel":"object | null"},"stop_reason":{"oneOf":[{"type":"object","description":"Why the turn stopped: `end_turn` when it completed, `requires_action` when it waits for answers to `event_ids`, `retries_exhausted` when it failed. BMA also adds `bma_turn_outcome` to the event.","required":["type"],"properties":{"type":{"type":"string","const":"end_turn","description":"Always `end_turn`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.0","typeLabel":"object"},{"type":"object","description":"Why the turn stopped: `end_turn` when it completed, `requires_action` when it waits for answers to `event_ids`, `retries_exhausted` when it failed. BMA also adds `bma_turn_outcome` to the event.","required":["event_ids","type"],"properties":{"event_ids":{"type":"array","items":{"type":"string","uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.1.event_ids.items.[INDEX]","typeLabel":"string"},"description":"The ids of events the agent is blocked on. Resolving fewer than all re-emits `session.status_idle` with the remainder.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.1.event_ids","typeLabel":"string[]"},"type":{"type":"string","const":"requires_action","description":"Always `requires_action`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.1","typeLabel":"object"},{"type":"object","description":"Why the turn stopped: `end_turn` when it completed, `requires_action` when it waits for answers to `event_ids`, `retries_exhausted` when it failed. BMA also adds `bma_turn_outcome` to the event.","required":["type"],"properties":{"type":{"type":"string","const":"retries_exhausted","description":"Always `retries_exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.2","typeLabel":"object"},{"type":"object","description":"Why the turn stopped: `end_turn` when it completed, `requires_action` when it waits for answers to `event_ids`, `retries_exhausted` when it failed. BMA also adds `bma_turn_outcome` to the event.","required":["type"],"properties":{"type":{"type":"string","const":"budget_reached","description":"Always `budget_reached`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.3","typeLabel":"object"},{"type":"object","description":"Why the turn stopped: `end_turn` when it completed, `requires_action` when it waits for answers to `event_ids`, `retries_exhausted` when it failed. BMA also adds `bma_turn_outcome` to the event.","required":["type"],"properties":{"type":{"type":"string","const":"refusal","description":"Always `refusal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.4.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.stop_reason","typeLabel":"object"},"type":{"type":"string","const":"session.status_idle","description":"Always `session.status_idle`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.17.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.17","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.18.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp of status change.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.18.processed_at","typeLabel":"string"},"type":{"type":"string","const":"session.status_terminated","description":"Always `session.status_terminated`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.18.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.18","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","agent_name","processed_at","session_thread_id","type","workflow_run_id"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.19.id","typeLabel":"string"},"agent_name":{"type":"string","description":"Name of the callable agent the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.19.agent_name","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when the thread was created.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.19.processed_at","typeLabel":"string"},"session_thread_id":{"type":"string","description":"Public `sthr_` ID of the newly created thread.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.19.session_thread_id","typeLabel":"string"},"type":{"type":"string","const":"session.thread_created","description":"Always `session.thread_created`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.19.type","typeLabel":"string"},"workflow_run_id":{"oneOf":[{"type":"string","description":"Identifier of the workflow run that created the thread, or `null` for any other thread.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.19.workflow_run_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Identifier of the workflow run that created the thread, or `null` for any other thread.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.19.workflow_run_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.19.workflow_run_id","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.19","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","iteration","outcome_id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.20.id","typeLabel":"string"},"iteration":{"type":"number","description":"0-indexed revision cycle. 0 is the first evaluation; 1 is the re-evaluation after the first revision; etc.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.20.iteration","typeLabel":"number"},"outcome_id":{"type":"string","description":"The `outc_` ID of the outcome being evaluated.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.20.outcome_id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when outcome evaluation started.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.20.processed_at","typeLabel":"string"},"type":{"type":"string","const":"span.outcome_evaluation_start","description":"Always `span.outcome_evaluation_start`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.20.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.20","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","explanation","iteration","outcome_evaluation_start_id","outcome_id","processed_at","result","type","usage"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.id","typeLabel":"string"},"explanation":{"type":"string","description":"Human-readable explanation of the verdict. For `needs_revision`, describes which criteria failed and why.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.explanation","typeLabel":"string"},"iteration":{"type":"number","description":"0-indexed revision cycle, matching the corresponding `span.outcome_evaluation_start`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.iteration","typeLabel":"number"},"outcome_evaluation_start_id":{"type":"string","description":"The id of the corresponding `span.outcome_evaluation_start` event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.outcome_evaluation_start_id","typeLabel":"string"},"outcome_id":{"type":"string","description":"The `outc_` ID of the outcome being evaluated.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.outcome_id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when outcome evaluation ended.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.processed_at","typeLabel":"string"},"result":{"type":"string","description":"Evaluation verdict. 'satisfied': criteria met, session goes idle. 'needs_revision': criteria not met, another revision cycle follows. 'max_iterations_reached': evaluation budget exhausted with criteria still unmet — one final acknowledgment turn follows before the session goes idle, but no further evaluation runs. 'failed': grader determined the rubric does not apply to the deliverables. 'interrupted': user sent an interrupt while evaluation was in progress.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.result","typeLabel":"string"},"type":{"type":"string","const":"span.outcome_evaluation_end","description":"Always `span.outcome_evaluation_end`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.type","typeLabel":"string"},"usage":{"type":"object","properties":{"cache_creation_input_tokens":{"type":"number","description":"Tokens used to create prompt cache in this request.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.usage.cache_creation_input_tokens","typeLabel":"number"},"cache_read_input_tokens":{"type":"number","description":"Tokens read from prompt cache in this request.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.usage.cache_read_input_tokens","typeLabel":"number"},"input_tokens":{"type":"number","description":"Input tokens consumed by this request.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.usage.input_tokens","typeLabel":"number"},"output_tokens":{"type":"number","description":"Output tokens generated by this request.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.usage.output_tokens","typeLabel":"number"},"speed":{"oneOf":[{"type":"string","enum":["standard","fast",null],"description":"Inference speed tier this request actually ran at. Mirrors `usage.speed` on /v1/messages. Only present when the fast-mode beta is active.","uniqueKey":"data.items.[INDEX].oneOf.21.usage.speed.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["standard","fast",null],"description":"Inference speed tier this request actually ran at. Mirrors `usage.speed` on /v1/messages. Only present when the fast-mode beta is active.","uniqueKey":"data.items.[INDEX].oneOf.21.usage.speed.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.21.usage.speed","typeLabel":"enum\u003cstring> | null"}},"required":["cache_creation_input_tokens","cache_read_input_tokens","input_tokens","output_tokens"],"description":"Aggregate token usage for this evaluation cycle. Sums across all grader model requests within the cycle.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.21.usage","typeLabel":"object"}},"uniqueKey":"data.items.[INDEX].oneOf.21","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.22.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when the model request started.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.22.processed_at","typeLabel":"string"},"type":{"type":"string","const":"span.model_request_start","description":"Always `span.model_request_start`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.22.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.22","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","is_error","model_request_start_id","model_usage","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.id","typeLabel":"string"},"is_error":{"oneOf":[{"type":"boolean","description":"Whether the model request resulted in an error.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.is_error.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the model request resulted in an error.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.is_error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.is_error","typeLabel":"boolean | null"},"model_request_start_id":{"type":"string","description":"The id of the corresponding `span.model_request_start` event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.model_request_start_id","typeLabel":"string"},"model_usage":{"type":"object","properties":{"cache_creation_input_tokens":{"type":"number","description":"Tokens used to create prompt cache in this request.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.model_usage.cache_creation_input_tokens","typeLabel":"number"},"cache_read_input_tokens":{"type":"number","description":"Tokens read from prompt cache in this request.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.model_usage.cache_read_input_tokens","typeLabel":"number"},"input_tokens":{"type":"number","description":"Input tokens consumed by this request.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.model_usage.input_tokens","typeLabel":"number"},"output_tokens":{"type":"number","description":"Output tokens generated by this request.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.model_usage.output_tokens","typeLabel":"number"},"speed":{"oneOf":[{"type":"string","enum":["standard","fast",null],"description":"Inference speed tier this request actually ran at. Mirrors `usage.speed` on /v1/messages. Only present when the fast-mode beta is active.","uniqueKey":"data.items.[INDEX].oneOf.23.model_usage.speed.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["standard","fast",null],"description":"Inference speed tier this request actually ran at. Mirrors `usage.speed` on /v1/messages. Only present when the fast-mode beta is active.","uniqueKey":"data.items.[INDEX].oneOf.23.model_usage.speed.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.23.model_usage.speed","typeLabel":"enum\u003cstring> | null"}},"required":["cache_creation_input_tokens","cache_read_input_tokens","input_tokens","output_tokens"],"description":"Token usage for this model request.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.model_usage","typeLabel":"object"},"processed_at":{"type":"string","description":"Timestamp when the model request completed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.processed_at","typeLabel":"string"},"type":{"type":"string","const":"span.model_request_end","description":"Always `span.model_request_end`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.23.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.23","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","iteration","outcome_id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.24.id","typeLabel":"string"},"iteration":{"type":"number","description":"0-indexed revision cycle, matching the corresponding `span.outcome_evaluation_start`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.24.iteration","typeLabel":"number"},"outcome_id":{"type":"string","description":"The `outc_` ID of the outcome being evaluated.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.24.outcome_id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this heartbeat was emitted.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.24.processed_at","typeLabel":"string"},"type":{"type":"string","const":"span.outcome_evaluation_ongoing","description":"Always `span.outcome_evaluation_ongoing`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.24.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.24","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","description","max_iterations","outcome_id","processed_at","rubric","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.id","typeLabel":"string"},"description":{"type":"string","description":"What the agent should produce. Copied from the input event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.description","typeLabel":"string"},"max_iterations":{"oneOf":[{"type":"number","description":"Evaluate-then-revise cycles before giving up. Default 3, max 20.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.max_iterations.oneOf.0","typeLabel":"number"},{"type":"null","description":"Evaluate-then-revise cycles before giving up. Default 3, max 20.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.max_iterations.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.max_iterations","typeLabel":"number | null"},"outcome_id":{"type":"string","description":"Server-generated `outc_` ID for this outcome. Referenced by `span.outcome_evaluation_*` events and the session's `outcome_evaluations` list.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.outcome_id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when the outcome was accepted.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.processed_at","typeLabel":"string"},"rubric":{"oneOf":[{"type":"object","description":"How to grade the outcome. File rubrics are currently resolved to their text content; clients should handle both variants.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of the rubric file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.rubric.oneOf.0.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.rubric.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.rubric.oneOf.0","typeLabel":"object"},{"type":"object","description":"How to grade the outcome. File rubrics are currently resolved to their text content; clients should handle both variants.","required":["content","type"],"properties":{"content":{"type":"string","description":"Rubric content. Plain text or markdown — the grader treats it as freeform text.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.rubric.oneOf.1.content","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.rubric.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.rubric.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.rubric","typeLabel":"object"},"type":{"type":"string","const":"user.define_outcome","description":"Always `user.define_outcome`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.25.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.25","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.26.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when the session was deleted.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.26.processed_at","typeLabel":"string"},"type":{"type":"string","const":"session.deleted","description":"Always `session.deleted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.26.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.26","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","agent_name","processed_at","session_thread_id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.27.id","typeLabel":"string"},"agent_name":{"type":"string","description":"Name of the agent the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.27.agent_name","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp of the status transition.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.27.processed_at","typeLabel":"string"},"session_thread_id":{"type":"string","description":"Public sthr_ ID of the thread that started running.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.27.session_thread_id","typeLabel":"string"},"type":{"type":"string","const":"session.thread_status_running","description":"Always `session.thread_status_running`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.27.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.27","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","agent_name","processed_at","session_thread_id","stop_details","stop_reason","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.id","typeLabel":"string"},"agent_name":{"type":"string","description":"Name of the agent the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.agent_name","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp of the status transition.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.processed_at","typeLabel":"string"},"session_thread_id":{"type":"string","description":"Public sthr_ ID of the thread that went idle.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.session_thread_id","typeLabel":"string"},"stop_details":{"oneOf":[{"type":"object","description":"Structured information about why the thread stopped. `null` when there is nothing more to report.","required":["category","explanation","type"],"properties":{"category":{"oneOf":[{"type":"string","enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"description":"The policy category that triggered the refusal, or `null` when there is no named category. New values can be added over time.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_details.oneOf.0.category.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"description":"The policy category that triggered the refusal, or `null` when there is no named category. New values can be added over time.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_details.oneOf.0.category.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_details.oneOf.0.category","typeLabel":"enum\u003cstring> | null"},"explanation":{"oneOf":[{"type":"string","description":"Human-readable explanation of the refusal, or `null` when none is available. The wording can change, so do not parse it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_details.oneOf.0.explanation.oneOf.0","typeLabel":"string"},{"type":"null","description":"Human-readable explanation of the refusal, or `null` when none is available. The wording can change, so do not parse it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_details.oneOf.0.explanation.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_details.oneOf.0.explanation","typeLabel":"string | null"},"type":{"type":"string","const":"refusal","description":"Always `refusal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_details.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_details.oneOf.0","typeLabel":"object"},{"type":"null","description":"Structured information about why the thread stopped. `null` when there is nothing more to report.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_details","typeLabel":"object | null"},"stop_reason":{"oneOf":[{"type":"object","description":"Why the thread stopped, as `stop_reason` of `session.status_idle`.","required":["type"],"properties":{"type":{"type":"string","const":"end_turn","description":"Always `end_turn`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.0","typeLabel":"object"},{"type":"object","description":"Why the thread stopped, as `stop_reason` of `session.status_idle`.","required":["event_ids","type"],"properties":{"event_ids":{"type":"array","items":{"type":"string","uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.1.event_ids.items.[INDEX]","typeLabel":"string"},"description":"The ids of events the agent is blocked on. Resolving fewer than all re-emits `session.status_idle` with the remainder.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.1.event_ids","typeLabel":"string[]"},"type":{"type":"string","const":"requires_action","description":"Always `requires_action`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.1","typeLabel":"object"},{"type":"object","description":"Why the thread stopped, as `stop_reason` of `session.status_idle`.","required":["type"],"properties":{"type":{"type":"string","const":"retries_exhausted","description":"Always `retries_exhausted`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.2","typeLabel":"object"},{"type":"object","description":"Why the thread stopped, as `stop_reason` of `session.status_idle`.","required":["type"],"properties":{"type":{"type":"string","const":"budget_reached","description":"Always `budget_reached`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.3","typeLabel":"object"},{"type":"object","description":"Why the thread stopped, as `stop_reason` of `session.status_idle`.","required":["type"],"properties":{"type":{"type":"string","const":"refusal","description":"Always `refusal`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.4.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.stop_reason","typeLabel":"object"},"type":{"type":"string","const":"session.thread_status_idle","description":"Always `session.thread_status_idle`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.28.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.28","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","agent_name","processed_at","session_thread_id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.29.id","typeLabel":"string"},"agent_name":{"type":"string","description":"Name of the agent the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.29.agent_name","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp of the status transition.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.29.processed_at","typeLabel":"string"},"session_thread_id":{"type":"string","description":"Public sthr_ ID of the thread that terminated.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.29.session_thread_id","typeLabel":"string"},"type":{"type":"string","const":"session.thread_status_terminated","description":"Always `session.thread_status_terminated`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.29.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.29","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","tool_use_id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.id","typeLabel":"string"},"tool_use_id":{"type":"string","description":"The id of the `agent.tool_use` event this result corresponds to, which can be found in the last `session.status_idle` [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids) `stop_reason.event_ids` field.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.tool_use_id","typeLabel":"string"},"type":{"type":"string","const":"user.tool_result","description":"Always `user.tool_result`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.type","typeLabel":"string"},"content":{"type":"array","items":{"oneOf":[{"type":"object","description":"Regular text content.","required":["text","type"],"properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Image content specified directly as base64 data or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the image data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded image data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the image (e.g., \"image/png\", \"image/jpeg\", \"image/gif\", \"image/webp\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the image to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the image data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"type":"string","const":"image","description":"Always `image`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Document content, either specified directly as base64 data, as text, or as a reference via a URL.","required":["source","type"],"properties":{"source":{"oneOf":[{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"Base64-encoded document data.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.0.data","typeLabel":"string"},"media_type":{"type":"string","description":"MIME type of the document (e.g., \"application/pdf\").","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.0.media_type","typeLabel":"string"},"type":{"type":"string","const":"base64","description":"Always `base64`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["data","media_type","type"],"properties":{"data":{"type":"string","description":"The plain text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.1.data","typeLabel":"string"},"media_type":{"type":"string","const":"text/plain","description":"MIME type of the text content. Must be \"text/plain\".","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.1.media_type","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["type","url"],"properties":{"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.2.type","typeLabel":"string"},"url":{"type":"string","description":"URL of the document to fetch.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.2.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.2","typeLabel":"object"},{"type":"object","description":"The source of the document data.","required":["file_id","type"],"properties":{"file_id":{"type":"string","description":"ID of a previously uploaded file.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.3.file_id","typeLabel":"string"},"type":{"type":"string","const":"file","description":"Always `file`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.source","typeLabel":"object"},"type":{"type":"string","const":"document","description":"Always `document`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.type","typeLabel":"string"},"context":{"oneOf":[{"type":"string","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional context about the document for the model.","uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The title of the document.","uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2.title","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"A block containing a web search result.","required":["citations","content","source","title","type"],"properties":{"citations":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether citations are enabled for this search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.3.citations.enabled","typeLabel":"boolean"}},"required":["enabled"],"description":"Citation settings for this search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.3.citations","typeLabel":"object"},"content":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.3.content.items.[INDEX].text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.3.content.items.[INDEX].type","typeLabel":"string"}},"required":["text","type"],"description":"Text content within a search result.","uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.3.content.items.[INDEX]","typeLabel":"object"},"description":"Array of text content blocks from the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.3.content","typeLabel":"object[]"},"source":{"type":"string","description":"The URL source of the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.3.source","typeLabel":"string"},"title":{"type":"string","description":"The title of the search result.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.3.title","typeLabel":"string"},"type":{"type":"string","const":"search_result","description":"Always `search_result`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.30.content.items.[INDEX]","typeLabel":"object"},"description":"The result content returned by the tool.","uniqueKey":"data.items.[INDEX].oneOf.30.content","typeLabel":"object[]"},"is_error":{"oneOf":[{"type":"boolean","description":"Whether the tool execution resulted in an error.","uniqueKey":"data.items.[INDEX].oneOf.30.is_error.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool execution resulted in an error.","uniqueKey":"data.items.[INDEX].oneOf.30.is_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.30.is_error","typeLabel":"boolean | null"},"processed_at":{"oneOf":[{"type":"string","description":"Timestamp when this result was processed.","uniqueKey":"data.items.[INDEX].oneOf.30.processed_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Timestamp when this result was processed.","uniqueKey":"data.items.[INDEX].oneOf.30.processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.30.processed_at","typeLabel":"string | null"},"session_thread_id":{"oneOf":[{"type":"string","description":"Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.","uniqueKey":"data.items.[INDEX].oneOf.30.session_thread_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.","uniqueKey":"data.items.[INDEX].oneOf.30.session_thread_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.30.session_thread_id","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.30","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","agent_name","processed_at","session_thread_id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.31.id","typeLabel":"string"},"agent_name":{"type":"string","description":"Name of the agent the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.31.agent_name","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp of the status transition.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.31.processed_at","typeLabel":"string"},"session_thread_id":{"type":"string","description":"Public sthr_ ID of the thread that is retrying.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.31.session_thread_id","typeLabel":"string"},"type":{"type":"string","const":"session.thread_status_rescheduled","description":"Always `session.thread_status_rescheduled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.31.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.31","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when the update was applied.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.processed_at","typeLabel":"string"},"type":{"type":"string","const":"session.updated","description":"Always `session.updated`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.type","typeLabel":"string"},"agent":{"oneOf":[{"type":"object","description":"The session's effective agent configuration after the update. Present only when the update changed `agent` (tools or mcp_servers); when present it is the full materialised snapshot, not a diff.","required":["id","description","execution_identity","mcp_servers","model","multiagent","name","skills","system","tools","type","version"],"properties":{"id":{"type":"string","description":"ID of the agent (`aprf_` ID).","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.id","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"The agent's description; null when it has none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The agent's description; null when it has none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.description","typeLabel":"string | null"},"execution_identity":{"oneOf":[{"type":"object","description":"Always `{\"type\": \"service_account\"}` on BMA.","required":["role_arn","type"],"properties":{"role_arn":{"type":"string","description":"The IAM role's ARN.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.execution_identity.oneOf.0.role_arn","typeLabel":"string"},"type":{"type":"string","const":"aws_role","description":"Always `aws_role`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.execution_identity.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.execution_identity.oneOf.0","typeLabel":"object"},{"type":"object","description":"Always `{\"type\": \"service_account\"}` on BMA.","required":["type"],"properties":{"type":{"type":"string","const":"service_account","description":"Always `service_account`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.execution_identity.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.execution_identity.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.execution_identity","typeLabel":"object"},"mcp_servers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The MCP server's name, which an `mcp_toolset` refers to by `mcp_server_name`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.mcp_servers.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.mcp_servers.items.[INDEX].type","typeLabel":"string"},"url":{"type":"string","description":"The MCP server's URL.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.mcp_servers.items.[INDEX].url","typeLabel":"string"}},"required":["name","type","url"],"description":"URL-based MCP server connection as returned in API responses.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.mcp_servers.items.[INDEX]","typeLabel":"object"},"description":"The agent's MCP servers, or `[]` when the session cleared them.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.mcp_servers","typeLabel":"object[]"},"model":{"type":"object","properties":{"id":{"type":"string","description":"The model that will power your agent.\n\nSee [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.id","typeLabel":"string"},"effort":{"oneOf":[{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"low","description":"Always `low`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort.oneOf.0","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"medium","description":"Always `medium`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort.oneOf.1","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"high","description":"Always `high`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort.oneOf.2","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"xhigh","description":"Always `xhigh`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort.oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort.oneOf.3","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"max","description":"Always `max`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort.oneOf.4.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort.oneOf.4","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.effort","typeLabel":"object"},"inference_geo":{"type":"string","description":"**Not supported on BMA:** Returned as null.\n\nGeographic region for model inference. When unset, requests fall through to the workspace's default_inference_geo.","x-bma-unsupported":"Returned as null.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.inference_geo","typeLabel":"string"},"speed":{"type":"string","enum":["standard","fast"],"description":"**Not supported on BMA:** Returned as null; requests run at standard speed.\n\nInference speed mode. `fast` provides significantly faster output token generation at premium pricing. Defaults to `standard`. Not all models support `fast`; invalid combinations are rejected at create time.","x-bma-unsupported":"Returned as null; requests run at standard speed.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model.speed","typeLabel":"enum\u003cstring>"}},"required":["id"],"description":"The model the session uses: the agent's, or the session's `agent_with_overrides.model`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.model","typeLabel":"object"},"multiagent":{"oneOf":[{"type":"object","description":"Always null on BMA, which runs single-agent sessions.","required":["agents","type"],"properties":{"agents":{"type":"array","items":{"oneOf":[{"type":"object","description":"Resolved `agent` definition for a single `session_thread`. Snapshot of the agent at thread creation time. The multiagent roster is not repeated here; read it from `Session.agent`.","required":["id","description","execution_identity","mcp_servers","model","name","skills","system","tools","type","version"],"properties":{"id":{"type":"string","description":"ID of the agent the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.id","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"The agent's description; null when it has none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The agent's description; null when it has none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.description","typeLabel":"string | null"},"execution_identity":{"oneOf":[{"type":"object","description":"Execution principal snapshotted from the agent at session creation. Always present; `{\"type\": \"service_account\"}` when runs carry no customer-named principal.","required":["role_arn","type"],"properties":{"role_arn":{"type":"string","description":"The IAM role's ARN.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.execution_identity.oneOf.0.role_arn","typeLabel":"string"},"type":{"type":"string","const":"aws_role","description":"Always `aws_role`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.execution_identity.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.execution_identity.oneOf.0","typeLabel":"object"},{"type":"object","description":"Execution principal snapshotted from the agent at session creation. Always present; `{\"type\": \"service_account\"}` when runs carry no customer-named principal.","required":["type"],"properties":{"type":{"type":"string","const":"service_account","description":"Always `service_account`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.execution_identity.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.execution_identity.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.execution_identity","typeLabel":"object"},"mcp_servers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The MCP server's name, which an `mcp_toolset` refers to by `mcp_server_name`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.mcp_servers.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.mcp_servers.items.[INDEX].type","typeLabel":"string"},"url":{"type":"string","description":"The MCP server's URL.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.mcp_servers.items.[INDEX].url","typeLabel":"string"}},"required":["name","type","url"],"description":"URL-based MCP server connection as returned in API responses.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.mcp_servers.items.[INDEX]","typeLabel":"object"},"description":"The agent's MCP servers.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.mcp_servers","typeLabel":"object[]"},"model":{"type":"object","properties":{"id":{"type":"string","description":"The model that will power your agent.\n\nSee [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.id","typeLabel":"string"},"effort":{"oneOf":[{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"low","description":"Always `low`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort.oneOf.0","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"medium","description":"Always `medium`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort.oneOf.1","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"high","description":"Always `high`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort.oneOf.2","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"xhigh","description":"Always `xhigh`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort.oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort.oneOf.3","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"max","description":"Always `max`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort.oneOf.4.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort.oneOf.4","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.effort","typeLabel":"object"},"inference_geo":{"type":"string","description":"**Not supported on BMA:** Returned as null.\n\nGeographic region for model inference. When unset, requests fall through to the workspace's default_inference_geo.","x-bma-unsupported":"Returned as null.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.inference_geo","typeLabel":"string"},"speed":{"type":"string","enum":["standard","fast"],"description":"**Not supported on BMA:** Returned as null; requests run at standard speed.\n\nInference speed mode. `fast` provides significantly faster output token generation at premium pricing. Defaults to `standard`. Not all models support `fast`; invalid combinations are rejected at create time.","x-bma-unsupported":"Returned as null; requests run at standard speed.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model.speed","typeLabel":"enum\u003cstring>"}},"required":["id"],"description":"Model identifier and configuration.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.model","typeLabel":"object"},"name":{"type":"string","description":"The agent's name.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.name","typeLabel":"string"},"skills":{"type":"array","items":{"oneOf":[{"type":"object","description":"A resolved Anthropic-managed skill.","required":["skill_id","type","version"],"properties":{"skill_id":{"type":"string","description":"ID of the Anthropic skill. BMA hosts no Anthropic skills, so sessions never contain one.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.skills.items.[INDEX].oneOf.0.skill_id","typeLabel":"string"},"type":{"type":"string","const":"anthropic","description":"Always `anthropic`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.skills.items.[INDEX].oneOf.0.type","typeLabel":"string"},"version":{"type":"string","description":"The skill version.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.skills.items.[INDEX].oneOf.0.version","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.skills.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A resolved user-created custom skill.","required":["skill_id","type","version"],"properties":{"skill_id":{"type":"string","description":"ID of the skill (`skl_` ID).","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.skills.items.[INDEX].oneOf.1.skill_id","typeLabel":"string"},"type":{"type":"string","const":"custom","description":"Always `custom`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.skills.items.[INDEX].oneOf.1.type","typeLabel":"string"},"version":{"type":"string","description":"The skill version the session uses (`skr_` ID), resolved when the session was created.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.skills.items.[INDEX].oneOf.1.version","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.skills.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.skills.items.[INDEX]","typeLabel":"object"},"description":"The agent's skills with their versions.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.skills","typeLabel":"object[]"},"system":{"oneOf":[{"type":"string","description":"The agent's system prompt; null when there is none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.system.oneOf.0","typeLabel":"string"},{"type":"null","description":"The agent's system prompt; null when there is none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.system.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.system","typeLabel":"string | null"},"tools":{"type":"array","items":{"oneOf":[{"type":"object","description":"The built-in agent toolset (bash, file and web tools) with its per-tool settings.","required":["configs","default_config","type"],"properties":{"configs":{"type":"array","items":{"type":"any","description":"Configuration for a specific agent tool.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX]","typeLabel":"any"},"description":"Per-tool settings that differ from `default_config`, one entry per named tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.0.configs","typeLabel":"any[]"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the toolset's tools are available unless a `configs` entry says otherwise.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.0.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.0.default_config.permission_policy","typeLabel":"any"}},"required":["enabled","permission_policy"],"description":"Resolved default configuration for agent tools.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.0.default_config","typeLabel":"object"},"type":{"type":"string","const":"agent_toolset_20260401","description":"Always `agent_toolset_20260401`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"The tools of one MCP server of the agent, with per-tool settings.","required":["configs","default_config","mcp_server_name","type"],"properties":{"configs":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].enabled","typeLabel":"boolean"},"name":{"type":"string","description":"Name of the MCP tool, as the server lists it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].permission_policy","typeLabel":"any"}},"required":["enabled","name","permission_policy"],"description":"Resolved configuration for a specific MCP tool.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX]","typeLabel":"object"},"description":"Per-tool settings that differ from `default_config`, one entry per named tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1.configs","typeLabel":"object[]"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the server's tools are available unless a `configs` entry says otherwise.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1.default_config.permission_policy","typeLabel":"any"}},"required":["enabled","permission_policy"],"description":"Resolved default configuration for all tools from an MCP server.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1.default_config","typeLabel":"object"},"mcp_server_name":{"type":"string","description":"Name of the agent's MCP server (`mcp_servers[].name`) whose tools this toolset exposes.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1.mcp_server_name","typeLabel":"string"},"type":{"type":"string","const":"mcp_toolset","description":"Always `mcp_toolset`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A custom tool as returned in API responses.","required":["description","input_schema","name","type"],"properties":{"description":{"type":"string","description":"What the tool does, shown to the model.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.2.description","typeLabel":"string"},"input_schema":{"type":"object","properties":{"type":{"type":"string","const":"object","description":"Always `object`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.type","typeLabel":"string"},"properties":{"type":"any","description":"JSON Schema of each input member, keyed by member name.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.properties","typeLabel":"any"},"required":{"type":"any","description":"Names of the input members the model must provide.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.required","typeLabel":"any"}},"required":["type"],"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.additionalProperties","typeLabel":"any"},"description":"JSON Schema for custom tool input parameters.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.2.input_schema","typeLabel":"object"},"name":{"type":"string","description":"Name of the tool; the agent's calls name it in `agent.custom_tool_use`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.2.name","typeLabel":"string"},"type":{"type":"string","const":"custom","description":"Always `custom`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools.items.[INDEX]","typeLabel":"object"},"description":"The agent's tools.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.tools","typeLabel":"object[]"},"type":{"description":"Always `agent`.","type":"string","const":"agent","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.type","typeLabel":"string"},"version":{"type":"number","description":"The agent version the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0.version","typeLabel":"number"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Platform advisor roster entry: a model the session's primary thread may consult mid-turn.","required":["model","type"],"properties":{"model":{"type":"string","description":"The advisor model id.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.1.model","typeLabel":"string"},"type":{"type":"string","const":"advisor","description":"Always `advisor`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents.items.[INDEX]","typeLabel":"object"},"description":"Full `agent` definitions the coordinator may spawn as session threads.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.agents","typeLabel":"object[]"},"type":{"type":"string","const":"coordinator","description":"Always `coordinator`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.0","typeLabel":"object"},{"type":"object","description":"Always null on BMA, which runs single-agent sessions.","required":["advisor","subagents","type","workflows"],"properties":{"advisor":{"oneOf":[{"type":"object","description":"Whether the session's primary thread can consult an advisor model.","required":["model","type"],"properties":{"model":{"type":"string","description":"The advisor model id.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.advisor.oneOf.0.model","typeLabel":"string"},"type":{"type":"string","const":"enabled","description":"Always `enabled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.advisor.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.advisor.oneOf.0","typeLabel":"object"},{"type":"object","description":"Whether the session's primary thread can consult an advisor model.","required":["type"],"properties":{"type":{"type":"string","const":"disabled","description":"Always `disabled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.advisor.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.advisor.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.advisor","typeLabel":"object"},"subagents":{"oneOf":[{"type":"object","description":"Whether the agent can spawn session threads.","required":["inline_agents","predefined_agents","type"],"properties":{"inline_agents":{"oneOf":[{"type":"object","description":"Whether the agent can define inline agents, which are not saved, when it spawns session threads.","required":["type"],"properties":{"type":{"type":"string","const":"enabled","description":"Always `enabled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.inline_agents.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.inline_agents.oneOf.0","typeLabel":"object"},{"type":"object","description":"Whether the agent can define inline agents, which are not saved, when it spawns session threads.","required":["type"],"properties":{"type":{"type":"string","const":"disabled","description":"Always `disabled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.inline_agents.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.inline_agents.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.inline_agents","typeLabel":"object"},"predefined_agents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"ID of the agent the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].id","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"The agent's description; null when it has none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The agent's description; null when it has none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].description","typeLabel":"string | null"},"execution_identity":{"oneOf":[{"type":"object","description":"Execution principal snapshotted from the agent at session creation. Always present; `{\"type\": \"service_account\"}` when runs carry no customer-named principal.","required":["role_arn","type"],"properties":{"role_arn":{"type":"string","description":"The IAM role's ARN.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].execution_identity.oneOf.0.role_arn","typeLabel":"string"},"type":{"type":"string","const":"aws_role","description":"Always `aws_role`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].execution_identity.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].execution_identity.oneOf.0","typeLabel":"object"},{"type":"object","description":"Execution principal snapshotted from the agent at session creation. Always present; `{\"type\": \"service_account\"}` when runs carry no customer-named principal.","required":["type"],"properties":{"type":{"type":"string","const":"service_account","description":"Always `service_account`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].execution_identity.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].execution_identity.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].execution_identity","typeLabel":"object"},"mcp_servers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The MCP server's name, which an `mcp_toolset` refers to by `mcp_server_name`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].mcp_servers.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].mcp_servers.items.[INDEX].type","typeLabel":"string"},"url":{"type":"string","description":"The MCP server's URL.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].mcp_servers.items.[INDEX].url","typeLabel":"string"}},"required":["name","type","url"],"description":"URL-based MCP server connection as returned in API responses.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].mcp_servers.items.[INDEX]","typeLabel":"object"},"description":"The agent's MCP servers.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].mcp_servers","typeLabel":"object[]"},"model":{"type":"object","properties":{"id":{"type":"string","description":"The model that will power your agent.\n\nSee [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.id","typeLabel":"string"},"effort":{"oneOf":[{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"low","description":"Always `low`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.0","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"medium","description":"Always `medium`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.1","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"high","description":"Always `high`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.2","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"xhigh","description":"Always `xhigh`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.3","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"max","description":"Always `max`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.4.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.4","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.effort","typeLabel":"object"},"inference_geo":{"type":"string","description":"**Not supported on BMA:** Returned as null.\n\nGeographic region for model inference. When unset, requests fall through to the workspace's default_inference_geo.","x-bma-unsupported":"Returned as null.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.inference_geo","typeLabel":"string"},"speed":{"type":"string","enum":["standard","fast"],"description":"**Not supported on BMA:** Returned as null; requests run at standard speed.\n\nInference speed mode. `fast` provides significantly faster output token generation at premium pricing. Defaults to `standard`. Not all models support `fast`; invalid combinations are rejected at create time.","x-bma-unsupported":"Returned as null; requests run at standard speed.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model.speed","typeLabel":"enum\u003cstring>"}},"required":["id"],"description":"Model identifier and configuration.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].model","typeLabel":"object"},"name":{"type":"string","description":"The agent's name.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].name","typeLabel":"string"},"skills":{"type":"array","items":{"oneOf":[{"type":"object","description":"A resolved Anthropic-managed skill.","required":["skill_id","type","version"],"properties":{"skill_id":{"type":"string","description":"ID of the Anthropic skill. BMA hosts no Anthropic skills, so sessions never contain one.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.0.skill_id","typeLabel":"string"},"type":{"type":"string","const":"anthropic","description":"Always `anthropic`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.0.type","typeLabel":"string"},"version":{"type":"string","description":"The skill version.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.0.version","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A resolved user-created custom skill.","required":["skill_id","type","version"],"properties":{"skill_id":{"type":"string","description":"ID of the skill (`skl_` ID).","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.1.skill_id","typeLabel":"string"},"type":{"type":"string","const":"custom","description":"Always `custom`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.1.type","typeLabel":"string"},"version":{"type":"string","description":"The skill version the session uses (`skr_` ID), resolved when the session was created.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.1.version","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX]","typeLabel":"object"},"description":"The agent's skills with their versions.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].skills","typeLabel":"object[]"},"system":{"oneOf":[{"type":"string","description":"The agent's system prompt; null when there is none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].system.oneOf.0","typeLabel":"string"},{"type":"null","description":"The agent's system prompt; null when there is none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].system.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].system","typeLabel":"string | null"},"tools":{"type":"array","items":{"oneOf":[{"type":"object","description":"The built-in agent toolset (bash, file and web tools) with its per-tool settings.","required":["configs","default_config","type"],"properties":{"configs":{"type":"array","items":{"type":"any","description":"Configuration for a specific agent tool.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs.items.[INDEX]","typeLabel":"any"},"description":"Per-tool settings that differ from `default_config`, one entry per named tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs","typeLabel":"any[]"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the toolset's tools are available unless a `configs` entry says otherwise.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.default_config.permission_policy","typeLabel":"any"}},"required":["enabled","permission_policy"],"description":"Resolved default configuration for agent tools.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.default_config","typeLabel":"object"},"type":{"type":"string","const":"agent_toolset_20260401","description":"Always `agent_toolset_20260401`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"The tools of one MCP server of the agent, with per-tool settings.","required":["configs","default_config","mcp_server_name","type"],"properties":{"configs":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.configs.items.[INDEX].enabled","typeLabel":"boolean"},"name":{"type":"string","description":"Name of the MCP tool, as the server lists it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.configs.items.[INDEX].name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.configs.items.[INDEX].permission_policy","typeLabel":"any"}},"required":["enabled","name","permission_policy"],"description":"Resolved configuration for a specific MCP tool.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.configs.items.[INDEX]","typeLabel":"object"},"description":"Per-tool settings that differ from `default_config`, one entry per named tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.configs","typeLabel":"object[]"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the server's tools are available unless a `configs` entry says otherwise.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.default_config.permission_policy","typeLabel":"any"}},"required":["enabled","permission_policy"],"description":"Resolved default configuration for all tools from an MCP server.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.default_config","typeLabel":"object"},"mcp_server_name":{"type":"string","description":"Name of the agent's MCP server (`mcp_servers[].name`) whose tools this toolset exposes.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.mcp_server_name","typeLabel":"string"},"type":{"type":"string","const":"mcp_toolset","description":"Always `mcp_toolset`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A custom tool as returned in API responses.","required":["description","input_schema","name","type"],"properties":{"description":{"type":"string","description":"What the tool does, shown to the model.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.description","typeLabel":"string"},"input_schema":{"type":"object","properties":{"type":{"type":"string","const":"object","description":"Always `object`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.input_schema.type","typeLabel":"string"},"properties":{"type":"any","description":"JSON Schema of each input member, keyed by member name.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.input_schema.properties","typeLabel":"any"},"required":{"type":"any","description":"Names of the input members the model must provide.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.input_schema.required","typeLabel":"any"}},"required":["type"],"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.input_schema.additionalProperties","typeLabel":"any"},"description":"JSON Schema for custom tool input parameters.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.input_schema","typeLabel":"object"},"name":{"type":"string","description":"Name of the tool; the agent's calls name it in `agent.custom_tool_use`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.name","typeLabel":"string"},"type":{"type":"string","const":"custom","description":"Always `custom`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX]","typeLabel":"object"},"description":"The agent's tools.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].tools","typeLabel":"object[]"},"type":{"description":"Always `agent`.","type":"string","const":"agent","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].type","typeLabel":"string"},"version":{"type":"number","description":"The agent version the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX].version","typeLabel":"number"}},"required":["id","description","execution_identity","mcp_servers","model","name","skills","system","tools","type","version"],"description":"Resolved `agent` definition for a single `session_thread`. Snapshot of the agent at thread creation time. The multiagent roster is not repeated here; read it from `Session.agent`.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents.items.[INDEX]","typeLabel":"object"},"description":"Full `agent` definitions of the predefined agents, which are saved agents that this agent can spawn as session threads.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.predefined_agents","typeLabel":"object[]"},"type":{"type":"string","const":"enabled","description":"Always `enabled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.0","typeLabel":"object"},{"type":"object","description":"Whether the agent can spawn session threads.","required":["type"],"properties":{"type":{"type":"string","const":"disabled","description":"Always `disabled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.subagents","typeLabel":"object"},"type":{"type":"string","const":"multiagent_20261001","description":"Always `multiagent_20261001`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.type","typeLabel":"string"},"workflows":{"oneOf":[{"type":"object","description":"Whether the agent can start workflow runs.","required":["inline_agents","predefined_agents","type"],"properties":{"inline_agents":{"oneOf":[{"type":"object","description":"Whether a run's plan can define inline agents, which are not saved.","required":["type"],"properties":{"type":{"type":"string","const":"enabled","description":"Always `enabled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.inline_agents.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.inline_agents.oneOf.0","typeLabel":"object"},{"type":"object","description":"Whether a run's plan can define inline agents, which are not saved.","required":["type"],"properties":{"type":{"type":"string","const":"disabled","description":"Always `disabled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.inline_agents.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.inline_agents.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.inline_agents","typeLabel":"object"},"predefined_agents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"ID of the agent the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].id","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"The agent's description; null when it has none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The agent's description; null when it has none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].description","typeLabel":"string | null"},"execution_identity":{"oneOf":[{"type":"object","description":"Execution principal snapshotted from the agent at session creation. Always present; `{\"type\": \"service_account\"}` when runs carry no customer-named principal.","required":["role_arn","type"],"properties":{"role_arn":{"type":"string","description":"The IAM role's ARN.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].execution_identity.oneOf.0.role_arn","typeLabel":"string"},"type":{"type":"string","const":"aws_role","description":"Always `aws_role`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].execution_identity.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].execution_identity.oneOf.0","typeLabel":"object"},{"type":"object","description":"Execution principal snapshotted from the agent at session creation. Always present; `{\"type\": \"service_account\"}` when runs carry no customer-named principal.","required":["type"],"properties":{"type":{"type":"string","const":"service_account","description":"Always `service_account`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].execution_identity.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].execution_identity.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].execution_identity","typeLabel":"object"},"mcp_servers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The MCP server's name, which an `mcp_toolset` refers to by `mcp_server_name`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].mcp_servers.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","const":"url","description":"Always `url`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].mcp_servers.items.[INDEX].type","typeLabel":"string"},"url":{"type":"string","description":"The MCP server's URL.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].mcp_servers.items.[INDEX].url","typeLabel":"string"}},"required":["name","type","url"],"description":"URL-based MCP server connection as returned in API responses.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].mcp_servers.items.[INDEX]","typeLabel":"object"},"description":"The agent's MCP servers.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].mcp_servers","typeLabel":"object[]"},"model":{"type":"object","properties":{"id":{"type":"string","description":"The model that will power your agent.\n\nSee [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.id","typeLabel":"string"},"effort":{"oneOf":[{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"low","description":"Always `low`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.0","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"medium","description":"Always `medium`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.1","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"high","description":"Always `high`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.2","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"xhigh","description":"Always `xhigh`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.3","typeLabel":"object"},{"type":"object","description":"The effort level the agent was saved with as `{\"type\": \u003clevel>}`; null when the agent names none.","required":["type"],"properties":{"type":{"type":"string","const":"max","description":"Always `max`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.4.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort.oneOf.4","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.effort","typeLabel":"object"},"inference_geo":{"type":"string","description":"**Not supported on BMA:** Returned as null.\n\nGeographic region for model inference. When unset, requests fall through to the workspace's default_inference_geo.","x-bma-unsupported":"Returned as null.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.inference_geo","typeLabel":"string"},"speed":{"type":"string","enum":["standard","fast"],"description":"**Not supported on BMA:** Returned as null; requests run at standard speed.\n\nInference speed mode. `fast` provides significantly faster output token generation at premium pricing. Defaults to `standard`. Not all models support `fast`; invalid combinations are rejected at create time.","x-bma-unsupported":"Returned as null; requests run at standard speed.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model.speed","typeLabel":"enum\u003cstring>"}},"required":["id"],"description":"Model identifier and configuration.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].model","typeLabel":"object"},"name":{"type":"string","description":"The agent's name.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].name","typeLabel":"string"},"skills":{"type":"array","items":{"oneOf":[{"type":"object","description":"A resolved Anthropic-managed skill.","required":["skill_id","type","version"],"properties":{"skill_id":{"type":"string","description":"ID of the Anthropic skill. BMA hosts no Anthropic skills, so sessions never contain one.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.0.skill_id","typeLabel":"string"},"type":{"type":"string","const":"anthropic","description":"Always `anthropic`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.0.type","typeLabel":"string"},"version":{"type":"string","description":"The skill version.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.0.version","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A resolved user-created custom skill.","required":["skill_id","type","version"],"properties":{"skill_id":{"type":"string","description":"ID of the skill (`skl_` ID).","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.1.skill_id","typeLabel":"string"},"type":{"type":"string","const":"custom","description":"Always `custom`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.1.type","typeLabel":"string"},"version":{"type":"string","description":"The skill version the session uses (`skr_` ID), resolved when the session was created.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.1.version","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].skills.items.[INDEX]","typeLabel":"object"},"description":"The agent's skills with their versions.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].skills","typeLabel":"object[]"},"system":{"oneOf":[{"type":"string","description":"The agent's system prompt; null when there is none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].system.oneOf.0","typeLabel":"string"},{"type":"null","description":"The agent's system prompt; null when there is none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].system.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].system","typeLabel":"string | null"},"tools":{"type":"array","items":{"oneOf":[{"type":"object","description":"The built-in agent toolset (bash, file and web tools) with its per-tool settings.","required":["configs","default_config","type"],"properties":{"configs":{"type":"array","items":{"type":"any","description":"Configuration for a specific agent tool.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs.items.[INDEX]","typeLabel":"any"},"description":"Per-tool settings that differ from `default_config`, one entry per named tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.configs","typeLabel":"any[]"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the toolset's tools are available unless a `configs` entry says otherwise.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.default_config.permission_policy","typeLabel":"any"}},"required":["enabled","permission_policy"],"description":"Resolved default configuration for agent tools.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.default_config","typeLabel":"object"},"type":{"type":"string","const":"agent_toolset_20260401","description":"Always `agent_toolset_20260401`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"The tools of one MCP server of the agent, with per-tool settings.","required":["configs","default_config","mcp_server_name","type"],"properties":{"configs":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.configs.items.[INDEX].enabled","typeLabel":"boolean"},"name":{"type":"string","description":"Name of the MCP tool, as the server lists it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.configs.items.[INDEX].name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.configs.items.[INDEX].permission_policy","typeLabel":"any"}},"required":["enabled","name","permission_policy"],"description":"Resolved configuration for a specific MCP tool.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.configs.items.[INDEX]","typeLabel":"object"},"description":"Per-tool settings that differ from `default_config`, one entry per named tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.configs","typeLabel":"object[]"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the server's tools are available unless a `configs` entry says otherwise.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.default_config.permission_policy","typeLabel":"any"}},"required":["enabled","permission_policy"],"description":"Resolved default configuration for all tools from an MCP server.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.default_config","typeLabel":"object"},"mcp_server_name":{"type":"string","description":"Name of the agent's MCP server (`mcp_servers[].name`) whose tools this toolset exposes.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.mcp_server_name","typeLabel":"string"},"type":{"type":"string","const":"mcp_toolset","description":"Always `mcp_toolset`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A custom tool as returned in API responses.","required":["description","input_schema","name","type"],"properties":{"description":{"type":"string","description":"What the tool does, shown to the model.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.description","typeLabel":"string"},"input_schema":{"type":"object","properties":{"type":{"type":"string","const":"object","description":"Always `object`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.input_schema.type","typeLabel":"string"},"properties":{"type":"any","description":"JSON Schema of each input member, keyed by member name.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.input_schema.properties","typeLabel":"any"},"required":{"type":"any","description":"Names of the input members the model must provide.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.input_schema.required","typeLabel":"any"}},"required":["type"],"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.input_schema.additionalProperties","typeLabel":"any"},"description":"JSON Schema for custom tool input parameters.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.input_schema","typeLabel":"object"},"name":{"type":"string","description":"Name of the tool; the agent's calls name it in `agent.custom_tool_use`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.name","typeLabel":"string"},"type":{"type":"string","const":"custom","description":"Always `custom`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools.items.[INDEX]","typeLabel":"object"},"description":"The agent's tools.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].tools","typeLabel":"object[]"},"type":{"description":"Always `agent`.","type":"string","const":"agent","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].type","typeLabel":"string"},"version":{"type":"number","description":"The agent version the thread runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX].version","typeLabel":"number"}},"required":["id","description","execution_identity","mcp_servers","model","name","skills","system","tools","type","version"],"description":"Resolved `agent` definition for a single `session_thread`. Snapshot of the agent at thread creation time. The multiagent roster is not repeated here; read it from `Session.agent`.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents.items.[INDEX]","typeLabel":"object"},"description":"Full `agent` definitions of the predefined agents, which are saved agents that a run's plan can use.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.predefined_agents","typeLabel":"object[]"},"type":{"type":"string","const":"enabled","description":"Always `enabled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.0","typeLabel":"object"},{"type":"object","description":"Whether the agent can start workflow runs.","required":["type"],"properties":{"type":{"type":"string","const":"disabled","description":"Always `disabled`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1.workflows","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.1","typeLabel":"object"},{"type":"null","description":"Always null on BMA, which runs single-agent sessions.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.multiagent","typeLabel":"object · object · null"},"name":{"type":"string","description":"The agent's name.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.name","typeLabel":"string"},"skills":{"type":"array","items":{"oneOf":[{"type":"object","description":"A resolved Anthropic-managed skill.","required":["skill_id","type","version"],"properties":{"skill_id":{"type":"string","description":"ID of the Anthropic skill. BMA hosts no Anthropic skills, so sessions never contain one.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.skills.items.[INDEX].oneOf.0.skill_id","typeLabel":"string"},"type":{"type":"string","const":"anthropic","description":"Always `anthropic`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.skills.items.[INDEX].oneOf.0.type","typeLabel":"string"},"version":{"type":"string","description":"The skill version.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.skills.items.[INDEX].oneOf.0.version","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.skills.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A resolved user-created custom skill.","required":["skill_id","type","version"],"properties":{"skill_id":{"type":"string","description":"ID of the skill (`skl_` ID).","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.skills.items.[INDEX].oneOf.1.skill_id","typeLabel":"string"},"type":{"type":"string","const":"custom","description":"Always `custom`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.skills.items.[INDEX].oneOf.1.type","typeLabel":"string"},"version":{"type":"string","description":"The skill version the session uses (`skr_` ID), resolved when the session was created.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.skills.items.[INDEX].oneOf.1.version","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.skills.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.skills.items.[INDEX]","typeLabel":"object"},"description":"The session's skills with their resolved versions. Every entry is a `custom` skill and also carries `id`, which repeats `skill_id`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.skills","typeLabel":"object[]"},"system":{"oneOf":[{"type":"string","description":"The system prompt: the agent's, or the session's override; null when there is none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.system.oneOf.0","typeLabel":"string"},{"type":"null","description":"The system prompt: the agent's, or the session's override; null when there is none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.system.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.system","typeLabel":"string | null"},"tools":{"type":"array","items":{"oneOf":[{"type":"object","description":"The built-in agent toolset (bash, file and web tools) with its per-tool settings.","required":["configs","default_config","type"],"properties":{"configs":{"type":"array","items":{"oneOf":[{"type":"object","description":"Configuration for a specific agent tool.","required":["enabled","name","permission_policy","type"],"properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.0.enabled","typeLabel":"boolean"},"name":{"type":"string","const":"bash","description":"Always `bash`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.0.name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.0.permission_policy","typeLabel":"any"},"type":{"type":"string","const":"bash","description":"Always `bash`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Configuration for a specific agent tool.","required":["enabled","name","permission_policy","type"],"properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.1.enabled","typeLabel":"boolean"},"name":{"type":"string","const":"edit","description":"Always `edit`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.1.name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.1.permission_policy","typeLabel":"any"},"type":{"type":"string","const":"edit","description":"Always `edit`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Configuration for a specific agent tool.","required":["enabled","name","permission_policy","type"],"properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.2.enabled","typeLabel":"boolean"},"name":{"type":"string","const":"read","description":"Always `read`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.2.name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.2.permission_policy","typeLabel":"any"},"type":{"type":"string","const":"read","description":"Always `read`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"Configuration for a specific agent tool.","required":["enabled","name","permission_policy","type"],"properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.3.enabled","typeLabel":"boolean"},"name":{"type":"string","const":"write","description":"Always `write`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.3.name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.3.permission_policy","typeLabel":"any"},"type":{"type":"string","const":"write","description":"Always `write`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"Configuration for a specific agent tool.","required":["enabled","name","permission_policy","type"],"properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.4.enabled","typeLabel":"boolean"},"name":{"type":"string","const":"glob","description":"Always `glob`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.4.name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.4.permission_policy","typeLabel":"any"},"type":{"type":"string","const":"glob","description":"Always `glob`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.4.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","description":"Configuration for a specific agent tool.","required":["enabled","name","permission_policy","type"],"properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.5.enabled","typeLabel":"boolean"},"name":{"type":"string","const":"grep","description":"Always `grep`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.5.name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.5.permission_policy","typeLabel":"any"},"type":{"type":"string","const":"grep","description":"Always `grep`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.5.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","description":"Configuration for a specific agent tool.","required":["enabled","name","permission_policy","type","url_sources"],"properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.enabled","typeLabel":"boolean"},"name":{"type":"string","const":"web_fetch","description":"Always `web_fetch`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.permission_policy","typeLabel":"any"},"type":{"type":"string","const":"web_fetch","description":"Always `web_fetch`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.type","typeLabel":"string"},"url_sources":{"type":"any","description":"**Not supported on BMA:** Always null; BMA's `web_fetch` may fetch a URL from any source.\n\nWhich sources contribute URLs the tool may fetch, always in the object form. Null when not set, which allows every source.","x-bma-unsupported":"Always null; BMA's `web_fetch` may fetch a URL from any source.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.url_sources","typeLabel":"any"},"allowed_domains":{"type":"array","items":{"type":"string","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.allowed_domains.items.[INDEX]","typeLabel":"string"},"x-bma-unsupported":"Never returned; BMA does not restrict the domains `web_fetch` fetches from.","description":"**Not supported on BMA:** Never returned; BMA does not restrict the domains `web_fetch` fetches from.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.allowed_domains","typeLabel":"string[]"},"blocked_domains":{"type":"array","items":{"type":"string","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.blocked_domains.items.[INDEX]","typeLabel":"string"},"x-bma-unsupported":"Never returned; BMA does not restrict the domains `web_fetch` fetches from.","description":"**Not supported on BMA:** Never returned; BMA does not restrict the domains `web_fetch` fetches from.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.blocked_domains","typeLabel":"string[]"},"max_content_tokens":{"oneOf":[{"type":"number","x-bma-unsupported":"Never returned; BMA returns fetched content whole.","description":"**Not supported on BMA:** Never returned; BMA returns fetched content whole.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.max_content_tokens.oneOf.0","typeLabel":"number"},{"type":"null","x-bma-unsupported":"Never returned; BMA returns fetched content whole.","description":"**Not supported on BMA:** Never returned; BMA returns fetched content whole.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.max_content_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6.max_content_tokens","typeLabel":"number | null"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","description":"Configuration for a specific agent tool.","required":["enabled","name","permission_policy","type"],"properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.7.enabled","typeLabel":"boolean"},"name":{"type":"string","const":"web_search","description":"Always `web_search`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.7.name","typeLabel":"string"},"permission_policy":{"type":"any","description":"Permission policy for tool execution.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.7.permission_policy","typeLabel":"any"},"type":{"type":"string","const":"web_search","description":"Always `web_search`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.7.type","typeLabel":"string"},"allowed_domains":{"type":"array","items":{"type":"string","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.7.allowed_domains.items.[INDEX]","typeLabel":"string"},"description":"Domains search results may come from; when set, others are left out.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.7.allowed_domains","typeLabel":"string[]"},"blocked_domains":{"type":"array","items":{"type":"string","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.7.blocked_domains.items.[INDEX]","typeLabel":"string"},"description":"Domains search results may not come from.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.7.blocked_domains","typeLabel":"string[]"},"user_location":{"type":"any","description":"Approximate user location for search result localization.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.7.user_location","typeLabel":"any"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX].oneOf.7","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs.items.[INDEX]","typeLabel":"object"},"description":"Per-tool settings that differ from `default_config`, one entry per named tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.configs","typeLabel":"object[]"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the toolset's tools are available unless a `configs` entry says otherwise.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"oneOf":[{"type":"object","description":"Permission policy for tool execution.","required":["type"],"properties":{"type":{"type":"string","const":"always_allow","description":"Always `always_allow`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.default_config.permission_policy.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.default_config.permission_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Permission policy for tool execution.","required":["type"],"properties":{"type":{"type":"string","const":"always_ask","description":"Always `always_ask`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.default_config.permission_policy.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.default_config.permission_policy.oneOf.1","typeLabel":"object"},{"type":"object","description":"Permission policy for tool execution.","required":["type"],"properties":{"type":{"type":"string","const":"auto","description":"Always `auto`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.default_config.permission_policy.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.default_config.permission_policy.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.default_config.permission_policy","typeLabel":"object"}},"required":["enabled","permission_policy"],"description":"Resolved default configuration for agent tools.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.default_config","typeLabel":"object"},"type":{"type":"string","const":"agent_toolset_20260401","description":"Always `agent_toolset_20260401`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"The tools of one MCP server of the agent, with per-tool settings.","required":["configs","default_config","mcp_server_name","type"],"properties":{"configs":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the agent may use the tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].enabled","typeLabel":"boolean"},"name":{"type":"string","description":"Name of the MCP tool, as the server lists it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].name","typeLabel":"string"},"permission_policy":{"oneOf":[{"type":"object","description":"Permission policy for tool execution.","required":["type"],"properties":{"type":{"type":"string","const":"always_allow","description":"Always `always_allow`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].permission_policy.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].permission_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Permission policy for tool execution.","required":["type"],"properties":{"type":{"type":"string","const":"always_ask","description":"Always `always_ask`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].permission_policy.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].permission_policy.oneOf.1","typeLabel":"object"},{"type":"object","description":"Permission policy for tool execution.","required":["type"],"properties":{"type":{"type":"string","const":"auto","description":"Always `auto`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].permission_policy.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].permission_policy.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX].permission_policy","typeLabel":"object"}},"required":["enabled","name","permission_policy"],"description":"Resolved configuration for a specific MCP tool.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs.items.[INDEX]","typeLabel":"object"},"description":"Per-tool settings that differ from `default_config`, one entry per named tool.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.configs","typeLabel":"object[]"},"default_config":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the server's tools are available unless a `configs` entry says otherwise.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.default_config.enabled","typeLabel":"boolean"},"permission_policy":{"oneOf":[{"type":"object","description":"Permission policy for tool execution.","required":["type"],"properties":{"type":{"type":"string","const":"always_allow","description":"Always `always_allow`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.default_config.permission_policy.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.default_config.permission_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Permission policy for tool execution.","required":["type"],"properties":{"type":{"type":"string","const":"always_ask","description":"Always `always_ask`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.default_config.permission_policy.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.default_config.permission_policy.oneOf.1","typeLabel":"object"},{"type":"object","description":"Permission policy for tool execution.","required":["type"],"properties":{"type":{"type":"string","const":"auto","description":"Always `auto`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.default_config.permission_policy.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.default_config.permission_policy.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.default_config.permission_policy","typeLabel":"object"}},"required":["enabled","permission_policy"],"description":"Resolved default configuration for all tools from an MCP server.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.default_config","typeLabel":"object"},"mcp_server_name":{"type":"string","description":"Name of the agent's MCP server (`mcp_servers[].name`) whose tools this toolset exposes.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.mcp_server_name","typeLabel":"string"},"type":{"type":"string","const":"mcp_toolset","description":"Always `mcp_toolset`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A custom tool as returned in API responses.","required":["description","input_schema","name","type"],"properties":{"description":{"type":"string","description":"What the tool does, shown to the model.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.description","typeLabel":"string"},"input_schema":{"type":"object","properties":{"type":{"type":"string","const":"object","description":"Always `object`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.type","typeLabel":"string"},"properties":{"oneOf":[{"type":"object","description":"JSON Schema of each input member, keyed by member name.","additionalProperties":{"oneOf":[{}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.properties.oneOf.0.additionalProperties","typeLabel":"any"},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.properties.oneOf.0","typeLabel":"object"},{"type":"null","description":"JSON Schema of each input member, keyed by member name.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.properties.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.properties","typeLabel":"object | null"},"required":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.required.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Names of the input members the model must provide.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.required.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"Names of the input members the model must provide.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.required.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.required","typeLabel":"string[] | null"}},"required":["type"],"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema.additionalProperties","typeLabel":"any"},"description":"JSON Schema for custom tool input parameters.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.input_schema","typeLabel":"object"},"name":{"type":"string","description":"Name of the tool; the agent's calls name it in `agent.custom_tool_use`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.name","typeLabel":"string"},"type":{"type":"string","const":"custom","description":"Always `custom`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools.items.[INDEX]","typeLabel":"object"},"description":"The agent's tools, or `[]` when the session cleared them.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.tools","typeLabel":"object[]"},"type":{"description":"Always `agent`.","type":"string","const":"agent","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.type","typeLabel":"string"},"version":{"type":"number","description":"The agent version the session runs.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0.version","typeLabel":"number"}},"uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.0","typeLabel":"object"},{"type":"null","description":"The session's effective agent configuration after the update. Present only when the update changed `agent` (tools or mcp_servers); when present it is the full materialised snapshot, not a diff.","uniqueKey":"data.items.[INDEX].oneOf.32.agent.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.32.agent","typeLabel":"object | null"},"budget":{"oneOf":[{"type":"object","description":"The session's budget after the update: the new budget when set or replaced, or null when the update removed it. Present only when the update changed the budget.","required":["max_list_cost","type"],"properties":{"max_list_cost":{"type":"object","properties":{"amount":{"type":"string","description":"Amount in minor units of the currency, as an integer decimal string with no leading zeros: \"2500\" is $25.00 and \"50\" is fifty cents. A string rather than a number so no float rounding is ever applied.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.budget.oneOf.0.max_list_cost.amount","typeLabel":"string"},"currency":{"type":"string","const":"USD","description":"Uppercase ISO-4217 currency code. `USD` is the only currency currently supported; the accepted set is closed and grows only when a new currency is priced.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.budget.oneOf.0.max_list_cost.currency","typeLabel":"string"}},"required":["amount","currency"],"description":"Maximum list cost the session may accrue. List price is used regardless of any negotiated discount, so the cap fires at or before the actual charge.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.budget.oneOf.0.max_list_cost","typeLabel":"object"},"type":{"type":"string","const":"limit","description":"Always `limit`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.32.budget.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.32.budget.oneOf.0","typeLabel":"object"},{"type":"null","description":"The session's budget after the update: the new budget when set or replaced, or null when the update removed it. Present only when the update changed the budget.","uniqueKey":"data.items.[INDEX].oneOf.32.budget.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.32.budget","typeLabel":"object | null"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"data.items.[INDEX].oneOf.32.metadata.additionalProperties","typeLabel":"string"},"description":"The session's full metadata bag after the update. Present when the update set non-empty metadata; absent when metadata was unchanged or cleared to empty.","uniqueKey":"data.items.[INDEX].oneOf.32.metadata","typeLabel":"object"},"title":{"oneOf":[{"type":"string","description":"The session's new title. Present only when the update changed it.","uniqueKey":"data.items.[INDEX].oneOf.32.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The session's new title. Present only when the update changed it.","uniqueKey":"data.items.[INDEX].oneOf.32.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.32.title","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.32","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","content","type"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.33.id","typeLabel":"string"},"content":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.33.content.items.[INDEX].text","typeLabel":"string"},"type":{"type":"string","const":"text","description":"Always `text`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.33.content.items.[INDEX].type","typeLabel":"string"}},"required":["text","type"],"description":"Content block in a mid-conversation system message. Text-only.","uniqueKey":"data.items.[INDEX].oneOf.33.content.items.[INDEX]","typeLabel":"object"},"description":"System content blocks. Text-only.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.33.content","typeLabel":"object[]"},"type":{"type":"string","const":"system.message","description":"Always `system.message`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.33.type","typeLabel":"string"},"processed_at":{"oneOf":[{"type":"string","description":"Timestamp when this system message was processed.","uniqueKey":"data.items.[INDEX].oneOf.33.processed_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Timestamp when this system message was processed.","uniqueKey":"data.items.[INDEX].oneOf.33.processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.33.processed_at","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.33","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type","usage"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.34.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when the snapshot was taken.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.34.processed_at","typeLabel":"string"},"type":{"type":"string","const":"session.usage","description":"Always `session.usage`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.34.type","typeLabel":"string"},"usage":{"type":"object","properties":{"active_seconds":{"type":"number","description":"Cumulative time in seconds during which the session had at least one thread in running status. Overlapping activity from concurrent threads is counted once. This is the duration the session's runtime cost is priced on.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.active_seconds","typeLabel":"number"},"cache_creation":{"type":"object","properties":{"ephemeral_1h_input_tokens":{"type":"number","description":"Tokens used to create 1-hour ephemeral cache entries.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.cache_creation.ephemeral_1h_input_tokens","typeLabel":"number"},"ephemeral_5m_input_tokens":{"type":"number","description":"Tokens used to create 5-minute ephemeral cache entries.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.cache_creation.ephemeral_5m_input_tokens","typeLabel":"number"}},"description":"Tokens used to create prompt cache entries, broken down by cache TTL.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.cache_creation","typeLabel":"object"},"cache_read_input_tokens":{"type":"number","description":"Total tokens read from prompt cache.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.cache_read_input_tokens","typeLabel":"number"},"input_tokens":{"type":"number","description":"Total input tokens consumed across all turns.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.input_tokens","typeLabel":"number"},"list_cost":{"type":"object","properties":{"amount":{"type":"string","description":"Amount in minor units of the currency, as an integer decimal string with no leading zeros: \"2500\" is $25.00 and \"50\" is fifty cents. A string rather than a number so no float rounding is ever applied.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.34.usage.list_cost.amount","typeLabel":"string"},"currency":{"type":"string","const":"USD","description":"Uppercase ISO-4217 currency code. `USD` is the only currency currently supported; the accepted set is closed and grows only when a new currency is priced.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.34.usage.list_cost.currency","typeLabel":"string"}},"required":["amount","currency"],"description":"Cumulative list cost of the session across all turns, priced at public list rates.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.list_cost","typeLabel":"object"},"output_tokens":{"type":"number","description":"Total output tokens generated across all turns.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.output_tokens","typeLabel":"number"},"server_tool_use":{"type":"object","properties":{"web_fetch_requests":{"type":"number","description":"Number of server-executed web fetch requests.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.server_tool_use.web_fetch_requests","typeLabel":"number"},"web_search_requests":{"type":"number","description":"Number of server-executed web search requests.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.server_tool_use.web_search_requests","typeLabel":"number"}},"description":"Cumulative server-executed tool usage across all turns.","uniqueKey":"data.items.[INDEX].oneOf.34.usage.server_tool_use","typeLabel":"object"}},"description":"The session's cumulative usage at the snapshot time.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.34.usage","typeLabel":"object"},"budget":{"oneOf":[{"type":"object","description":"The session's configured budget at the snapshot time, or null when the session has no budget.","required":["max_list_cost","type"],"properties":{"max_list_cost":{"type":"object","properties":{"amount":{"type":"string","description":"Amount in minor units of the currency, as an integer decimal string with no leading zeros: \"2500\" is $25.00 and \"50\" is fifty cents. A string rather than a number so no float rounding is ever applied.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.34.budget.oneOf.0.max_list_cost.amount","typeLabel":"string"},"currency":{"type":"string","const":"USD","description":"Uppercase ISO-4217 currency code. `USD` is the only currency currently supported; the accepted set is closed and grows only when a new currency is priced.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.34.budget.oneOf.0.max_list_cost.currency","typeLabel":"string"}},"required":["amount","currency"],"description":"Maximum list cost the session may accrue. List price is used regardless of any negotiated discount, so the cap fires at or before the actual charge.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.34.budget.oneOf.0.max_list_cost","typeLabel":"object"},"type":{"type":"string","const":"limit","description":"Always `limit`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.34.budget.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.34.budget.oneOf.0","typeLabel":"object"},{"type":"null","description":"The session's configured budget at the snapshot time, or null when the session has no budget.","uniqueKey":"data.items.[INDEX].oneOf.34.budget.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oneOf.34.budget","typeLabel":"object | null"}},"uniqueKey":"data.items.[INDEX].oneOf.34","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","description","name","phases","processed_at","type","workflow_run_id"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.id","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Description that the agent gave the run, passed on as written, or `null` if it gave none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description that the agent gave the run, passed on as written, or `null` if it gave none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.description","typeLabel":"string | null"},"name":{"type":"string","description":"Name that the agent gave the run, passed on as written, or a name that the server assigned.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.name","typeLabel":"string"},"phases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the phase.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.phases.items.[INDEX].id","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Description that the agent gave the phase, passed on as written, or `null` if it gave none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.phases.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description that the agent gave the phase, passed on as written, or `null` if it gave none.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.phases.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.phases.items.[INDEX].description","typeLabel":"string | null"},"name":{"type":"string","description":"Name that the agent gave the phase, passed on as written.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.phases.items.[INDEX].name","typeLabel":"string"}},"required":["id","description","name"],"description":"A phase that a workflow run's plan declares.","uniqueKey":"data.items.[INDEX].oneOf.35.phases.items.[INDEX]","typeLabel":"object"},"description":"The phases that the run's plan declares, in the plan's order. Can be empty.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.phases","typeLabel":"object[]"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.processed_at","typeLabel":"string"},"type":{"type":"string","const":"workflow_run.created","description":"Always `workflow_run.created`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.type","typeLabel":"string"},"workflow_run_id":{"type":"string","description":"Identifier of the run. The same value is on all of the run's `workflow_run.*` events.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.35.workflow_run_id","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.35","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","result","type","workflow_run_id"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.processed_at","typeLabel":"string"},"result":{"oneOf":[{"type":"object","description":"How the run ended.","required":["type"],"properties":{"type":{"type":"string","const":"completed","description":"Always `completed`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.0","typeLabel":"object"},{"type":"object","description":"How the run ended.","required":["error","type"],"properties":{"error":{"oneOf":[{"type":"object","description":"Why the run did not finish.","required":["message","type"],"properties":{"message":{"type":"string","description":"Short explanation written by the server. It never contains content from the run or its agents.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.0.message","typeLabel":"string"},"type":{"type":"string","const":"timeout_error","description":"Always `timeout_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.0","typeLabel":"object"},{"type":"object","description":"Why the run did not finish.","required":["message","type"],"properties":{"message":{"type":"string","description":"Short explanation written by the server. It never contains content from the run or its agents.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.1.message","typeLabel":"string"},"type":{"type":"string","const":"program_error","description":"Always `program_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.1","typeLabel":"object"},{"type":"object","description":"Why the run did not finish.","required":["message","type"],"properties":{"message":{"type":"string","description":"Short explanation written by the server. It never contains content from the run or its agents.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.2.message","typeLabel":"string"},"type":{"type":"string","const":"unknown_error","description":"Always `unknown_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.2","typeLabel":"object"},{"type":"object","description":"Why the run did not finish.","required":["message","type"],"properties":{"message":{"type":"string","description":"Short explanation written by the server. It never contains content from the run or its agents.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.3.message","typeLabel":"string"},"type":{"type":"string","const":"thread_limit_error","description":"Always `thread_limit_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.3","typeLabel":"object"},{"type":"object","description":"Why the run did not finish.","required":["message","type"],"properties":{"message":{"type":"string","description":"Short explanation written by the server. It never contains content from the run or its agents.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.4.message","typeLabel":"string"},"type":{"type":"string","const":"max_workflow_runs_error","description":"Always `max_workflow_runs_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.4.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.error","typeLabel":"object"},"type":{"type":"string","const":"error","description":"Always `error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.1","typeLabel":"object"},{"type":"object","description":"How the run ended.","required":["type"],"properties":{"type":{"type":"string","const":"stopped","description":"Always `stopped`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.result","typeLabel":"object"},"type":{"type":"string","const":"workflow_run.status_ended","description":"Always `workflow_run.status_ended`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.type","typeLabel":"string"},"workflow_run_id":{"type":"string","description":"Identifier of the run. The same value is on all of the run's `workflow_run.*` events.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.36.workflow_run_id","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.36","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type","workflow_run_id","workflow_run_phase_id"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.37.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.37.processed_at","typeLabel":"string"},"type":{"type":"string","const":"workflow_run.phase_started","description":"Always `workflow_run.phase_started`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.37.type","typeLabel":"string"},"workflow_run_id":{"type":"string","description":"Identifier of the run. The same value is on all of the run's `workflow_run.*` events.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.37.workflow_run_id","typeLabel":"string"},"workflow_run_phase_id":{"type":"string","description":"Identifier of the phase, as in `phases` on the run's `workflow_run.created` event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.37.workflow_run_phase_id","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.37","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","phase_started_id","processed_at","type","workflow_run_id","workflow_run_phase_id"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.38.id","typeLabel":"string"},"phase_started_id":{"type":"string","description":"Identifier of the `workflow_run.phase_started` event that opened the phase.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.38.phase_started_id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.38.processed_at","typeLabel":"string"},"type":{"type":"string","const":"workflow_run.phase_ended","description":"Always `workflow_run.phase_ended`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.38.type","typeLabel":"string"},"workflow_run_id":{"type":"string","description":"Identifier of the run. The same value is on all of the run's `workflow_run.*` events.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.38.workflow_run_id","typeLabel":"string"},"workflow_run_phase_id":{"type":"string","description":"Identifier of the phase, as in `phases` on the run's `workflow_run.created` event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.38.workflow_run_phase_id","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.38","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type","workflow_run_id"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.39.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.39.processed_at","typeLabel":"string"},"type":{"type":"string","const":"workflow_run.status_running","description":"Always `workflow_run.status_running`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.39.type","typeLabel":"string"},"workflow_run_id":{"type":"string","description":"Identifier of the run. The same value is on all of the run's `workflow_run.*` events.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.39.workflow_run_id","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.39","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","processed_at","type","workflow_run_id"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.40.id","typeLabel":"string"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.40.processed_at","typeLabel":"string"},"type":{"type":"string","const":"workflow_run.status_idle","description":"Always `workflow_run.status_idle`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.40.type","typeLabel":"string"},"workflow_run_id":{"type":"string","description":"Identifier of the run. The same value is on all of the run's `workflow_run.*` events.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.40.workflow_run_id","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].oneOf.40","typeLabel":"object"},{"type":"object","description":"Union type for all event types in a session.","required":["id","error","processed_at","type","workflow_run_id"],"properties":{"id":{"type":"string","description":"Unique identifier for this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.id","typeLabel":"string"},"error":{"oneOf":[{"type":"object","description":"Why the run did not finish, or was not created.","required":["message","type"],"properties":{"message":{"type":"string","description":"Short explanation written by the server. It never contains content from the run or its agents.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.0.message","typeLabel":"string"},"type":{"type":"string","const":"timeout_error","description":"Always `timeout_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.0.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.0","typeLabel":"object"},{"type":"object","description":"Why the run did not finish, or was not created.","required":["message","type"],"properties":{"message":{"type":"string","description":"Short explanation written by the server. It never contains content from the run or its agents.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.1.message","typeLabel":"string"},"type":{"type":"string","const":"program_error","description":"Always `program_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.1.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.1","typeLabel":"object"},{"type":"object","description":"Why the run did not finish, or was not created.","required":["message","type"],"properties":{"message":{"type":"string","description":"Short explanation written by the server. It never contains content from the run or its agents.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.2.message","typeLabel":"string"},"type":{"type":"string","const":"unknown_error","description":"Always `unknown_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.2","typeLabel":"object"},{"type":"object","description":"Why the run did not finish, or was not created.","required":["message","type"],"properties":{"message":{"type":"string","description":"Short explanation written by the server. It never contains content from the run or its agents.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.3.message","typeLabel":"string"},"type":{"type":"string","const":"thread_limit_error","description":"Always `thread_limit_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.3.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.3","typeLabel":"object"},{"type":"object","description":"Why the run did not finish, or was not created.","required":["message","type"],"properties":{"message":{"type":"string","description":"Short explanation written by the server. It never contains content from the run or its agents.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.4.message","typeLabel":"string"},"type":{"type":"string","const":"max_workflow_runs_error","description":"Always `max_workflow_runs_error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.4.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.error","typeLabel":"object"},"processed_at":{"type":"string","description":"Timestamp when this event was processed.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.processed_at","typeLabel":"string"},"type":{"type":"string","const":"workflow_run.error","description":"Always `workflow_run.error`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.type","typeLabel":"string"},"workflow_run_id":{"oneOf":[{"type":"string","description":"Identifier of the run that met the error, or `null` when the error kept a run from being created.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.workflow_run_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Identifier of the run that met the error, or `null` when the error kept a run from being created.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.workflow_run_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.41.workflow_run_id","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].oneOf.41","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data","typeLabel":"object[]"},"next_page":{"oneOf":[{"type":"string","description":"Cursor of the next page: send it as `page` to continue. null on the last page.","isRequired":true,"uniqueKey":"next_page.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cursor of the next page: send it as `page` to continue. null on the last page.","isRequired":true,"uniqueKey":"next_page.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"next_page","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":[{"type":"user.message","id":"sevt_agray4o575y3liuohu6axeow6y","content":[{"type":"text","text":"Draft the Q3 revenue summary from data/q3.csv."}],"processed_at":"2026-11-24T07:13:10.204551Z","bma_sequence":1,"bma_input_id":"ain_agray4o575y4la2ja6nv6pfacu"},{"type":"session.status_running","id":"sevt_agray4o575y33ovnpxhv275qa4","processed_at":"2026-11-24T07:13:10.204551Z","bma_sequence":2},{"type":"agent.message","id":"sevt_agray4o575y4dmtchnooay7dnm","content":[{"type":"text","text":"Q3 revenue grew 12% quarter over quarter, led by the EMEA region."}],"processed_at":"2026-11-24T07:13:42.981305Z","bma_sequence":3}],"next_page":"3"},"examples":{"Example":{"title":"Example","value":{"data":[{"type":"user.message","id":"sevt_agray4o575y3liuohu6axeow6y","content":[{"type":"text","text":"Draft the Q3 revenue summary from data/q3.csv."}],"processed_at":"2026-11-24T07:13:10.204551Z","bma_sequence":1,"bma_input_id":"ain_agray4o575y4la2ja6nv6pfacu"},{"type":"session.status_running","id":"sevt_agray4o575y33ovnpxhv275qa4","processed_at":"2026-11-24T07:13:10.204551Z","bma_sequence":2},{"type":"agent.message","id":"sevt_agray4o575y4dmtchnooay7dnm","content":[{"type":"text","text":"Q3 revenue grew 12% quarter over quarter, led by the EMEA region."}],"processed_at":"2026-11-24T07:13:42.981305Z","bma_sequence":3}],"next_page":"3"}}},"exampleType":"examples"}},"exampleType":"examples"},"0e57d0d2-0c21-4ab4-b577-0912c2d88041":{"description":"Anthropic error envelope.","content":{"application/json":{"schema":{"type":"object","x-bma-official-shape":"ErrorResponse","x-bma-official-fields":["type","error","request_id"],"description":"The error envelope of every failed request.","required":["type","error"],"properties":{"type":{"const":"error","description":"Always `error`.","isRequired":true,"uniqueKey":"type","typeLabel":"any"},"error":{"type":"object","description":"What went wrong.","required":["type","message"],"properties":{"type":{"type":"string","description":"The error class, which fixes the HTTP status (for example `not_found_error` for 404).","enum":["invalid_request_error","authentication_error","permission_error","billing_error","not_found_error","conflict_error","request_too_large","rate_limit_error","api_error","timeout_error","overloaded_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation; its wording may change, so branch on `code`.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Stable snake_case reason ([error codes](https://docs.beeos.ai/api-reference/errors)); absent when the error has none. BMA repeats it as `bma_error_code`.","uniqueKey":"error.code","typeLabel":"string"},"bma_error_code":{"type":"string","description":"The same value as `code`, present whenever `code` is (BMA extension).","uniqueKey":"error.bma_error_code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"ID of the request, to quote when reporting a problem.","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","bma_error_code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"5d9801ae-00b0-48ff-bc23-c2bb1943aa20":{"description":"Anthropic error envelope.","content":{"application/json":{"schema":{"type":"object","x-bma-official-shape":"ErrorResponse","x-bma-official-fields":["type","error","request_id"],"description":"The error envelope of every failed request.","required":["type","error"],"properties":{"type":{"const":"error","description":"Always `error`.","isRequired":true,"uniqueKey":"type","typeLabel":"any"},"error":{"type":"object","description":"What went wrong.","required":["type","message"],"properties":{"type":{"type":"string","description":"The error class, which fixes the HTTP status (for example `not_found_error` for 404).","enum":["invalid_request_error","authentication_error","permission_error","billing_error","not_found_error","conflict_error","request_too_large","rate_limit_error","api_error","timeout_error","overloaded_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation; its wording may change, so branch on `code`.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Stable snake_case reason ([error codes](https://docs.beeos.ai/api-reference/errors)); absent when the error has none. BMA repeats it as `bma_error_code`.","uniqueKey":"error.code","typeLabel":"string"},"bma_error_code":{"type":"string","description":"The same value as `code`, present whenever `code` is (BMA extension).","uniqueKey":"error.bma_error_code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"ID of the request, to quote when reporting a problem.","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","bma_error_code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"a7a05916-0e8d-41df-b94e-ca8691ee2568":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKey"}},"6e714eac-c5f9-497c-947a-aeaa7d4f124d":{"bearer":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"}}},"servers":{"aab6fce6-43f5-423b-92da-bb742711199d":{"url":"https://api.beeos.ai","description":"Production"},"f34f48fd-3007-467d-9d05-2d18bb2f0252":{"url":"http://127.0.0.1:58080","description":"Self-hosted (docker compose quickstart)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"api-reference/bma.openapi.yaml"},"subdomain":"localhost","siteName":"BMA Developer Docs","title":"List Events - BMA Developer Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoints/sessions/list-events","matchLevel":0},"zh":{"href":"/zh/api-reference/endpoints/sessions/list-events","matchLevel":1},"zh-Hant":{"href":"/zh-hant/api-reference/endpoints/sessions/list-events","matchLevel":1},"ja":{"href":"/ja/api-reference/endpoints/sessions/list-events","matchLevel":1},"ko":{"href":"/ko/api-reference/endpoints/sessions/list-events","matchLevel":1}}},"originalFileLocation":"api-reference/endpoints/sessions/list-events.mdx","locale":"en"},"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=\"Lists the events of a session\u0026#x27;s log in chronological order (order=desc for newest first): the events sent to it, the agent\u0026#x27;s output, status changes, errors, spans and the session.updated entries of title and metadata changes. Every event except session.updated carries the BMA extension bma_sequence, and several events can share one sequence. limit counts sequences, not events: the events of one sequence are never split across pages, so a page can hold more than limit events. next_page is the cursor of the next page, null on the last. types keeps only the named types; BMA\u0026#x27;s own extension event types (such as session.bma_placement) are returned only when types names them. The created_at bounds keep the events created within them (an event\u0026#x27;s processed_at for session.updated); include_archived is ignored. Archived sessions can be listed. Read-only. Authorization: Organization API key (x-api-key: bma_org_v1_…), personal access token (Authorization: Bearer bma_pat_v1_…), OAuth access token or signed-in dashboard session; a user credential names its organization with bma-organization-id. The request acts in one workspace: the one named by bma-workspace-id (or anthropic-workspace-id; when both are sent they must agree), else the credential\u0026#x27;s default workspace (an API key\u0026#x27;s own workspace, else its organization\u0026#x27;s Default workspace), else the only workspace the credential can use. Every workspace role may call it (viewer included); organization owners and admins act as workspace admins in every workspace of their organization. Limits: - limit: default 20, maximum 100 sequences per page. - Rate limit: one request of the organization\u0026#x27;s read budget (Rate limits). Errors (besides the common errors (401 authentication, 429 rate_limited, 500)): | Status | error.type | error.code | Cause | Fix | | --- | --- | --- | --- | --- | | 400 | invalid_request_error | organization_required | A user credential (personal access token, OAuth token, dashboard session) names no organization. | Name the organization with the bma-organization-id header. | | 400 | invalid_request_error | project_required | The credential can use several workspaces and the request names none. | Name the workspace with the bma-workspace-id header. | | 400 | invalid_request_error | workspace_id_conflict | bma-workspace-id and anthropic-workspace-id name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |\">\u003cmeta data-mint-head name=\"application-name\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"List Events - BMA Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Lists the events of a session\u0026#x27;s log in chronological order (order=desc for newest first): the events sent to it, the agent\u0026#x27;s output, status changes, errors, spans and the session.updated entries of title and metadata changes. Every event except session.updated carries the BMA extension bma_sequence, and several events can share one sequence. limit counts sequences, not events: the events of one sequence are never split across pages, so a page can hold more than limit events. next_page is the cursor of the next page, null on the last. types keeps only the named types; BMA\u0026#x27;s own extension event types (such as session.bma_placement) are returned only when types names them. The created_at bounds keep the events created within them (an event\u0026#x27;s processed_at for session.updated); include_archived is ignored. Archived sessions can be listed. Read-only. Authorization: Organization API key (x-api-key: bma_org_v1_…), personal access token (Authorization: Bearer bma_pat_v1_…), OAuth access token or signed-in dashboard session; a user credential names its organization with bma-organization-id. The request acts in one workspace: the one named by bma-workspace-id (or anthropic-workspace-id; when both are sent they must agree), else the credential\u0026#x27;s default workspace (an API key\u0026#x27;s own workspace, else its organization\u0026#x27;s Default workspace), else the only workspace the credential can use. Every workspace role may call it (viewer included); organization owners and admins act as workspace admins in every workspace of their organization. Limits: - limit: default 20, maximum 100 sequences per page. - Rate limit: one request of the organization\u0026#x27;s read budget (Rate limits). Errors (besides the common errors (401 authentication, 429 rate_limited, 500)): | Status | error.type | error.code | Cause | Fix | | --- | --- | --- | --- | --- | | 400 | invalid_request_error | organization_required | A user credential (personal access token, OAuth token, dashboard session) names no organization. | Name the organization with the bma-organization-id header. | | 400 | invalid_request_error | project_required | The credential can use several workspaces and the request names none. | Name the workspace with the bma-workspace-id header. | | 400 | invalid_request_error | workspace_id_conflict | bma-workspace-id and anthropic-workspace-id name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./api-reference/endpoints/sessions/list-events\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"List Events - BMA Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Lists the events of a session\u0026#x27;s log in chronological order (order=desc for newest first): the events sent to it, the agent\u0026#x27;s output, status changes, errors, spans and the session.updated entries of title and metadata changes. Every event except session.updated carries the BMA extension bma_sequence, and several events can share one sequence. limit counts sequences, not events: the events of one sequence are never split across pages, so a page can hold more than limit events. next_page is the cursor of the next page, null on the last. types keeps only the named types; BMA\u0026#x27;s own extension event types (such as session.bma_placement) are returned only when types names them. The created_at bounds keep the events created within them (an event\u0026#x27;s processed_at for session.updated); include_archived is ignored. Archived sessions can be listed. Read-only. Authorization: Organization API key (x-api-key: bma_org_v1_…), personal access token (Authorization: Bearer bma_pat_v1_…), OAuth access token or signed-in dashboard session; a user credential names its organization with bma-organization-id. The request acts in one workspace: the one named by bma-workspace-id (or anthropic-workspace-id; when both are sent they must agree), else the credential\u0026#x27;s default workspace (an API key\u0026#x27;s own workspace, else its organization\u0026#x27;s Default workspace), else the only workspace the credential can use. Every workspace role may call it (viewer included); organization owners and admins act as workspace admins in every workspace of their organization. Limits: - limit: default 20, maximum 100 sequences per page. - Rate limit: one request of the organization\u0026#x27;s read budget (Rate limits). Errors (besides the common errors (401 authentication, 429 rate_limited, 500)): | Status | error.type | error.code | Cause | Fix | | --- | --- | --- | --- | --- | | 400 | invalid_request_error | organization_required | A user credential (personal access token, OAuth token, dashboard session) names no organization. | Name the organization with the bma-organization-id header. | | 400 | invalid_request_error | project_required | The credential can use several workspaces and the request names none. | Name the workspace with the bma-workspace-id header. | | 400 | invalid_request_error | workspace_id_conflict | bma-workspace-id and anthropic-workspace-id name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F97316\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./api-reference/endpoints/sessions/list-events\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/sessions/list-events.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://local./api-reference/endpoints/sessions/list-events\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://local./zh/api-reference/endpoints/sessions/list-events\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://local./zh-hant/api-reference/endpoints/sessions/list-events\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://local./ja/api-reference/endpoints/sessions/list-events\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://local./ko/api-reference/endpoints/sessions/list-events\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://local./api-reference/endpoints/sessions/list-events\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BMA Developer Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"BMA Developer Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/sessions/list-events.md","siteName":"BMA Developer Docs","nav":{"languages":[{"language":"en","default":true,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/getting-started"}]},{"tab":"API reference","groups":[{"group":"API reference","pages":[{"title":"API reference","icon":"book","href":"/api-reference/introduction"}]},{"group":"bma-sdk","pages":[{"title":"bma-sdk HTTP API","sidebarTitle":"HTTP API overview","icon":"globe","href":"/api-reference/bma-sdk/overview"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Use the official Anthropic SDK","sidebarTitle":"Anthropic SDK","icon":"scale-balanced","href":"/compatibility"},{"group":"Endpoints","expanded":true,"pages":[{"group":"Agents","pages":[{"title":"List Agents","openapi":"/api-reference/bma.openapi.yaml get /v1/agents","href":"/api-reference/endpoints/agents/list-agents"},{"title":"Create Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents","href":"/api-reference/endpoints/agents/create-agent"},{"title":"Get Agent","openapi":"/api-reference/bma.openapi.yaml get /v1/agents/{agent_id}","href":"/api-reference/endpoints/agents/get-agent"},{"title":"Update Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents/{agent_id}","href":"/api-reference/endpoints/agents/update-agent"},{"title":"Archive Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents/{agent_id}/archive","href":"/api-reference/endpoints/agents/archive-agent"},{"title":"List agent versions","openapi":"/api-reference/bma.openapi.yaml get /v1/agents/{agent_id}/versions","href":"/api-reference/endpoints/agents/list-agent-versions"}]},{"group":"Desktop sessions","pages":[{"title":"Create a desktop session","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions","href":"/api-reference/endpoints/desktop-sessions/create-a-desktop-session"},{"title":"Retrieve a desktop session (control state in `control`)","openapi":"/api-reference/bma.openapi.yaml get /v1/desktop_sessions/{desktop_session_id}","href":"/api-reference/endpoints/desktop-sessions/retrieve-a-desktop-session-control-state-in-`control`"},{"title":"Take input control","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/acquire_control","href":"/api-reference/endpoints/desktop-sessions/take-input-control"},{"title":"Send input actions","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/actions","href":"/api-reference/endpoints/desktop-sessions/send-input-actions"},{"title":"Close a desktop session","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/close","href":"/api-reference/endpoints/desktop-sessions/close-a-desktop-session"},{"title":"Hand control back to the agent","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/handback_control","href":"/api-reference/endpoints/desktop-sessions/hand-control-back-to-the-agent"},{"title":"Extend the running screen capture's keepalive deadline","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/keepalive","href":"/api-reference/endpoints/desktop-sessions/extend-the-running-screen-captures-keepalive-deadline"},{"title":"Release control","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/release_control","href":"/api-reference/endpoints/desktop-sessions/release-control"},{"title":"Renew the control lease","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/renew_control","href":"/api-reference/endpoints/desktop-sessions/renew-the-control-lease"},{"title":"Capture a screenshot","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/screenshot","href":"/api-reference/endpoints/desktop-sessions/capture-a-screenshot"},{"title":"Mint a desktop watch credential","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/tickets","href":"/api-reference/endpoints/desktop-sessions/mint-a-desktop-watch-credential"},{"title":"Revoke a screen capture viewer and confirm its connections are closed","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/viewers/{viewer}/revoke","href":"/api-reference/endpoints/desktop-sessions/revoke-a-screen-capture-viewer-and-confirm-its-connections-are-closed"}]},{"group":"Environments","pages":[{"title":"List environments with pagination support.","openapi":"/api-reference/bma.openapi.yaml get /v1/environments","href":"/api-reference/endpoints/environments/list-environments-with-pagination-support"},{"title":"Create a new environment with the specified configuration.","openapi":"/api-reference/bma.openapi.yaml post /v1/environments","href":"/api-reference/endpoints/environments/create-a-new-environment-with-the-specified-configuration"},{"title":"Retrieve a specific environment by ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/environments/{environment_id}","href":"/api-reference/endpoints/environments/retrieve-a-specific-environment-by-id"},{"title":"Update an existing environment's configuration.","openapi":"/api-reference/bma.openapi.yaml post /v1/environments/{environment_id}","href":"/api-reference/endpoints/environments/update-an-existing-environments-configuration"},{"title":"Delete an environment by ID. Returns a confirmation of the deletion.","openapi":"/api-reference/bma.openapi.yaml delete /v1/environments/{environment_id}","href":"/api-reference/endpoints/environments/delete-an-environment-by-id-returns-a-confirmation-of-the-deletion"},{"title":"Archive an environment by ID. Archived environments cannot be used to create new","openapi":"/api-reference/bma.openapi.yaml post /v1/environments/{environment_id}/archive","href":"/api-reference/endpoints/environments/archive-an-environment-by-id-archived-environments-cannot-be-used-to-create-new"}]},{"group":"Files","pages":[{"title":"List Files","openapi":"/api-reference/bma.openapi.yaml get /v1/files","href":"/api-reference/endpoints/files/list-files"},{"title":"Upload File","openapi":"/api-reference/bma.openapi.yaml post /v1/files","href":"/api-reference/endpoints/files/upload-file"},{"title":"Get File Metadata","openapi":"/api-reference/bma.openapi.yaml get /v1/files/{file_id}","href":"/api-reference/endpoints/files/get-file-metadata"},{"title":"Delete File","openapi":"/api-reference/bma.openapi.yaml delete /v1/files/{file_id}","href":"/api-reference/endpoints/files/delete-file"},{"title":"Download File","openapi":"/api-reference/bma.openapi.yaml get /v1/files/{file_id}/content","href":"/api-reference/endpoints/files/download-file"}]},{"group":"Machine pools","pages":[{"title":"List machine pools","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools","href":"/api-reference/endpoints/machine-pools/list-machine-pools"},{"title":"Create a machine pool","openapi":"/api-reference/bma.openapi.yaml post /v1/machine_pools","href":"/api-reference/endpoints/machine-pools/create-a-machine-pool"},{"title":"Retrieve a machine pool","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}","href":"/api-reference/endpoints/machine-pools/retrieve-a-machine-pool"},{"title":"Update a machine pool","openapi":"/api-reference/bma.openapi.yaml post /v1/machine_pools/{pool_id}","href":"/api-reference/endpoints/machine-pools/update-a-machine-pool"},{"title":"Delete a machine pool","openapi":"/api-reference/bma.openapi.yaml delete /v1/machine_pools/{pool_id}","href":"/api-reference/endpoints/machine-pools/delete-a-machine-pool"},{"title":"List the pool grants of a project","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}/grants","href":"/api-reference/endpoints/machine-pools/list-the-pool-grants-of-a-project"},{"title":"Retrieve a pool grant","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}/grants/{grant_id}","href":"/api-reference/endpoints/machine-pools/retrieve-a-pool-grant"}]},{"group":"Machines","pages":[{"title":"List machines","openapi":"/api-reference/bma.openapi.yaml get /v1/machines","href":"/api-reference/endpoints/machines/list-machines"},{"title":"Create a machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines","href":"/api-reference/endpoints/machines/create-a-machine"},{"title":"Retrieve a machine","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}","href":"/api-reference/endpoints/machines/retrieve-a-machine"},{"title":"Update a machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}","href":"/api-reference/endpoints/machines/update-a-machine"},{"title":"Delete a machine","openapi":"/api-reference/bma.openapi.yaml delete /v1/machines/{machine_id}","href":"/api-reference/endpoints/machines/delete-a-machine"},{"title":"Bind an agent to a machine","openapi":"/api-reference/bma.openapi.yaml put /v1/machines/{machine_id}/agents/{agent_id}","href":"/api-reference/endpoints/machines/bind-an-agent-to-a-machine"},{"title":"Unbind an agent from a machine","openapi":"/api-reference/bma.openapi.yaml delete /v1/machines/{machine_id}/agents/{agent_id}","href":"/api-reference/endpoints/machines/unbind-an-agent-from-a-machine"},{"title":"List a machine's backups","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/backups","href":"/api-reference/endpoints/machines/list-a-machines-backups"},{"title":"Machine interaction capabilities","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/capabilities","href":"/api-reference/endpoints/machines/machine-interaction-capabilities"},{"title":"List executor tokens","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/executor_tokens","href":"/api-reference/endpoints/machines/list-executor-tokens"},{"title":"Create an executor token","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/executor_tokens","href":"/api-reference/endpoints/machines/create-an-executor-token"},{"title":"Revoke an executor token","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/executor_tokens/{token_id}/revoke","href":"/api-reference/endpoints/machines/revoke-an-executor-token"},{"title":"Pause a running machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/pause","href":"/api-reference/endpoints/machines/pause-a-running-machine"},{"title":"Rebuild a machine from a backup","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/restore","href":"/api-reference/endpoints/machines/rebuild-a-machine-from-a-backup"},{"title":"Resume a paused machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/resume","href":"/api-reference/endpoints/machines/resume-a-paused-machine"}]},{"group":"MCP OAuth","pages":[{"title":"Start an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml post /v1/mcp_oauth_authorizations","href":"/api-reference/endpoints/mcp-oauth/start-an-mcp-oauth-authorization"},{"title":"Get an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml get /v1/mcp_oauth_authorizations/{authorization_id}","href":"/api-reference/endpoints/mcp-oauth/get-an-mcp-oauth-authorization"},{"title":"Complete an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml post /v1/mcp_oauth/callback","href":"/api-reference/endpoints/mcp-oauth/complete-an-mcp-oauth-authorization"}]},{"group":"Organizations \u0026 workspaces","pages":[{"title":"List the invites sent to me","openapi":"/api-reference/bma.openapi.yaml get /v1/me/invites","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-the-invites-sent-to-me"},{"title":"Accept an invite","openapi":"/api-reference/bma.openapi.yaml post /v1/me/invites/{invite_id}/accept","href":"/api-reference/endpoints/organizations-\u0026-workspaces/accept-an-invite"},{"title":"Decline an invite","openapi":"/api-reference/bma.openapi.yaml post /v1/me/invites/{invite_id}/decline","href":"/api-reference/endpoints/organizations-\u0026-workspaces/decline-an-invite"},{"title":"Create an organization","openapi":"/api-reference/bma.openapi.yaml post /v1/me/organizations","href":"/api-reference/endpoints/organizations-\u0026-workspaces/create-an-organization"},{"title":"List my personal access tokens","openapi":"/api-reference/bma.openapi.yaml get /v1/me/personal_access_tokens","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-my-personal-access-tokens"},{"title":"Create a personal access token","openapi":"/api-reference/bma.openapi.yaml post /v1/me/personal_access_tokens","href":"/api-reference/endpoints/organizations-\u0026-workspaces/create-a-personal-access-token"},{"title":"Revoke a personal access token","openapi":"/api-reference/bma.openapi.yaml post /v1/me/personal_access_tokens/{token_id}/revoke","href":"/api-reference/endpoints/organizations-\u0026-workspaces/revoke-a-personal-access-token"},{"title":"List API Keys","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/api_keys","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-api-keys"},{"title":"Create an API key","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/api_keys","href":"/api-reference/endpoints/organizations-\u0026-workspaces/create-an-api-key"},{"title":"Get API Key","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/api_keys/{api_key_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/get-api-key"},{"title":"Update API Key","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/api_keys/{api_key_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/update-api-key"},{"title":"Get the cost report","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/cost_report","href":"/api-reference/endpoints/organizations-\u0026-workspaces/get-the-cost-report"},{"title":"List the organization's invites.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/invites","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-the-organizations-invites"},{"title":"Invite a user to join the organization by email.","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/invites","href":"/api-reference/endpoints/organizations-\u0026-workspaces/invite-a-user-to-join-the-organization-by-email"},{"title":"Retrieve an invite by ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/invites/{invite_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/retrieve-an-invite-by-id"},{"title":"Delete a pending invite.","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/invites/{invite_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/delete-a-pending-invite"},{"title":"Retrieve information about the organization associated with the authenticated","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/me","href":"/api-reference/endpoints/organizations-\u0026-workspaces/retrieve-information-about-the-organization-associated-with-the-authenticated"},{"title":"Get the messages usage report","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/usage_report/messages","href":"/api-reference/endpoints/organizations-\u0026-workspaces/get-the-messages-usage-report"},{"title":"List the organization's members.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/users","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-the-organizations-members"},{"title":"Retrieve a member of the organization by user ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/users/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/retrieve-a-member-of-the-organization-by-user-id"},{"title":"Update a member's organization role.","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/users/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/update-a-members-organization-role"},{"title":"Remove a member from the organization.","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/users/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/remove-a-member-from-the-organization"},{"title":"List Workspaces","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-workspaces"},{"title":"Create Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces","href":"/api-reference/endpoints/organizations-\u0026-workspaces/create-workspace"},{"title":"Get Workspace","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/get-workspace"},{"title":"Update Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/update-workspace"},{"title":"Archive Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/archive","href":"/api-reference/endpoints/organizations-\u0026-workspaces/archive-workspace"},{"title":"List Workspace Members","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}/members","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-workspace-members"},{"title":"Create Workspace Member","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/members","href":"/api-reference/endpoints/organizations-\u0026-workspaces/create-workspace-member"},{"title":"Get Workspace Member","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/get-workspace-member"},{"title":"Update Workspace Member","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/update-workspace-member"},{"title":"Delete Workspace Member","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/delete-workspace-member"}]},{"group":"Memory stores","pages":[{"title":"List Memory Stores","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores","href":"/api-reference/endpoints/memory-stores/list-memory-stores"},{"title":"Create a Memory Store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores","href":"/api-reference/endpoints/memory-stores/create-a-memory-store"},{"title":"Retrieve a Memory Store","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}","href":"/api-reference/endpoints/memory-stores/retrieve-a-memory-store"},{"title":"Update a Memory Store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}","href":"/api-reference/endpoints/memory-stores/update-a-memory-store"},{"title":"Delete a Memory Store","openapi":"/api-reference/bma.openapi.yaml delete /v1/memory_stores/{memory_store_id}","href":"/api-reference/endpoints/memory-stores/delete-a-memory-store"},{"title":"Archive a memory store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/archive","href":"/api-reference/endpoints/memory-stores/archive-a-memory-store"},{"title":"List Memories","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memories","href":"/api-reference/endpoints/memory-stores/list-memories"},{"title":"Create a Memory","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memories","href":"/api-reference/endpoints/memory-stores/create-a-memory"},{"title":"Retrieve a Memory","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/api-reference/endpoints/memory-stores/retrieve-a-memory"},{"title":"Update a Memory","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/api-reference/endpoints/memory-stores/update-a-memory"},{"title":"Delete a Memory","openapi":"/api-reference/bma.openapi.yaml delete /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/api-reference/endpoints/memory-stores/delete-a-memory"},{"title":"List memory versions","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memory_versions","href":"/api-reference/endpoints/memory-stores/list-memory-versions"},{"title":"Retrieve a memory version","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}","href":"/api-reference/endpoints/memory-stores/retrieve-a-memory-version"},{"title":"Redact a memory version","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact","href":"/api-reference/endpoints/memory-stores/redact-a-memory-version"}]},{"group":"Models \u0026 providers","pages":[{"title":"List model providers","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers","href":"/api-reference/endpoints/models-\u0026-providers/list-model-providers"},{"title":"Create a model provider","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers","href":"/api-reference/endpoints/models-\u0026-providers/create-a-model-provider"},{"title":"Get a model provider","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}","href":"/api-reference/endpoints/models-\u0026-providers/get-a-model-provider"},{"title":"Update a model provider","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}","href":"/api-reference/endpoints/models-\u0026-providers/update-a-model-provider"},{"title":"Delete a model provider","openapi":"/api-reference/bma.openapi.yaml delete /v1/model_providers/{provider_id}","href":"/api-reference/endpoints/models-\u0026-providers/delete-a-model-provider"},{"title":"List a provider's models","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}/models","href":"/api-reference/endpoints/models-\u0026-providers/list-a-providers-models"},{"title":"Create a model","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}/models","href":"/api-reference/endpoints/models-\u0026-providers/create-a-model"},{"title":"Get a model","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}/models/{model_id}","href":"/api-reference/endpoints/models-\u0026-providers/get-a-model"},{"title":"Update a model","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}/models/{model_id}","href":"/api-reference/endpoints/models-\u0026-providers/update-a-model"},{"title":"Delete a model","openapi":"/api-reference/bma.openapi.yaml delete /v1/model_providers/{provider_id}/models/{model_id}","href":"/api-reference/endpoints/models-\u0026-providers/delete-a-model"},{"title":"List available models.","openapi":"/api-reference/bma.openapi.yaml get /v1/models","href":"/api-reference/endpoints/models-\u0026-providers/list-available-models"},{"title":"Get a specific model.","openapi":"/api-reference/bma.openapi.yaml get /v1/models/{model_id}","href":"/api-reference/endpoints/models-\u0026-providers/get-a-specific-model"},{"title":"List a model's grants","openapi":"/api-reference/bma.openapi.yaml get /v1/models/{model_id}/grants","href":"/api-reference/endpoints/models-\u0026-providers/list-a-models-grants"},{"title":"Grant a model to a workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/models/{model_id}/grants","href":"/api-reference/endpoints/models-\u0026-providers/grant-a-model-to-a-workspace"},{"title":"Revoke a model grant","openapi":"/api-reference/bma.openapi.yaml delete /v1/models/{model_id}/grants/{workspace_id}","href":"/api-reference/endpoints/models-\u0026-providers/revoke-a-model-grant"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/webhooks","href":"/api-reference/endpoints/webhooks/list-webhook-endpoints"},{"title":"Create a webhook endpoint (the response carries the signing secret once)","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks","href":"/api-reference/endpoints/webhooks/create-a-webhook-endpoint-the-response-carries-the-signing-secret-once"},{"title":"Retrieve a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/api-reference/endpoints/webhooks/retrieve-a-webhook-endpoint"},{"title":"Update a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/api-reference/endpoints/webhooks/update-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/api-reference/endpoints/webhooks/delete-a-webhook-endpoint"},{"title":"Replace the signing secret (the response carries it once)","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks/{webhook_endpoint_id}/regenerate_signing_secret","href":"/api-reference/endpoints/webhooks/replace-the-signing-secret-the-response-carries-it-once"}]},{"group":"Sessions","pages":[{"title":"List Sessions","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions","href":"/api-reference/endpoints/sessions/list-sessions"},{"title":"Create Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions","href":"/api-reference/endpoints/sessions/create-session"},{"title":"Get Session","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}","href":"/api-reference/endpoints/sessions/get-session"},{"title":"Update Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}","href":"/api-reference/endpoints/sessions/update-session"},{"title":"Delete Session","openapi":"/api-reference/bma.openapi.yaml delete /v1/sessions/{session_id}","href":"/api-reference/endpoints/sessions/delete-session"},{"title":"Archive Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/archive","href":"/api-reference/endpoints/sessions/archive-session"},{"title":"Revoke an archived session's executor","description":"Confirms that the executor of an archived session that ran on a fixed machine (an `mch_` environment) has stopped. The first call records a revocation request, which the platform delivers to the machine's executor in the background, retrying about every minute until the executor confirms its fence and stop. Until then the answer is 409 `executor_revocation_pending`; it is also the answer for a session that is not archived, that does not run on a fixed machine, or whose `bma_placement` pins another machine. Once confirmed, every call answers `revoked: true`. Idempotent: calling again never records a second request.\n\n**Authorization:** Organization API key (`x-api-key: bma_org_v1_…`), personal access token (`Authorization: Bearer bma_pat_v1_…`), OAuth access token or signed-in dashboard session; a user credential names its organization with `bma-organization-id`. The request acts in the workspace named by `bma-workspace-id` (or `anthropic-workspace-id`; when both are sent they must agree), else the credential's default workspace, else the only workspace the credential can use. The caller's workspace role must be `admin`, `developer` or `operator` (`viewer` is refused); organization owners and admins act as workspace admins in every workspace of their organization.\n\n**Limits:**\n\n- No limits specific to this endpoint.\n- Rate limit: one request of the organization's write budget ([Rate limits](https://docs.beeos.ai/guides/limits)).\n\n**Errors** (besides the [common errors](https://docs.beeos.ai/api-reference/errors) (401 authentication, 429 `rate_limited`, 500)):\n\n| Status | `error.type` | `error.code` | Cause | Fix |\n| --- | --- | --- | --- | --- |\n| 400 | `invalid_request_error` | `organization_required` | A user credential (personal access token, OAuth token, dashboard session) names no organization. | Name the organization with the `bma-organization-id` header. |\n| 400 | `invalid_request_error` | `project_required` | The credential can use several workspaces and the request names none. | Name the workspace with the `bma-workspace-id` header. |\n| 400 | `invalid_request_error` | `workspace_id_conflict` | `bma-workspace-id` and `anthropic-workspace-id` name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 403 | `permission_error` | `permission_denied` | The caller's workspace role is `viewer`, which may read sessions but not change them. | Use a credential with the required role or access; retrying with the same credential will not help. |\n| 409 | `conflict_error` | `executor_revocation_pending` | The executor has not confirmed its stop yet, or the session is not archived, does not run on a fixed machine, or pins another machine. | Archive the session first; then retry later until the answer is 200. |","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/bma_executor_revocation","href":"/api-reference/endpoints/sessions/revoke-an-archived-sessions-executor"},{"title":"List Events","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/events","href":"/api-reference/endpoints/sessions/list-events"},{"title":"Send Events","description":"Sends events to a session and returns them as stored, in order. A `user.message` starts a turn (queued behind an open one, or handed to the running turn when it asks for steering with BMA's `bma_delivery_mode`); a `user.interrupt` cancels the open turn and is marked processed when that turn has ended (with no open turn it is recorded with `bma_interrupt_outcome: no_active_turn`); `user.tool_confirmation` and `user.custom_tool_result` answer a call the turn waits for, and the last answer resumes it. Turns run asynchronously: follow them with the event stream or list. `user.define_outcome`, `user.tool_result` and `system.message` are refused with 400. Repeating an answer that was already accepted returns it again without a second effect. Send an `Idempotency-Key` to make retries safe (the same key and body replay the first answer); without a key, an official SDK retry of the same body within 10 minutes is merged with the first request. An archived session answers 409 `conflict_error`.\n\n**Authorization:** Organization API key (`x-api-key: bma_org_v1_…`), personal access token (`Authorization: Bearer bma_pat_v1_…`), OAuth access token or signed-in dashboard session; a user credential names its organization with `bma-organization-id`. The request acts in one workspace: the one named by `bma-workspace-id` (or `anthropic-workspace-id`; when both are sent they must agree), else the credential's default workspace (an API key's own workspace, else its organization's Default workspace), else the only workspace the credential can use. The caller's workspace role must be `admin`, `developer` or `operator` (`viewer` is refused); organization owners and admins act as workspace admins in every workspace of their organization.\n\n**Limits:**\n\n- Request body: at most 32 MiB (33,554,432 bytes).\n- `Idempotency-Key`: 1 to 255 visible ASCII characters; a completed key replays its answer for 24 hours; a key whose request is still running blocks the key for at most 10 minutes.\n- A steering `user.message`: content at most 40 KiB.\n- A `user.bma_controlled_message`: at most 10 selected skills, each SKILL.md at most 64 KiB, 256 KiB in total.\n- Rate limit: one request of the organization's write budget ([Rate limits](https://docs.beeos.ai/guides/limits)).\n\n**Errors** (besides the [common errors](https://docs.beeos.ai/api-reference/errors) (401 authentication, 429 `rate_limited`, 500)):\n\n| Status | `error.type` | `error.code` | Cause | Fix |\n| --- | --- | --- | --- | --- |\n| 400 | `invalid_request_error` | `idempotency_key_reused` | The `Idempotency-Key` was used in the last 24 hours with a different request. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 400 | `invalid_request_error` | `invalid_idempotency_key` | `Idempotency-Key` is not 1 to 255 visible ASCII characters. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 400 | `invalid_request_error` | `invalid_json` | The body cannot be read or is not a JSON object. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 400 | `invalid_request_error` | `organization_required` | A user credential (personal access token, OAuth token, dashboard session) names no organization. | Name the organization with the `bma-organization-id` header. |\n| 400 | `invalid_request_error` | `project_required` | The credential can use several workspaces and the request names none. | Name the workspace with the `bma-workspace-id` header. |\n| 400 | `invalid_request_error` | `workspace_id_conflict` | `bma-workspace-id` and `anthropic-workspace-id` name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 403 | `permission_error` | `permission_denied` | The caller's workspace role is `viewer`, which may read sessions but not change them. | Use a credential with the required role or access; retrying with the same credential will not help. |\n| 404 | `not_found_error` | `skill_not_found` | A skill selected by a `user.bma_controlled_message` is no longer readable by the workspace. | Check the ID and the organization or workspace it belongs to; do not retry the same request. |\n| 404 | `not_found_error` | `skill_version_not_found` | A skill revision selected by a `user.bma_controlled_message` no longer exists. | Check the ID and the organization or workspace it belongs to; do not retry the same request. |\n| 409 | `conflict_error` | `confirmation_closed` | The `user.tool_confirmation` answers a prompt whose turn closed without a decision. | Re-read the resource, resolve the conflicting state, then send the request again. |\n| 409 | `conflict_error` | `custom_tool_use_closed` | The `user.custom_tool_result` answers a custom tool call whose turn closed without a result. | Re-read the resource, resolve the conflicting state, then send the request again. |\n| 409 | `conflict_error` | `idempotency_key_in_use` | A request with the same `Idempotency-Key` is still being processed. | Retry after a short delay; the first request's answer is replayed once it completes. |\n| 409 | `conflict_error` | `interaction_withdrawn` | The executor withdrew the interaction of this `tool_use_id`. | Re-read the resource, resolve the conflicting state, then send the request again. |\n| 413 | `request_too_large` | `request_too_large` | The body is larger than 32 MiB. | Reduce the size of the request body or upload in smaller parts. |","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/events","href":"/api-reference/endpoints/sessions/send-events"},{"title":"Stream Events","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/events/stream","href":"/api-reference/endpoints/sessions/stream-events"},{"title":"Fork a session (copies the conversation only, not files)","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/fork","href":"/api-reference/endpoints/sessions/fork-a-session-copies-the-conversation-only-not-files"},{"title":"List Session Resources","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/resources","href":"/api-reference/endpoints/sessions/list-session-resources"},{"title":"Add Session Resource","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/resources","href":"/api-reference/endpoints/sessions/add-session-resource"},{"title":"Get Session Resource","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/resources/{resource_id}","href":"/api-reference/endpoints/sessions/get-session-resource"},{"title":"Update Session Resource","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/resources/{resource_id}","href":"/api-reference/endpoints/sessions/update-session-resource"},{"title":"Delete Session Resource","openapi":"/api-reference/bma.openapi.yaml delete /v1/sessions/{session_id}/resources/{resource_id}","href":"/api-reference/endpoints/sessions/delete-session-resource"},{"title":"List a session's tool grants","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/tool_grants","href":"/api-reference/endpoints/sessions/list-a-sessions-tool-grants"},{"title":"Revoke a session's tool grant","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/tool_grants/{grant_id}/revoke","href":"/api-reference/endpoints/sessions/revoke-a-sessions-tool-grant"}]},{"group":"Skills","pages":[{"title":"List skills","openapi":"/api-reference/bma.openapi.yaml get /v1/skills","href":"/api-reference/endpoints/skills/list-skills"},{"title":"Create a skill","openapi":"/api-reference/bma.openapi.yaml post /v1/skills","href":"/api-reference/endpoints/skills/create-a-skill"},{"title":"Retrieve a skill","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}","href":"/api-reference/endpoints/skills/retrieve-a-skill"},{"title":"Delete a skill","openapi":"/api-reference/bma.openapi.yaml delete /v1/skills/{skill_id}","href":"/api-reference/endpoints/skills/delete-a-skill"},{"title":"List skill versions","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions","href":"/api-reference/endpoints/skills/list-skill-versions"},{"title":"Create a skill version","openapi":"/api-reference/bma.openapi.yaml post /v1/skills/{skill_id}/versions","href":"/api-reference/endpoints/skills/create-a-skill-version"},{"title":"Retrieve a skill version","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions/{version}","href":"/api-reference/endpoints/skills/retrieve-a-skill-version"},{"title":"Delete a skill version","openapi":"/api-reference/bma.openapi.yaml delete /v1/skills/{skill_id}/versions/{version}","href":"/api-reference/endpoints/skills/delete-a-skill-version"},{"title":"Download a skill version","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions/{version}/content","href":"/api-reference/endpoints/skills/download-a-skill-version"}]},{"group":"Terminal sessions","pages":[{"title":"List the terminal sessions of a machine","openapi":"/api-reference/bma.openapi.yaml get /v1/terminal_sessions","href":"/api-reference/endpoints/terminal-sessions/list-the-terminal-sessions-of-a-machine"},{"title":"Open a terminal session (body machine_id)","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions","href":"/api-reference/endpoints/terminal-sessions/open-a-terminal-session-body-machine_id"},{"title":"Retrieve a terminal session","openapi":"/api-reference/bma.openapi.yaml get /v1/terminal_sessions/{terminal_session_id}","href":"/api-reference/endpoints/terminal-sessions/retrieve-a-terminal-session"},{"title":"Close a terminal session","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions/{terminal_session_id}/close","href":"/api-reference/endpoints/terminal-sessions/close-a-terminal-session"},{"title":"Mint a single-use ticket (purpose connect)","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions/{terminal_session_id}/tickets","href":"/api-reference/endpoints/terminal-sessions/mint-a-single-use-ticket-purpose-connect"}]},{"group":"User profiles","pages":[{"title":"List user profiles","openapi":"/api-reference/bma.openapi.yaml get /v1/user_profiles","href":"/api-reference/endpoints/user-profiles/list-user-profiles"},{"title":"Create a user profile","openapi":"/api-reference/bma.openapi.yaml post /v1/user_profiles","href":"/api-reference/endpoints/user-profiles/create-a-user-profile"},{"title":"Retrieve a user profile","openapi":"/api-reference/bma.openapi.yaml get /v1/user_profiles/{user_profile_id}","href":"/api-reference/endpoints/user-profiles/retrieve-a-user-profile"},{"title":"Update a user profile","openapi":"/api-reference/bma.openapi.yaml post /v1/user_profiles/{user_profile_id}","href":"/api-reference/endpoints/user-profiles/update-a-user-profile"},{"title":"Delete a user profile","openapi":"/api-reference/bma.openapi.yaml delete /v1/user_profiles/{user_profile_id}","href":"/api-reference/endpoints/user-profiles/delete-a-user-profile"}]},{"group":"Vaults","pages":[{"title":"List vaults","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults","href":"/api-reference/endpoints/vaults/list-vaults"},{"title":"Create a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults","href":"/api-reference/endpoints/vaults/create-a-vault"},{"title":"Retrieve a vault","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}","href":"/api-reference/endpoints/vaults/retrieve-a-vault"},{"title":"Update a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}","href":"/api-reference/endpoints/vaults/update-a-vault"},{"title":"Delete a vault","openapi":"/api-reference/bma.openapi.yaml delete /v1/vaults/{vault_id}","href":"/api-reference/endpoints/vaults/delete-a-vault"},{"title":"Archive a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/archive","href":"/api-reference/endpoints/vaults/archive-a-vault"},{"title":"List credentials","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}/credentials","href":"/api-reference/endpoints/vaults/list-credentials"},{"title":"Create a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials","href":"/api-reference/endpoints/vaults/create-a-credential"},{"title":"Retrieve a credential","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/api-reference/endpoints/vaults/retrieve-a-credential"},{"title":"Update or rotate a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/api-reference/endpoints/vaults/update-or-rotate-a-credential"},{"title":"Delete a credential","openapi":"/api-reference/bma.openapi.yaml delete /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/api-reference/endpoints/vaults/delete-a-credential"},{"title":"Archive a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}/archive","href":"/api-reference/endpoints/vaults/archive-a-credential"},{"title":"Validate an MCP OAuth credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}/mcp_oauth_validate","href":"/api-reference/endpoints/vaults/validate-an-mcp-oauth-credential"}]},{"group":"Web search \u0026 fetch","pages":[{"title":"Fetch a web page","openapi":"/api-reference/bma.openapi.yaml post /v1/web_fetches","href":"/api-reference/endpoints/web-search-\u0026-fetch/fetch-a-web-page"},{"title":"Search the web","openapi":"/api-reference/bma.openapi.yaml post /v1/web_searches","href":"/api-reference/endpoints/web-search-\u0026-fetch/search-the-web"}]}]}]},{"group":"bma-executor-sdk","pages":[{"title":"bma-executor-sdk Protocol Reference","sidebarTitle":"Protocol overview","icon":"microchip","href":"/api-reference/bma-executor-sdk/overview"},{"group":"Endpoints","expanded":true,"pages":[{"title":"Connection \u0026 lifecycle","icon":"plug","href":"/api-reference/bma-executor-sdk/connection"},{"title":"Sessions \u0026 turns","icon":"messages","href":"/api-reference/bma-executor-sdk/sessions-and-turns"},{"title":"Tools \u0026 interactions","icon":"wrench","href":"/api-reference/bma-executor-sdk/tools-and-interactions"},{"title":"Processes \u0026 terminals","icon":"terminal","href":"/api-reference/bma-executor-sdk/processes-and-terminals"},{"title":"Desktop, screen \u0026 workspace","icon":"desktop","href":"/api-reference/bma-executor-sdk/desktop-and-workspace"}]}]}]},{"tab":"Self-hosting","pages":[{"title":"Self-hosting","href":"/self-hosting/overview"}]},{"tab":"Changelog \u0026 roadmap","pages":[{"title":"Changelog \u0026 roadmap","href":"/changelog"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/api-reference/endpoints/sessions/list-events"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-hant/api-reference/endpoints/sessions/list-events"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/endpoints/sessions/list-events"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/endpoints/sessions/list-events"}]}]},"basePath":"","title":"List Events - BMA Developer Docs","buildId":"815f1a3055e5","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-1AKe0ef2.js","snippetPresets-CngcX0JF.js","utils-Dn_b4b8k.js","style-to-object-BY3JEAdk.js","utils-Gx5d07QN.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CRl5XKI1.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DvHqN_Pm.js","_Uint8Array-B1ND6YRH.js","isObject-FP1Yky1u.js","ApiExamples-D7M37pdg.js","usePlaygroundInputsStore-DVayymCv.js","shallow-Bf79Qs-6.js","isEqual-DVW5K_pQ.js","CodeSnippets-4lATClrm.js","CodeSnippet-s__4qicF.js","use-playground-group-access-BHEk5kJ3.js","Page-DJ-Y-H3C.js","api-description-markdown-Dr4kHu1P.js","DynamicMarkdown-Bny17ned.js","SectionHeading-9Y8On-s1.js","MethodPill-BJEvxiO8.js","getPastedJson-58y35ABl.js","Check2Icon-CLmJh0P7.js","axios-CsQoIw0U.js","Markdown-CY5OpB5G.js","AssistantPageLink-Dh-tOAEH.js","dist-B74kwL_M.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}