ID of the task that a user can use for polling its status
string
any of completed, failed, in_progress
object | null
The final result object, may vary based on task type.
object | null
Contains the retrieved contextual information used during the run.
Includes optional web_search, file_search, and tool_calls result arrays.
Show properties
object[] | null
A list of web search results retrieved during the run.
Show properties
string
The URL address returned by the search.
string
The extracted text from the URL that was used as context.
number
Relevancy score from 0 to 1.
object[] | null
A list of file search results retrieved during the run.
Show properties
string
The ID of the file that contains relevant text.
string
The name of the retrieved file.
string | null
The retrieved text segment.
When null, it indicates that the entire file was retrieved.
number
Relevancy score from 0 to 1.
integer
The order of the retrieved segments when multiple results come from the same file.
object[] | null
A list of tool call results executed during the run.
Show properties
string
The name of the tool that was called.
string
The type of tool invoked: "mcp" or "http".
string | null
When the tool belongs to an MCP server, indicates which server provided the tool.
object
A JSON object representing the parameters sent to the tool.
object
The JSON response returned by the tool.
object | null
Detailed results for each requirement.
Show properties
float | null
A value between 0 and 1 indicating how well the requirement was fulfilled.
string | null
A textual reason what happened - one of Perfect score or Budget exhausted.
object[]
A list of search requirement shown in the report.
Show properties
string | null
The name provided (or default name) of the requirement requested to be fulfilled
string | null
When a user provides the requirement explicitly, it’s what the user provided
float | null
A value between 0 and 1 indicating how well the requirement was fulfilled.
string | null
A textual reason about why the requirement didn’t reach a perfect score.
object | null
An object that provides details about why the run failed. Returns null if the run completed successfully.
Show properties
string
A descriptive message explaining the reason for the failure.
The example below shows a fully completed run object, including the requirements_result, data_sources, and error fields.These fields are not included by default and will only appear in the response if you explicitly request them using the include parameter.For details on how to use this parameter, see the includeparameter documentation.
Example:
{ "id": "dba286ef-5067-4c6e-b215-5483500da8df", "status": "completed", "result": "- example 1\n- example 2\n- example 3", "requirements_result": { "score": 1, "finish_reason": "Perfect result achieved", "requirements": [ { "name": "bullets", "description": "Return a bulleted list where each field is a bullet", "is_mandatory": false, "score": 1, "reason": "None" } ] }, "data_sources": { "web_search": [ { "id": "0686b7a3-6cb6-7128-8000-146778a91763", "text": "web search result text", "url": "https://example.com", "score": 0.01461567 } ], "file_search": [ { "text": "file search result text", "file_id": "aa50de3e-1624-4e9f-a6f4-488a1aa16759", "file_name": "example.pdf", "score": 0.7331293 } ] }, "error": { "message": "The run failed due to an unexpected server error." }}
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AI21 Labs","colors":{"primary":"#F098B5","light":"#EE87A7","dark":"#F098B5"},"logo":{"light":"https://mintcdn.com/ai21-demo/ae4eOvPS_ZOlDCYT/images/AI21_Logo_black.png?fit=max\u0026auto=format\u0026n=ae4eOvPS_ZOlDCYT\u0026q=85\u0026s=ff9840432b0d2e9ebcbadc46ee2b5b8f","dark":"https://mintcdn.com/ai21-demo/ae4eOvPS_ZOlDCYT/images/AI21_Logo_white.png?fit=max\u0026auto=format\u0026n=ae4eOvPS_ZOlDCYT\u0026q=85\u0026s=8a9b3dd3ba0831a3431f51d792cef4c3","href":"https://www.ai21.com/"},"favicon":"https://mintcdn.com/ai21-demo/oHuzynnpYbW6Dt6q/favicon.png?fit=max\u0026auto=format\u0026n=oHuzynnpYbW6Dt6q\u0026q=85\u0026s=2b79127bf528ced3b4c82a2245c3977b","appearance":{"default":"light"},"background":{"decoration":"gradient","color":{"dark":"#212121"}},"navbar":{"links":[{"href":"https://studio.ai21.com/v2/workspaces/81189ce4-f4d4-433e-954d-ff17cd040a2a/maestro","label":"Playground"},{"href":"https://studio.ai21.com/v2/account/api-key?source=docs\u0026_gl=1*u1mkxz*_gcl_au*OTIzMDQ5NzU0LjE3NDkyOTE4NjA.","label":"API Key"}],"primary":{"type":"button","label":"Get a Demo","href":"https://www.ai21.com/talk-to-us/"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/ai21","x":"https://twitter.com/AI21Labs","discord":"https://discord.com/invite/cKzg6GEAyB"}},"seo":{"metatags":{"title":"AI21 Labs Documentation","description":"Access full API references, guides, and model capabilities. Learn how to work with AI21's foundation models."}},"fonts":{"heading":{"family":"Polysans","source":"https://www.ai21.com/wp-content/themes/ai21/assets/fonts/polysans/polysans-500.woff2","format":"woff2"},"body":{"family":"Inter"}},"styling":{"codeblocks":"system","latex":false},"integrations":{"amplitude":{"apiKey":"be0223327acdb089744156d19857f1ac"},"intercom":{"appId":"mj4rlz0i"}},"contextual":{"options":["copy","view"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ai21-demo","hasAudioNarration":false,"actualSubdomain":"ai21-demo","customDomains":["docs.ai21.com"],"gitSource":{"type":"github","owner":"ai21labs","repo":"ai21-documentation","deployBranch":"mintlify-migration","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae927afce2e4391f29e39da:success","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Guides","count":39},{"language":"default","tag":"API Reference","count":15},{"language":"default","tag":"AI21 Maestro","count":14},{"language":"default","tag":"Tools","count":11},{"language":"default","tag":"Foundation Models","count":7},{"language":"default","tag":"File Library Management","count":7},{"language":"default","tag":"AI21 Studio","count":6},{"language":"default","tag":"Private AI","count":4},{"language":"default","tag":"User Provided Tools","count":4},{"language":"default","tag":"Getting Started","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles/custom.css","content":".tryit-button{display:none!important}button[aria-label=\"Try it\"]{display:none!important}.centered-table{text-align:center}.centered-table table{margin:0 auto!important;display:table!important}div.centered-table>table{margin-left:auto!important;margin-right:auto!important}.dark .hero{color:#ffffff!important}.dark .hero h1{font-weight:500!important}h1{font-weight:500!important}h2{font-weight:400!important;font-size:1.4rem!important;line-height:1.4!important;letter-spacing:-0.01em!important;margin-bottom:0.6em!important}.category-title{font-size:1.75rem!important;font-weight:500!important;line-height:1.3!important;margin-top:2rem!important;margin-bottom:1rem!important;letter-spacing:normal!important}.home-page a.box h2,.home-page .box h2{font-size:1rem!important;font-weight:400!important;line-height:1.2!important;margin-bottom:0.4em!important;letter-spacing:-0.01em!important}.sidebar a,.sidebar .category,.sidebar .group-title{font-weight:400!important}.sidebar .title{font-weight:300!important}.card h2{font-size:1.125rem!important;font-weight:500!important;line-height:1.5!important;margin-bottom:0.4em!important;letter-spacing:-0.01em!important}.bg-lightmode{background-image:url('https://mintlify-assets.b-cdn.net/ai21-background.svg')}.bg-darkmode{background-image:url('https://mintlify-assets.b-cdn.net/dark-ai21-background2.svg')}"}],"page":{"pagePath":"reference/run-object","slug":"/reference/run-object","pageMetadata":{"title":"Run object","mode":"wide","description":null,"href":"/reference/run-object","hidden":false},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,br:`br`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Expandable,Heading,ParamField}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`run-object`,children:`Run Object`}),`\n`,_jsx(ParamField,{body:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`ID of the task that a user can use for polling its status`})}),`\n`,_jsx(ParamField,{body:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`any of `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`failed`}),`, `,_jsx(_components.code,{children:`in_progress`})]})}),`\n`,_jsx(ParamField,{body:`result`,type:`object | null`,id:`param-result`,children:_jsx(_components.p,{children:`The final result object, may vary based on task type.`})}),`\n`,_jsxs(ParamField,{body:`data_sources`,type:`object | null`,id:`param-data-sources`,children:[_jsxs(_components.p,{children:[`Contains the retrieved contextual information used during the run.`,_jsx(_components.br,{}),`\n`,`Includes optional `,_jsx(_components.code,{children:`web_search`}),`, `,_jsx(_components.code,{children:`file_search`}),`, and `,_jsx(_components.code,{children:`tool_calls`}),` result arrays.`]}),_jsxs(Accordion,{title:`Show properties`,id:`show-properties`,children:[_jsxs(ParamField,{body:`web_search`,type:`object[] | null`,id:`param-web-search`,children:[_jsx(_components.p,{children:`A list of web search results retrieved during the run.`}),_jsxs(Accordion,{title:`Show properties`,id:`show-properties-1`,children:[_jsx(ParamField,{body:`url`,type:`string`,id:`param-url`,children:_jsx(_components.p,{children:`The URL address returned by the search.`})}),_jsx(ParamField,{body:`text`,type:`string`,id:`param-text`,children:_jsx(_components.p,{children:`The extracted text from the URL that was used as context.`})}),_jsx(ParamField,{body:`score`,type:`number`,id:`param-score`,children:_jsx(_components.p,{children:`Relevancy score from 0 to 1.`})})]})]}),_jsxs(ParamField,{body:`file_search`,type:`object[] | null`,id:`param-file-search`,children:[_jsx(_components.p,{children:`A list of file search results retrieved during the run.`}),_jsxs(Accordion,{title:`Show properties`,id:`show-properties-2`,children:[_jsx(ParamField,{body:`file_id`,type:`string`,id:`param-file-id`,children:_jsx(_components.p,{children:`The ID of the file that contains relevant text.`})}),_jsx(ParamField,{body:`file_name`,type:`string`,id:`param-file-name`,children:_jsx(_components.p,{children:`The name of the retrieved file.`})}),_jsx(ParamField,{body:`text`,type:`string | null`,id:`param-text-1`,children:_jsxs(_components.p,{children:[`The retrieved text segment.`,_jsx(_components.br,{}),`\n`,`When `,_jsx(_components.code,{children:`null`}),`, it indicates that the entire file was retrieved.`]})}),_jsx(ParamField,{body:`score`,type:`number`,id:`param-score-1`,children:_jsx(_components.p,{children:`Relevancy score from 0 to 1.`})}),_jsx(ParamField,{body:`order`,type:`integer`,id:`param-order`,children:_jsx(_components.p,{children:`The order of the retrieved segments when multiple results come from the same file.`})})]})]}),_jsxs(ParamField,{body:`tool_calls`,type:`object[] | null`,id:`param-tool-calls`,children:[_jsx(_components.p,{children:`A list of tool call results executed during the run.`}),_jsxs(Accordion,{title:`Show properties`,id:`show-properties-3`,children:[_jsx(ParamField,{body:`tool_name`,type:`string`,id:`param-tool-name`,children:_jsx(_components.p,{children:`The name of the tool that was called.`})}),_jsx(ParamField,{body:`tool_type`,type:`string`,id:`param-tool-type`,children:_jsxs(_components.p,{children:[`The type of tool invoked: `,_jsx(_components.code,{children:`\"mcp\"`}),` or `,_jsx(_components.code,{children:`\"http\"`}),`.`]})}),_jsx(ParamField,{body:`server_label`,type:`string | null`,id:`param-server-label`,children:_jsx(_components.p,{children:`When the tool belongs to an MCP server, indicates which server provided the tool.`})}),_jsx(ParamField,{body:`parameters`,type:`object`,id:`param-parameters`,children:_jsx(_components.p,{children:`A JSON object representing the parameters sent to the tool.`})}),_jsx(ParamField,{body:`response`,type:`object`,id:`param-response`,children:_jsx(_components.p,{children:`The JSON response returned by the tool.`})})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`requirements_result`,type:`object | null`,id:`param-requirements-result`,children:[_jsx(_components.p,{children:`Detailed results for each requirement.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`score`,type:`float | null`,id:`param-score-2`,children:_jsx(_components.p,{children:`A value between 0 and 1 indicating how well the requirement was fulfilled.`})}),_jsx(ParamField,{body:`finish_reason`,type:`string | null`,id:`param-finish-reason`,children:_jsxs(_components.p,{children:[`A textual reason what happened - one of `,_jsx(_components.code,{children:`Perfect score`}),` or `,_jsx(_components.code,{children:`Budget exhausted`}),`.`]})}),_jsxs(ParamField,{body:`requirements`,type:`object[]`,id:`param-requirements`,children:[_jsx(_components.p,{children:`A list of search requirement shown in the report.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`name`,type:`string | null`,id:`param-name`,children:_jsx(_components.p,{children:`The name provided (or default name) of the requirement requested to be fulfilled`})}),_jsx(ParamField,{body:`description`,type:`string | null`,id:`param-description`,children:_jsx(_components.p,{children:`When a user provides the requirement explicitly, it’s what the user provided`})}),_jsx(ParamField,{body:`score`,type:`float | null`,id:`param-score-3`,children:_jsx(_components.p,{children:`A value between 0 and 1 indicating how well the requirement was fulfilled.`})}),_jsx(ParamField,{body:`reason`,type:`string | null`,id:`param-reason`,children:_jsx(_components.p,{children:`A textual reason about why the requirement didn’t reach a perfect score.`})})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`error`,type:`object | null`,id:`param-error`,children:[_jsxs(_components.p,{children:[`An object that provides details about why the run failed. Returns `,_jsx(_components.code,{children:`null`}),` if the run completed successfully.`]}),_jsx(Accordion,{title:`Show properties`,id:`show-properties-4`,children:_jsx(ParamField,{body:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`A descriptive message explaining the reason for the failure.`})})})]}),`\n`,_jsxs(_components.p,{children:[`The example below shows a fully completed run object, including the `,_jsx(_components.code,{children:`requirements_result`}),`, `,_jsx(_components.code,{children:`data_sources`}),`, and `,_jsx(_components.code,{children:`error`}),` fields.`]}),`\n`,_jsxs(_components.p,{children:[`These fields are `,_jsx(_components.strong,{children:`not included by default`}),` and will only appear in the response if you explicitly request them using the include parameter.`]}),`\n`,_jsxs(_components.p,{children:[`For details on how to use this parameter, see the `,_jsx(_components.code,{children:`include`}),` `,_jsx(_components.a,{href:`https://docs.ai21.com/reference/endpoints#param-include`,children:_jsx(`u`,{children:`parameter documentation`})}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`39`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`39`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dba286ef-5067-4c6e-b215-5483500da8df\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"- example 1`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`- example 2`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`- example 3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requirements_result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"finish_reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Perfect result achieved\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requirements\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bullets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Return a bulleted list where each field is a bullet\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"is_mandatory\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"None\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data_sources\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"web_search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0686b7a3-6cb6-7128-8000-146778a91763\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web search result text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.01461567`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"file search result text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"aa50de3e-1624-4e9f-a6f4-488a1aa16759\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"example.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.7331293`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The run failed due to an unexpected server error.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Run object","mode":"wide","description":null,"href":"/reference/run-object","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Run Object","slug":"run-object","depth":2,"children":[{"title":"Example:","slug":"example","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ai21-demo","siteName":"AI21 Labs","title":"Run object - AI21 Labs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-19T12:51:32.995Z","originalFileLocation":"reference/run-object.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}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=\"Access full API references, guides, and model capabilities. Learn how to work with AI21\u0026#x27;s foundation models.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AI21 Labs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run object - AI21 Labs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Access full API references, guides, and model capabilities. Learn how to work with AI21\u0026#x27;s foundation models.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AI21 Labs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ai21.com/reference/run-object\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ai21-demo.mintlify.site/_mintlify/api/og/v2?division=AI21+Maestro\u0026amp;title=Run+object\u0026amp;theme=db641889c50a4115ea9b934e\u0026amp;signature=8d767f982f9027c6f72c8f2fa7ebb33e2fb9daaa2e9cc77800f4ec37e3cd73b2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Run object - AI21 Labs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Access full API references, guides, and model capabilities. Learn how to work with AI21\u0026#x27;s foundation models.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ai21-demo.mintlify.site/_mintlify/api/og/v2?division=AI21+Maestro\u0026amp;title=Run+object\u0026amp;theme=db641889c50a4115ea9b934e\u0026amp;signature=8d767f982f9027c6f72c8f2fa7ebb33e2fb9daaa2e9cc77800f4ec37e3cd73b2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AI21 Labs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F098B5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ai21.com/reference/run-object\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/run-object.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ai21.com/#organization\",\"name\":\"AI21 Labs\",\"url\":\"https://docs.ai21.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ai21-demo/ae4eOvPS_ZOlDCYT/images/AI21_Logo_black.png?fit=max\u0026auto=format\u0026n=ae4eOvPS_ZOlDCYT\u0026q=85\u0026s=ff9840432b0d2e9ebcbadc46ee2b5b8f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ai21.com#website\",\"name\":\"AI21 Labs\",\"url\":\"https://docs.ai21.com\",\"publisher\":{\"@id\":\"https://docs.ai21.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ai21.com/reference/run-object#webpage\",\"url\":\"https://docs.ai21.com/reference/run-object\",\"name\":\"Run object\",\"dateModified\":\"2026-02-19T12:51:32.995Z\",\"isPartOf\":{\"@id\":\"https://docs.ai21.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ai21.com/reference/run-object#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ai21.com/reference/run-object#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AI21 Maestro\",\"item\":\"https://docs.ai21.com/reference/maestro-create-run\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run object\",\"item\":\"https://docs.ai21.com/reference/run-object\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ai21.com/reference/run-object#article\",\"headline\":\"Run object\",\"name\":\"Run object\",\"url\":\"https://docs.ai21.com/reference/run-object\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ai21.com/reference/run-object#webpage\"},\"dateModified\":\"2026-02-19T12:51:32.995Z\",\"publisher\":{\"@id\":\"https://docs.ai21.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ai21.com#website\"}}]}\u003c/script>","agentPointerHref":"/reference/run-object.md","siteName":"AI21 Labs","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/docs/overview"}]},{"tab":"API Reference","groups":[{"group":"Using the APIs","pages":[{"title":"Introduction","href":"/reference/introduction"},{"title":"Authentication","href":"/reference/authentication"},{"title":"Rate Limits","href":"/reference/api-rate-limits"}]},{"group":"AI21 Maestro","pages":[{"title":"Create run","api":"POST https://api.ai21.com/studio/v1/maestro/runs","href":"/reference/maestro-create-run"},{"title":"Retrieve run status","description":"Retrieves the status of the run execution based on its ID. The status can be `completed`, `failed`, or `in_progress`.","api":"GET https://api.ai21.com/studio/v1/maestro/runs/{run_id}","href":"/reference/retrieve-run"},{"title":"Run object","mode":"wide","href":"/reference/run-object"}]},{"group":"Foundation Models","pages":[{"title":" Chat request","sidebarTitle":"Chat request","api":"POST https://api.ai21.com/studio/v1/chat/completions","description":null,"href":"/reference/jamba-1-6-api-ref"},{"title":"Chat response","href":"/reference/jamba-api-response"}]},{"group":"File Library Management","pages":[{"title":"File Library","sidebarTitle":"Overview","href":"/reference/manage-library-ref"},{"title":"Upload workspace files","api":"POST https://api.ai21.com/studio/v1/library/files","href":"/reference/manage-library-ref/upload-workspace-files"},{"title":"List library files","api":"GET https://api.ai21.com/studio/v1/library/files","href":"/reference/manage-library-ref/list-library-files"},{"title":"Get workspace file","api":"GET https://api.ai21.com/studio/v1/library/files/{file_id}","href":"/reference/manage-library-ref/get-workspace-files"},{"title":"Get file download link","api":"GET https://api.ai21.com/studio/v1/library/files/{file_id}/download","href":"/reference/manage-library-ref/get-file-download-link"},{"title":"Update file","api":"PUT https://api.ai21.com/studio/v1/library/files/{file_id}","href":"/reference/manage-library-ref/update-file"},{"title":"Delete file","api":"DELETE https://api.ai21.com/studio/v1/library/files/{file_id}","href":"/reference/manage-library-ref/delete-file"}]}]},{"tab":"Updates","pages":[{"title":"Updates","href":"/changelog"}]}]},"basePath":"","title":"Run object - AI21 Labs","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}