Evaluations are created when you call Chat with evaluations enabled (via Portal configuration or SDK parameters). The model output is what gets evaluated, with the request used as context.If a callback is provided, the evaluation is passed to that function asynchronously.If no callback is provided, and stream is true, then the evaluation is available on the last chunk.If no callback is provided and stream is false, then the evaluation can be found on the completion response.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Maitai","colors":{"primary":"#21b892","light":"#21b892","dark":"#21b892"},"logo":{"light":"https://mintcdn.com/maitai-cbe2cd27/N9WujJurfZZXQKUx/logo/maitai_logo_full.svg?fit=max\u0026auto=format\u0026n=N9WujJurfZZXQKUx\u0026q=85\u0026s=6c1e93516dfd1772d3dcde9ed11100c5","dark":"https://mintcdn.com/maitai-cbe2cd27/N9WujJurfZZXQKUx/logo/maitai_logo_full_dark.svg?fit=max\u0026auto=format\u0026n=N9WujJurfZZXQKUx\u0026q=85\u0026s=838eb8fb33ac8675de361c6a0156fe39"},"favicon":"https://mintcdn.com/maitai-cbe2cd27/kcIewhDoyU5XOGPZ/logo/favicon.png?fit=max\u0026auto=format\u0026n=kcIewhDoyU5XOGPZ\u0026q=85\u0026s=edad2e6594647c7bb405c48778fc6ffa","api":{},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/maitai-inc"}},"integrations":{"intercom":{"appId":"lgh3y6pe"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"maitai-cbe2cd27","hasAudioNarration":false,"actualSubdomain":"maitai-cbe2cd27","customDomains":["docs.trymaitai.com"],"gitSource":{"type":"github","owner":"maitai-inc","repo":"maitai-mono","deployBranch":"main","contentDirectory":"docs/external","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a617398461890f8b155e563","collectionId":"87d22a4a-5f2a-4edd-9204-4fd11bfbfaa7","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a617398461890f8b155e563"},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae92074e285e7410aaf9953:success","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"Reference","count":333},{"language":"default","tag":"API Reference","count":319},{"language":"default","tag":"Agents","count":74},{"language":"default","tag":"Guides","count":63},{"language":"default","tag":"Datasets","count":47},{"language":"default","tag":"Monitors","count":39},{"language":"default","tag":"Workflows","count":36},{"language":"default","tag":"Models","count":26},{"language":"default","tag":"Sentinels","count":24},{"language":"default","tag":"Build","count":23}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"llms-txt-v2","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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"sdk/evaluate","slug":"/sdk/evaluate","pageMetadata":{"title":"Evaluate","description":"Detect faults in LLM output","href":"/sdk/evaluate"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Detect faults in LLM output\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`create-evaluations`,children:`Create evaluations`}),`\n`,_jsxs(_components.p,{children:[`Evaluations are created when you call `,_jsx(_components.a,{href:`/sdk/chat`,children:`Chat`}),` with evaluations enabled (via Portal configuration or SDK parameters). The model output is what gets evaluated, with the request used as context.`]}),`\n`,_jsxs(_components.p,{children:[`If a `,_jsx(_components.code,{children:`callback`}),` is provided, the evaluation is passed to that function asynchronously.`]}),`\n`,_jsxs(_components.p,{children:[`If no `,_jsx(_components.code,{children:`callback`}),` is provided, and `,_jsx(_components.code,{children:`stream`}),` is `,_jsx(_components.code,{children:`true`}),`, then the evaluation is available on the last chunk.`]}),`\n`,_jsxs(_components.p,{children:[`If no `,_jsx(_components.code,{children:`callback`}),` is provided and `,_jsx(_components.code,{children:`stream`}),` is `,_jsx(_components.code,{children:`false`}),`, then the evaluation can be found on the completion response.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-callback`,children:`Example (callback)`}),`\n`,`\n`,`\n`,_jsx(ResponseField,{name:`application_id`,type:`integer`,id:`param-application-id`,children:_jsx(_components.p,{children:`The Maitai identifier for the application.`})}),`\n`,_jsx(ResponseField,{name:`session_id`,type:`string`,id:`param-session-id`,children:_jsxs(_components.p,{children:[`A unique identifier for the session, passed in from the `,_jsx(_components.a,{href:`/sdk/chat`,children:`Chat`}),` endpoint.`]})}),`\n`,_jsx(ResponseField,{name:`request_id`,type:`string`,id:`param-request-id`,children:_jsx(_components.p,{children:`The identifier of the evaluated chat completion request.`})}),`\n`,_jsxs(ResponseField,{name:`evaluation_results`,type:`array`,id:`param-evaluation-results`,children:[_jsx(_components.p,{children:`A list of individual Sentinel results.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`integer`,id:`param-id`,children:_jsx(_components.p,{children:`A unique identifier for the evaluation result.`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`The status of the evaluation. `,_jsx(_components.code,{children:`FAULT`}),` means a fault was detected. `,_jsx(_components.code,{children:`PASS`}),` means the LLM output passed testing. `,_jsx(_components.code,{children:`NA`}),` means an evaluation wasn’t performed.`]})}),_jsx(ResponseField,{name:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`A detailed description of the evaluation outcome.`})}),_jsx(ResponseField,{name:`confidence`,type:`float`,id:`param-confidence`,children:_jsx(_components.p,{children:`The confidence level of the evaluation result.`})}),_jsx(ResponseField,{name:`correction`,type:`string`,id:`param-correction`,children:_jsxs(_components.p,{children:[`Optional suggested correction text when a `,_jsx(_components.code,{children:`FAULT`}),` is detected.`]})}),_jsx(ResponseField,{name:`meta`,type:`object`,id:`param-meta`,children:_jsx(_components.p,{children:`Additional metadata associated with the evaluation result.`})}),_jsx(ResponseField,{name:`sentinel_id`,type:`integer`,id:`param-sentinel-id`,children:_jsx(_components.p,{children:`An identifier for the Sentinel associated with this result.`})}),_jsx(ResponseField,{name:`eval_time`,type:`integer`,id:`param-eval-time`,children:_jsx(_components.p,{children:`The evaluation time in milliseconds.`})}),_jsx(ResponseField,{name:`date_created`,type:`integer`,id:`param-date-created`,children:_jsx(_components.p,{children:`The Unix timestamp marking the creation of the evaluation result.`})}),_jsxs(ResponseField,{name:`usage`,type:`object`,id:`param-usage`,children:[_jsx(_components.p,{children:`Usage statistics for the Sentinel`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`completion_tokens`,type:`integer`,id:`param-completion-tokens`,children:_jsx(_components.p,{children:`Number of tokens in the generated completion.`})}),_jsx(ResponseField,{name:`prompt_tokens`,type:`integer`,id:`param-prompt-tokens`,children:_jsx(_components.p,{children:`Number of tokens in the prompt.`})}),_jsx(ResponseField,{name:`total_tokens`,type:`integer`,id:`param-total-tokens`,children:_jsx(_components.p,{children:`Total number of tokens used in the request (prompt + completion).`})})]})]})]})]}),`\n`,_jsx(ResponseField,{name:`evaluation_request_id`,type:`string`,id:`param-evaluation-request-id`,children:_jsx(_components.p,{children:`The unique identifier for the evaluation request.`})})]})}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":{"config":{},"pageMetadata":{"title":"Evaluate","description":"Detect faults in LLM output","href":"/sdk/evaluate"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`create-evaluations`,children:`Create evaluations`}),`\n`,_jsxs(_components.p,{children:[`Evaluations are created when you call `,_jsx(_components.a,{href:`/sdk/chat`,children:`Chat`}),` with evaluations enabled (via Portal configuration or SDK parameters). The model output is what gets evaluated, with the request used as context.`]}),`\n`,_jsxs(_components.p,{children:[`If a `,_jsx(_components.code,{children:`callback`}),` is provided, the evaluation is passed to that function asynchronously.`]}),`\n`,_jsxs(_components.p,{children:[`If no `,_jsx(_components.code,{children:`callback`}),` is provided, and `,_jsx(_components.code,{children:`stream`}),` is `,_jsx(_components.code,{children:`true`}),`, then the evaluation is available on the last chunk.`]}),`\n`,_jsxs(_components.p,{children:[`If no `,_jsx(_components.code,{children:`callback`}),` is provided and `,_jsx(_components.code,{children:`stream`}),` is `,_jsx(_components.code,{children:`false`}),`, then the evaluation can be found on the completion response.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-callback`,children:`Example (callback)`}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Python (async)`,numberOfLines:`21`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` maitai`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` on_eval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`eval_response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # handle evaluate response (EvaluateResponse)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(eval_response)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`messages `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"system\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"You are a helpful assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Generate numbers 1-10\"`}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` maitai.MaitaiAsync()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.chat.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`messages,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` session_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_SESSION_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` intent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NUMBER_GENERATOR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` application`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"demo_app\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` callback`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`on_eval,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python (sync)`,numberOfLines:`21`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` maitai`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` on_eval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`eval_response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # handle evaluate response (EvaluateResponse)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(eval_response)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`messages `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"system\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"You are a helpful assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Generate numbers 1-10\"`}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` maitai.Maitai()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.chat.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`messages,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` session_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_SESSION_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` intent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NUMBER_GENERATOR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` application`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"demo_app\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` callback`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`on_eval,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node`,numberOfLines:`22`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Maitai`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"maitai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` maitai`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Maitai`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onEval`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`evalResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // handle evaluate response (EvaluateResponse)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`evalResponse`}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`role:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"system\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"You are a helpful assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`role:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Generate numbers 1-10\"`}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` maitai`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`completions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` messages:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` messages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` session_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_SESSION_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` intent:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"NUMBER_GENERATOR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` application:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"demo_app\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` callback:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onEval`}),_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`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`21`,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:`21`,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:` \"application_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`16`}),_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:` \"session_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"xxx\"`}),_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:` \"evaluation_results\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FAULT\"`}),_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:`\"Test with random number\"`}),_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:` \"confidence\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100.0`}),_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:` \"correction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Test with random number 42.\"`}),_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:` \"sentinel_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`41`}),_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:` \"eval_time\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`489`}),_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:` \"date_created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1716682520088`}),_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:` \"usage\"`}),_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:` \"prompt_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`380`}),_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:` \"completion_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`54`}),_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:` \"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`434`})]}),`\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:` \"evaluation_request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"b84f0d55-7c7e-4af4-8d84-106385682250\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(ResponseField,{name:`application_id`,type:`integer`,id:`param-application-id`,children:_jsx(_components.p,{children:`The Maitai identifier for the application.`})}),`\n`,_jsx(ResponseField,{name:`session_id`,type:`string`,id:`param-session-id`,children:_jsxs(_components.p,{children:[`A unique identifier for the session, passed in from the `,_jsx(_components.a,{href:`/sdk/chat`,children:`Chat`}),` endpoint.`]})}),`\n`,_jsx(ResponseField,{name:`request_id`,type:`string`,id:`param-request-id`,children:_jsx(_components.p,{children:`The identifier of the evaluated chat completion request.`})}),`\n`,_jsxs(ResponseField,{name:`evaluation_results`,type:`array`,id:`param-evaluation-results`,children:[_jsx(_components.p,{children:`A list of individual Sentinel results.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`integer`,id:`param-id`,children:_jsx(_components.p,{children:`A unique identifier for the evaluation result.`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`The status of the evaluation. `,_jsx(_components.code,{children:`FAULT`}),` means a fault was detected. `,_jsx(_components.code,{children:`PASS`}),` means the LLM output passed testing. `,_jsx(_components.code,{children:`NA`}),` means an evaluation wasn’t performed.`]})}),_jsx(ResponseField,{name:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`A detailed description of the evaluation outcome.`})}),_jsx(ResponseField,{name:`confidence`,type:`float`,id:`param-confidence`,children:_jsx(_components.p,{children:`The confidence level of the evaluation result.`})}),_jsx(ResponseField,{name:`correction`,type:`string`,id:`param-correction`,children:_jsxs(_components.p,{children:[`Optional suggested correction text when a `,_jsx(_components.code,{children:`FAULT`}),` is detected.`]})}),_jsx(ResponseField,{name:`meta`,type:`object`,id:`param-meta`,children:_jsx(_components.p,{children:`Additional metadata associated with the evaluation result.`})}),_jsx(ResponseField,{name:`sentinel_id`,type:`integer`,id:`param-sentinel-id`,children:_jsx(_components.p,{children:`An identifier for the Sentinel associated with this result.`})}),_jsx(ResponseField,{name:`eval_time`,type:`integer`,id:`param-eval-time`,children:_jsx(_components.p,{children:`The evaluation time in milliseconds.`})}),_jsx(ResponseField,{name:`date_created`,type:`integer`,id:`param-date-created`,children:_jsx(_components.p,{children:`The Unix timestamp marking the creation of the evaluation result.`})}),_jsxs(ResponseField,{name:`usage`,type:`object`,id:`param-usage`,children:[_jsx(_components.p,{children:`Usage statistics for the Sentinel`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`completion_tokens`,type:`integer`,id:`param-completion-tokens`,children:_jsx(_components.p,{children:`Number of tokens in the generated completion.`})}),_jsx(ResponseField,{name:`prompt_tokens`,type:`integer`,id:`param-prompt-tokens`,children:_jsx(_components.p,{children:`Number of tokens in the prompt.`})}),_jsx(ResponseField,{name:`total_tokens`,type:`integer`,id:`param-total-tokens`,children:_jsx(_components.p,{children:`Total number of tokens used in the request (prompt + completion).`})})]})]})]})]}),`\n`,_jsx(ResponseField,{name:`evaluation_request_id`,type:`string`,id:`param-evaluation-request-id`,children:_jsx(_components.p,{children:`The unique identifier for the evaluation request.`})})]})}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":{"config":{},"pageMetadata":{"title":"Evaluate","description":"Detect faults in LLM output","href":"/sdk/evaluate"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Create evaluations","slug":"create-evaluations","depth":2,"children":[]},{"title":"Example (callback)","slug":"example-callback","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Python (async)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> maitai\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">async\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> def\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> on_eval\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">eval_response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">):\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> # handle evaluate response (EvaluateResponse)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(eval_response)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">messages \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"system\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"You are a helpful assistant\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Generate numbers 1-10\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">client \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> maitai.MaitaiAsync()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> client.chat.completions.create(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> messages\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">messages,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> model\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"gpt-4o\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> session_id\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"YOUR_SESSION_ID\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> intent\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"NUMBER_GENERATOR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> application\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"demo_app\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> callback\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">on_eval,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python (sync)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> maitai\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">def\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> on_eval\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">eval_response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">):\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> # handle evaluate response (EvaluateResponse)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(eval_response)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">messages \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"system\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"You are a helpful assistant\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Generate numbers 1-10\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">client \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> maitai.Maitai()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> client.chat.completions.create(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> messages\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">messages,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> model\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"gpt-4o\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> session_id\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"YOUR_SESSION_ID\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> intent\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"NUMBER_GENERATOR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> application\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"demo_app\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> callback\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">on_eval,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Node","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"22\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Maitai\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> from\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"maitai\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> maitai\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Maitai\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> onEval\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">evalResponse\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">=>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> // handle evaluate response (EvaluateResponse)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">evalResponse\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">};\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> messages\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">role:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"system\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">content:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"You are a helpful assistant\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">role:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">content:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Generate numbers 1-10\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">];\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> maitai\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">chat\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">completions\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">create\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> messages:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> messages\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> model:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"gpt-4o\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> session_id:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"YOUR_SESSION_ID\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> intent:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"NUMBER_GENERATOR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> application:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"demo_app\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> callback:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> onEval\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"application_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">16\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"session_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"xxx\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"evaluation_results\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"FAULT\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Test with random number\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"confidence\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">100.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"correction\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Test with random number 42.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"sentinel_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">41\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"eval_time\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">489\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"date_created\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1716682520088\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"usage\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"prompt_tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">380\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"completion_tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">54\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total_tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">434\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"evaluation_request_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"b84f0d55-7c7e-4af4-8d84-106385682250\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"subdomain":"maitai-cbe2cd27","siteName":"Maitai","title":"Evaluate - Maitai","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-12-19T00:24:58.334Z","originalFileLocation":"sdk/evaluate.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Detect faults in LLM output\">\u003cmeta data-mint-head name=\"application-name\" content=\"Maitai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/maitai-cbe2cd27/GT5Gj5XtYOhYOtWM/_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/maitai-cbe2cd27/GT5Gj5XtYOhYOtWM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/maitai-cbe2cd27/GT5Gj5XtYOhYOtWM/_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/maitai-cbe2cd27/GT5Gj5XtYOhYOtWM/_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/maitai-cbe2cd27/GT5Gj5XtYOhYOtWM/_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/maitai-cbe2cd27/GT5Gj5XtYOhYOtWM/_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/maitai-cbe2cd27/GT5Gj5XtYOhYOtWM/_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/maitai-cbe2cd27/GT5Gj5XtYOhYOtWM/_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/maitai-cbe2cd27/GT5Gj5XtYOhYOtWM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Evaluate - Maitai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Detect faults in LLM output\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Maitai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.trymaitai.com/sdk/evaluate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://maitai-cbe2cd27.mintlify.app/_mintlify/api/og/v2?division=SDK+Reference\u0026amp;title=Evaluate\u0026amp;description=Detect+faults+in+LLM+output\u0026amp;theme=653be2e344e072be124fe9d8\u0026amp;signature=73aa00ece50883147aec01cb1d80e229d48594f3f34d3f3f98a08e9519782760\">\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=\"Evaluate - Maitai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Detect faults in LLM output\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://maitai-cbe2cd27.mintlify.app/_mintlify/api/og/v2?division=SDK+Reference\u0026amp;title=Evaluate\u0026amp;description=Detect+faults+in+LLM+output\u0026amp;theme=653be2e344e072be124fe9d8\u0026amp;signature=73aa00ece50883147aec01cb1d80e229d48594f3f34d3f3f98a08e9519782760\">\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/maitai-cbe2cd27/GT5Gj5XtYOhYOtWM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Maitai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#21b892\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.trymaitai.com/sdk/evaluate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdk/evaluate.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.trymaitai.com/#organization\",\"name\":\"Maitai\",\"url\":\"https://docs.trymaitai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/maitai-cbe2cd27/N9WujJurfZZXQKUx/logo/maitai_logo_full.svg?fit=max\u0026auto=format\u0026n=N9WujJurfZZXQKUx\u0026q=85\u0026s=6c1e93516dfd1772d3dcde9ed11100c5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.trymaitai.com#website\",\"name\":\"Maitai\",\"url\":\"https://docs.trymaitai.com\",\"publisher\":{\"@id\":\"https://docs.trymaitai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.trymaitai.com/sdk/evaluate#webpage\",\"url\":\"https://docs.trymaitai.com/sdk/evaluate\",\"name\":\"Evaluate\",\"description\":\"Detect faults in LLM output\",\"dateModified\":\"2025-12-19T00:24:58.334Z\",\"isPartOf\":{\"@id\":\"https://docs.trymaitai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.trymaitai.com/sdk/evaluate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.trymaitai.com/sdk/evaluate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SDK Reference\",\"item\":\"https://docs.trymaitai.com/sdk/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Evaluate\",\"item\":\"https://docs.trymaitai.com/sdk/evaluate\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.trymaitai.com/sdk/evaluate#article\",\"headline\":\"Evaluate\",\"name\":\"Evaluate\",\"description\":\"Detect faults in LLM output\",\"url\":\"https://docs.trymaitai.com/sdk/evaluate\",\"mainEntityOfPage\":{\"@id\":\"https://docs.trymaitai.com/sdk/evaluate#webpage\"},\"dateModified\":\"2025-12-19T00:24:58.334Z\",\"publisher\":{\"@id\":\"https://docs.trymaitai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.trymaitai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Maitai\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Maitai","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/get_started/introduction"}]},{"tab":"Reference","groups":[{"group":"SDK Reference","icon":"code","root":{"title":"SDK Reference","sidebarTitle":"Overview","href":"/sdk/overview"},"pages":[{"title":"SDK Reference","sidebarTitle":"Overview","href":"/sdk/overview"},{"title":"Model Request","href":"/sdk/chat"},{"title":"File Inputs","href":"/sdk/file_inputs"},{"title":"Reasoning","href":"/sdk/reasoning"},{"title":"Agent Call","href":"/sdk/agent_call"},{"title":"Logging (Bring Your Own Inference)","sidebarTitle":"Logging","href":"/sdk/indexing"},{"title":"Observe (Bring Your Own Agent)","sidebarTitle":"Observe","href":"/sdk/observe"},{"title":"Workflow logging (Bring Your Own Workflow)","sidebarTitle":"Workflow logging","description":"Log externally executed workflows into Maitai with a 1–2 line Python SDK, raw HTTP, or n8n — same Portal Runs experience as native workflows.","href":"/sdk/workflow_logging"},{"title":"Evaluate","href":"/sdk/evaluate"},{"title":"Structured Output","description":"Generate consistent JSON using JSON Schema (or Pydantic models in Python).","href":"/sdk/structured_output"},{"title":"Tool Calling","href":"/sdk/tool_calling"},{"title":"Speech to text","href":"/sdk/transcription"}]},{"group":"CLI Reference","icon":"terminal","root":{"title":"CLI Reference","href":"/cli-reference/overview"},"pages":[{"title":"CLI Reference","href":"/cli-reference/overview"},{"title":"Commands","href":"/cli-reference/commands"}]},{"group":"API Reference","icon":"cloud","root":{"title":"API Reference","href":"/api-reference/overview"},"pages":[{"title":"API Reference","href":"/api-reference/overview"},{"title":"API Coverage","href":"/api-reference/coverage"},{"group":"Applications","expanded":false,"pages":[{"title":"List applications","deprecated":null,"version":null,"openapi":"/openapi.yaml get /applications","href":"/api-reference/applications/list-applications"},{"title":"Create application","deprecated":null,"version":null,"openapi":"/openapi.yaml post /applications","href":"/api-reference/applications/create-application"},{"title":"Get application","deprecated":null,"version":null,"openapi":"/openapi.yaml get /applications/{application_id}","href":"/api-reference/applications/get-application"},{"title":"Update application","deprecated":null,"version":null,"openapi":"/openapi.yaml put /applications/{application_id}","href":"/api-reference/applications/update-application"},{"title":"Delete application","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /applications/{application_id}","href":"/api-reference/applications/delete-application"},{"title":"Get application config","deprecated":null,"version":null,"openapi":"/openapi.yaml get /applications/{application_id}/config","href":"/api-reference/applications/get-application-config"},{"title":"Update application config","deprecated":null,"version":null,"openapi":"/openapi.yaml put /applications/{application_id}/config","href":"/api-reference/applications/update-application-config"},{"title":"List application sessions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /applications/{application_id}/sessions","href":"/api-reference/applications/list-application-sessions"},{"title":"List application workflow runs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /applications/{application_id}/workflow-runs","href":"/api-reference/applications/list-application-workflow-runs"},{"title":"List application models","deprecated":null,"version":null,"openapi":"/openapi.yaml get /applications/{application_id}/models","href":"/api-reference/applications/list-application-models"}]},{"group":"Analytics","expanded":false,"pages":[{"title":"Get application request analytics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/applications/{application_id}/requests","href":"/api-reference/analytics/get-application-request-analytics"},{"title":"Get company request analytics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/company/requests","href":"/api-reference/analytics/get-company-request-analytics"},{"title":"Get company application activity analytics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/company/application-activity","href":"/api-reference/analytics/get-company-application-activity-analytics"},{"title":"Get company model usage analytics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/company/model-usage","href":"/api-reference/analytics/get-company-model-usage-analytics"},{"title":"Get application action request analytics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/applications/{application_id}/intents/{action_id}/requests","href":"/api-reference/analytics/get-application-action-request-analytics"},{"title":"Get application action fault rate analytics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/applications/{application_id}/intents/{action_id}/fault-rate","href":"/api-reference/analytics/get-application-action-fault-rate-analytics"},{"title":"Get intent group request analytics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/intent-groups/{intent_group_id}/requests","href":"/api-reference/analytics/get-intent-group-request-analytics"},{"title":"Get intent group fault rate analytics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/intent-groups/{intent_group_id}/fault-rate","href":"/api-reference/analytics/get-intent-group-fault-rate-analytics"},{"title":"Get application fault rate analytics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/applications/{application_id}/fault-rate","href":"/api-reference/analytics/get-application-fault-rate-analytics"},{"title":"Get agent request analytics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/agents/{agent_id}/requests","href":"/api-reference/analytics/get-agent-request-analytics"}]},{"group":"Intents","expanded":false,"pages":[{"title":"List application intents","deprecated":null,"version":null,"openapi":"/openapi.yaml get /applications/{application_id}/intents","href":"/api-reference/intents/list-application-intents"},{"title":"Create application intent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /applications/{application_id}/intents","href":"/api-reference/intents/create-application-intent"},{"title":"Get application intent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /applications/{application_id}/intents/{intent_id}","href":"/api-reference/intents/get-application-intent"},{"title":"Delete application intent","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /applications/{application_id}/intents/{intent_id}","href":"/api-reference/intents/delete-application-intent"},{"title":"Get intent config","deprecated":null,"version":null,"openapi":"/openapi.yaml get /applications/{application_id}/intents/{intent_id}/config","href":"/api-reference/intents/get-intent-config"},{"title":"Update intent config","deprecated":null,"version":null,"openapi":"/openapi.yaml put /applications/{application_id}/intents/{intent_id}/config","href":"/api-reference/intents/update-intent-config"},{"title":"Reset intent config","deprecated":null,"version":null,"openapi":"/openapi.yaml post /applications/{application_id}/intents/{intent_id}/config/reset","href":"/api-reference/intents/reset-intent-config"},{"title":"Enable intent notifications","deprecated":null,"version":null,"openapi":"/openapi.yaml put /applications/{application_id}/intents/{intent_id}/notifications/enable","href":"/api-reference/intents/enable-intent-notifications"},{"title":"Disable intent notifications","deprecated":null,"version":null,"openapi":"/openapi.yaml put /applications/{application_id}/intents/{intent_id}/notifications/disable","href":"/api-reference/intents/disable-intent-notifications"}]},{"group":"Intent Groups","expanded":false,"pages":[{"title":"List intent groups","deprecated":null,"version":null,"openapi":"/openapi.yaml get /intent-groups","href":"/api-reference/intent-groups/list-intent-groups"},{"title":"Get intent group","deprecated":null,"version":null,"openapi":"/openapi.yaml get /intent-groups/{intent_group_id}","href":"/api-reference/intent-groups/get-intent-group"},{"title":"Get intent group config","deprecated":null,"version":null,"openapi":"/openapi.yaml get /intent-groups/{intent_group_id}/config","href":"/api-reference/intent-groups/get-intent-group-config"},{"title":"Update intent group config","deprecated":null,"version":null,"openapi":"/openapi.yaml put /intent-groups/{intent_group_id}/config","href":"/api-reference/intent-groups/update-intent-group-config"},{"title":"List intents by group","deprecated":null,"version":null,"openapi":"/openapi.yaml get /intent-groups/{intent_group_id}/intents","href":"/api-reference/intent-groups/list-intents-by-group"},{"title":"List intent group requests","deprecated":null,"version":null,"openapi":"/openapi.yaml get /intent-groups/{intent_group_id}/requests","href":"/api-reference/intent-groups/list-intent-group-requests"},{"title":"List intent group sentinels","deprecated":null,"version":null,"openapi":"/openapi.yaml get /intent-groups/{intent_group_id}/sentinels","href":"/api-reference/intent-groups/list-intent-group-sentinels"},{"title":"List intent group models","deprecated":null,"version":null,"openapi":"/openapi.yaml get /intent-groups/{intent_group_id}/models","href":"/api-reference/intent-groups/list-intent-group-models"},{"title":"List intent group test sets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /intent-groups/{intent_group_id}/test-sets","href":"/api-reference/intent-groups/list-intent-group-test-sets"},{"title":"List intent group datasets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /intent-groups/{intent_group_id}/datasets","href":"/api-reference/intent-groups/list-intent-group-datasets"},{"title":"List intent group compositions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /intent-groups/{intent_group_id}/compositions","href":"/api-reference/intent-groups/list-intent-group-compositions"}]},{"group":"Agents","expanded":false,"pages":[{"title":"List agents","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents","href":"/api-reference/agents/list-agents"},{"title":"Create agent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents","href":"/api-reference/agents/create-agent"},{"title":"Get agent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}","href":"/api-reference/agents/get-agent"},{"title":"Update agent","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}","href":"/api-reference/agents/update-agent"},{"title":"Patch agent","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /agents/{agent_id}","href":"/api-reference/agents/patch-agent"},{"title":"Delete agent","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /agents/{agent_id}","href":"/api-reference/agents/delete-agent"},{"title":"Import agents","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/import","href":"/api-reference/agents/import-agents"},{"title":"List supplied actions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/supplied-actions","href":"/api-reference/agents/list-supplied-actions"},{"title":"Add supplied action","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/{agent_id}/actions/supplied/{catalog_action_id}","href":"/api-reference/agents/add-supplied-action"},{"title":"List agent actions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/actions","href":"/api-reference/agents/list-agent-actions"},{"title":"Create agent action","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/{agent_id}/actions","href":"/api-reference/agents/create-agent-action"},{"title":"Get agent action","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/actions/{action_id}","href":"/api-reference/agents/get-agent-action"},{"title":"Update agent action","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/actions/{action_id}","href":"/api-reference/agents/update-agent-action"},{"title":"Patch agent action","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /agents/actions/{action_id}","href":"/api-reference/agents/patch-agent-action"},{"title":"Delete agent action","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /agents/actions/{action_id}","href":"/api-reference/agents/delete-agent-action"},{"title":"Enable action","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/actions/{action_id}/enable","href":"/api-reference/agents/enable-action"},{"title":"Disable action","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/actions/{action_id}/disable","href":"/api-reference/agents/disable-action"},{"title":"List sub agents","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/subagents","href":"/api-reference/agents/list-sub-agents"},{"title":"Add sub agent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/{agent_id}/subagents","href":"/api-reference/agents/add-sub-agent"},{"title":"Remove sub agent","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /agents/{agent_id}/subagents/{child_agent_id}","href":"/api-reference/agents/remove-sub-agent"},{"title":"Enable sub agent","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/subagents/{child_agent_id}/enable","href":"/api-reference/agents/enable-sub-agent"},{"title":"Disable sub agent","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/subagents/{child_agent_id}/disable","href":"/api-reference/agents/disable-sub-agent"},{"title":"List agent versions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/versions","href":"/api-reference/agents/list-agent-versions"},{"title":"Diff agent versions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/versions/diff","href":"/api-reference/agents/diff-agent-versions"},{"title":"Get agent status","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/status","href":"/api-reference/agents/get-agent-status"},{"title":"Get agent version","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/versions/{version}","href":"/api-reference/agents/get-agent-version"},{"title":"Publish agent version","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/{agent_id}/publish","href":"/api-reference/agents/publish-agent-version"},{"title":"Restore agent version","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/{agent_id}/versions/{version}/restore","href":"/api-reference/agents/restore-agent-version"},{"title":"List action versions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/actions/{action_id}/versions","href":"/api-reference/agents/list-action-versions"},{"title":"Publish action version","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/actions/{action_id}/publish","href":"/api-reference/agents/publish-action-version"},{"title":"Restore action version","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/actions/{action_id}/versions/{version}/restore","href":"/api-reference/agents/restore-action-version"},{"title":"List agent releases","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/releases","href":"/api-reference/agents/list-agent-releases"},{"title":"Upsert agent release","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/releases/{name}","href":"/api-reference/agents/upsert-agent-release"},{"title":"Delete agent release","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /agents/{agent_id}/releases/{name}","href":"/api-reference/agents/delete-agent-release"},{"title":"Invoke agent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/{agent_id}/invoke","href":"/api-reference/agents/invoke-agent"},{"title":"Get agent invocation","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/invocations/{task_id}","href":"/api-reference/agents/get-agent-invocation"},{"title":"List agent sessions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/sessions","href":"/api-reference/agents/list-agent-sessions"},{"title":"Get agent session detail","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/sessions/{session_id}","href":"/api-reference/agents/get-agent-session-detail"},{"title":"Get agent session timeline","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/sessions/{session_id}/timeline","href":"/api-reference/agents/get-agent-session-timeline"},{"title":"Get agent task timeline","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/tasks/{task_id}/timeline","href":"/api-reference/agents/get-agent-task-timeline"},{"title":"Get agent task tree","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/tasks/{task_id}/tree","href":"/api-reference/agents/get-agent-task-tree"},{"title":"Get routing config","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/routing/config","href":"/api-reference/agents/get-routing-config"},{"title":"Update routing config","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/routing/config","href":"/api-reference/agents/update-routing-config"},{"title":"Create routing rule","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/{agent_id}/routing/rules","href":"/api-reference/agents/create-routing-rule"},{"title":"Update routing rule","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/routing/rules/{rule_id}","href":"/api-reference/agents/update-routing-rule"},{"title":"Delete routing rule","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /agents/{agent_id}/routing/rules/{rule_id}","href":"/api-reference/agents/delete-routing-rule"},{"title":"Reorder routing rule","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/routing/rules/{rule_id}/reorder","href":"/api-reference/agents/reorder-routing-rule"},{"title":"Test routing rule","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agents/{agent_id}/routing/rules/{rule_id}/test","href":"/api-reference/agents/test-routing-rule"},{"title":"Get routing result","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/routing/results/{routing_result_id}","href":"/api-reference/agents/get-routing-result"},{"title":"Get form fields","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/form-fields","href":"/api-reference/agents/get-form-fields"},{"title":"Update form fields","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/form-fields","href":"/api-reference/agents/update-form-fields"},{"title":"Delete form fields","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /agents/{agent_id}/form-fields","href":"/api-reference/agents/delete-form-fields"},{"title":"List agent system steps","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/system-steps","href":"/api-reference/agents/list-agent-system-steps"},{"title":"Get agent system step prompt","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/system-steps/{step}/prompt","href":"/api-reference/agents/get-agent-system-step-prompt"},{"title":"Update agent system step prompt","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/system-steps/{step}/prompt","href":"/api-reference/agents/update-agent-system-step-prompt"},{"title":"Reset agent system step prompt","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /agents/{agent_id}/system-steps/{step}/prompt","href":"/api-reference/agents/reset-agent-system-step-prompt"},{"title":"Get agent system step config","deprecated":null,"version":null,"openapi":"/openapi.yaml get /agents/{agent_id}/system-steps/{step}/config","href":"/api-reference/agents/get-agent-system-step-config"},{"title":"Update agent system step config","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/system-steps/{step}/config","href":"/api-reference/agents/update-agent-system-step-config"},{"title":"Reset agent system step config","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /agents/{agent_id}/system-steps/{step}/config","href":"/api-reference/agents/reset-agent-system-step-config"},{"title":"Enable agent system step","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/system-steps/{step}/enable","href":"/api-reference/agents/enable-agent-system-step"},{"title":"Disable agent system step","deprecated":null,"version":null,"openapi":"/openapi.yaml put /agents/{agent_id}/system-steps/{step}/disable","href":"/api-reference/agents/disable-agent-system-step"}]},{"group":"Compositions","expanded":false,"pages":[{"title":"List compositions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /compositions","href":"/api-reference/compositions/list-compositions"},{"title":"Get composition","deprecated":null,"version":null,"openapi":"/openapi.yaml get /compositions/{composition_id}","href":"/api-reference/compositions/get-composition"},{"title":"Create composition","deprecated":null,"version":null,"openapi":"/openapi.yaml post /compositions","href":"/api-reference/compositions/create-composition"},{"title":"Update composition","deprecated":null,"version":null,"openapi":"/openapi.yaml put /compositions/{composition_id}","href":"/api-reference/compositions/update-composition"},{"title":"Delete composition","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /compositions/{composition_id}","href":"/api-reference/compositions/delete-composition"},{"title":"List composition versions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /compositions/{composition_id}/versions","href":"/api-reference/compositions/list-composition-versions"},{"title":"List compositions by intent group","deprecated":null,"version":null,"openapi":"/openapi.yaml get /compositions/intent-groups/{intent_group_id}","href":"/api-reference/compositions/list-compositions-by-intent-group"},{"title":"List compositions by application intent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /compositions/applications/{application_id}/intents/{intent_id}","href":"/api-reference/compositions/list-compositions-by-application-intent"},{"title":"Validate rl composition","deprecated":null,"version":null,"openapi":"/openapi.yaml post /compositions/validate-rl","href":"/api-reference/compositions/validate-rl-composition"}]},{"group":"Sentinels","expanded":false,"pages":[{"title":"List sentinels","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sentinels","href":"/api-reference/sentinels/list-sentinels"},{"title":"Get sentinel","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sentinels/{sentinel_id}","href":"/api-reference/sentinels/get-sentinel"},{"title":"Create sentinel","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sentinels","href":"/api-reference/sentinels/create-sentinel"},{"title":"Update sentinel","deprecated":null,"version":null,"openapi":"/openapi.yaml put /sentinels/{sentinel_id}","href":"/api-reference/sentinels/update-sentinel"},{"title":"Delete sentinel","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /sentinels/{sentinel_id}","href":"/api-reference/sentinels/delete-sentinel"},{"title":"List simple sentinels","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sentinels/simple","href":"/api-reference/sentinels/list-simple-sentinels"},{"title":"List sentinels by application","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sentinels/applications/{application_id}","href":"/api-reference/sentinels/list-sentinels-by-application"},{"title":"List sentinels by application human needs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sentinels/applications/{application_id}/human-needs","href":"/api-reference/sentinels/list-sentinels-by-application-human-needs"},{"title":"List sentinels by intent group","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sentinels/intent-groups/{intent_group_id}","href":"/api-reference/sentinels/list-sentinels-by-intent-group"},{"title":"List sentinels by intent name","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sentinels/intent-groups/by-name/{intent_name}","href":"/api-reference/sentinels/list-sentinels-by-intent-name"},{"title":"Update sentinel directive","deprecated":null,"version":null,"openapi":"/openapi.yaml put /sentinels/{sentinel_id}/directive","href":"/api-reference/sentinels/update-sentinel-directive"},{"title":"Generate new sentinel","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sentinels/generate/new","href":"/api-reference/sentinels/generate-new-sentinel"},{"title":"Generate sentinels","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sentinels/generate","href":"/api-reference/sentinels/generate-sentinels"},{"title":"Regenerate sentinel","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sentinels/{sentinel_id}/regenerate","href":"/api-reference/sentinels/regenerate-sentinel"},{"title":"Regenerate sentinel qualification","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sentinels/{sentinel_id}/regenerate/qualification","href":"/api-reference/sentinels/regenerate-sentinel-qualification"},{"title":"Regenerate sentinel evaluation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sentinels/{sentinel_id}/regenerate/evaluation","href":"/api-reference/sentinels/regenerate-sentinel-evaluation"},{"title":"Regenerate sentinel correction","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sentinels/{sentinel_id}/regenerate/correction","href":"/api-reference/sentinels/regenerate-sentinel-correction"},{"title":"Regenerate sentinels","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sentinels/regenerate","href":"/api-reference/sentinels/regenerate-sentinels"}]},{"group":"Monitors","expanded":false,"pages":[{"title":"List monitors","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors","href":"/api-reference/monitors/list-monitors"},{"title":"Get monitor","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}","href":"/api-reference/monitors/get-monitor"},{"title":"Create monitor","deprecated":null,"version":null,"openapi":"/openapi.yaml post /monitors","href":"/api-reference/monitors/create-monitor"},{"title":"Update monitor","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /monitors/{monitor_id}","href":"/api-reference/monitors/update-monitor"},{"title":"Update monitor","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /monitors/{monitor_id}","href":"/api-reference/monitors/update-monitor"},{"title":"Delete monitor","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /monitors/{monitor_id}","href":"/api-reference/monitors/delete-monitor"},{"title":"Activate monitor","deprecated":null,"version":null,"openapi":"/openapi.yaml post /monitors/{monitor_id}/activate","href":"/api-reference/monitors/activate-monitor"},{"title":"Pause monitor","deprecated":null,"version":null,"openapi":"/openapi.yaml post /monitors/{monitor_id}/pause","href":"/api-reference/monitors/pause-monitor"},{"title":"List monitor targets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/targets","href":"/api-reference/monitors/list-monitor-targets"},{"title":"Create monitor target","deprecated":null,"version":null,"openapi":"/openapi.yaml post /monitors/{monitor_id}/targets","href":"/api-reference/monitors/create-monitor-target"},{"title":"Update monitor target","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /monitors/{monitor_id}/targets/{monitor_target_id}","href":"/api-reference/monitors/update-monitor-target"},{"title":"Update monitor target","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /monitors/{monitor_id}/targets/{monitor_target_id}","href":"/api-reference/monitors/update-monitor-target"},{"title":"Delete monitor target","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /monitors/{monitor_id}/targets/{monitor_target_id}","href":"/api-reference/monitors/delete-monitor-target"},{"title":"Enable monitor target","deprecated":null,"version":null,"openapi":"/openapi.yaml post /monitors/{monitor_id}/targets/{monitor_target_id}/enable","href":"/api-reference/monitors/enable-monitor-target"},{"title":"Disable monitor target","deprecated":null,"version":null,"openapi":"/openapi.yaml post /monitors/{monitor_id}/targets/{monitor_target_id}/disable","href":"/api-reference/monitors/disable-monitor-target"},{"title":"Get target sample","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/sample-target","href":"/api-reference/monitors/get-target-sample"},{"title":"List monitors by target","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/by-target","href":"/api-reference/monitors/list-monitors-by-target"},{"title":"List monitor versions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/versions","href":"/api-reference/monitors/list-monitor-versions"},{"title":"Get monitor version","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/versions/{version_id}","href":"/api-reference/monitors/get-monitor-version"},{"title":"Publish monitor version","deprecated":null,"version":null,"openapi":"/openapi.yaml post /monitors/{monitor_id}/versions","href":"/api-reference/monitors/publish-monitor-version"},{"title":"List monitor releases","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/releases","href":"/api-reference/monitors/list-monitor-releases"},{"title":"Get default monitor version","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/releases/default","href":"/api-reference/monitors/get-default-monitor-version"},{"title":"Upsert monitor release","deprecated":null,"version":null,"openapi":"/openapi.yaml put /monitors/{monitor_id}/releases","href":"/api-reference/monitors/upsert-monitor-release"},{"title":"Upsert monitor release","deprecated":null,"version":null,"openapi":"/openapi.yaml put /monitors/{monitor_id}/releases","href":"/api-reference/monitors/upsert-monitor-release"},{"title":"Delete monitor release","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /monitors/{monitor_id}/releases/{release_name}","href":"/api-reference/monitors/delete-monitor-release"},{"title":"Promote monitor release","deprecated":null,"version":null,"openapi":"/openapi.yaml post /monitors/{monitor_id}/releases/{release_name}/promote","href":"/api-reference/monitors/promote-monitor-release"},{"title":"Get monitor activity","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/activity","href":"/api-reference/monitors/get-monitor-activity"},{"title":"Get monitor target sparkline","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/targets/{monitor_target_id}/sparkline","href":"/api-reference/monitors/get-monitor-target-sparkline"},{"title":"Get monitor metrics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/metrics","href":"/api-reference/monitors/get-monitor-metrics"},{"title":"Get monitor metrics by target","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/metrics/by-target","href":"/api-reference/monitors/get-monitor-metrics-by-target"},{"title":"Get monitor target metrics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/targets/{monitor_target_id}/metrics","href":"/api-reference/monitors/get-monitor-target-metrics"},{"title":"List runs global","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/runs","href":"/api-reference/monitors/list-runs-global"},{"title":"Get run global","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/runs/{run_id}","href":"/api-reference/monitors/get-run-global"},{"title":"List runs by source","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/runs/by-source","href":"/api-reference/monitors/list-runs-by-source"},{"title":"List runs for monitor","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/runs","href":"/api-reference/monitors/list-runs-for-monitor"},{"title":"Get run scoped","deprecated":null,"version":null,"openapi":"/openapi.yaml get /monitors/{monitor_id}/runs/{run_id}","href":"/api-reference/monitors/get-run-scoped"},{"title":"Preview monitor","deprecated":null,"version":null,"openapi":"/openapi.yaml post /monitors/{monitor_id}/preview","href":"/api-reference/monitors/preview-monitor"}]},{"group":"Sessions","expanded":false,"pages":[{"title":"List sessions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sessions","href":"/api-reference/sessions/list-sessions"},{"title":"Get session","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sessions/{session_id}","href":"/api-reference/sessions/get-session"},{"title":"Get session timeline","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sessions/{session_id}/timeline","href":"/api-reference/sessions/get-session-timeline"},{"title":"Set session feedback","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sessions/{session_id}/feedback","href":"/api-reference/sessions/set-session-feedback"}]},{"group":"Requests","expanded":false,"pages":[{"title":"List requests","deprecated":null,"version":null,"openapi":"/openapi.yaml get /requests","href":"/api-reference/requests/list-requests"},{"title":"Get request","deprecated":null,"version":null,"openapi":"/openapi.yaml get /requests/{request_id}","href":"/api-reference/requests/get-request"},{"title":"Update request response","deprecated":null,"version":null,"openapi":"/openapi.yaml put /requests/{request_id}/response","href":"/api-reference/requests/update-request-response"}]},{"group":"Datasets","expanded":false,"pages":[{"title":"List datasets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets","href":"/api-reference/datasets/list-datasets"},{"title":"Get dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}","href":"/api-reference/datasets/get-dataset"},{"title":"Create dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets","href":"/api-reference/datasets/create-dataset"},{"title":"Update dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml put /datasets/{dataset_id}","href":"/api-reference/datasets/update-dataset"},{"title":"Delete dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /datasets/{dataset_id}","href":"/api-reference/datasets/delete-dataset"},{"title":"List dataset requests","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}/requests","href":"/api-reference/datasets/list-dataset-requests"},{"title":"Add requests to dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/requests","href":"/api-reference/datasets/add-requests-to-dataset"},{"title":"Remove requests from dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /datasets/{dataset_id}/requests","href":"/api-reference/datasets/remove-requests-from-dataset"},{"title":"List datasets by intent group","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/intent-groups/{intent_group_id}","href":"/api-reference/datasets/list-datasets-by-intent-group"},{"title":"List datasets by intent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/applications/{application_id}/intents/{intent_id}","href":"/api-reference/datasets/list-datasets-by-intent"},{"title":"List datasets by test set","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/test-sets/{test_set_id}","href":"/api-reference/datasets/list-datasets-by-test-set"},{"title":"Validate dataset s3 source","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/s3/validate","href":"/api-reference/datasets/validate-dataset-s3-source"},{"title":"Get dataset s3 syncer info","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/s3/syncer-info","href":"/api-reference/datasets/get-dataset-s3-syncer-info"},{"title":"Get estimated dataset request count","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/estimated-request-count","href":"/api-reference/datasets/get-estimated-dataset-request-count"},{"title":"List datasets by tags","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/by-tags","href":"/api-reference/datasets/list-datasets-by-tags"},{"title":"List valid dataset tags","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/tags/valid","href":"/api-reference/datasets/list-valid-dataset-tags"},{"title":"Preview dataset generation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/generate/preview","href":"/api-reference/datasets/preview-dataset-generation"},{"title":"Estimate dataset generation cost","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/generate/estimate-cost","href":"/api-reference/datasets/estimate-dataset-generation-cost"},{"title":"Start dataset generation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/generate","href":"/api-reference/datasets/start-dataset-generation"},{"title":"Clone dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/clone","href":"/api-reference/datasets/clone-dataset"},{"title":"Sample clone dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/sample-clone","href":"/api-reference/datasets/sample-clone-dataset"},{"title":"Cancel dataset s3 import","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/s3/cancel","href":"/api-reference/datasets/cancel-dataset-s3-import"},{"title":"Reimport dataset s3 source","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/s3/reimport","href":"/api-reference/datasets/reimport-dataset-s3-source"},{"title":"Get dataset status","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}/status","href":"/api-reference/datasets/get-dataset-status"},{"title":"List dataset request ids","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}/request-ids","href":"/api-reference/datasets/list-dataset-request-ids"},{"title":"Get dataset request distribution","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}/request-distribution","href":"/api-reference/datasets/get-dataset-request-distribution"},{"title":"List eligible dataset requests","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}/eligible-requests","href":"/api-reference/datasets/list-eligible-dataset-requests"},{"title":"Search eligible dataset requests","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/eligible-requests/search","href":"/api-reference/datasets/search-eligible-dataset-requests"},{"title":"Search added dataset requests","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/added-requests/search","href":"/api-reference/datasets/search-added-dataset-requests"},{"title":"Add dataset requests bulk","deprecated":null,"version":null,"openapi":"/openapi.yaml put /datasets/{dataset_id}/requests/add","href":"/api-reference/datasets/add-dataset-requests-bulk"},{"title":"Remove dataset requests bulk","deprecated":null,"version":null,"openapi":"/openapi.yaml put /datasets/{dataset_id}/requests/remove","href":"/api-reference/datasets/remove-dataset-requests-bulk"},{"title":"Get dataset regex replacements applicable count","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/regex-replacements/count","href":"/api-reference/datasets/get-dataset-regex-replacements-applicable-count"},{"title":"Apply dataset regex replacements","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/regex-replacements","href":"/api-reference/datasets/apply-dataset-regex-replacements"},{"title":"Preview dataset prune","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/prune/preview","href":"/api-reference/datasets/preview-dataset-prune"},{"title":"Apply dataset prune","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/prune/apply","href":"/api-reference/datasets/apply-dataset-prune"},{"title":"Get dataset prompt","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}/prompt","href":"/api-reference/datasets/get-dataset-prompt"},{"title":"List dataset versions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}/versions","href":"/api-reference/datasets/list-dataset-versions"},{"title":"Get dataset delete impact","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}/delete-impact","href":"/api-reference/datasets/get-dataset-delete-impact"},{"title":"List dataset tags","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}/tags","href":"/api-reference/datasets/list-dataset-tags"},{"title":"Add dataset tag","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/tags","href":"/api-reference/datasets/add-dataset-tag"},{"title":"Remove dataset tag","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /datasets/{dataset_id}/tags/{tag}","href":"/api-reference/datasets/remove-dataset-tag"},{"title":"Set dataset tags","deprecated":null,"version":null,"openapi":"/openapi.yaml put /datasets/{dataset_id}/tags","href":"/api-reference/datasets/set-dataset-tags"},{"title":"Cancel dataset generation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/generate/cancel","href":"/api-reference/datasets/cancel-dataset-generation"},{"title":"Pause dataset generation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/generate/pause","href":"/api-reference/datasets/pause-dataset-generation"},{"title":"Resume dataset generation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/generate/resume","href":"/api-reference/datasets/resume-dataset-generation"},{"title":"Augment dataset reasoning","deprecated":null,"version":null,"openapi":"/openapi.yaml post /datasets/{dataset_id}/reasoning/augment","href":"/api-reference/datasets/augment-dataset-reasoning"},{"title":"Get dataset request reasoning","deprecated":null,"version":null,"openapi":"/openapi.yaml get /datasets/{dataset_id}/requests/{request_id}/reasoning","href":"/api-reference/datasets/get-dataset-request-reasoning"}]},{"group":"Evaluation Criteria","expanded":false,"pages":[{"title":"List available evaluation criteria","deprecated":null,"version":null,"openapi":"/openapi.yaml get /evaluation-criteria/available","href":"/api-reference/evaluation-criteria/list-available-evaluation-criteria"},{"title":"List evaluation criteria","deprecated":null,"version":null,"openapi":"/openapi.yaml get /evaluation-criteria","href":"/api-reference/evaluation-criteria/list-evaluation-criteria"},{"title":"Create evaluation criteria","deprecated":null,"version":null,"openapi":"/openapi.yaml post /evaluation-criteria","href":"/api-reference/evaluation-criteria/create-evaluation-criteria"},{"title":"Update evaluation criteria","deprecated":null,"version":null,"openapi":"/openapi.yaml put /evaluation-criteria/{criteria_id}","href":"/api-reference/evaluation-criteria/update-evaluation-criteria"},{"title":"Delete evaluation criteria","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /evaluation-criteria/{criteria_id}","href":"/api-reference/evaluation-criteria/delete-evaluation-criteria"}]},{"group":"Unified Test Sets","expanded":false,"pages":[{"title":"Import request into unified test set","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-sets/{test_set_id}/import-request","href":"/api-reference/unified-test-sets/import-request-into-unified-test-set"},{"title":"Import workflow run into unified test set","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-sets/{test_set_id}/import-workflow-run","href":"/api-reference/unified-test-sets/import-workflow-run-into-unified-test-set"},{"title":"Import agent task into unified test set","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-sets/{test_set_id}/import-agent-task","href":"/api-reference/unified-test-sets/import-agent-task-into-unified-test-set"},{"title":"Upsert unified test set item expected output override","deprecated":null,"version":null,"openapi":"/openapi.yaml put /unified-test-sets/{test_set_id}/items/{item_id}/expected-output-override","href":"/api-reference/unified-test-sets/upsert-unified-test-set-item-expected-output-override"},{"title":"Create unified test set","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-sets","href":"/api-reference/unified-test-sets/create-unified-test-set"},{"title":"Upload unified test set jsonl","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-sets/upload","href":"/api-reference/unified-test-sets/upload-unified-test-set-jsonl"},{"title":"List unified test sets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /unified-test-sets","href":"/api-reference/unified-test-sets/list-unified-test-sets"},{"title":"Get unified test set","deprecated":null,"version":null,"openapi":"/openapi.yaml get /unified-test-sets/{test_set_id}","href":"/api-reference/unified-test-sets/get-unified-test-set"},{"title":"Patch unified test set","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /unified-test-sets/{test_set_id}","href":"/api-reference/unified-test-sets/patch-unified-test-set"},{"title":"Clone unified test set","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-sets/{test_set_id}/clone","href":"/api-reference/unified-test-sets/clone-unified-test-set"},{"title":"List unified test set items","deprecated":null,"version":null,"openapi":"/openapi.yaml get /unified-test-sets/{test_set_id}/items","href":"/api-reference/unified-test-sets/list-unified-test-set-items"},{"title":"Create unified manual test set item","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-sets/{test_set_id}/items","href":"/api-reference/unified-test-sets/create-unified-manual-test-set-item"},{"title":"Get unified test set item","deprecated":null,"version":null,"openapi":"/openapi.yaml get /unified-test-sets/{test_set_id}/items/{item_id}","href":"/api-reference/unified-test-sets/get-unified-test-set-item"},{"title":"Delete unified test set item","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /unified-test-sets/{test_set_id}/items/{item_id}","href":"/api-reference/unified-test-sets/delete-unified-test-set-item"}]},{"group":"Unified Test Runs","expanded":false,"pages":[{"title":"Create unified test run","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-runs","href":"/api-reference/unified-test-runs/create-unified-test-run"},{"title":"List unified test runs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /unified-test-runs","href":"/api-reference/unified-test-runs/list-unified-test-runs"},{"title":"Get unified test run","deprecated":null,"version":null,"openapi":"/openapi.yaml get /unified-test-runs/{test_run_id}","href":"/api-reference/unified-test-runs/get-unified-test-run"},{"title":"Delete unified test run","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /unified-test-runs/{test_run_id}","href":"/api-reference/unified-test-runs/delete-unified-test-run"},{"title":"List unified test run items","deprecated":null,"version":null,"openapi":"/openapi.yaml get /unified-test-runs/{test_run_id}/items","href":"/api-reference/unified-test-runs/list-unified-test-run-items"},{"title":"Prepare unified test run","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-runs/{test_run_id}/prepare","href":"/api-reference/unified-test-runs/prepare-unified-test-run"},{"title":"Execute unified test run","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-runs/{test_run_id}/execute","href":"/api-reference/unified-test-runs/execute-unified-test-run"},{"title":"Get unified test run progress","deprecated":null,"version":null,"openapi":"/openapi.yaml get /unified-test-runs/{test_run_id}/progress","href":"/api-reference/unified-test-runs/get-unified-test-run-progress"},{"title":"Score unified test run","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-runs/{test_run_id}/score","href":"/api-reference/unified-test-runs/score-unified-test-run"},{"title":"Cancel unified test run","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-runs/{test_run_id}/cancel","href":"/api-reference/unified-test-runs/cancel-unified-test-run"},{"title":"Reset failed unified test run items","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-runs/{test_run_id}/reset-failed","href":"/api-reference/unified-test-runs/reset-failed-unified-test-run-items"},{"title":"Preview adapted input","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unified-test-runs/preview-adapted-input","href":"/api-reference/unified-test-runs/preview-adapted-input"}]},{"group":"Workflows","expanded":false,"pages":[{"title":"List workflows","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows","href":"/api-reference/workflows/list-workflows"},{"title":"Create workflow","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows","href":"/api-reference/workflows/create-workflow"},{"title":"Upload workflow bundle","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows/upload","href":"/api-reference/workflows/upload-workflow-bundle"},{"title":"Get workflow","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/{workflow_id}","href":"/api-reference/workflows/get-workflow"},{"title":"Update workflow","deprecated":null,"version":null,"openapi":"/openapi.yaml put /workflows/{workflow_id}","href":"/api-reference/workflows/update-workflow"},{"title":"Delete workflow","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /workflows/{workflow_id}","href":"/api-reference/workflows/delete-workflow"},{"title":"Get workflow script","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/{workflow_id}/script","href":"/api-reference/workflows/get-workflow-script"},{"title":"Get workflow schema","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/{workflow_id}/schema","href":"/api-reference/workflows/get-workflow-schema"},{"title":"Get workflow transform info","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/{workflow_id}/transform-info","href":"/api-reference/workflows/get-workflow-transform-info"},{"title":"Get workflow artifact files","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/{workflow_id}/artifact-files","href":"/api-reference/workflows/get-workflow-artifact-files"},{"title":"Upload workflow accessory","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows/{workflow_id}/accessories","href":"/api-reference/workflows/upload-workflow-accessory"},{"title":"Delete workflow accessory","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /workflows/{workflow_id}/accessories","href":"/api-reference/workflows/delete-workflow-accessory"},{"title":"List workflow datastores","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/{workflow_id}/datastores","href":"/api-reference/workflows/list-workflow-datastores"},{"title":"Upsert workflow datastore","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows/{workflow_id}/datastores/{name}","href":"/api-reference/workflows/upsert-workflow-datastore"},{"title":"Delete workflow datastore","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /workflows/{workflow_id}/datastores/{name}","href":"/api-reference/workflows/delete-workflow-datastore"},{"title":"Upload workflow datastore","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows/{workflow_id}/datastores/{name}/upload","href":"/api-reference/workflows/upload-workflow-datastore"},{"title":"Validate workflow script","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows/validate","href":"/api-reference/workflows/validate-workflow-script"},{"title":"Create workflow chat completion","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows/chat/completions","href":"/api-reference/workflows/create-workflow-chat-completion"},{"title":"List workflow versions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/{workflow_id}/versions","href":"/api-reference/workflows/list-workflow-versions"},{"title":"Publish workflow version","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows/{workflow_id}/versions","href":"/api-reference/workflows/publish-workflow-version"},{"title":"Get workflow version artifact files","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/{workflow_id}/versions/{version_number}/artifact-files","href":"/api-reference/workflows/get-workflow-version-artifact-files"},{"title":"List workflow releases","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/{workflow_id}/releases","href":"/api-reference/workflows/list-workflow-releases"},{"title":"Create workflow release","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows/{workflow_id}/releases","href":"/api-reference/workflows/create-workflow-release"},{"title":"Update workflow release","deprecated":null,"version":null,"openapi":"/openapi.yaml put /workflows/{workflow_id}/releases/{name}","href":"/api-reference/workflows/update-workflow-release"},{"title":"Delete workflow release","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /workflows/{workflow_id}/releases/{name}","href":"/api-reference/workflows/delete-workflow-release"},{"title":"Clear workflow default release","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows/{workflow_id}/releases/clear-default","href":"/api-reference/workflows/clear-workflow-default-release"},{"title":"Get default workflow script","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/default-script","href":"/api-reference/workflows/get-default-workflow-script"},{"title":"Preview workflow transform","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workflows/{workflow_id}/transform-preview","href":"/api-reference/workflows/preview-workflow-transform"},{"title":"Check workflow transforms","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/{workflow_id}/has-transforms","href":"/api-reference/workflows/check-workflow-transforms"},{"title":"List workflow runs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/runs","href":"/api-reference/workflows/list-workflow-runs"},{"title":"Log workflow run","deprecated":null,"version":null,"openapi":"/openapi.yaml put /workflows/runs/log","href":"/api-reference/workflows/log-workflow-run"},{"title":"Get workflow run","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workflows/runs/{session_id}","href":"/api-reference/workflows/get-workflow-run"}]},{"group":"Finetune Runs","expanded":false,"pages":[{"title":"List finetune runs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /finetune-runs","href":"/api-reference/finetune-runs/list-finetune-runs"},{"title":"Get finetune run","deprecated":null,"version":null,"openapi":"/openapi.yaml get /finetune-runs/{run_id}","href":"/api-reference/finetune-runs/get-finetune-run"},{"title":"Estimate finetune vram","deprecated":null,"version":null,"openapi":"/openapi.yaml post /finetune-runs/estimate","href":"/api-reference/finetune-runs/estimate-finetune-vram"},{"title":"Create finetune run","deprecated":null,"version":null,"openapi":"/openapi.yaml post /finetune-runs","href":"/api-reference/finetune-runs/create-finetune-run"},{"title":"Cancel finetune run","deprecated":null,"version":null,"openapi":"/openapi.yaml post /finetune-runs/{run_id}/cancel","href":"/api-reference/finetune-runs/cancel-finetune-run"},{"title":"Get finetune run metrics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /finetune-runs/{run_id}/metrics","href":"/api-reference/finetune-runs/get-finetune-run-metrics"},{"title":"Get finetune status","deprecated":null,"version":null,"openapi":"/openapi.yaml get /finetune-runs/{run_id}/status","href":"/api-reference/finetune-runs/get-finetune-status"},{"title":"Deploy finetune run","deprecated":null,"version":null,"openapi":"/openapi.yaml post /finetune-runs/{run_id}/deploy","href":"/api-reference/finetune-runs/deploy-finetune-run"},{"title":"Cancel finetune deploy","deprecated":null,"version":null,"openapi":"/openapi.yaml post /finetune-runs/{run_id}/deploy/cancel","href":"/api-reference/finetune-runs/cancel-finetune-deploy"}]},{"group":"Evaluations","expanded":false,"pages":[{"title":"List evaluations","deprecated":null,"version":null,"openapi":"/openapi.yaml get /evaluations","href":"/api-reference/evaluations/list-evaluations"},{"title":"Get evaluation","deprecated":null,"version":null,"openapi":"/openapi.yaml get /evaluations/{evaluation_run_id}","href":"/api-reference/evaluations/get-evaluation"},{"title":"Create evaluation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /evaluations","href":"/api-reference/evaluations/create-evaluation"},{"title":"Get evaluation results","deprecated":null,"version":null,"openapi":"/openapi.yaml get /evaluations/{evaluation_run_id}/results","href":"/api-reference/evaluations/get-evaluation-results"}]},{"group":"Models","expanded":false,"pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models","href":"/api-reference/models/list-models"},{"title":"List available models","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models/available","href":"/api-reference/models/list-available-models"},{"title":"Disable model","deprecated":null,"version":null,"openapi":"/openapi.yaml post /models/{model_id}/disable","href":"/api-reference/models/disable-model"},{"title":"Enable model","deprecated":null,"version":null,"openapi":"/openapi.yaml post /models/{model_id}/enable","href":"/api-reference/models/enable-model"},{"title":"Create base model","deprecated":null,"version":null,"openapi":"/openapi.yaml post /models/base-model","href":"/api-reference/models/create-base-model"},{"title":"Get model","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models/{model_id}","href":"/api-reference/models/get-model"},{"title":"Get model inference pool","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models/{model_id}/inference-pool","href":"/api-reference/models/get-model-inference-pool"},{"title":"Get model inference pool debug","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models/{model_id}/inference-pool/debug","href":"/api-reference/models/get-model-inference-pool-debug"},{"title":"List model inference pool attach candidates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models/{model_id}/inference-pool/attach-candidates","href":"/api-reference/models/list-model-inference-pool-attach-candidates"},{"title":"Attach model inference pool","deprecated":null,"version":null,"openapi":"/openapi.yaml post /models/{model_id}/inference-pool/attach","href":"/api-reference/models/attach-model-inference-pool"},{"title":"Detach model inference pool","deprecated":null,"version":null,"openapi":"/openapi.yaml post /models/{model_id}/inference-pool/detach","href":"/api-reference/models/detach-model-inference-pool"},{"title":"Get model repoint options","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models/{model_id}/repoint-options","href":"/api-reference/models/get-model-repoint-options"},{"title":"Patch model registry","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /models/{model_id}/registry","href":"/api-reference/models/patch-model-registry"},{"title":"Preview swap model ref","deprecated":null,"version":null,"openapi":"/openapi.yaml post /models/{model_id}/swap-model-ref/preview","href":"/api-reference/models/preview-swap-model-ref"},{"title":"Execute swap model ref","deprecated":null,"version":null,"openapi":"/openapi.yaml post /models/{model_id}/swap-model-ref/execute","href":"/api-reference/models/execute-swap-model-ref"},{"title":"Repoint model","deprecated":null,"version":null,"openapi":"/openapi.yaml post /models/{model_id}/repoint","href":"/api-reference/models/repoint-model"},{"title":"List models by intent group","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models/intent-groups/{intent_group_id}","href":"/api-reference/models/list-models-by-intent-group"},{"title":"List models by application","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models/applications/{application_id}","href":"/api-reference/models/list-models-by-application"},{"title":"List models by intent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models/intents/{intent_id}","href":"/api-reference/models/list-models-by-intent"}]},{"group":"Reports","expanded":false,"pages":[{"title":"List faults","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/faults","href":"/api-reference/reports/list-faults"},{"title":"List fallbacks","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/fallbacks","href":"/api-reference/reports/list-fallbacks"},{"title":"List faults by intent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/intents/{intent_id}/faults","href":"/api-reference/reports/list-faults-by-intent"},{"title":"List fallbacks by intent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/intents/{intent_id}/fallbacks","href":"/api-reference/reports/list-fallbacks-by-intent"}]},{"group":"Search","expanded":false,"pages":[{"title":"Search","deprecated":null,"version":null,"openapi":"/openapi.yaml post /search","href":"/api-reference/search/search"}]},{"group":"Help","expanded":false,"pages":[{"title":"Help query","deprecated":null,"version":null,"openapi":"/openapi.yaml post /help","href":"/api-reference/help/help-query"}]}]}]}]},"basePath":"","title":"Evaluate - Maitai","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["2b790eda92"],"chunks":["ApiExamples-BNP-Fvr0.js","utils-0BK-9q6z.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","cloneDeep-izs3Hzxb.js","utils-DfjzsUJT.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BSgu6h1D.js","shallow-Biv1i9Gs.js","snippetPresets-CpTQv-Ez.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","getApiPlaygroundDisplay-BoGOXhtF.js","CodeSnippet-DvQoT18_.js","CodeSnippets-Dnpa15xT.js"]}