Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key] to your HTTP request. You can create an API key in the Braintrust organization settings page.
Body
application/json
Any desired information about the new function object
The transaction id of an event is unique to the network operation that processed the event insertion. Transaction ids are monotonically increasing over time and can be used to retrieve a versioned snapshot of the prompt (see the version parameter)
JSON schema for the function's parameters and return type
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Braintrust","description":"Braintrust is the active observability platform for instrumenting, understanding, and improving agents. By actively applying intelligence to agent traces and automatically surfacing the most critical patterns, Braintrust gives teams the visibility to understand how agents behave in production and the tools to improve them.","colors":{"primary":"#3a4af8","light":"#3a4af8","dark":"#7e95fc"},"logo":{"light":"https://mintcdn.com/braintrust/u7i5gTV-ad3TRDYt/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=u7i5gTV-ad3TRDYt\u0026q=85\u0026s=23878ca308aee393dcc8c89ed8705189","dark":"https://mintcdn.com/braintrust/u7i5gTV-ad3TRDYt/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=u7i5gTV-ad3TRDYt\u0026q=85\u0026s=affa9d0eafd44b6cd7fb22c80afee713"},"favicon":"https://mintcdn.com/braintrust/ybJBbXJUYqK_eUdX/images/favicon.ico?fit=max\u0026auto=format\u0026n=ybJBbXJUYqK_eUdX\u0026q=85\u0026s=c9925befa0cf9b6279fab604eff9aad0","api":{},"navbar":{"links":[{"href":"https://braintrust.dev/contact","label":"Request demo"}],"primary":{"type":"button","label":"Start building","href":"https://braintrust.dev/app"}},"footer":{"socials":{"github":"https://github.com/braintrustdata","x":"https://x.com/braintrust","discord":"https://discord.gg/6G8s47F44X","youtube":"https://www.youtube.com/@BraintrustData"},"links":[{"header":"Resources","items":[{"label":"Pricing","href":"https://www.braintrust.dev/pricing"},{"label":"Blog","href":"https://www.braintrust.dev/blog"},{"label":"Careers","href":"https://www.braintrust.dev/careers"},{"label":"Status","href":"https://status.braintrust.dev/"}]}]},"seo":{"metatags":{"og:type":"website","og:site_name":"Braintrust documentation, API reference, and changelog","canonical":"https://docs.braintrust.dev","og:image":"https://www.braintrust.dev/og?template=docs\u0026title=Get+started"},"indexing":"all"},"fonts":{"heading":{"family":"BraintrustDisplayV2-Regular","source":"https://mintlify-assets.b-cdn.net/fonts/bt-sans-regular.woff2","format":"woff2"},"body":{"family":"Inter"}},"icons":{"library":"lucide"},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark-dimmed"}},"latex":true},"integrations":{"segment":{"key":"1BTDVX4cF2K1jWOI5Qh91XXKwgJubQ2R"}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","cursor","vscode","mcp","add-mcp","perplexity","grok","aistudio","devin","devin-mcp","windsurf","download-spec","download-pdf"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"braintrust","hasAudioNarration":false,"actualSubdomain":"braintrust","customDomains":["docs.braintrust.dev"],"gitSource":{"type":"github","owner":"braintrustdata","repo":"braintrust","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae4ff3d822866cf7d003d86","collectionId":"6c9c84cb-c17d-4061-899a-6324a2532856","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae4ff3d822866cf7d003d86"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae4ff3d822866cf7d003d86","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"Reference","count":241},{"language":"default","tag":"API","count":173},{"language":"default","tag":"Resources","count":171},{"language":"default","tag":"SDKs","count":127},{"language":"default","tag":"Guides","count":125},{"language":"default","tag":"Integrations","count":97},{"language":"default","tag":"Cookbook","count":44},{"language":"default","tag":"Recipes","count":43},{"language":"default","tag":"Admin","count":38},{"language":"default","tag":"CLI","count":30}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":false,"enableAskAiSearchBar":false,"deflection":{"enabled":true,"email":"support@braintrust.dev","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"use-workflow","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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-area h1,#content-area h2,#content-area h3,#content-area h4{letter-spacing:-.01em!important;font-weight:400!important}#content-area h1{font-size:2.3rem!important;line-height:1!important}#content-area h2{font-size:1.6rem!important}#content-area h3{font-size:1.4rem!important}h5{font-family:var(--font-family-body-custom, var(--font-inter, sans-serif));font-weight:600!important}.nav-logo{height:22px}img.rounded,picture img{border:1px solid rgb(var(--gray-100))!important}[data-rmiz] img{margin-top:2em;margin-bottom:2em}.dark img.rounded,.dark picture img{border:1px solid rgb(var(--gray-900))!important}#table-of-contents{margin-top:-56px;overflow-x:hidden}#navbar button[aria-label=\"More actions\"],#navigation-items div.sticky.-top-\\[24px\\],#table-of-contents nav>h2{display:none}#table-of-contents-content{margin:0}#content-area .card h2{font-size:1.2rem!important}li[id^=\"/api-reference/\"]{font-size:.8rem;word-break:break-word}li[id^=\"/api-reference/\"] .method-nav-pill{width:54px;flex:none}li[id^=\"/api-reference/\"] .method-nav-pill span{font-size:.6rem;font-weight:500;letter-spacing:0}#content-area h1,.pagination-title{word-break:break-word}div[data-component-part=card-content]:empty{display:none}#navigation-items{padding-top:40px}#sidebar-group li a,#sidebar-group li button,.sidebar-group li a{border-radius:6px;padding-top:4px;padding-bottom:4px}#sidebar-content h5{font-weight:500!important}#content-container{gap:0}#content-container .lg\\:pl-12{padding-left:0;gap:36px}.dark #content-container{background-color:#000}#content-area{max-width:860px}@media (min-width:1024px){#content-container{padding-left:36px;padding-right:36px}}#footer a[href^=\"https://mintlify.com\"],#footer a[href^=\"https://www.mintlify.com\"]{display:none!important}header#header .sm\\:items-center{align-items:flex-start}a[aria-label^=\"Navigate to\"].-ml-10{margin-left:-28px}a[aria-label^=\"Navigate to\"].-ml-10 div:not(:hover){box-shadow:none}.font-mono{font-family:\"SF Mono\",\"Monaco\",\"Inconsolata\",\"Fira Mono\",\"Droid Sans Mono\",\"Source Code Pro\",monospace!important}:root{--primary:43 30 235;--font-jetbrains-mono:\"SF Mono\", \"Monaco\", \"Inconsolata\", \"Fira Mono\", \"Droid Sans Mono\",\n \"Source Code Pro\", monospace}.dark{--primary-light:87 112 255}:root{--code-line-highlight-background:rgb(var(--primary-light) / 0.06);--code-line-highlight-border:rgb(var(--primary-light) / 0.12)}.dark{--code-line-highlight-background:rgb(var(--primary-light) / 0.08);--code-line-highlight-border:rgb(var(--primary-light) / 0.35)}[data-component-part=code-block-root]:not(.has-line-numbers) .line-highlight,[data-component-part=code-block-root]:not(.has-line-numbers) .line-highlight::after,[data-component-part=code-block-root]:not(.has-line-numbers) .line-highlight::before{background:var(--code-line-highlight-background)!important}[data-component-part=code-block-root]:not(.has-line-numbers) .line-highlight::before{border-left-color:var(--code-line-highlight-border)!important}.has-line-numbers .line-highlight::after{background:var(--code-line-highlight-background)!important;border-left-color:var(--code-line-highlight-border)!important}.navbar-link a{border-radius:6px}#topbar-cta-button a span.absolute{background-color:rgb(var(--primary));border-radius:6px}.dark #topbar-cta-button a span.absolute{background-color:rgb(var(--primary-light))}div[data-page-title=\"Page Not Found\"]>div{width:100vw;max-width:none}.dark\\:bg-background-dark:is(.dark *){background-color:#000}html.dark #navbar div.dark\\:bg-background-dark{background-color:rgb(var(--background-dark)/1)}#footer .nav-logo{opacity:.5;width:100px}#footer .max-w-\\[984px\\]{max-width:72rem;padding-left:1.25rem;padding-right:1.25rem}@media (min-width:1024px){#footer .max-w-\\[984px\\]{padding-left:36px;padding-right:36px}}.integrations-search-input{width:100%;height:2.25rem;padding-left:2.75rem;padding-right:.75rem;font-size:.875rem;line-height:1.5rem;border:0;border-radius:9999px;outline:0;background-color:rgba(3,7,18,.03);color:#6b7280;box-shadow:none;transition:background-color .2s}.integrations-search-input:focus,.integrations-search-input:hover{background-color:rgba(3,7,18,.1)}.integrations-search-input:focus{color:#374151}.integrations-search-input::placeholder{color:#4b5563}.dark .integrations-search-input{background-color:rgba(255,255,255,.06);color:rgba(255,255,255,.5)}.dark .integrations-search-input:focus,.dark .integrations-search-input:hover{background-color:rgba(255,255,255,.1)}.dark .integrations-search-input:focus{color:rgba(255,255,255,.9)}.dark .integrations-search-input::placeholder{color:rgba(255,255,255,.5)}.integrations-search-icon,.integrations-search-kbd{color:#6b7280}.dark .integrations-search-icon,.dark .integrations-search-kbd{color:rgba(255,255,255,.5)}.gateway-models-filters{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem;flex-wrap:wrap}.gateway-models-provider-wrap{display:flex;align-items:center;gap:.5rem}.models-provider-label{font-size:.875rem;font-weight:500;color:#374151;white-space:nowrap}.dark .models-provider-label{color:rgba(255,255,255,.85)}.models-provider-select{height:2.25rem;min-width:10rem;padding:0 2rem 0 .75rem;font-size:.875rem;line-height:1.5;border:1px solid rgba(3,7,18,.08);border-radius:.5rem;outline:0;background-color:#fff;color:#111827;cursor:pointer;appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:right .75rem center;transition:border-color .15s,box-shadow .15s}.models-provider-select:hover{border-color:rgba(3,7,18,.18)}.models-provider-select:focus{border-color:rgb(43 30 235);box-shadow:0 0 0 2px rgba(43,30,235,.2)}.dark .models-provider-select{background-color:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);color:rgba(255,255,255,.9);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\")}.dark .models-provider-select:hover{border-color:rgba(255,255,255,.22)}.dark .models-provider-select:focus{border-color:rgb(87 112 255);box-shadow:0 0 0 2px rgba(87,112,255,.25)}[data-component-part=accordion-icon],[data-component-part=card-icon]{flex:none}#content-area svg[data-icon]{width:1rem;height:1rem;display:inline;vertical-align:baseline;transform:translateY(-.125rem)}#content-area :not(pre)>code{padding-left:.2rem;padding-right:.2rem;border-radius:3px;background-color:rgb(0 0 0/.05)}#content-area :not(pre)>code:is(.dark *){background-color:rgb(255 255 255/.1)}body.kb-page #sidebar-content{display:none!important}body.kb-page aside:has(#sidebar-content),body.kb-page aside[id*=sidebar]{display:none!important}body.kb-page #content-container{margin-left:0!important;padding-left:24px!important}body.kb-page main{margin-left:0!important}body.kb-page #table-of-contents{display:block!important}div:has(>.tabs-border[data-component-part=tabs-list]){border:1px solid rgb(var(--gray-200));border-radius:16px;padding:0 .75rem .75rem}.dark div:has(>.tabs-border[data-component-part=tabs-list]){border-color:rgb(var(--gray-800))}.tabs-border[data-component-part=tabs-list]{margin-bottom:1rem!important}td [data-base-ui-tooltip-trigger]{text-align:inherit}"}],"page":{"pagePath":"api-reference/functions/create-or-replace-function","slug":"/api-reference/functions/create-or-replace-function","pageMetadata":{"title":"Create or replace function","description":"Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/function","href":"/api-reference/functions/create-or-replace-function","autogeneratedByOpenApi":true},"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: \"Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark-dimmed"}},"config":{},"pageMetadata":{"title":"Create or replace function","description":"Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/function","href":"/api-reference/functions/create-or-replace-function","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/braintrust/dd75b144de68c9c9/custom.js","/_mintlify/custom/braintrust/0c94fa43664e0c40/utm-attribution.js"],"openApiReferenceData":{"operation":{"tags":["Functions"],"security":["87aa7fca-0824-4f1e-b75f-6de8e94f442c","c2785e0c-9314-41f3-9567-3d3244d2a4df"],"operationId":"putFunction","description":"Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned","summary":"Create or replace function","requestBody":"26e388ee-e00d-4b78-8b0b-d29d1b127384","responses":{"200":"96d12580-1921-409b-8b10-5563ede0725f","400":"bb7d9e17-d980-497a-8786-aeb6caa81888","401":"d1fa990e-5866-44b6-af23-844115cf7ba6","403":"51dd25bf-83e5-48a9-93bc-c090de1e7b7f","429":"887409c0-675c-4e9d-af98-b9bf88872c8d","500":"a1b70141-a06f-4912-b739-48914b193836"},"method":"put","type":"path","servers":["1d9d417d-d904-4567-b8c6-4e98adac3af2"],"path":"/v1/function","baseUrlOptions":["https://api.braintrust.dev"],"title":"Create or replace function","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"Any desired information about the new function object","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"project_id":{"type":"string","format":"uuid","description":"Unique identifier for the project that the prompt belongs under","isRequired":true,"uniqueKey":"project_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","minLength":1,"description":"Name of the prompt","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"slug":{"type":"string","minLength":1,"description":"Unique identifier for the prompt","isRequired":true,"uniqueKey":"slug","typeLabel":"string"},"function_data":{"oneOf":[{"type":"object","title":"prompt","required":["type"],"properties":{"type":{"type":"string","enum":["prompt"],"isRequired":true,"uniqueKey":"function_data.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"function_data.oneOf.0","typeLabel":"prompt · object"},{"type":"object","title":"code","required":["type","data"],"properties":{"type":{"type":"string","enum":["code"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.type","typeLabel":"enum\u003cstring>"},"data":{"oneOf":[{"type":"object","title":"bundle","required":["runtime_context","location","type"],"properties":{"type":{"type":"string","enum":["bundle"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.type","typeLabel":"enum\u003cstring>"},"runtime_context":{"type":"object","properties":{"runtime":{"type":"string","enum":["node","python","browser","quickjs"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.runtime_context.runtime","typeLabel":"enum\u003cstring>"},"version":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.runtime_context.version","typeLabel":"string"}},"required":["runtime","version"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.runtime_context","typeLabel":"object"},"location":{"oneOf":[{"type":"object","title":"experiment","required":["type","eval_name","position"],"properties":{"type":{"type":"string","enum":["experiment"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"eval_name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.eval_name","typeLabel":"string"},"position":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["task"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.0","typeLabel":"object"},{"type":"object","title":"scorer","required":["type","index"],"properties":{"type":{"type":"string","enum":["scorer"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.1.type","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.1.index","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.1","typeLabel":"scorer · object"},{"type":"object","title":"classifier","required":["type","index"],"properties":{"type":{"type":"string","enum":["classifier"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.2.type","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.2.index","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.2","typeLabel":"classifier · object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position","typeLabel":"object | scorer · object | classifier · object"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0","typeLabel":"experiment · object"},{"type":"object","title":"function","required":["type","index"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.1.type","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.1.index","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.1","typeLabel":"function · object"},{"type":"object","required":["type","sandbox_spec","eval_name"],"properties":{"type":{"type":"string","enum":["sandbox"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.type","typeLabel":"enum\u003cstring>"},"sandbox_spec":{"oneOf":[{"type":"object","required":["provider","snapshot_ref"],"properties":{"provider":{"type":"string","enum":["modal"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec.oneOf.0.provider","typeLabel":"enum\u003cstring>"},"snapshot_ref":{"type":"string","description":"The Modal snapshot to start the sandbox from","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec.oneOf.0.snapshot_ref","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec.oneOf.0","typeLabel":"object"},{"type":"object","required":["provider"],"properties":{"provider":{"type":"string","enum":["lambda"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec.oneOf.1.provider","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec","typeLabel":"object"},"eval_name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.eval_name","typeLabel":"string"},"entrypoints":{"type":"array","items":{"type":"string","uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.entrypoints.items.[INDEX]","typeLabel":"string"},"description":"Which entrypoints to execute in the sandbox","uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.entrypoints","typeLabel":"string[]"},"parameters":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.parameters.additionalProperties","typeLabel":"any"},"description":"Parameter values for sandbox eval execution","uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.parameters","typeLabel":"object"},"evaluator_definition":{"description":"Definition of current evaluator with parameters","uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.evaluator_definition","typeLabel":"any"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location","typeLabel":"experiment · object | function · object | object"},"bundle_id":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.1.data.oneOf.0.bundle_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.1.data.oneOf.0.bundle_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.1.data.oneOf.0.bundle_id","typeLabel":"string | null"},"preview":{"oneOf":[{"type":"string","description":"A preview of the code","uniqueKey":"function_data.oneOf.1.data.oneOf.0.preview.oneOf.0","typeLabel":"string"},{"type":"null","description":"A preview of the code","uniqueKey":"function_data.oneOf.1.data.oneOf.0.preview.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.1.data.oneOf.0.preview","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0","typeLabel":"bundle · object"},{"type":"object","title":"inline","required":["type","runtime_context","code"],"properties":{"type":{"type":"string","enum":["inline"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1.type","typeLabel":"enum\u003cstring>"},"runtime_context":{"type":"object","properties":{"runtime":{"type":"string","enum":["node","python","browser","quickjs"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1.runtime_context.runtime","typeLabel":"enum\u003cstring>"},"version":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1.runtime_context.version","typeLabel":"string"}},"required":["runtime","version"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1.runtime_context","typeLabel":"object"},"code":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1.code","typeLabel":"string"},"code_hash":{"type":"string","description":"SHA256 hash of the code, computed at save time","uniqueKey":"function_data.oneOf.1.data.oneOf.1.code_hash","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1","typeLabel":"inline · object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data","typeLabel":"bundle · object | inline · object"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1","typeLabel":"code · object"},{"type":"object","title":"graph","description":"This feature is preliminary and unsupported.","required":["type","nodes","edges"],"properties":{"type":{"type":"string","enum":["graph"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.type","typeLabel":"enum\u003cstring>"},"nodes":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.type","typeLabel":"enum\u003cstring>"},"function":{"type":"object","properties":{},"additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.function.additionalProperties","typeLabel":"any"},"description":"Options for identifying a function","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.function","typeLabel":"object"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["input"],"description":"The input to the graph","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["output"],"description":"The output of the graph","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["literal"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.position","typeLabel":"object | null"},"value":{"description":"A literal value to be returned","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.value","typeLabel":"any"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3","typeLabel":"object"},{"type":"object","required":["type","expr"],"properties":{"type":{"type":"string","enum":["btql"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.type","typeLabel":"enum\u003cstring>"},"expr":{"type":"string","description":"A BTQL expression to be evaluated","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.expr","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gate"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.position","typeLabel":"object | null"},"condition":{"oneOf":[{"type":"string","description":"A BTQL expression to be evaluated","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.condition.oneOf.0","typeLabel":"string"},{"type":"null","description":"A BTQL expression to be evaluated","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.condition.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.condition","typeLabel":"string | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["aggregator"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6","typeLabel":"object"},{"type":"object","required":["type","prompt"],"properties":{"type":{"type":"string","enum":["prompt_template"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.type","typeLabel":"enum\u003cstring>"},"prompt":{"oneOf":[{"type":"object","title":"chat","required":["type","messages"],"properties":{"type":{"type":"string","enum":["chat"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.type","typeLabel":"enum\u003cstring>"},"messages":{"type":"array","items":{"oneOf":[{"type":"object","title":"system","required":["role"],"properties":{"role":{"type":"string","enum":["system"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"type":"any","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content","typeLabel":"any"},"name":{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.name","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.0","typeLabel":"system · object"},{"type":"object","title":"user","required":["role"],"properties":{"role":{"type":"string","enum":["user"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.role","typeLabel":"enum\u003cstring>"},"content":{"type":"any","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content","typeLabel":"any"},"name":{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.name","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.1","typeLabel":"user · object"},{"type":"object","title":"assistant","required":["role"],"properties":{"role":{"type":"string","enum":["assistant"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.role","typeLabel":"enum\u003cstring>"},"content":{"type":"any","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content","typeLabel":"any"},"function_call":{"oneOf":[{"type":"object","properties":{"arguments":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0.arguments","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0.name","typeLabel":"string"}},"required":["arguments","name"],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call","typeLabel":"object | null"},"name":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name","typeLabel":"string | null"},"tool_calls":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].id","typeLabel":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function.arguments","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function.name","typeLabel":"string"}},"required":["arguments","name"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function","typeLabel":"object"},"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["id","function","type"],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]},"type":{"type":"string","enum":["function"]}},"required":["id","function","type"]},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls","typeLabel":"object[] | null"},"reasoning":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id","typeLabel":"string | null"},"content":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content","typeLabel":"string | null"}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models.","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string"},{"type":"null"}]},"content":{"oneOf":[{"type":"string"},{"type":"null"}]}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models."},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning","typeLabel":"object[] | null"},"reasoning_signature":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature","typeLabel":"string | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2","typeLabel":"assistant · object"},{"type":"object","title":"tool","required":["role"],"properties":{"role":{"type":"string","enum":["tool"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.role","typeLabel":"enum\u003cstring>"},"content":{"type":"any","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content","typeLabel":"any"},"tool_call_id":{"type":"string","default":"","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.tool_call_id","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.3","typeLabel":"tool · object"},{"type":"object","title":"function","required":["content","name","role"],"properties":{"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content","typeLabel":"string | null"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.name","typeLabel":"string"},"role":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.role","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4","typeLabel":"function · object"},{"type":"object","title":"developer","required":["role"],"properties":{"role":{"type":"string","enum":["developer"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.role","typeLabel":"enum\u003cstring>"},"content":{"type":"any","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content","typeLabel":"any"},"name":{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.name","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.5","typeLabel":"developer · object"},{"type":"object","title":"fallback","required":["role"],"properties":{"role":{"type":"string","enum":["model"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content","typeLabel":"string | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.6","typeLabel":"fallback · object"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX]","typeLabel":"system · object | user · object | assistant · object | tool · object | function · object | developer · object | fallback · object"},"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages","typeLabel":"(system · object | user · object | assistant · object | tool · object | function · object | developer · object | fallback · object)[]"},"tools":{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.tools","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0","typeLabel":"chat · object"},{"type":"object","title":"completion","required":["type","content"],"properties":{"type":{"type":"string","enum":["completion"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.1.type","typeLabel":"enum\u003cstring>"},"content":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.1.content","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.1","typeLabel":"completion · object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt","typeLabel":"chat · object | completion · object"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7","typeLabel":"object"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes","typeLabel":"object"},"edges":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"object","properties":{"node":{"type":"string","maxLength":1024,"description":"The id of the node in the graph","isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.source.node","typeLabel":"string"},"variable":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.source.variable","typeLabel":"string"}},"required":["node","variable"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.source","typeLabel":"object"},"target":{"type":"object","properties":{"node":{"type":"string","maxLength":1024,"description":"The id of the node in the graph","isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.target.node","typeLabel":"string"},"variable":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.target.variable","typeLabel":"string"}},"required":["node","variable"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.target","typeLabel":"object"},"purpose":{"type":"string","enum":["control","data","messages"],"description":"The purpose of the edge","isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.purpose","typeLabel":"enum\u003cstring>"}},"required":["source","target","purpose"],"uniqueKey":"function_data.oneOf.2.edges.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"function_data.oneOf.2.edges","typeLabel":"object"}},"isRequired":true,"uniqueKey":"function_data.oneOf.2","typeLabel":"graph · object"},{"type":"object","title":"remote_eval","description":"A remote eval to run","required":["type","endpoint","eval_name","parameters"],"properties":{"type":{"type":"string","enum":["remote_eval"],"isRequired":true,"uniqueKey":"function_data.oneOf.3.type","typeLabel":"enum\u003cstring>"},"endpoint":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.3.endpoint","typeLabel":"string"},"eval_name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.3.eval_name","typeLabel":"string"},"parameters":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.3.parameters.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"function_data.oneOf.3.parameters","typeLabel":"object"},"parameters_version":{"oneOf":[{"type":"string","description":"The version (transaction ID) of the parameters being used","uniqueKey":"function_data.oneOf.3.parameters_version.oneOf.0","typeLabel":"string"},{"type":"null","description":"The version (transaction ID) of the parameters being used","uniqueKey":"function_data.oneOf.3.parameters_version.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.3.parameters_version","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"function_data.oneOf.3","typeLabel":"remote_eval · object"},{"type":"object","title":"global","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"function_data.oneOf.4.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.4.name","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.4.function_type","typeLabel":"enum\u003cstring>"},"config":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.4.config.oneOf.0.additionalProperties","typeLabel":"any"},"description":"Configuration options to pass to the global function (e.g., for preprocessor customization)","uniqueKey":"function_data.oneOf.4.config.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.4.config.oneOf.1.additionalProperties","typeLabel":"any"},"description":"Configuration options to pass to the global function (e.g., for preprocessor customization)","uniqueKey":"function_data.oneOf.4.config.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.4.config","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"function_data.oneOf.4","typeLabel":"global · object"},{"type":"object","title":"facet","required":["type","prompt"],"properties":{"type":{"type":"string","enum":["facet"],"isRequired":true,"uniqueKey":"function_data.oneOf.5.type","typeLabel":"enum\u003cstring>"},"prompt":{"type":"string","description":"The prompt to use for LLM extraction. The preprocessed text will be provided as context.","isRequired":true,"uniqueKey":"function_data.oneOf.5.prompt","typeLabel":"string"},"preprocessor":{"oneOf":[{"type":"object","title":"function","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.0.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.0","typeLabel":"function · object"},{"type":"object","title":"global","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.1.name","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.1","typeLabel":"global · object"},{"type":"object","title":"preprocessor_inline","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","code"],"properties":{"type":{"type":"string","enum":["inline"],"isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.2.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","minLength":1,"description":"The complete JavaScript preprocessor implementation, including its handler.","isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.2.code","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.2","typeLabel":"preprocessor_inline · object"},{"type":"null","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.3","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.5.preprocessor","typeLabel":"function · object | global · object | preprocessor_inline · object | null"},"model":{"type":"string","description":"The model to use for facet extraction","uniqueKey":"function_data.oneOf.5.model","typeLabel":"string"},"embedding_model":{"type":"string","description":"The embedding model to use for vectorizing facet results.","uniqueKey":"function_data.oneOf.5.embedding_model","typeLabel":"string"},"no_match_pattern":{"type":"string","description":"Regex pattern to identify outputs that do not match the facet. If the output matches, the facet will be saved as 'no_match'","uniqueKey":"function_data.oneOf.5.no_match_pattern","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.5","typeLabel":"facet · object"},{"type":"object","title":"batched_facet","required":["type","facets"],"properties":{"type":{"type":"string","enum":["batched_facet"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.type","typeLabel":"enum\u003cstring>"},"facets":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the facet","isRequired":true,"uniqueKey":"function_data.oneOf.6.facets.items.[INDEX].name","typeLabel":"string"},"prompt":{"type":"string","description":"The prompt to use for LLM extraction. The preprocessed text will be provided as context.","isRequired":true,"uniqueKey":"function_data.oneOf.6.facets.items.[INDEX].prompt","typeLabel":"string"},"model":{"type":"string","description":"The model to use for facet extraction","uniqueKey":"function_data.oneOf.6.facets.items.[INDEX].model","typeLabel":"string"},"embedding_model":{"type":"string","description":"The embedding model to use for vectorizing facet results.","uniqueKey":"function_data.oneOf.6.facets.items.[INDEX].embedding_model","typeLabel":"string"},"no_match_pattern":{"type":"string","description":"Regex pattern to identify outputs that do not match the facet. If the output matches, the facet will be saved as 'no_match'","uniqueKey":"function_data.oneOf.6.facets.items.[INDEX].no_match_pattern","typeLabel":"string"}},"required":["name","prompt"],"uniqueKey":"function_data.oneOf.6.facets.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"function_data.oneOf.6.facets","typeLabel":"object[]"},"preprocessor":{"oneOf":[{"type":"object","title":"function","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.0.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.0","typeLabel":"function · object"},{"type":"object","title":"global","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.1.name","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.1","typeLabel":"global · object"},{"type":"object","title":"preprocessor_inline","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","code"],"properties":{"type":{"type":"string","enum":["inline"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.2.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","minLength":1,"description":"The complete JavaScript preprocessor implementation, including its handler.","isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.2.code","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.2","typeLabel":"preprocessor_inline · object"},{"type":"null","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.3","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.6.preprocessor","typeLabel":"function · object | global · object | preprocessor_inline · object | null"},"topic_maps":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"function_name":{"type":"string","description":"The name of the topic map function","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].function_name","typeLabel":"string"},"topic_map_data":{"type":"object","properties":{"type":{"type":"string","enum":["topic_map"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.type","typeLabel":"enum\u003cstring>"},"source_facet":{"type":"string","description":"Materialized facet field name used when source_facet_function is absent","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet","typeLabel":"string"},"embedding_model":{"type":"string","description":"The embedding model to use for embedding facet values","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.embedding_model","typeLabel":"string"},"source_facet_function":{"oneOf":[{"type":"object","title":"function","description":"The stable function reference for the source facet","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.0.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.0","typeLabel":"function · object"},{"type":"object","title":"global","description":"The stable function reference for the source facet","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1.name","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1.version","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1","typeLabel":"global · object"},{"type":"object","title":"function","description":"The stable function reference for the source facet","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2.name","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2.id","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2.function_type","typeLabel":"enum\u003cstring>"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2","typeLabel":"function · object"},{"type":"object","title":"global","description":"The stable function reference for the source facet","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.3.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.3.name","typeLabel":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.3.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.3","typeLabel":"global · object"}],"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function","typeLabel":"function · object · global · object · function · object · global · object"},"bundle_key":{"type":"string","description":"Key of the topic map bundle in code_bundles bucket","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.bundle_key","typeLabel":"string"},"report_key":{"type":"string","description":"Key of the clustering report in code_bundles bucket","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.report_key","typeLabel":"string"},"topic_names":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.topic_names.additionalProperties","typeLabel":"string"},"description":"Mapping from topic_id to topic name","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.topic_names","typeLabel":"object"},"generation_settings":{"type":"object","properties":{"algorithm":{"type":"string","enum":["hdbscan","kmeans","community"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.algorithm","typeLabel":"enum\u003cstring>"},"dimension_reduction":{"type":"string","enum":["umap","pca","none"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.dimension_reduction","typeLabel":"enum\u003cstring>"},"sample_size":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.sample_size","typeLabel":"integer"},"n_clusters":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.n_clusters","typeLabel":"integer"},"min_cluster_size":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.min_cluster_size","typeLabel":"integer"},"min_samples":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.min_samples","typeLabel":"integer"},"hierarchy_threshold":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.hierarchy_threshold","typeLabel":"integer"},"naming_model":{"type":"string","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.naming_model","typeLabel":"string"}},"required":["algorithm","dimension_reduction"],"description":"Clustering and naming settings used to generate this topic map","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings","typeLabel":"object"},"disable_reconciliation":{"type":"boolean","description":"Whether new topic generation should ignore the previously saved report during reconciliation. Defaults to false when omitted.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.disable_reconciliation","typeLabel":"boolean"},"reconcile_mode":{"type":"string","enum":["evolve","names_only"],"description":"How reconciliation carries the previous map forward: \"evolve\" re-routes new samples into the previous topics before naming; \"names_only\" keeps the fresh clustering and carries only topic ids/names. Defaults to \"names_only\" when omitted.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.reconcile_mode","typeLabel":"enum\u003cstring>"},"distance_threshold":{"type":"number","description":"Maximum distance to nearest centroid. If exceeded, returns no_match.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.distance_threshold","typeLabel":"number"},"btql_filter":{"type":"string","description":"Per-topic-map BTQL filter that was applied when this version was generated. Absent on versions generated before this was recorded.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.btql_filter","typeLabel":"string"},"automation_btql_filter":{"type":"string","description":"Automation-level BTQL filter that was applied when this version was generated. Absent on versions generated before this was recorded.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.automation_btql_filter","typeLabel":"string"}},"required":["type","source_facet","embedding_model"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data","typeLabel":"object"},"topic_map_id":{"type":"string","description":"The id of the topic map function","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_id","typeLabel":"string"}},"required":["function_name","topic_map_data"],"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties","typeLabel":"object[]"},"description":"Topic maps that depend on facets in this batch, keyed by source facet name. Each source facet can have multiple topic maps.","uniqueKey":"function_data.oneOf.6.topic_maps","typeLabel":"object"}},"isRequired":true,"uniqueKey":"function_data.oneOf.6","typeLabel":"batched_facet · object"},{"type":"object","title":"parameters","required":["type","data","__schema"],"properties":{"type":{"type":"string","enum":["parameters"],"isRequired":true,"uniqueKey":"function_data.oneOf.7.type","typeLabel":"enum\u003cstring>"},"data":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.7.data.additionalProperties","typeLabel":"any"},"description":"The parameters data","isRequired":true,"uniqueKey":"function_data.oneOf.7.data","typeLabel":"object"},"__schema":{"type":"object","properties":{"type":{"type":"string","enum":["object"],"isRequired":true,"uniqueKey":"function_data.oneOf.7.__schema.type","typeLabel":"enum\u003cstring>"},"properties":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.7.__schema.properties.additionalProperties.additionalProperties","typeLabel":"any"},"uniqueKey":"function_data.oneOf.7.__schema.properties.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"function_data.oneOf.7.__schema.properties","typeLabel":"object"},"required":{"type":"array","items":{"type":"string","uniqueKey":"function_data.oneOf.7.__schema.required.items.[INDEX]","typeLabel":"string"},"uniqueKey":"function_data.oneOf.7.__schema.required","typeLabel":"string[]"},"additionalProperties":{"type":"boolean","uniqueKey":"function_data.oneOf.7.__schema.\\additionalProperties","typeLabel":"boolean"}},"required":["type","properties"],"description":"JSON Schema format for parameters","isRequired":true,"uniqueKey":"function_data.oneOf.7.__schema","typeLabel":"object"}},"isRequired":true,"uniqueKey":"function_data.oneOf.7","typeLabel":"parameters · object"},{"type":"object","title":"topic_map","required":["type","source_facet","embedding_model"],"properties":{"type":{"type":"string","enum":["topic_map"],"isRequired":true,"uniqueKey":"function_data.oneOf.8.type","typeLabel":"enum\u003cstring>"},"source_facet":{"type":"string","description":"Materialized facet field name used when source_facet_function is absent","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet","typeLabel":"string"},"embedding_model":{"type":"string","description":"The embedding model to use for embedding facet values","isRequired":true,"uniqueKey":"function_data.oneOf.8.embedding_model","typeLabel":"string"},"source_facet_function":{"oneOf":[{"type":"object","title":"function","description":"The stable function reference for the source facet","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.0.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.0","typeLabel":"function · object"},{"type":"object","title":"global","description":"The stable function reference for the source facet","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1.name","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1.version","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1","typeLabel":"global · object"},{"type":"object","title":"function","description":"The stable function reference for the source facet","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2.name","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2.id","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2.function_type","typeLabel":"enum\u003cstring>"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2","typeLabel":"function · object"},{"type":"object","title":"global","description":"The stable function reference for the source facet","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.3.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.3.name","typeLabel":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.3.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.3","typeLabel":"global · object"}],"uniqueKey":"function_data.oneOf.8.source_facet_function","typeLabel":"function · object · global · object · function · object · global · object"},"bundle_key":{"type":"string","description":"Key of the topic map bundle in code_bundles bucket","uniqueKey":"function_data.oneOf.8.bundle_key","typeLabel":"string"},"report_key":{"type":"string","description":"Key of the clustering report in code_bundles bucket","uniqueKey":"function_data.oneOf.8.report_key","typeLabel":"string"},"topic_names":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"function_data.oneOf.8.topic_names.additionalProperties","typeLabel":"string"},"description":"Mapping from topic_id to topic name","uniqueKey":"function_data.oneOf.8.topic_names","typeLabel":"object"},"generation_settings":{"type":"object","properties":{"algorithm":{"type":"string","enum":["hdbscan","kmeans","community"],"isRequired":true,"uniqueKey":"function_data.oneOf.8.generation_settings.algorithm","typeLabel":"enum\u003cstring>"},"dimension_reduction":{"type":"string","enum":["umap","pca","none"],"isRequired":true,"uniqueKey":"function_data.oneOf.8.generation_settings.dimension_reduction","typeLabel":"enum\u003cstring>"},"sample_size":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.8.generation_settings.sample_size","typeLabel":"integer"},"n_clusters":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.8.generation_settings.n_clusters","typeLabel":"integer"},"min_cluster_size":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.8.generation_settings.min_cluster_size","typeLabel":"integer"},"min_samples":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.8.generation_settings.min_samples","typeLabel":"integer"},"hierarchy_threshold":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.8.generation_settings.hierarchy_threshold","typeLabel":"integer"},"naming_model":{"type":"string","uniqueKey":"function_data.oneOf.8.generation_settings.naming_model","typeLabel":"string"}},"required":["algorithm","dimension_reduction"],"description":"Clustering and naming settings used to generate this topic map","uniqueKey":"function_data.oneOf.8.generation_settings","typeLabel":"object"},"disable_reconciliation":{"type":"boolean","description":"Whether new topic generation should ignore the previously saved report during reconciliation. Defaults to false when omitted.","uniqueKey":"function_data.oneOf.8.disable_reconciliation","typeLabel":"boolean"},"reconcile_mode":{"type":"string","enum":["evolve","names_only"],"description":"How reconciliation carries the previous map forward: \"evolve\" re-routes new samples into the previous topics before naming; \"names_only\" keeps the fresh clustering and carries only topic ids/names. Defaults to \"names_only\" when omitted.","uniqueKey":"function_data.oneOf.8.reconcile_mode","typeLabel":"enum\u003cstring>"},"distance_threshold":{"type":"number","description":"Maximum distance to nearest centroid. If exceeded, returns no_match.","uniqueKey":"function_data.oneOf.8.distance_threshold","typeLabel":"number"},"btql_filter":{"type":"string","description":"Per-topic-map BTQL filter that was applied when this version was generated. Absent on versions generated before this was recorded.","uniqueKey":"function_data.oneOf.8.btql_filter","typeLabel":"string"},"automation_btql_filter":{"type":"string","description":"Automation-level BTQL filter that was applied when this version was generated. Absent on versions generated before this was recorded.","uniqueKey":"function_data.oneOf.8.automation_btql_filter","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.8","typeLabel":"topic_map · object"},{"type":"object","title":"simulation","description":"A task function that runs a conversation between an agent and a simulated user.","required":["type","config"],"properties":{"type":{"type":"string","enum":["simulation"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.type","typeLabel":"enum\u003cstring>"},"config":{"oneOf":[{"type":"object","required":["agent"],"properties":{"agent":{"oneOf":[{"type":"object","required":["type","server_url","agent_name"],"properties":{"type":{"type":"string","enum":["livekit"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.0.type","typeLabel":"enum\u003cstring>"},"server_url":{"type":"string","minLength":1,"description":"The WebSocket URL of the LiveKit project hosting the agent","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.0.server_url","typeLabel":"string"},"agent_name":{"type":"string","minLength":1,"description":"The name of the LiveKit agent to dispatch","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.0.agent_name","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","phone_number"],"properties":{"type":{"type":"string","enum":["phone"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.1.type","typeLabel":"enum\u003cstring>"},"phone_number":{"type":"string","pattern":"^\\+[1-9]\\d{7,14}$","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.1.phone_number","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","uri"],"properties":{"type":{"type":"string","enum":["sip"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.2.type","typeLabel":"enum\u003cstring>"},"uri":{"type":"string","pattern":"^sips?:[^\\s]+$","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.2.uri","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent","typeLabel":"object"},"initiator":{"type":"string","enum":["agent","simulated_user"],"default":"agent","description":"Who speaks first in the conversation","uniqueKey":"function_data.oneOf.9.config.oneOf.0.initiator","typeLabel":"enum\u003cstring>"},"timeout_seconds":{"type":"integer","minimum":15,"maximum":3600,"default":600,"description":"Maximum conversation duration in seconds","uniqueKey":"function_data.oneOf.9.config.oneOf.0.timeout_seconds","typeLabel":"integer"},"modality":{"type":"string","enum":["voice"],"default":"voice","uniqueKey":"function_data.oneOf.9.config.oneOf.0.modality","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0","typeLabel":"object"},{"type":"object","required":["modality","agent"],"properties":{"modality":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.modality","typeLabel":"enum\u003cstring>"},"agent":{"oneOf":[{"type":"object","required":["type","server_url","agent_name"],"properties":{"type":{"type":"string","enum":["livekit"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.0.type","typeLabel":"enum\u003cstring>"},"server_url":{"type":"string","minLength":1,"description":"The WebSocket URL of the LiveKit project hosting the agent","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.0.server_url","typeLabel":"string"},"agent_name":{"type":"string","minLength":1,"description":"The name of the LiveKit agent to dispatch","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.0.agent_name","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","command","cwd"],"properties":{"type":{"type":"string","enum":["acp"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.type","typeLabel":"enum\u003cstring>"},"command":{"type":"string","minLength":1,"description":"Executable for the ACP agent subprocess, communicating over stdio","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.command","typeLabel":"string"},"cwd":{"type":"string","pattern":"^(?:\\/|[A-Za-z]:[\\\\/]|\\\\\\\\)","description":"Absolute working directory for the ACP session on the execution host","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.cwd","typeLabel":"string"},"args":{"type":"array","items":{"type":"string","uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.args.items.[INDEX]","typeLabel":"string"},"default":[],"description":"Arguments passed to the executable without shell interpretation","uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.args","typeLabel":"string[]"},"permissions":{"type":"string","enum":["deny"],"default":"deny","description":"Deny ACP permission requests; this does not sandbox the subprocess","uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.permissions","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent","typeLabel":"object"},"initiator":{"type":"string","enum":["agent","simulated_user"],"default":"agent","description":"Who speaks first in the conversation","uniqueKey":"function_data.oneOf.9.config.oneOf.1.initiator","typeLabel":"enum\u003cstring>"},"timeout_seconds":{"type":"integer","minimum":15,"maximum":3600,"default":600,"description":"Maximum conversation duration in seconds","uniqueKey":"function_data.oneOf.9.config.oneOf.1.timeout_seconds","typeLabel":"integer"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9","typeLabel":"simulation · object"}],"isRequired":true,"uniqueKey":"function_data","typeLabel":"prompt · object | code · object | graph · object | remote_eval · object | global · object | facet · object | batched_facet · object | parameters · object | topic_map · object | simulation · object"},"description":{"oneOf":[{"type":"string","description":"Textual description of the prompt","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Textual description of the prompt","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"prompt_data":{"oneOf":[{"type":"object","properties":{"prompt":{"oneOf":[{"type":"object","title":"chat","required":["type","messages"],"properties":{"type":{"type":"string","enum":["chat"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.type","typeLabel":"enum\u003cstring>"},"messages":{"type":"array","items":{"oneOf":[{"type":"object","title":"system","required":["role"],"properties":{"role":{"type":"string","enum":["system"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","title":"text","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"title":"array","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1","typeLabel":"array · object[]"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content","typeLabel":"string | array · object[]"},"name":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.name","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0","typeLabel":"system · object"},{"type":"object","title":"user","required":["role"],"properties":{"role":{"type":"string","enum":["user"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","title":"text","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","title":"text","required":["type"],"properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"text · object"},{"type":"object","title":"image_url","required":["image_url","type"],"properties":{"image_url":{"type":"object","properties":{"url":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url.url","typeLabel":"string"},"detail":{"oneOf":[{"type":"string","title":"auto","enum":["auto"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url.detail.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","title":"low","enum":["low"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url.detail.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","title":"high","enum":["high"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url.detail.oneOf.2","typeLabel":"enum\u003cstring>"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url.detail","typeLabel":"enum\u003cstring>"}},"required":["url"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url","typeLabel":"object"},"type":{"type":"string","enum":["image_url"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.cache_control","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"image_url · object"},{"type":"object","title":"input_audio","required":["input_audio","type"],"properties":{"input_audio":{"type":"object","properties":{"data":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.input_audio.data","typeLabel":"string"},"format":{"type":"string","enum":["wav","mp3"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.input_audio.format","typeLabel":"enum\u003cstring>"}},"required":["data","format"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.input_audio","typeLabel":"object"},"type":{"type":"string","enum":["input_audio"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.cache_control","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"input_audio · object"},{"type":"object","title":"file","required":["file","type"],"properties":{"file":{"type":"object","properties":{"file_data":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.file.file_data","typeLabel":"string"},"filename":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.file.filename","typeLabel":"string"},"file_id":{"type":"string","title":"The ID of an uploaded file to use as input.","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.file.file_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.file","typeLabel":"object"},"type":{"type":"string","enum":["file"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.cache_control","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"file · object"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX]","typeLabel":"text · object | image_url · object | input_audio · object | file · object"},"title":"array","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1","typeLabel":"(text · object | image_url · object | input_audio · object | file · object)[]"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content","typeLabel":"string | (text · object | image_url · object | input_audio · object | file · object)[]"},"name":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.name","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1","typeLabel":"user · object"},{"type":"object","title":"assistant","required":["role"],"properties":{"role":{"type":"string","enum":["assistant"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1","typeLabel":"object[]"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.2","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content","typeLabel":"string | object[] | null"},"function_call":{"oneOf":[{"type":"object","properties":{"arguments":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0.arguments","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0.name","typeLabel":"string"}},"required":["arguments","name"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call","typeLabel":"object | null"},"name":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name","typeLabel":"string | null"},"tool_calls":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].id","typeLabel":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function.arguments","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function.name","typeLabel":"string"}},"required":["arguments","name"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function","typeLabel":"object"},"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["id","function","type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]},"type":{"type":"string","enum":["function"]}},"required":["id","function","type"]},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls","typeLabel":"object[] | null"},"reasoning":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id","typeLabel":"string | null"},"content":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content","typeLabel":"string | null"}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models.","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string"},{"type":"null"}]},"content":{"oneOf":[{"type":"string"},{"type":"null"}]}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models."},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning","typeLabel":"object[] | null"},"reasoning_signature":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature","typeLabel":"string | null"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2","typeLabel":"assistant · object"},{"type":"object","title":"tool","required":["role"],"properties":{"role":{"type":"string","enum":["tool"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","title":"text","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"title":"array","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1","typeLabel":"array · object[]"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content","typeLabel":"string | array · object[]"},"tool_call_id":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.tool_call_id","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3","typeLabel":"tool · object"},{"type":"object","title":"function","required":["content","name","role"],"properties":{"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content","typeLabel":"string | null"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.name","typeLabel":"string"},"role":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.role","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4","typeLabel":"function · object"},{"type":"object","title":"developer","required":["role"],"properties":{"role":{"type":"string","enum":["developer"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","title":"text","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"title":"array","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1","typeLabel":"array · object[]"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content","typeLabel":"string | array · object[]"},"name":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.name","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5","typeLabel":"developer · object"},{"type":"object","title":"fallback","required":["role"],"properties":{"role":{"type":"string","enum":["model"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content","typeLabel":"string | null"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.6","typeLabel":"fallback · object"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX]","typeLabel":"system · object | user · object | assistant · object | tool · object | function · object | developer · object | fallback · object"},"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages","typeLabel":"(system · object | user · object | assistant · object | tool · object | function · object | developer · object | fallback · object)[]"},"tools":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.tools","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0","typeLabel":"chat · object"},{"type":"object","title":"completion","required":["type","content"],"properties":{"type":{"type":"string","enum":["completion"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.1.type","typeLabel":"enum\u003cstring>"},"content":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.1.content","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.1","typeLabel":"completion · object"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.2","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt","typeLabel":"chat · object | completion · object | null"},"options":{"oneOf":[{"type":"object","properties":{"model":{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.model","typeLabel":"string"},"params":{"oneOf":[{"type":"object","title":"OpenAIModelParams","properties":{"use_cache":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.use_cache","typeLabel":"boolean"},"reasoning_enabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.reasoning_enabled","typeLabel":"boolean"},"reasoning_budget":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.reasoning_budget","typeLabel":"number"},"temperature":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.temperature","typeLabel":"number"},"top_p":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.top_p","typeLabel":"number"},"max_tokens":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.max_tokens","typeLabel":"number"},"max_completion_tokens":{"type":"number","description":"The successor to max_tokens","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.max_completion_tokens","typeLabel":"number"},"frequency_penalty":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.frequency_penalty","typeLabel":"number"},"presence_penalty":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.presence_penalty","typeLabel":"number"},"response_format":{"oneOf":[{"type":"object","title":"json_object","required":["type"],"properties":{"type":{"type":"string","enum":["json_object"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.0","typeLabel":"json_object · object"},{"type":"object","title":"json_schema","required":["type","json_schema"],"properties":{"type":{"type":"string","enum":["json_schema"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.type","typeLabel":"enum\u003cstring>"},"json_schema":{"type":"object","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.description","typeLabel":"string"},"schema":{"oneOf":[{"type":"object","title":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.schema.oneOf.0.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.schema.oneOf.0","typeLabel":"object · object"},{"type":"string","title":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.schema.oneOf.1","typeLabel":"string"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.schema","typeLabel":"object · object | string"},"strict":{"oneOf":[{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.strict","typeLabel":"boolean | null"}},"required":["name"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1","typeLabel":"json_schema · object"},{"type":"object","title":"text","required":["type"],"properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.2","typeLabel":"text · object"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.3","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format","typeLabel":"json_object · object | json_schema · object | text · object | null"},"tool_choice":{"oneOf":[{"type":"string","title":"auto","enum":["auto"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","title":"none","enum":["none"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","title":"required","enum":["required"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.2","typeLabel":"enum\u003cstring>"},{"type":"object","title":"function","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.3.type","typeLabel":"enum\u003cstring>"},"function":{"type":"object","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.3.function.name","typeLabel":"string"}},"required":["name"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.3.function","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.3","typeLabel":"function · object"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice","typeLabel":"enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · function · object"},"function_call":{"oneOf":[{"type":"string","title":"auto","enum":["auto"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.function_call.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","title":"none","enum":["none"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.function_call.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"object","title":"function","required":["name"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.function_call.oneOf.2.name","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.function_call.oneOf.2","typeLabel":"function · object"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.function_call","typeLabel":"enum\u003cstring> · enum\u003cstring> · function · object"},"n":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.n","typeLabel":"number"},"stop":{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.stop.items.[INDEX]","typeLabel":"string"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.stop","typeLabel":"string[]"},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.reasoning_effort","typeLabel":"enum\u003cstring>"},"chat_template_kwargs":{"type":"object","properties":{"enable_thinking":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.chat_template_kwargs.enable_thinking","typeLabel":"boolean"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.chat_template_kwargs.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.chat_template_kwargs","typeLabel":"object"},"verbosity":{"type":"string","enum":["low","medium","high"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.verbosity","typeLabel":"enum\u003cstring>"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0","typeLabel":"OpenAIModelParams · object"},{"type":"object","title":"AnthropicModelParams","required":["max_tokens","temperature"],"properties":{"max_tokens":{"type":"number","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.max_tokens","typeLabel":"number"},"temperature":{"type":"number","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.temperature","typeLabel":"number"},"use_cache":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.use_cache","typeLabel":"boolean"},"reasoning_enabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.reasoning_enabled","typeLabel":"boolean"},"reasoning_budget":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.reasoning_budget","typeLabel":"number"},"top_p":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.top_p","typeLabel":"number"},"top_k":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.top_k","typeLabel":"number"},"stop_sequences":{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.stop_sequences.items.[INDEX]","typeLabel":"string"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.stop_sequences","typeLabel":"string[]"},"max_tokens_to_sample":{"type":"number","description":"This is a legacy parameter that should not be used.","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.max_tokens_to_sample","typeLabel":"number"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1","typeLabel":"AnthropicModelParams · object"},{"type":"object","title":"GoogleModelParams","properties":{"use_cache":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.use_cache","typeLabel":"boolean"},"reasoning_enabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.reasoning_enabled","typeLabel":"boolean"},"reasoning_budget":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.reasoning_budget","typeLabel":"number"},"temperature":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.temperature","typeLabel":"number"},"maxOutputTokens":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.maxOutputTokens","typeLabel":"number"},"topP":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.topP","typeLabel":"number"},"topK":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.topK","typeLabel":"number"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2","typeLabel":"GoogleModelParams · object"},{"type":"object","title":"WindowAIModelParams","properties":{"use_cache":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.use_cache","typeLabel":"boolean"},"reasoning_enabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.reasoning_enabled","typeLabel":"boolean"},"reasoning_budget":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.reasoning_budget","typeLabel":"number"},"temperature":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.temperature","typeLabel":"number"},"topK":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.topK","typeLabel":"number"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3","typeLabel":"WindowAIModelParams · object"},{"type":"object","title":"JsCompletionParams","properties":{"use_cache":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.4.use_cache","typeLabel":"boolean"},"reasoning_enabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.4.reasoning_enabled","typeLabel":"boolean"},"reasoning_budget":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.4.reasoning_budget","typeLabel":"number"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.4.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.4","typeLabel":"JsCompletionParams · object"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params","typeLabel":"OpenAIModelParams · object | AnthropicModelParams · object | GoogleModelParams · object | WindowAIModelParams · object | JsCompletionParams · object"},"position":{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.position","typeLabel":"string"},"endpoint_name":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.endpoint_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.endpoint_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.endpoint_name","typeLabel":"string | null"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"model":{"type":"string"},"params":{"oneOf":[{"type":"object","title":"OpenAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"max_tokens":{"type":"number"},"max_completion_tokens":{"type":"number","description":"The successor to max_tokens"},"frequency_penalty":{"type":"number"},"presence_penalty":{"type":"number"},"response_format":{"oneOf":[{"type":"object","title":"json_object","required":["type"],"properties":{"type":{"type":"string","enum":["json_object"]}}},{"type":"object","title":"json_schema","required":["type","json_schema"],"properties":{"type":{"type":"string","enum":["json_schema"]},"json_schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"schema":{"oneOf":[{"type":"object","title":"object","additionalProperties":{"oneOf":[{}]}},{"type":"string","title":"string"}]},"strict":{"oneOf":[{"type":"boolean"},{"type":"null"}]}},"required":["name"]}}},{"type":"object","title":"text","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}}},{"type":"null"}]},"tool_choice":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"string","title":"required","enum":["required"]},{"type":"object","title":"function","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}]},"function_call":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"object","title":"function","required":["name"],"properties":{"name":{"type":"string"}}}]},"n":{"type":"number"},"stop":{"type":"array","items":{"type":"string"}},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high"]},"chat_template_kwargs":{"type":"object","properties":{"enable_thinking":{"type":"boolean"}},"additionalProperties":{"oneOf":[{}]}},"verbosity":{"type":"string","enum":["low","medium","high"]}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"AnthropicModelParams","required":["max_tokens","temperature"],"properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"max_tokens":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"top_k":{"type":"number"},"stop_sequences":{"type":"array","items":{"type":"string"}},"max_tokens_to_sample":{"type":"number","description":"This is a legacy parameter that should not be used."}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"GoogleModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"maxOutputTokens":{"type":"number"},"topP":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"WindowAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"JsCompletionParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}}]},"position":{"type":"string"},"endpoint_name":{"oneOf":[{"type":"string"},{"type":"null"}]}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.options","typeLabel":"object | null"},"parser":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["llm_classifier"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.type","typeLabel":"enum\u003cstring>"},"use_cot":{"type":"boolean","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.use_cot","typeLabel":"boolean"},"choice_scores":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.choice_scores.additionalProperties","typeLabel":"number"},"description":"Map of choices to scores (0-1). Used by scorers.","uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.choice_scores","typeLabel":"object"},"choice":{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.choice.items.[INDEX]","typeLabel":"string"},"description":"List of valid choices without score mapping. Used by classifiers that deposit output to tags.","uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.choice","typeLabel":"string[]"},"allow_no_match":{"type":"boolean","description":"If true, adds a 'No match' option. When selected, no tag is deposited.","uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.allow_no_match","typeLabel":"boolean"},"allow_skip":{"type":"boolean","description":"If true, adds a 'Skip' option. When selected, the scorer returns null.","uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.allow_skip","typeLabel":"boolean"}},"required":["type","use_cot"],"uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"type":{"type":"string","enum":["llm_classifier"]},"use_cot":{"type":"boolean"},"choice_scores":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1},"description":"Map of choices to scores (0-1). Used by scorers."},"choice":{"type":"array","items":{"type":"string"},"description":"List of valid choices without score mapping. Used by classifiers that deposit output to tags."},"allow_no_match":{"type":"boolean","description":"If true, adds a 'No match' option. When selected, no tag is deposited."},"allow_skip":{"type":"boolean","description":"If true, adds a 'Skip' option. When selected, the scorer returns null."}},"required":["type","use_cot"],"uniqueKey":"prompt_data.oneOf.0.parser.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.parser","typeLabel":"object | null"},"preprocessor":{"oneOf":[{"type":"object","title":"function","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.0.version","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.0","typeLabel":"function · object"},{"type":"object","title":"preprocessor_global","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.1.name","typeLabel":"string"},"function_type":{"type":"string","enum":["preprocessor"],"default":"preprocessor","description":"The type of global function. Defaults to 'preprocessor'.","uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.1","typeLabel":"preprocessor_global · object"},{"type":"object","title":"preprocessor_inline","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","code"],"properties":{"type":{"type":"string","enum":["inline"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.2.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","minLength":1,"description":"The complete JavaScript preprocessor implementation, including its handler.","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.2.code","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.2","typeLabel":"preprocessor_inline · object"},{"type":"null","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.3","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.preprocessor","typeLabel":"function · object | preprocessor_global · object | preprocessor_inline · object | null"},"tool_functions":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.0.version","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"function · object"},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1.name","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1.version","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"global · object"},{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2.name","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2.id","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2.function_type","typeLabel":"enum\u003cstring>"},"version":{"type":"string","description":"The version of the function","uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2.version","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"function · object"},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.3.name","typeLabel":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.3.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"global · object"}],"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX]","typeLabel":"function · object · global · object · function · object · global · object"},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0","typeLabel":"function · object · global · object · function · object · global · object[]"},{"type":"null","items":{"oneOf":[{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."}}},{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[]},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"]},"name":{"type":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"]}}}]},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.tool_functions","typeLabel":"function · object · global · object · function · object · global · object[] | null"},"template_format":{"oneOf":[{"type":"string","enum":["mustache","nunjucks","none",null],"uniqueKey":"prompt_data.oneOf.0.template_format.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["mustache","nunjucks","none",null],"uniqueKey":"prompt_data.oneOf.0.template_format.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.template_format","typeLabel":"enum\u003cstring> | null"},"mcp":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"object","title":"MCP server id. This is used for project-level MCP server definitions.","required":["type","id"],"properties":{"type":{"type":"string","enum":["id"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.id","typeLabel":"string\u003cuuid>"},"is_disabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.is_disabled","typeLabel":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.enabled_tools.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.enabled_tools.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.enabled_tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.enabled_tools","typeLabel":"string[] | null"}},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0","typeLabel":"MCP server id. This is used for project-level MCP server definitions. · object"},{"type":"object","title":"MCP server url. This is used for inline definitions of MCP servers.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.url","typeLabel":"string"},"is_disabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.is_disabled","typeLabel":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.enabled_tools.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.enabled_tools.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.enabled_tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.enabled_tools","typeLabel":"string[] | null"}},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1","typeLabel":"MCP server url. This is used for inline definitions of MCP servers. · object"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties","typeLabel":"MCP server id. This is used for project-level MCP server definitions. · object | MCP server url. This is used for inline definitions of MCP servers. · object"},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{"type":"object","title":"MCP server id. This is used for project-level MCP server definitions.","required":["type","id"],"properties":{"type":{"type":"string","enum":["id"],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.id","typeLabel":"string\u003cuuid>"},"is_disabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.is_disabled","typeLabel":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.enabled_tools.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.enabled_tools.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.enabled_tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.enabled_tools","typeLabel":"string[] | null"}},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0","typeLabel":"MCP server id. This is used for project-level MCP server definitions. · object"},{"type":"object","title":"MCP server url. This is used for inline definitions of MCP servers.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.url","typeLabel":"string"},"is_disabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.is_disabled","typeLabel":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.enabled_tools.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.enabled_tools.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.enabled_tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.enabled_tools","typeLabel":"string[] | null"}},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1","typeLabel":"MCP server url. This is used for inline definitions of MCP servers. · object"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties","typeLabel":"MCP server id. This is used for project-level MCP server definitions. · object | MCP server url. This is used for inline definitions of MCP servers. · object"},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.mcp","typeLabel":"object | null"},"origin":{"oneOf":[{"type":"object","properties":{"prompt_id":{"type":"string","uniqueKey":"prompt_data.oneOf.0.origin.oneOf.0.prompt_id","typeLabel":"string"},"project_id":{"type":"string","uniqueKey":"prompt_data.oneOf.0.origin.oneOf.0.project_id","typeLabel":"string"},"prompt_version":{"type":"string","uniqueKey":"prompt_data.oneOf.0.origin.oneOf.0.prompt_version","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.origin.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"prompt_id":{"type":"string"},"project_id":{"type":"string"},"prompt_version":{"type":"string"}},"uniqueKey":"prompt_data.oneOf.0.origin.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.origin","typeLabel":"object | null"}},"description":"The prompt, model, and its parameters","uniqueKey":"prompt_data.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"prompt":{"oneOf":[{"type":"object","title":"chat","required":["type","messages"],"properties":{"type":{"type":"string","enum":["chat"]},"messages":{"type":"array","items":{"oneOf":[{"type":"object","title":"system","required":["role"],"properties":{"content":{"oneOf":[{"type":"string","title":"text","default":""},{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","default":""},"type":{"type":"string","enum":["text"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}},"required":["type"]},"title":"array"}]},"role":{"type":"string","enum":["system"]},"name":{"type":"string"}}},{"type":"object","title":"user","required":["role"],"properties":{"content":{"oneOf":[{"type":"string","title":"text","default":""},{"type":"array","items":{"oneOf":[{"type":"object","title":"text","required":["type"],"properties":{"text":{"type":"string","default":""},"type":{"type":"string","enum":["text"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}}},{"type":"object","title":"image_url","required":["image_url","type"],"properties":{"image_url":{"type":"object","properties":{"url":{"type":"string"},"detail":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"low","enum":["low"]},{"type":"string","title":"high","enum":["high"]}]}},"required":["url"]},"type":{"type":"string","enum":["image_url"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}}},{"type":"object","title":"input_audio","required":["input_audio","type"],"properties":{"input_audio":{"type":"object","properties":{"data":{"type":"string"},"format":{"type":"string","enum":["wav","mp3"]}},"required":["data","format"]},"type":{"type":"string","enum":["input_audio"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}}},{"type":"object","title":"file","required":["file","type"],"properties":{"file":{"type":"object","properties":{"file_data":{"type":"string"},"filename":{"type":"string"},"file_id":{"type":"string","title":"The ID of an uploaded file to use as input."}}},"type":{"type":"string","enum":["file"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}}}]},"title":"array"}]},"role":{"type":"string","enum":["user"]},"name":{"type":"string"}}},{"type":"object","title":"assistant","required":["role"],"properties":{"role":{"type":"string","enum":["assistant"]},"content":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","default":""},"type":{"type":"string","enum":["text"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}},"required":["type"]}},{"type":"null"}]},"function_call":{"oneOf":[{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]},{"type":"null","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]}]},"name":{"oneOf":[{"type":"string"},{"type":"null"}]},"tool_calls":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]},"type":{"type":"string","enum":["function"]}},"required":["id","function","type"]}},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]},"type":{"type":"string","enum":["function"]}},"required":["id","function","type"]}}]},"reasoning":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string"},{"type":"null"}]},"content":{"oneOf":[{"type":"string"},{"type":"null"}]}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models."}},{"type":"null","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string"},{"type":"null"}]},"content":{"oneOf":[{"type":"string"},{"type":"null"}]}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models."}}]},"reasoning_signature":{"oneOf":[{"type":"string"},{"type":"null"}]}}},{"type":"object","title":"tool","required":["role"],"properties":{"content":{"oneOf":[{"type":"string","title":"text","default":""},{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","default":""},"type":{"type":"string","enum":["text"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}},"required":["type"]},"title":"array"}]},"role":{"type":"string","enum":["tool"]},"tool_call_id":{"type":"string","default":""}}},{"type":"object","title":"function","required":["content","name","role"],"properties":{"content":{"oneOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"role":{"type":"string","enum":["function"]}}},{"type":"object","title":"developer","required":["role"],"properties":{"content":{"oneOf":[{"type":"string","title":"text","default":""},{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","default":""},"type":{"type":"string","enum":["text"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}},"required":["type"]},"title":"array"}]},"role":{"type":"string","enum":["developer"]},"name":{"type":"string"}}},{"type":"object","title":"fallback","required":["role"],"properties":{"role":{"type":"string","enum":["model"]},"content":{"oneOf":[{"type":"string"},{"type":"null"}]}}}]}},"tools":{"type":"string"}}},{"type":"object","title":"completion","required":["type","content"],"properties":{"type":{"type":"string","enum":["completion"]},"content":{"type":"string"}}},{"type":"null"}]},"options":{"oneOf":[{"type":"object","properties":{"model":{"type":"string"},"params":{"oneOf":[{"type":"object","title":"OpenAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"max_tokens":{"type":"number"},"max_completion_tokens":{"type":"number","description":"The successor to max_tokens"},"frequency_penalty":{"type":"number"},"presence_penalty":{"type":"number"},"response_format":{"oneOf":[{"type":"object","title":"json_object","required":["type"],"properties":{"type":{"type":"string","enum":["json_object"]}}},{"type":"object","title":"json_schema","required":["type","json_schema"],"properties":{"type":{"type":"string","enum":["json_schema"]},"json_schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"schema":{"oneOf":[{"type":"object","title":"object","additionalProperties":{"oneOf":[{}]}},{"type":"string","title":"string"}]},"strict":{"oneOf":[{"type":"boolean"},{"type":"null"}]}},"required":["name"]}}},{"type":"object","title":"text","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}}},{"type":"null"}]},"tool_choice":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"string","title":"required","enum":["required"]},{"type":"object","title":"function","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}]},"function_call":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"object","title":"function","required":["name"],"properties":{"name":{"type":"string"}}}]},"n":{"type":"number"},"stop":{"type":"array","items":{"type":"string"}},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high"]},"chat_template_kwargs":{"type":"object","properties":{"enable_thinking":{"type":"boolean"}},"additionalProperties":{"oneOf":[{}]}},"verbosity":{"type":"string","enum":["low","medium","high"]}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"AnthropicModelParams","required":["max_tokens","temperature"],"properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"max_tokens":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"top_k":{"type":"number"},"stop_sequences":{"type":"array","items":{"type":"string"}},"max_tokens_to_sample":{"type":"number","description":"This is a legacy parameter that should not be used."}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"GoogleModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"maxOutputTokens":{"type":"number"},"topP":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"WindowAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"JsCompletionParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}}]},"position":{"type":"string"},"endpoint_name":{"oneOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null","properties":{"model":{"type":"string"},"params":{"oneOf":[{"type":"object","title":"OpenAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"max_tokens":{"type":"number"},"max_completion_tokens":{"type":"number","description":"The successor to max_tokens"},"frequency_penalty":{"type":"number"},"presence_penalty":{"type":"number"},"response_format":{"oneOf":[{"type":"object","title":"json_object","required":["type"],"properties":{"type":{"type":"string","enum":["json_object"]}}},{"type":"object","title":"json_schema","required":["type","json_schema"],"properties":{"type":{"type":"string","enum":["json_schema"]},"json_schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"schema":{"oneOf":[{"type":"object","title":"object","additionalProperties":{"oneOf":[{}]}},{"type":"string","title":"string"}]},"strict":{"oneOf":[{"type":"boolean"},{"type":"null"}]}},"required":["name"]}}},{"type":"object","title":"text","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}}},{"type":"null"}]},"tool_choice":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"string","title":"required","enum":["required"]},{"type":"object","title":"function","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}]},"function_call":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"object","title":"function","required":["name"],"properties":{"name":{"type":"string"}}}]},"n":{"type":"number"},"stop":{"type":"array","items":{"type":"string"}},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high"]},"chat_template_kwargs":{"type":"object","properties":{"enable_thinking":{"type":"boolean"}},"additionalProperties":{"oneOf":[{}]}},"verbosity":{"type":"string","enum":["low","medium","high"]}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"AnthropicModelParams","required":["max_tokens","temperature"],"properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"max_tokens":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"top_k":{"type":"number"},"stop_sequences":{"type":"array","items":{"type":"string"}},"max_tokens_to_sample":{"type":"number","description":"This is a legacy parameter that should not be used."}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"GoogleModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"maxOutputTokens":{"type":"number"},"topP":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"WindowAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"JsCompletionParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}}]},"position":{"type":"string"},"endpoint_name":{"oneOf":[{"type":"string"},{"type":"null"}]}}}]},"parser":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["llm_classifier"]},"use_cot":{"type":"boolean"},"choice_scores":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1},"description":"Map of choices to scores (0-1). Used by scorers."},"choice":{"type":"array","items":{"type":"string"},"description":"List of valid choices without score mapping. Used by classifiers that deposit output to tags."},"allow_no_match":{"type":"boolean","description":"If true, adds a 'No match' option. When selected, no tag is deposited."},"allow_skip":{"type":"boolean","description":"If true, adds a 'Skip' option. When selected, the scorer returns null."}},"required":["type","use_cot"]},{"type":"null","properties":{"type":{"type":"string","enum":["llm_classifier"]},"use_cot":{"type":"boolean"},"choice_scores":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1},"description":"Map of choices to scores (0-1). Used by scorers."},"choice":{"type":"array","items":{"type":"string"},"description":"List of valid choices without score mapping. Used by classifiers that deposit output to tags."},"allow_no_match":{"type":"boolean","description":"If true, adds a 'No match' option. When selected, no tag is deposited."},"allow_skip":{"type":"boolean","description":"If true, adds a 'Skip' option. When selected, the scorer returns null."}},"required":["type","use_cot"]}]},"preprocessor":{"oneOf":[{"type":"object","title":"function","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"preprocessor_global","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"]},"name":{"type":"string"},"function_type":{"type":"string","enum":["preprocessor"],"default":"preprocessor","description":"The type of global function. Defaults to 'preprocessor'."}}},{"type":"object","title":"preprocessor_inline","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","code"],"properties":{"type":{"type":"string","enum":["inline"]},"code":{"type":"string","minLength":1,"description":"The complete JavaScript preprocessor implementation, including its handler."}}},{"type":"null","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor."}]},"tool_functions":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."}}},{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[]},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"]},"name":{"type":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"]}}}]}},{"type":"null","items":{"oneOf":[{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."}}},{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[]},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"]},"name":{"type":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"]}}}]}}]},"template_format":{"oneOf":[{"type":"string","enum":["mustache","nunjucks","none",null]},{"type":"null","enum":["mustache","nunjucks","none",null]}]},"mcp":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"object","title":"MCP server id. This is used for project-level MCP server definitions.","required":["type","id"],"properties":{"type":{"type":"string","enum":["id"]},"id":{"type":"string","format":"uuid"},"is_disabled":{"type":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"If omitted, all tools are enabled"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled"}]}}},{"type":"object","title":"MCP server url. This is used for inline definitions of MCP servers.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"]},"url":{"type":"string"},"is_disabled":{"type":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"If omitted, all tools are enabled"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled"}]}}}]}},{"type":"null","additionalProperties":{"oneOf":[{"type":"object","title":"MCP server id. This is used for project-level MCP server definitions.","required":["type","id"],"properties":{"type":{"type":"string","enum":["id"]},"id":{"type":"string","format":"uuid"},"is_disabled":{"type":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"If omitted, all tools are enabled"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled"}]}}},{"type":"object","title":"MCP server url. This is used for inline definitions of MCP servers.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"]},"url":{"type":"string"},"is_disabled":{"type":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"If omitted, all tools are enabled"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled"}]}}}]}}]},"origin":{"oneOf":[{"type":"object","properties":{"prompt_id":{"type":"string"},"project_id":{"type":"string"},"prompt_version":{"type":"string"}}},{"type":"null","properties":{"prompt_id":{"type":"string"},"project_id":{"type":"string"},"prompt_version":{"type":"string"}}}]}},"description":"The prompt, model, and its parameters","uniqueKey":"prompt_data.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data","typeLabel":"object | null"},"tags":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tags.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"A list of tags for the prompt","uniqueKey":"tags.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"A list of tags for the prompt","uniqueKey":"tags.oneOf.1","typeLabel":"null"}],"uniqueKey":"tags","typeLabel":"string[] | null"},"function_type":{"oneOf":[{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox",null],"uniqueKey":"function_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox",null],"uniqueKey":"function_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_type","typeLabel":"enum\u003cstring> | null"},"origin":{"oneOf":[{"type":"object","properties":{"object_type":{"type":"string","enum":["organization","project","experiment","dataset","prompt","prompt_session","group","role","org_member","project_log","org_project","org_audit_logs","project_group","project_group_projects","ai_secret","org_ai_secret","org_account"],"description":"The object type that the ACL applies to","isRequired":true,"uniqueKey":"origin.oneOf.0.object_type","typeLabel":"enum\u003cstring>"},"object_id":{"type":"string","format":"uuid","description":"Id of the object the function is originating from","isRequired":true,"uniqueKey":"origin.oneOf.0.object_id","typeLabel":"string\u003cuuid>"},"internal":{"oneOf":[{"type":"boolean","description":"The function exists for internal purposes and should not be displayed in the list of functions.","uniqueKey":"origin.oneOf.0.internal.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"The function exists for internal purposes and should not be displayed in the list of functions.","uniqueKey":"origin.oneOf.0.internal.oneOf.1","typeLabel":"null"}],"uniqueKey":"origin.oneOf.0.internal","typeLabel":"boolean | null"}},"required":["object_type","object_id"],"uniqueKey":"origin.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"object_type":{"type":"string","enum":["organization","project","experiment","dataset","prompt","prompt_session","group","role","org_member","project_log","org_project","org_audit_logs","project_group","project_group_projects","ai_secret","org_ai_secret","org_account"],"description":"The object type that the ACL applies to"},"object_id":{"type":"string","format":"uuid","description":"Id of the object the function is originating from"},"internal":{"oneOf":[{"type":"boolean","description":"The function exists for internal purposes and should not be displayed in the list of functions."},{"type":"null","description":"The function exists for internal purposes and should not be displayed in the list of functions."}]}},"required":["object_type","object_id"],"uniqueKey":"origin.oneOf.1","typeLabel":"null"}],"uniqueKey":"origin","typeLabel":"object | null"},"function_schema":{"oneOf":[{"type":"object","properties":{"parameters":{"oneOf":[{}],"uniqueKey":"function_schema.oneOf.0.parameters","typeLabel":"any"},"returns":{"oneOf":[{}],"uniqueKey":"function_schema.oneOf.0.returns","typeLabel":"any"}},"description":"JSON schema for the function's parameters and return type","uniqueKey":"function_schema.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"parameters":{"oneOf":[{}]},"returns":{"oneOf":[{}]}},"description":"JSON schema for the function's parameters and return type","uniqueKey":"function_schema.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_schema","typeLabel":"object | null"}},"required":["project_id","name","slug","function_data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"project_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","slug":"\u003cstring>","function_data":{"type":"prompt"},"description":"\u003cstring>","prompt_data":{"prompt":{"type":"chat","messages":[{"role":"system","content":"","name":"\u003cstring>"}],"tools":"\u003cstring>"},"options":{"model":"\u003cstring>","params":{"use_cache":true,"reasoning_enabled":true,"reasoning_budget":123,"temperature":123,"top_p":123,"max_tokens":123,"max_completion_tokens":123,"frequency_penalty":123,"presence_penalty":123,"response_format":{"type":"json_object"},"tool_choice":"auto","function_call":"auto","n":123,"stop":["\u003cstring>"],"chat_template_kwargs":{"enable_thinking":true}},"position":"\u003cstring>","endpoint_name":"\u003cstring>"},"parser":{"type":"llm_classifier","use_cot":true,"choice_scores":{},"choice":["\u003cstring>"],"allow_no_match":true,"allow_skip":true},"preprocessor":{"type":"function","id":"\u003cstring>","version":"\u003cstring>"},"tool_functions":[{"type":"function","id":"\u003cstring>","version":"\u003cstring>"}],"mcp":{},"origin":{"prompt_id":"\u003cstring>","project_id":"\u003cstring>","prompt_version":"\u003cstring>"}},"tags":["\u003cstring>"],"origin":{"object_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","internal":true},"function_schema":{"parameters":"\u003cunknown>","returns":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"96d12580-1921-409b-8b10-5563ede0725f":{"description":"Returns the new function object","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the prompt","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"_xact_id":{"type":"string","description":"The transaction id of an event is unique to the network operation that processed the event insertion. Transaction ids are monotonically increasing over time and can be used to retrieve a versioned snapshot of the prompt (see the `version` parameter)","isRequired":true,"uniqueKey":"_xact_id","typeLabel":"string"},"project_id":{"type":"string","format":"uuid","description":"Unique identifier for the project that the prompt belongs under","isRequired":true,"uniqueKey":"project_id","typeLabel":"string\u003cuuid>"},"log_id":{"type":"string","enum":["p"],"description":"A literal 'p' which identifies the object as a project prompt","isRequired":true,"uniqueKey":"log_id","typeLabel":"enum\u003cstring>"},"org_id":{"type":"string","format":"uuid","description":"Unique identifier for the organization","isRequired":true,"uniqueKey":"org_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Name of the prompt","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"slug":{"type":"string","description":"Unique identifier for the prompt","isRequired":true,"uniqueKey":"slug","typeLabel":"string"},"function_data":{"oneOf":[{"type":"object","title":"prompt","required":["type"],"properties":{"type":{"type":"string","enum":["prompt"],"isRequired":true,"uniqueKey":"function_data.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"function_data.oneOf.0","typeLabel":"prompt · object"},{"type":"object","title":"code","required":["type","data"],"properties":{"type":{"type":"string","enum":["code"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.type","typeLabel":"enum\u003cstring>"},"data":{"oneOf":[{"type":"object","title":"bundle","required":["runtime_context","location","type"],"properties":{"type":{"type":"string","enum":["bundle"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.type","typeLabel":"enum\u003cstring>"},"runtime_context":{"type":"object","properties":{"runtime":{"type":"string","enum":["node","python","browser","quickjs"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.runtime_context.runtime","typeLabel":"enum\u003cstring>"},"version":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.runtime_context.version","typeLabel":"string"}},"required":["runtime","version"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.runtime_context","typeLabel":"object"},"location":{"oneOf":[{"type":"object","title":"experiment","required":["type","eval_name","position"],"properties":{"type":{"type":"string","enum":["experiment"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"eval_name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.eval_name","typeLabel":"string"},"position":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["task"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.0","typeLabel":"object"},{"type":"object","title":"scorer","required":["type","index"],"properties":{"type":{"type":"string","enum":["scorer"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.1.type","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.1.index","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.1","typeLabel":"scorer · object"},{"type":"object","title":"classifier","required":["type","index"],"properties":{"type":{"type":"string","enum":["classifier"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.2.type","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.2.index","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position.oneOf.2","typeLabel":"classifier · object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0.position","typeLabel":"object | scorer · object | classifier · object"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.0","typeLabel":"experiment · object"},{"type":"object","title":"function","required":["type","index"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.1.type","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.1.index","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.1","typeLabel":"function · object"},{"type":"object","required":["type","sandbox_spec","eval_name"],"properties":{"type":{"type":"string","enum":["sandbox"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.type","typeLabel":"enum\u003cstring>"},"sandbox_spec":{"oneOf":[{"type":"object","required":["provider","snapshot_ref"],"properties":{"provider":{"type":"string","enum":["modal"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec.oneOf.0.provider","typeLabel":"enum\u003cstring>"},"snapshot_ref":{"type":"string","description":"The Modal snapshot to start the sandbox from","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec.oneOf.0.snapshot_ref","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec.oneOf.0","typeLabel":"object"},{"type":"object","required":["provider"],"properties":{"provider":{"type":"string","enum":["lambda"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec.oneOf.1.provider","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.sandbox_spec","typeLabel":"object"},"eval_name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.eval_name","typeLabel":"string"},"entrypoints":{"type":"array","items":{"type":"string","uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.entrypoints.items.[INDEX]","typeLabel":"string"},"description":"Which entrypoints to execute in the sandbox","uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.entrypoints","typeLabel":"string[]"},"parameters":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.parameters.additionalProperties","typeLabel":"any"},"description":"Parameter values for sandbox eval execution","uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.parameters","typeLabel":"object"},"evaluator_definition":{"description":"Definition of current evaluator with parameters","uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2.evaluator_definition","typeLabel":"any"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0.location","typeLabel":"experiment · object | function · object | object"},"bundle_id":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.1.data.oneOf.0.bundle_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.1.data.oneOf.0.bundle_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.1.data.oneOf.0.bundle_id","typeLabel":"string | null"},"preview":{"oneOf":[{"type":"string","description":"A preview of the code","uniqueKey":"function_data.oneOf.1.data.oneOf.0.preview.oneOf.0","typeLabel":"string"},{"type":"null","description":"A preview of the code","uniqueKey":"function_data.oneOf.1.data.oneOf.0.preview.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.1.data.oneOf.0.preview","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.0","typeLabel":"bundle · object"},{"type":"object","title":"inline","required":["type","runtime_context","code"],"properties":{"type":{"type":"string","enum":["inline"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1.type","typeLabel":"enum\u003cstring>"},"runtime_context":{"type":"object","properties":{"runtime":{"type":"string","enum":["node","python","browser","quickjs"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1.runtime_context.runtime","typeLabel":"enum\u003cstring>"},"version":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1.runtime_context.version","typeLabel":"string"}},"required":["runtime","version"],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1.runtime_context","typeLabel":"object"},"code":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1.code","typeLabel":"string"},"code_hash":{"type":"string","description":"SHA256 hash of the code, computed at save time","uniqueKey":"function_data.oneOf.1.data.oneOf.1.code_hash","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1.data.oneOf.1","typeLabel":"inline · object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.1.data","typeLabel":"bundle · object | inline · object"}},"isRequired":true,"uniqueKey":"function_data.oneOf.1","typeLabel":"code · object"},{"type":"object","title":"graph","description":"This feature is preliminary and unsupported.","required":["type","nodes","edges"],"properties":{"type":{"type":"string","enum":["graph"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.type","typeLabel":"enum\u003cstring>"},"nodes":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.type","typeLabel":"enum\u003cstring>"},"function":{"type":"object","properties":{},"additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.function.additionalProperties","typeLabel":"any"},"description":"Options for identifying a function","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.function","typeLabel":"object"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["input"],"description":"The input to the graph","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["output"],"description":"The output of the graph","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["literal"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.position","typeLabel":"object | null"},"value":{"description":"A literal value to be returned","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3.value","typeLabel":"any"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.3","typeLabel":"object"},{"type":"object","required":["type","expr"],"properties":{"type":{"type":"string","enum":["btql"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.type","typeLabel":"enum\u003cstring>"},"expr":{"type":"string","description":"A BTQL expression to be evaluated","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.expr","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gate"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.position","typeLabel":"object | null"},"condition":{"oneOf":[{"type":"string","description":"A BTQL expression to be evaluated","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.condition.oneOf.0","typeLabel":"string"},{"type":"null","description":"A BTQL expression to be evaluated","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.condition.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5.condition","typeLabel":"string | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.5","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["aggregator"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.6","typeLabel":"object"},{"type":"object","required":["type","prompt"],"properties":{"type":{"type":"string","enum":["prompt_template"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.type","typeLabel":"enum\u003cstring>"},"prompt":{"oneOf":[{"type":"object","title":"chat","required":["type","messages"],"properties":{"type":{"type":"string","enum":["chat"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.type","typeLabel":"enum\u003cstring>"},"messages":{"type":"array","items":{"oneOf":[{"type":"object","title":"system","required":["role"],"properties":{"role":{"type":"string","enum":["system"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"type":"any","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content","typeLabel":"any"},"name":{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.name","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.0","typeLabel":"system · object"},{"type":"object","title":"user","required":["role"],"properties":{"role":{"type":"string","enum":["user"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.role","typeLabel":"enum\u003cstring>"},"content":{"type":"any","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content","typeLabel":"any"},"name":{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.name","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.1","typeLabel":"user · object"},{"type":"object","title":"assistant","required":["role"],"properties":{"role":{"type":"string","enum":["assistant"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.role","typeLabel":"enum\u003cstring>"},"content":{"type":"any","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content","typeLabel":"any"},"function_call":{"oneOf":[{"type":"object","properties":{"arguments":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0.arguments","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0.name","typeLabel":"string"}},"required":["arguments","name"],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call","typeLabel":"object | null"},"name":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name","typeLabel":"string | null"},"tool_calls":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].id","typeLabel":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function.arguments","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function.name","typeLabel":"string"}},"required":["arguments","name"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function","typeLabel":"object"},"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["id","function","type"],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]},"type":{"type":"string","enum":["function"]}},"required":["id","function","type"]},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls","typeLabel":"object[] | null"},"reasoning":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id","typeLabel":"string | null"},"content":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content","typeLabel":"string | null"}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models.","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string"},{"type":"null"}]},"content":{"oneOf":[{"type":"string"},{"type":"null"}]}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models."},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning","typeLabel":"object[] | null"},"reasoning_signature":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature","typeLabel":"string | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.2","typeLabel":"assistant · object"},{"type":"object","title":"tool","required":["role"],"properties":{"role":{"type":"string","enum":["tool"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.role","typeLabel":"enum\u003cstring>"},"content":{"type":"any","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content","typeLabel":"any"},"tool_call_id":{"type":"string","default":"","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.tool_call_id","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.3","typeLabel":"tool · object"},{"type":"object","title":"function","required":["content","name","role"],"properties":{"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content","typeLabel":"string | null"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.name","typeLabel":"string"},"role":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.role","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.4","typeLabel":"function · object"},{"type":"object","title":"developer","required":["role"],"properties":{"role":{"type":"string","enum":["developer"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.role","typeLabel":"enum\u003cstring>"},"content":{"type":"any","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content","typeLabel":"any"},"name":{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.name","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.5","typeLabel":"developer · object"},{"type":"object","title":"fallback","required":["role"],"properties":{"role":{"type":"string","enum":["model"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content","typeLabel":"string | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX].oneOf.6","typeLabel":"fallback · object"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages.items.[INDEX]","typeLabel":"system · object | user · object | assistant · object | tool · object | function · object | developer · object | fallback · object"},"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.messages","typeLabel":"(system · object | user · object | assistant · object | tool · object | function · object | developer · object | fallback · object)[]"},"tools":{"type":"string","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0.tools","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.0","typeLabel":"chat · object"},{"type":"object","title":"completion","required":["type","content"],"properties":{"type":{"type":"string","enum":["completion"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.1.type","typeLabel":"enum\u003cstring>"},"content":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.1.content","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt.oneOf.1","typeLabel":"completion · object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.prompt","typeLabel":"chat · object | completion · object"},"description":{"oneOf":[{"type":"string","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.description","typeLabel":"string | null"},"position":{"oneOf":[{"type":"object","properties":{"x":{"type":"number","description":"The x position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.position.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"The y position of the node","isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.position.oneOf.0.y","typeLabel":"number"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.position.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"x":{"type":"number","description":"The x position of the node"},"y":{"type":"number","description":"The y position of the node"}},"required":["x","y"],"description":"The position of the node","uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.position.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7.position","typeLabel":"object | null"}},"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties.oneOf.7","typeLabel":"object"}],"uniqueKey":"function_data.oneOf.2.nodes.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"function_data.oneOf.2.nodes","typeLabel":"object"},"edges":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"object","properties":{"node":{"type":"string","maxLength":1024,"description":"The id of the node in the graph","isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.source.node","typeLabel":"string"},"variable":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.source.variable","typeLabel":"string"}},"required":["node","variable"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.source","typeLabel":"object"},"target":{"type":"object","properties":{"node":{"type":"string","maxLength":1024,"description":"The id of the node in the graph","isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.target.node","typeLabel":"string"},"variable":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.target.variable","typeLabel":"string"}},"required":["node","variable"],"isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.target","typeLabel":"object"},"purpose":{"type":"string","enum":["control","data","messages"],"description":"The purpose of the edge","isRequired":true,"uniqueKey":"function_data.oneOf.2.edges.additionalProperties.purpose","typeLabel":"enum\u003cstring>"}},"required":["source","target","purpose"],"uniqueKey":"function_data.oneOf.2.edges.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"function_data.oneOf.2.edges","typeLabel":"object"}},"isRequired":true,"uniqueKey":"function_data.oneOf.2","typeLabel":"graph · object"},{"type":"object","title":"remote_eval","description":"A remote eval to run","required":["type","endpoint","eval_name","parameters"],"properties":{"type":{"type":"string","enum":["remote_eval"],"isRequired":true,"uniqueKey":"function_data.oneOf.3.type","typeLabel":"enum\u003cstring>"},"endpoint":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.3.endpoint","typeLabel":"string"},"eval_name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.3.eval_name","typeLabel":"string"},"parameters":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.3.parameters.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"function_data.oneOf.3.parameters","typeLabel":"object"},"parameters_version":{"oneOf":[{"type":"string","description":"The version (transaction ID) of the parameters being used","uniqueKey":"function_data.oneOf.3.parameters_version.oneOf.0","typeLabel":"string"},{"type":"null","description":"The version (transaction ID) of the parameters being used","uniqueKey":"function_data.oneOf.3.parameters_version.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.3.parameters_version","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"function_data.oneOf.3","typeLabel":"remote_eval · object"},{"type":"object","title":"global","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"function_data.oneOf.4.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.4.name","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.4.function_type","typeLabel":"enum\u003cstring>"},"config":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.4.config.oneOf.0.additionalProperties","typeLabel":"any"},"description":"Configuration options to pass to the global function (e.g., for preprocessor customization)","uniqueKey":"function_data.oneOf.4.config.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.4.config.oneOf.1.additionalProperties","typeLabel":"any"},"description":"Configuration options to pass to the global function (e.g., for preprocessor customization)","uniqueKey":"function_data.oneOf.4.config.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.4.config","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"function_data.oneOf.4","typeLabel":"global · object"},{"type":"object","title":"facet","required":["type","prompt"],"properties":{"type":{"type":"string","enum":["facet"],"isRequired":true,"uniqueKey":"function_data.oneOf.5.type","typeLabel":"enum\u003cstring>"},"prompt":{"type":"string","description":"The prompt to use for LLM extraction. The preprocessed text will be provided as context.","isRequired":true,"uniqueKey":"function_data.oneOf.5.prompt","typeLabel":"string"},"preprocessor":{"oneOf":[{"type":"object","title":"function","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.0.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.0","typeLabel":"function · object"},{"type":"object","title":"global","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.1.name","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.1","typeLabel":"global · object"},{"type":"object","title":"preprocessor_inline","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","code"],"properties":{"type":{"type":"string","enum":["inline"],"isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.2.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","minLength":1,"description":"The complete JavaScript preprocessor implementation, including its handler.","isRequired":true,"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.2.code","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.2","typeLabel":"preprocessor_inline · object"},{"type":"null","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","uniqueKey":"function_data.oneOf.5.preprocessor.oneOf.3","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.5.preprocessor","typeLabel":"function · object | global · object | preprocessor_inline · object | null"},"model":{"type":"string","description":"The model to use for facet extraction","uniqueKey":"function_data.oneOf.5.model","typeLabel":"string"},"embedding_model":{"type":"string","description":"The embedding model to use for vectorizing facet results.","uniqueKey":"function_data.oneOf.5.embedding_model","typeLabel":"string"},"no_match_pattern":{"type":"string","description":"Regex pattern to identify outputs that do not match the facet. If the output matches, the facet will be saved as 'no_match'","uniqueKey":"function_data.oneOf.5.no_match_pattern","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.5","typeLabel":"facet · object"},{"type":"object","title":"batched_facet","required":["type","facets"],"properties":{"type":{"type":"string","enum":["batched_facet"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.type","typeLabel":"enum\u003cstring>"},"facets":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the facet","isRequired":true,"uniqueKey":"function_data.oneOf.6.facets.items.[INDEX].name","typeLabel":"string"},"prompt":{"type":"string","description":"The prompt to use for LLM extraction. The preprocessed text will be provided as context.","isRequired":true,"uniqueKey":"function_data.oneOf.6.facets.items.[INDEX].prompt","typeLabel":"string"},"model":{"type":"string","description":"The model to use for facet extraction","uniqueKey":"function_data.oneOf.6.facets.items.[INDEX].model","typeLabel":"string"},"embedding_model":{"type":"string","description":"The embedding model to use for vectorizing facet results.","uniqueKey":"function_data.oneOf.6.facets.items.[INDEX].embedding_model","typeLabel":"string"},"no_match_pattern":{"type":"string","description":"Regex pattern to identify outputs that do not match the facet. If the output matches, the facet will be saved as 'no_match'","uniqueKey":"function_data.oneOf.6.facets.items.[INDEX].no_match_pattern","typeLabel":"string"}},"required":["name","prompt"],"uniqueKey":"function_data.oneOf.6.facets.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"function_data.oneOf.6.facets","typeLabel":"object[]"},"preprocessor":{"oneOf":[{"type":"object","title":"function","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.0.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.0","typeLabel":"function · object"},{"type":"object","title":"global","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.1.name","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.1","typeLabel":"global · object"},{"type":"object","title":"preprocessor_inline","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","code"],"properties":{"type":{"type":"string","enum":["inline"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.2.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","minLength":1,"description":"The complete JavaScript preprocessor implementation, including its handler.","isRequired":true,"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.2.code","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.2","typeLabel":"preprocessor_inline · object"},{"type":"null","description":"The saved, global, or inline preprocessor to use for facet extraction. If not provided, the project default preprocessor will be used, falling back to the global 'thread' preprocessor.","uniqueKey":"function_data.oneOf.6.preprocessor.oneOf.3","typeLabel":"null"}],"uniqueKey":"function_data.oneOf.6.preprocessor","typeLabel":"function · object | global · object | preprocessor_inline · object | null"},"topic_maps":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"function_name":{"type":"string","description":"The name of the topic map function","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].function_name","typeLabel":"string"},"topic_map_data":{"type":"object","properties":{"type":{"type":"string","enum":["topic_map"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.type","typeLabel":"enum\u003cstring>"},"source_facet":{"type":"string","description":"Materialized facet field name used when source_facet_function is absent","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet","typeLabel":"string"},"embedding_model":{"type":"string","description":"The embedding model to use for embedding facet values","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.embedding_model","typeLabel":"string"},"source_facet_function":{"oneOf":[{"type":"object","title":"function","description":"The stable function reference for the source facet","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.0.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.0","typeLabel":"function · object"},{"type":"object","title":"global","description":"The stable function reference for the source facet","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1.name","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1.version","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.1","typeLabel":"global · object"},{"type":"object","title":"function","description":"The stable function reference for the source facet","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2.name","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2.id","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2.function_type","typeLabel":"enum\u003cstring>"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.2","typeLabel":"function · object"},{"type":"object","title":"global","description":"The stable function reference for the source facet","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.3.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.3.name","typeLabel":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.3.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function.oneOf.3","typeLabel":"global · object"}],"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.source_facet_function","typeLabel":"function · object · global · object · function · object · global · object"},"bundle_key":{"type":"string","description":"Key of the topic map bundle in code_bundles bucket","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.bundle_key","typeLabel":"string"},"report_key":{"type":"string","description":"Key of the clustering report in code_bundles bucket","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.report_key","typeLabel":"string"},"topic_names":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.topic_names.additionalProperties","typeLabel":"string"},"description":"Mapping from topic_id to topic name","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.topic_names","typeLabel":"object"},"generation_settings":{"type":"object","properties":{"algorithm":{"type":"string","enum":["hdbscan","kmeans","community"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.algorithm","typeLabel":"enum\u003cstring>"},"dimension_reduction":{"type":"string","enum":["umap","pca","none"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.dimension_reduction","typeLabel":"enum\u003cstring>"},"sample_size":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.sample_size","typeLabel":"integer"},"n_clusters":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.n_clusters","typeLabel":"integer"},"min_cluster_size":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.min_cluster_size","typeLabel":"integer"},"min_samples":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.min_samples","typeLabel":"integer"},"hierarchy_threshold":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.hierarchy_threshold","typeLabel":"integer"},"naming_model":{"type":"string","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings.naming_model","typeLabel":"string"}},"required":["algorithm","dimension_reduction"],"description":"Clustering and naming settings used to generate this topic map","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.generation_settings","typeLabel":"object"},"disable_reconciliation":{"type":"boolean","description":"Whether new topic generation should ignore the previously saved report during reconciliation. Defaults to false when omitted.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.disable_reconciliation","typeLabel":"boolean"},"reconcile_mode":{"type":"string","enum":["evolve","names_only"],"description":"How reconciliation carries the previous map forward: \"evolve\" re-routes new samples into the previous topics before naming; \"names_only\" keeps the fresh clustering and carries only topic ids/names. Defaults to \"names_only\" when omitted.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.reconcile_mode","typeLabel":"enum\u003cstring>"},"distance_threshold":{"type":"number","description":"Maximum distance to nearest centroid. If exceeded, returns no_match.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.distance_threshold","typeLabel":"number"},"btql_filter":{"type":"string","description":"Per-topic-map BTQL filter that was applied when this version was generated. Absent on versions generated before this was recorded.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.btql_filter","typeLabel":"string"},"automation_btql_filter":{"type":"string","description":"Automation-level BTQL filter that was applied when this version was generated. Absent on versions generated before this was recorded.","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data.automation_btql_filter","typeLabel":"string"}},"required":["type","source_facet","embedding_model"],"isRequired":true,"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_data","typeLabel":"object"},"topic_map_id":{"type":"string","description":"The id of the topic map function","uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX].topic_map_id","typeLabel":"string"}},"required":["function_name","topic_map_data"],"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"function_data.oneOf.6.topic_maps.additionalProperties","typeLabel":"object[]"},"description":"Topic maps that depend on facets in this batch, keyed by source facet name. Each source facet can have multiple topic maps.","uniqueKey":"function_data.oneOf.6.topic_maps","typeLabel":"object"}},"isRequired":true,"uniqueKey":"function_data.oneOf.6","typeLabel":"batched_facet · object"},{"type":"object","title":"parameters","required":["type","data","__schema"],"properties":{"type":{"type":"string","enum":["parameters"],"isRequired":true,"uniqueKey":"function_data.oneOf.7.type","typeLabel":"enum\u003cstring>"},"data":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.7.data.additionalProperties","typeLabel":"any"},"description":"The parameters data","isRequired":true,"uniqueKey":"function_data.oneOf.7.data","typeLabel":"object"},"__schema":{"type":"object","properties":{"type":{"type":"string","enum":["object"],"isRequired":true,"uniqueKey":"function_data.oneOf.7.__schema.type","typeLabel":"enum\u003cstring>"},"properties":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"function_data.oneOf.7.__schema.properties.additionalProperties.additionalProperties","typeLabel":"any"},"uniqueKey":"function_data.oneOf.7.__schema.properties.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"function_data.oneOf.7.__schema.properties","typeLabel":"object"},"required":{"type":"array","items":{"type":"string","uniqueKey":"function_data.oneOf.7.__schema.required.items.[INDEX]","typeLabel":"string"},"uniqueKey":"function_data.oneOf.7.__schema.required","typeLabel":"string[]"},"additionalProperties":{"type":"boolean","uniqueKey":"function_data.oneOf.7.__schema.\\additionalProperties","typeLabel":"boolean"}},"required":["type","properties"],"description":"JSON Schema format for parameters","isRequired":true,"uniqueKey":"function_data.oneOf.7.__schema","typeLabel":"object"}},"isRequired":true,"uniqueKey":"function_data.oneOf.7","typeLabel":"parameters · object"},{"type":"object","title":"topic_map","required":["type","source_facet","embedding_model"],"properties":{"type":{"type":"string","enum":["topic_map"],"isRequired":true,"uniqueKey":"function_data.oneOf.8.type","typeLabel":"enum\u003cstring>"},"source_facet":{"type":"string","description":"Materialized facet field name used when source_facet_function is absent","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet","typeLabel":"string"},"embedding_model":{"type":"string","description":"The embedding model to use for embedding facet values","isRequired":true,"uniqueKey":"function_data.oneOf.8.embedding_model","typeLabel":"string"},"source_facet_function":{"oneOf":[{"type":"object","title":"function","description":"The stable function reference for the source facet","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.0.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.0","typeLabel":"function · object"},{"type":"object","title":"global","description":"The stable function reference for the source facet","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1.name","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1.version","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.1","typeLabel":"global · object"},{"type":"object","title":"function","description":"The stable function reference for the source facet","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2.name","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2.id","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2.function_type","typeLabel":"enum\u003cstring>"},"version":{"type":"string","description":"The version of the function","uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2.version","typeLabel":"string"}},"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.2","typeLabel":"function · object"},{"type":"object","title":"global","description":"The stable function reference for the source facet","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.3.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.3.name","typeLabel":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.3.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"function_data.oneOf.8.source_facet_function.oneOf.3","typeLabel":"global · object"}],"uniqueKey":"function_data.oneOf.8.source_facet_function","typeLabel":"function · object · global · object · function · object · global · object"},"bundle_key":{"type":"string","description":"Key of the topic map bundle in code_bundles bucket","uniqueKey":"function_data.oneOf.8.bundle_key","typeLabel":"string"},"report_key":{"type":"string","description":"Key of the clustering report in code_bundles bucket","uniqueKey":"function_data.oneOf.8.report_key","typeLabel":"string"},"topic_names":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"function_data.oneOf.8.topic_names.additionalProperties","typeLabel":"string"},"description":"Mapping from topic_id to topic name","uniqueKey":"function_data.oneOf.8.topic_names","typeLabel":"object"},"generation_settings":{"type":"object","properties":{"algorithm":{"type":"string","enum":["hdbscan","kmeans","community"],"isRequired":true,"uniqueKey":"function_data.oneOf.8.generation_settings.algorithm","typeLabel":"enum\u003cstring>"},"dimension_reduction":{"type":"string","enum":["umap","pca","none"],"isRequired":true,"uniqueKey":"function_data.oneOf.8.generation_settings.dimension_reduction","typeLabel":"enum\u003cstring>"},"sample_size":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.8.generation_settings.sample_size","typeLabel":"integer"},"n_clusters":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.8.generation_settings.n_clusters","typeLabel":"integer"},"min_cluster_size":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.8.generation_settings.min_cluster_size","typeLabel":"integer"},"min_samples":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.8.generation_settings.min_samples","typeLabel":"integer"},"hierarchy_threshold":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"function_data.oneOf.8.generation_settings.hierarchy_threshold","typeLabel":"integer"},"naming_model":{"type":"string","uniqueKey":"function_data.oneOf.8.generation_settings.naming_model","typeLabel":"string"}},"required":["algorithm","dimension_reduction"],"description":"Clustering and naming settings used to generate this topic map","uniqueKey":"function_data.oneOf.8.generation_settings","typeLabel":"object"},"disable_reconciliation":{"type":"boolean","description":"Whether new topic generation should ignore the previously saved report during reconciliation. Defaults to false when omitted.","uniqueKey":"function_data.oneOf.8.disable_reconciliation","typeLabel":"boolean"},"reconcile_mode":{"type":"string","enum":["evolve","names_only"],"description":"How reconciliation carries the previous map forward: \"evolve\" re-routes new samples into the previous topics before naming; \"names_only\" keeps the fresh clustering and carries only topic ids/names. Defaults to \"names_only\" when omitted.","uniqueKey":"function_data.oneOf.8.reconcile_mode","typeLabel":"enum\u003cstring>"},"distance_threshold":{"type":"number","description":"Maximum distance to nearest centroid. If exceeded, returns no_match.","uniqueKey":"function_data.oneOf.8.distance_threshold","typeLabel":"number"},"btql_filter":{"type":"string","description":"Per-topic-map BTQL filter that was applied when this version was generated. Absent on versions generated before this was recorded.","uniqueKey":"function_data.oneOf.8.btql_filter","typeLabel":"string"},"automation_btql_filter":{"type":"string","description":"Automation-level BTQL filter that was applied when this version was generated. Absent on versions generated before this was recorded.","uniqueKey":"function_data.oneOf.8.automation_btql_filter","typeLabel":"string"}},"isRequired":true,"uniqueKey":"function_data.oneOf.8","typeLabel":"topic_map · object"},{"type":"object","title":"simulation","description":"A task function that runs a conversation between an agent and a simulated user.","required":["type","config"],"properties":{"type":{"type":"string","enum":["simulation"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.type","typeLabel":"enum\u003cstring>"},"config":{"oneOf":[{"type":"object","required":["agent"],"properties":{"agent":{"oneOf":[{"type":"object","required":["type","server_url","agent_name"],"properties":{"type":{"type":"string","enum":["livekit"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.0.type","typeLabel":"enum\u003cstring>"},"server_url":{"type":"string","minLength":1,"description":"The WebSocket URL of the LiveKit project hosting the agent","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.0.server_url","typeLabel":"string"},"agent_name":{"type":"string","minLength":1,"description":"The name of the LiveKit agent to dispatch","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.0.agent_name","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","phone_number"],"properties":{"type":{"type":"string","enum":["phone"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.1.type","typeLabel":"enum\u003cstring>"},"phone_number":{"type":"string","pattern":"^\\+[1-9]\\d{7,14}$","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.1.phone_number","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","uri"],"properties":{"type":{"type":"string","enum":["sip"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.2.type","typeLabel":"enum\u003cstring>"},"uri":{"type":"string","pattern":"^sips?:[^\\s]+$","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.2.uri","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0.agent","typeLabel":"object"},"initiator":{"type":"string","enum":["agent","simulated_user"],"default":"agent","description":"Who speaks first in the conversation","uniqueKey":"function_data.oneOf.9.config.oneOf.0.initiator","typeLabel":"enum\u003cstring>"},"timeout_seconds":{"type":"integer","minimum":15,"maximum":3600,"default":600,"description":"Maximum conversation duration in seconds","uniqueKey":"function_data.oneOf.9.config.oneOf.0.timeout_seconds","typeLabel":"integer"},"modality":{"type":"string","enum":["voice"],"default":"voice","uniqueKey":"function_data.oneOf.9.config.oneOf.0.modality","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.0","typeLabel":"object"},{"type":"object","required":["modality","agent"],"properties":{"modality":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.modality","typeLabel":"enum\u003cstring>"},"agent":{"oneOf":[{"type":"object","required":["type","server_url","agent_name"],"properties":{"type":{"type":"string","enum":["livekit"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.0.type","typeLabel":"enum\u003cstring>"},"server_url":{"type":"string","minLength":1,"description":"The WebSocket URL of the LiveKit project hosting the agent","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.0.server_url","typeLabel":"string"},"agent_name":{"type":"string","minLength":1,"description":"The name of the LiveKit agent to dispatch","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.0.agent_name","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","command","cwd"],"properties":{"type":{"type":"string","enum":["acp"],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.type","typeLabel":"enum\u003cstring>"},"command":{"type":"string","minLength":1,"description":"Executable for the ACP agent subprocess, communicating over stdio","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.command","typeLabel":"string"},"cwd":{"type":"string","pattern":"^(?:\\/|[A-Za-z]:[\\\\/]|\\\\\\\\)","description":"Absolute working directory for the ACP session on the execution host","isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.cwd","typeLabel":"string"},"args":{"type":"array","items":{"type":"string","uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.args.items.[INDEX]","typeLabel":"string"},"default":[],"description":"Arguments passed to the executable without shell interpretation","uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.args","typeLabel":"string[]"},"permissions":{"type":"string","enum":["deny"],"default":"deny","description":"Deny ACP permission requests; this does not sandbox the subprocess","uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1.permissions","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1.agent","typeLabel":"object"},"initiator":{"type":"string","enum":["agent","simulated_user"],"default":"agent","description":"Who speaks first in the conversation","uniqueKey":"function_data.oneOf.9.config.oneOf.1.initiator","typeLabel":"enum\u003cstring>"},"timeout_seconds":{"type":"integer","minimum":15,"maximum":3600,"default":600,"description":"Maximum conversation duration in seconds","uniqueKey":"function_data.oneOf.9.config.oneOf.1.timeout_seconds","typeLabel":"integer"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9.config.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"function_data.oneOf.9.config","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"function_data.oneOf.9","typeLabel":"simulation · object"}],"isRequired":true,"uniqueKey":"function_data","typeLabel":"prompt · object | code · object | graph · object | remote_eval · object | global · object | facet · object | batched_facet · object | parameters · object | topic_map · object | simulation · object"},"description":{"oneOf":[{"type":"string","description":"Textual description of the prompt","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Textual description of the prompt","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"created":{"oneOf":[{"type":"string","format":"date-time","description":"Date of prompt creation","uniqueKey":"created.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Date of prompt creation","uniqueKey":"created.oneOf.1","typeLabel":"null"}],"uniqueKey":"created","typeLabel":"string\u003cdate-time> | null"},"prompt_data":{"oneOf":[{"type":"object","properties":{"prompt":{"oneOf":[{"type":"object","title":"chat","required":["type","messages"],"properties":{"type":{"type":"string","enum":["chat"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.type","typeLabel":"enum\u003cstring>"},"messages":{"type":"array","items":{"oneOf":[{"type":"object","title":"system","required":["role"],"properties":{"role":{"type":"string","enum":["system"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","title":"text","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"title":"array","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content.oneOf.1","typeLabel":"array · object[]"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.content","typeLabel":"string | array · object[]"},"name":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0.name","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.0","typeLabel":"system · object"},{"type":"object","title":"user","required":["role"],"properties":{"role":{"type":"string","enum":["user"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","title":"text","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","title":"text","required":["type"],"properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"text · object"},{"type":"object","title":"image_url","required":["image_url","type"],"properties":{"image_url":{"type":"object","properties":{"url":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url.url","typeLabel":"string"},"detail":{"oneOf":[{"type":"string","title":"auto","enum":["auto"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url.detail.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","title":"low","enum":["low"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url.detail.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","title":"high","enum":["high"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url.detail.oneOf.2","typeLabel":"enum\u003cstring>"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url.detail","typeLabel":"enum\u003cstring>"}},"required":["url"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.image_url","typeLabel":"object"},"type":{"type":"string","enum":["image_url"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1.cache_control","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"image_url · object"},{"type":"object","title":"input_audio","required":["input_audio","type"],"properties":{"input_audio":{"type":"object","properties":{"data":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.input_audio.data","typeLabel":"string"},"format":{"type":"string","enum":["wav","mp3"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.input_audio.format","typeLabel":"enum\u003cstring>"}},"required":["data","format"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.input_audio","typeLabel":"object"},"type":{"type":"string","enum":["input_audio"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2.cache_control","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"input_audio · object"},{"type":"object","title":"file","required":["file","type"],"properties":{"file":{"type":"object","properties":{"file_data":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.file.file_data","typeLabel":"string"},"filename":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.file.filename","typeLabel":"string"},"file_id":{"type":"string","title":"The ID of an uploaded file to use as input.","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.file.file_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.file","typeLabel":"object"},"type":{"type":"string","enum":["file"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3.cache_control","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"file · object"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX]","typeLabel":"text · object | image_url · object | input_audio · object | file · object"},"title":"array","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content.oneOf.1","typeLabel":"(text · object | image_url · object | input_audio · object | file · object)[]"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.content","typeLabel":"string | (text · object | image_url · object | input_audio · object | file · object)[]"},"name":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1.name","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.1","typeLabel":"user · object"},{"type":"object","title":"assistant","required":["role"],"properties":{"role":{"type":"string","enum":["assistant"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.1","typeLabel":"object[]"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content.oneOf.2","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.content","typeLabel":"string | object[] | null"},"function_call":{"oneOf":[{"type":"object","properties":{"arguments":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0.arguments","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0.name","typeLabel":"string"}},"required":["arguments","name"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.function_call","typeLabel":"object | null"},"name":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.name","typeLabel":"string | null"},"tool_calls":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].id","typeLabel":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function.arguments","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function.name","typeLabel":"string"}},"required":["arguments","name"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].function","typeLabel":"object"},"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["id","function","type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]},"type":{"type":"string","enum":["function"]}},"required":["id","function","type"]},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.tool_calls","typeLabel":"object[] | null"},"reasoning":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].id","typeLabel":"string | null"},"content":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX].content","typeLabel":"string | null"}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models.","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string"},{"type":"null"}]},"content":{"oneOf":[{"type":"string"},{"type":"null"}]}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models."},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning","typeLabel":"object[] | null"},"reasoning_signature":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2.reasoning_signature","typeLabel":"string | null"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.2","typeLabel":"assistant · object"},{"type":"object","title":"tool","required":["role"],"properties":{"role":{"type":"string","enum":["tool"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","title":"text","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"title":"array","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content.oneOf.1","typeLabel":"array · object[]"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.content","typeLabel":"string | array · object[]"},"tool_call_id":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3.tool_call_id","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.3","typeLabel":"tool · object"},{"type":"object","title":"function","required":["content","name","role"],"properties":{"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.content","typeLabel":"string | null"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.name","typeLabel":"string"},"role":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4.role","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.4","typeLabel":"function · object"},{"type":"object","title":"developer","required":["role"],"properties":{"role":{"type":"string","enum":["developer"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","title":"text","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","default":"","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","enum":["5m","1h"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"required":["type"],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"title":"array","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content.oneOf.1","typeLabel":"array · object[]"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.content","typeLabel":"string | array · object[]"},"name":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5.name","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.5","typeLabel":"developer · object"},{"type":"object","title":"fallback","required":["role"],"properties":{"role":{"type":"string","enum":["model"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.6.content","typeLabel":"string | null"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX].oneOf.6","typeLabel":"fallback · object"}],"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages.items.[INDEX]","typeLabel":"system · object | user · object | assistant · object | tool · object | function · object | developer · object | fallback · object"},"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.messages","typeLabel":"(system · object | user · object | assistant · object | tool · object | function · object | developer · object | fallback · object)[]"},"tools":{"type":"string","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0.tools","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.0","typeLabel":"chat · object"},{"type":"object","title":"completion","required":["type","content"],"properties":{"type":{"type":"string","enum":["completion"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.1.type","typeLabel":"enum\u003cstring>"},"content":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.1.content","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.1","typeLabel":"completion · object"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.prompt.oneOf.2","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.prompt","typeLabel":"chat · object | completion · object | null"},"options":{"oneOf":[{"type":"object","properties":{"model":{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.model","typeLabel":"string"},"params":{"oneOf":[{"type":"object","title":"OpenAIModelParams","properties":{"use_cache":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.use_cache","typeLabel":"boolean"},"reasoning_enabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.reasoning_enabled","typeLabel":"boolean"},"reasoning_budget":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.reasoning_budget","typeLabel":"number"},"temperature":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.temperature","typeLabel":"number"},"top_p":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.top_p","typeLabel":"number"},"max_tokens":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.max_tokens","typeLabel":"number"},"max_completion_tokens":{"type":"number","description":"The successor to max_tokens","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.max_completion_tokens","typeLabel":"number"},"frequency_penalty":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.frequency_penalty","typeLabel":"number"},"presence_penalty":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.presence_penalty","typeLabel":"number"},"response_format":{"oneOf":[{"type":"object","title":"json_object","required":["type"],"properties":{"type":{"type":"string","enum":["json_object"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.0","typeLabel":"json_object · object"},{"type":"object","title":"json_schema","required":["type","json_schema"],"properties":{"type":{"type":"string","enum":["json_schema"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.type","typeLabel":"enum\u003cstring>"},"json_schema":{"type":"object","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.description","typeLabel":"string"},"schema":{"oneOf":[{"type":"object","title":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.schema.oneOf.0.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.schema.oneOf.0","typeLabel":"object · object"},{"type":"string","title":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.schema.oneOf.1","typeLabel":"string"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.schema","typeLabel":"object · object | string"},"strict":{"oneOf":[{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema.strict","typeLabel":"boolean | null"}},"required":["name"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1.json_schema","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.1","typeLabel":"json_schema · object"},{"type":"object","title":"text","required":["type"],"properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.2","typeLabel":"text · object"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format.oneOf.3","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.response_format","typeLabel":"json_object · object | json_schema · object | text · object | null"},"tool_choice":{"oneOf":[{"type":"string","title":"auto","enum":["auto"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","title":"none","enum":["none"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","title":"required","enum":["required"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.2","typeLabel":"enum\u003cstring>"},{"type":"object","title":"function","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.3.type","typeLabel":"enum\u003cstring>"},"function":{"type":"object","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.3.function.name","typeLabel":"string"}},"required":["name"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.3.function","typeLabel":"object"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice.oneOf.3","typeLabel":"function · object"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.tool_choice","typeLabel":"enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · function · object"},"function_call":{"oneOf":[{"type":"string","title":"auto","enum":["auto"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.function_call.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","title":"none","enum":["none"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.function_call.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"object","title":"function","required":["name"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.function_call.oneOf.2.name","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.function_call.oneOf.2","typeLabel":"function · object"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.function_call","typeLabel":"enum\u003cstring> · enum\u003cstring> · function · object"},"n":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.n","typeLabel":"number"},"stop":{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.stop.items.[INDEX]","typeLabel":"string"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.stop","typeLabel":"string[]"},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.reasoning_effort","typeLabel":"enum\u003cstring>"},"chat_template_kwargs":{"type":"object","properties":{"enable_thinking":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.chat_template_kwargs.enable_thinking","typeLabel":"boolean"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.chat_template_kwargs.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.chat_template_kwargs","typeLabel":"object"},"verbosity":{"type":"string","enum":["low","medium","high"],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.verbosity","typeLabel":"enum\u003cstring>"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.0","typeLabel":"OpenAIModelParams · object"},{"type":"object","title":"AnthropicModelParams","required":["max_tokens","temperature"],"properties":{"max_tokens":{"type":"number","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.max_tokens","typeLabel":"number"},"temperature":{"type":"number","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.temperature","typeLabel":"number"},"use_cache":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.use_cache","typeLabel":"boolean"},"reasoning_enabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.reasoning_enabled","typeLabel":"boolean"},"reasoning_budget":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.reasoning_budget","typeLabel":"number"},"top_p":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.top_p","typeLabel":"number"},"top_k":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.top_k","typeLabel":"number"},"stop_sequences":{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.stop_sequences.items.[INDEX]","typeLabel":"string"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.stop_sequences","typeLabel":"string[]"},"max_tokens_to_sample":{"type":"number","description":"This is a legacy parameter that should not be used.","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.max_tokens_to_sample","typeLabel":"number"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.1","typeLabel":"AnthropicModelParams · object"},{"type":"object","title":"GoogleModelParams","properties":{"use_cache":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.use_cache","typeLabel":"boolean"},"reasoning_enabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.reasoning_enabled","typeLabel":"boolean"},"reasoning_budget":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.reasoning_budget","typeLabel":"number"},"temperature":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.temperature","typeLabel":"number"},"maxOutputTokens":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.maxOutputTokens","typeLabel":"number"},"topP":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.topP","typeLabel":"number"},"topK":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.topK","typeLabel":"number"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.2","typeLabel":"GoogleModelParams · object"},{"type":"object","title":"WindowAIModelParams","properties":{"use_cache":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.use_cache","typeLabel":"boolean"},"reasoning_enabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.reasoning_enabled","typeLabel":"boolean"},"reasoning_budget":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.reasoning_budget","typeLabel":"number"},"temperature":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.temperature","typeLabel":"number"},"topK":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.topK","typeLabel":"number"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.3","typeLabel":"WindowAIModelParams · object"},{"type":"object","title":"JsCompletionParams","properties":{"use_cache":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.4.use_cache","typeLabel":"boolean"},"reasoning_enabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.4.reasoning_enabled","typeLabel":"boolean"},"reasoning_budget":{"type":"number","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.4.reasoning_budget","typeLabel":"number"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.4.additionalProperties","typeLabel":"any"},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params.oneOf.4","typeLabel":"JsCompletionParams · object"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.params","typeLabel":"OpenAIModelParams · object | AnthropicModelParams · object | GoogleModelParams · object | WindowAIModelParams · object | JsCompletionParams · object"},"position":{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.position","typeLabel":"string"},"endpoint_name":{"oneOf":[{"type":"string","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.endpoint_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.endpoint_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0.endpoint_name","typeLabel":"string | null"}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"model":{"type":"string"},"params":{"oneOf":[{"type":"object","title":"OpenAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"max_tokens":{"type":"number"},"max_completion_tokens":{"type":"number","description":"The successor to max_tokens"},"frequency_penalty":{"type":"number"},"presence_penalty":{"type":"number"},"response_format":{"oneOf":[{"type":"object","title":"json_object","required":["type"],"properties":{"type":{"type":"string","enum":["json_object"]}}},{"type":"object","title":"json_schema","required":["type","json_schema"],"properties":{"type":{"type":"string","enum":["json_schema"]},"json_schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"schema":{"oneOf":[{"type":"object","title":"object","additionalProperties":{"oneOf":[{}]}},{"type":"string","title":"string"}]},"strict":{"oneOf":[{"type":"boolean"},{"type":"null"}]}},"required":["name"]}}},{"type":"object","title":"text","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}}},{"type":"null"}]},"tool_choice":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"string","title":"required","enum":["required"]},{"type":"object","title":"function","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}]},"function_call":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"object","title":"function","required":["name"],"properties":{"name":{"type":"string"}}}]},"n":{"type":"number"},"stop":{"type":"array","items":{"type":"string"}},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high"]},"chat_template_kwargs":{"type":"object","properties":{"enable_thinking":{"type":"boolean"}},"additionalProperties":{"oneOf":[{}]}},"verbosity":{"type":"string","enum":["low","medium","high"]}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"AnthropicModelParams","required":["max_tokens","temperature"],"properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"max_tokens":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"top_k":{"type":"number"},"stop_sequences":{"type":"array","items":{"type":"string"}},"max_tokens_to_sample":{"type":"number","description":"This is a legacy parameter that should not be used."}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"GoogleModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"maxOutputTokens":{"type":"number"},"topP":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"WindowAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"JsCompletionParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}}]},"position":{"type":"string"},"endpoint_name":{"oneOf":[{"type":"string"},{"type":"null"}]}},"uniqueKey":"prompt_data.oneOf.0.options.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.options","typeLabel":"object | null"},"parser":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["llm_classifier"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.type","typeLabel":"enum\u003cstring>"},"use_cot":{"type":"boolean","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.use_cot","typeLabel":"boolean"},"choice_scores":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.choice_scores.additionalProperties","typeLabel":"number"},"description":"Map of choices to scores (0-1). Used by scorers.","uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.choice_scores","typeLabel":"object"},"choice":{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.choice.items.[INDEX]","typeLabel":"string"},"description":"List of valid choices without score mapping. Used by classifiers that deposit output to tags.","uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.choice","typeLabel":"string[]"},"allow_no_match":{"type":"boolean","description":"If true, adds a 'No match' option. When selected, no tag is deposited.","uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.allow_no_match","typeLabel":"boolean"},"allow_skip":{"type":"boolean","description":"If true, adds a 'Skip' option. When selected, the scorer returns null.","uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0.allow_skip","typeLabel":"boolean"}},"required":["type","use_cot"],"uniqueKey":"prompt_data.oneOf.0.parser.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"type":{"type":"string","enum":["llm_classifier"]},"use_cot":{"type":"boolean"},"choice_scores":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1},"description":"Map of choices to scores (0-1). Used by scorers."},"choice":{"type":"array","items":{"type":"string"},"description":"List of valid choices without score mapping. Used by classifiers that deposit output to tags."},"allow_no_match":{"type":"boolean","description":"If true, adds a 'No match' option. When selected, no tag is deposited."},"allow_skip":{"type":"boolean","description":"If true, adds a 'Skip' option. When selected, the scorer returns null."}},"required":["type","use_cot"],"uniqueKey":"prompt_data.oneOf.0.parser.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.parser","typeLabel":"object | null"},"preprocessor":{"oneOf":[{"type":"object","title":"function","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.0.version","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.0","typeLabel":"function · object"},{"type":"object","title":"preprocessor_global","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.1.name","typeLabel":"string"},"function_type":{"type":"string","enum":["preprocessor"],"default":"preprocessor","description":"The type of global function. Defaults to 'preprocessor'.","uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.1","typeLabel":"preprocessor_global · object"},{"type":"object","title":"preprocessor_inline","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","code"],"properties":{"type":{"type":"string","enum":["inline"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.2.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","minLength":1,"description":"The complete JavaScript preprocessor implementation, including its handler.","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.2.code","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.2","typeLabel":"preprocessor_inline · object"},{"type":"null","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","uniqueKey":"prompt_data.oneOf.0.preprocessor.oneOf.3","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.preprocessor","typeLabel":"function · object | preprocessor_global · object | preprocessor_inline · object | null"},"tool_functions":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.0.id","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.0.version","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"function · object"},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1.name","typeLabel":"string"},"version":{"type":"string","description":"The version of the function","uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1.version","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"global · object"},{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2.name","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2.id","typeLabel":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'.","uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2.function_type","typeLabel":"enum\u003cstring>"},"version":{"type":"string","description":"The version of the function","uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2.version","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"function · object"},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.3.name","typeLabel":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.3.function_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"global · object"}],"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0.items.[INDEX]","typeLabel":"function · object · global · object · function · object · global · object"},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.0","typeLabel":"function · object · global · object · function · object · global · object[]"},{"type":"null","items":{"oneOf":[{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."}}},{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[]},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"]},"name":{"type":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"]}}}]},"uniqueKey":"prompt_data.oneOf.0.tool_functions.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.tool_functions","typeLabel":"function · object · global · object · function · object · global · object[] | null"},"template_format":{"oneOf":[{"type":"string","enum":["mustache","nunjucks","none",null],"uniqueKey":"prompt_data.oneOf.0.template_format.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["mustache","nunjucks","none",null],"uniqueKey":"prompt_data.oneOf.0.template_format.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.template_format","typeLabel":"enum\u003cstring> | null"},"mcp":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"object","title":"MCP server id. This is used for project-level MCP server definitions.","required":["type","id"],"properties":{"type":{"type":"string","enum":["id"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.id","typeLabel":"string\u003cuuid>"},"is_disabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.is_disabled","typeLabel":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.enabled_tools.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.enabled_tools.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.enabled_tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0.enabled_tools","typeLabel":"string[] | null"}},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.0","typeLabel":"MCP server id. This is used for project-level MCP server definitions. · object"},{"type":"object","title":"MCP server url. This is used for inline definitions of MCP servers.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"],"isRequired":true,"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.url","typeLabel":"string"},"is_disabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.is_disabled","typeLabel":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.enabled_tools.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.enabled_tools.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.enabled_tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1.enabled_tools","typeLabel":"string[] | null"}},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties.oneOf.1","typeLabel":"MCP server url. This is used for inline definitions of MCP servers. · object"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0.additionalProperties","typeLabel":"MCP server id. This is used for project-level MCP server definitions. · object | MCP server url. This is used for inline definitions of MCP servers. · object"},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{"type":"object","title":"MCP server id. This is used for project-level MCP server definitions.","required":["type","id"],"properties":{"type":{"type":"string","enum":["id"],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.id","typeLabel":"string\u003cuuid>"},"is_disabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.is_disabled","typeLabel":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.enabled_tools.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.enabled_tools.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.enabled_tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0.enabled_tools","typeLabel":"string[] | null"}},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.0","typeLabel":"MCP server id. This is used for project-level MCP server definitions. · object"},{"type":"object","title":"MCP server url. This is used for inline definitions of MCP servers.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.url","typeLabel":"string"},"is_disabled":{"type":"boolean","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.is_disabled","typeLabel":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.enabled_tools.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.enabled_tools.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled","uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.enabled_tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1.enabled_tools","typeLabel":"string[] | null"}},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties.oneOf.1","typeLabel":"MCP server url. This is used for inline definitions of MCP servers. · object"}],"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1.additionalProperties","typeLabel":"MCP server id. This is used for project-level MCP server definitions. · object | MCP server url. This is used for inline definitions of MCP servers. · object"},"uniqueKey":"prompt_data.oneOf.0.mcp.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.mcp","typeLabel":"object | null"},"origin":{"oneOf":[{"type":"object","properties":{"prompt_id":{"type":"string","uniqueKey":"prompt_data.oneOf.0.origin.oneOf.0.prompt_id","typeLabel":"string"},"project_id":{"type":"string","uniqueKey":"prompt_data.oneOf.0.origin.oneOf.0.project_id","typeLabel":"string"},"prompt_version":{"type":"string","uniqueKey":"prompt_data.oneOf.0.origin.oneOf.0.prompt_version","typeLabel":"string"}},"uniqueKey":"prompt_data.oneOf.0.origin.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"prompt_id":{"type":"string"},"project_id":{"type":"string"},"prompt_version":{"type":"string"}},"uniqueKey":"prompt_data.oneOf.0.origin.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data.oneOf.0.origin","typeLabel":"object | null"}},"description":"The prompt, model, and its parameters","uniqueKey":"prompt_data.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"prompt":{"oneOf":[{"type":"object","title":"chat","required":["type","messages"],"properties":{"type":{"type":"string","enum":["chat"]},"messages":{"type":"array","items":{"oneOf":[{"type":"object","title":"system","required":["role"],"properties":{"content":{"oneOf":[{"type":"string","title":"text","default":""},{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","default":""},"type":{"type":"string","enum":["text"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}},"required":["type"]},"title":"array"}]},"role":{"type":"string","enum":["system"]},"name":{"type":"string"}}},{"type":"object","title":"user","required":["role"],"properties":{"content":{"oneOf":[{"type":"string","title":"text","default":""},{"type":"array","items":{"oneOf":[{"type":"object","title":"text","required":["type"],"properties":{"text":{"type":"string","default":""},"type":{"type":"string","enum":["text"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}}},{"type":"object","title":"image_url","required":["image_url","type"],"properties":{"image_url":{"type":"object","properties":{"url":{"type":"string"},"detail":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"low","enum":["low"]},{"type":"string","title":"high","enum":["high"]}]}},"required":["url"]},"type":{"type":"string","enum":["image_url"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}}},{"type":"object","title":"input_audio","required":["input_audio","type"],"properties":{"input_audio":{"type":"object","properties":{"data":{"type":"string"},"format":{"type":"string","enum":["wav","mp3"]}},"required":["data","format"]},"type":{"type":"string","enum":["input_audio"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}}},{"type":"object","title":"file","required":["file","type"],"properties":{"file":{"type":"object","properties":{"file_data":{"type":"string"},"filename":{"type":"string"},"file_id":{"type":"string","title":"The ID of an uploaded file to use as input."}}},"type":{"type":"string","enum":["file"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}}}]},"title":"array"}]},"role":{"type":"string","enum":["user"]},"name":{"type":"string"}}},{"type":"object","title":"assistant","required":["role"],"properties":{"role":{"type":"string","enum":["assistant"]},"content":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","default":""},"type":{"type":"string","enum":["text"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}},"required":["type"]}},{"type":"null"}]},"function_call":{"oneOf":[{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]},{"type":"null","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]}]},"name":{"oneOf":[{"type":"string"},{"type":"null"}]},"tool_calls":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]},"type":{"type":"string","enum":["function"]}},"required":["id","function","type"]}},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string"},"function":{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"]},"type":{"type":"string","enum":["function"]}},"required":["id","function","type"]}}]},"reasoning":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string"},{"type":"null"}]},"content":{"oneOf":[{"type":"string"},{"type":"null"}]}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models."}},{"type":"null","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string"},{"type":"null"}]},"content":{"oneOf":[{"type":"string"},{"type":"null"}]}},"description":"Note: This is not part of the OpenAI API spec, but we added it for interoperability with multiple reasoning models."}}]},"reasoning_signature":{"oneOf":[{"type":"string"},{"type":"null"}]}}},{"type":"object","title":"tool","required":["role"],"properties":{"content":{"oneOf":[{"type":"string","title":"text","default":""},{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","default":""},"type":{"type":"string","enum":["text"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}},"required":["type"]},"title":"array"}]},"role":{"type":"string","enum":["tool"]},"tool_call_id":{"type":"string","default":""}}},{"type":"object","title":"function","required":["content","name","role"],"properties":{"content":{"oneOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"role":{"type":"string","enum":["function"]}}},{"type":"object","title":"developer","required":["role"],"properties":{"content":{"oneOf":[{"type":"string","title":"text","default":""},{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","default":""},"type":{"type":"string","enum":["text"]},"cache_control":{"type":"object","properties":{"type":{"type":"string","enum":["ephemeral"]},"ttl":{"type":"string","enum":["5m","1h"]}},"required":["type"]}},"required":["type"]},"title":"array"}]},"role":{"type":"string","enum":["developer"]},"name":{"type":"string"}}},{"type":"object","title":"fallback","required":["role"],"properties":{"role":{"type":"string","enum":["model"]},"content":{"oneOf":[{"type":"string"},{"type":"null"}]}}}]}},"tools":{"type":"string"}}},{"type":"object","title":"completion","required":["type","content"],"properties":{"type":{"type":"string","enum":["completion"]},"content":{"type":"string"}}},{"type":"null"}]},"options":{"oneOf":[{"type":"object","properties":{"model":{"type":"string"},"params":{"oneOf":[{"type":"object","title":"OpenAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"max_tokens":{"type":"number"},"max_completion_tokens":{"type":"number","description":"The successor to max_tokens"},"frequency_penalty":{"type":"number"},"presence_penalty":{"type":"number"},"response_format":{"oneOf":[{"type":"object","title":"json_object","required":["type"],"properties":{"type":{"type":"string","enum":["json_object"]}}},{"type":"object","title":"json_schema","required":["type","json_schema"],"properties":{"type":{"type":"string","enum":["json_schema"]},"json_schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"schema":{"oneOf":[{"type":"object","title":"object","additionalProperties":{"oneOf":[{}]}},{"type":"string","title":"string"}]},"strict":{"oneOf":[{"type":"boolean"},{"type":"null"}]}},"required":["name"]}}},{"type":"object","title":"text","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}}},{"type":"null"}]},"tool_choice":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"string","title":"required","enum":["required"]},{"type":"object","title":"function","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}]},"function_call":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"object","title":"function","required":["name"],"properties":{"name":{"type":"string"}}}]},"n":{"type":"number"},"stop":{"type":"array","items":{"type":"string"}},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high"]},"chat_template_kwargs":{"type":"object","properties":{"enable_thinking":{"type":"boolean"}},"additionalProperties":{"oneOf":[{}]}},"verbosity":{"type":"string","enum":["low","medium","high"]}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"AnthropicModelParams","required":["max_tokens","temperature"],"properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"max_tokens":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"top_k":{"type":"number"},"stop_sequences":{"type":"array","items":{"type":"string"}},"max_tokens_to_sample":{"type":"number","description":"This is a legacy parameter that should not be used."}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"GoogleModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"maxOutputTokens":{"type":"number"},"topP":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"WindowAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"JsCompletionParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}}]},"position":{"type":"string"},"endpoint_name":{"oneOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null","properties":{"model":{"type":"string"},"params":{"oneOf":[{"type":"object","title":"OpenAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"max_tokens":{"type":"number"},"max_completion_tokens":{"type":"number","description":"The successor to max_tokens"},"frequency_penalty":{"type":"number"},"presence_penalty":{"type":"number"},"response_format":{"oneOf":[{"type":"object","title":"json_object","required":["type"],"properties":{"type":{"type":"string","enum":["json_object"]}}},{"type":"object","title":"json_schema","required":["type","json_schema"],"properties":{"type":{"type":"string","enum":["json_schema"]},"json_schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"schema":{"oneOf":[{"type":"object","title":"object","additionalProperties":{"oneOf":[{}]}},{"type":"string","title":"string"}]},"strict":{"oneOf":[{"type":"boolean"},{"type":"null"}]}},"required":["name"]}}},{"type":"object","title":"text","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}}},{"type":"null"}]},"tool_choice":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"string","title":"required","enum":["required"]},{"type":"object","title":"function","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}]},"function_call":{"oneOf":[{"type":"string","title":"auto","enum":["auto"]},{"type":"string","title":"none","enum":["none"]},{"type":"object","title":"function","required":["name"],"properties":{"name":{"type":"string"}}}]},"n":{"type":"number"},"stop":{"type":"array","items":{"type":"string"}},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high"]},"chat_template_kwargs":{"type":"object","properties":{"enable_thinking":{"type":"boolean"}},"additionalProperties":{"oneOf":[{}]}},"verbosity":{"type":"string","enum":["low","medium","high"]}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"AnthropicModelParams","required":["max_tokens","temperature"],"properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"max_tokens":{"type":"number"},"temperature":{"type":"number"},"top_p":{"type":"number"},"top_k":{"type":"number"},"stop_sequences":{"type":"array","items":{"type":"string"}},"max_tokens_to_sample":{"type":"number","description":"This is a legacy parameter that should not be used."}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"GoogleModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"maxOutputTokens":{"type":"number"},"topP":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"WindowAIModelParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"},"temperature":{"type":"number"},"topK":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}},{"type":"object","title":"JsCompletionParams","properties":{"use_cache":{"type":"boolean"},"reasoning_enabled":{"type":"boolean"},"reasoning_budget":{"type":"number"}},"additionalProperties":{"oneOf":[{}]}}]},"position":{"type":"string"},"endpoint_name":{"oneOf":[{"type":"string"},{"type":"null"}]}}}]},"parser":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["llm_classifier"]},"use_cot":{"type":"boolean"},"choice_scores":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1},"description":"Map of choices to scores (0-1). Used by scorers."},"choice":{"type":"array","items":{"type":"string"},"description":"List of valid choices without score mapping. Used by classifiers that deposit output to tags."},"allow_no_match":{"type":"boolean","description":"If true, adds a 'No match' option. When selected, no tag is deposited."},"allow_skip":{"type":"boolean","description":"If true, adds a 'Skip' option. When selected, the scorer returns null."}},"required":["type","use_cot"]},{"type":"null","properties":{"type":{"type":"string","enum":["llm_classifier"]},"use_cot":{"type":"boolean"},"choice_scores":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1},"description":"Map of choices to scores (0-1). Used by scorers."},"choice":{"type":"array","items":{"type":"string"},"description":"List of valid choices without score mapping. Used by classifiers that deposit output to tags."},"allow_no_match":{"type":"boolean","description":"If true, adds a 'No match' option. When selected, no tag is deposited."},"allow_skip":{"type":"boolean","description":"If true, adds a 'Skip' option. When selected, the scorer returns null."}},"required":["type","use_cot"]}]},"preprocessor":{"oneOf":[{"type":"object","title":"function","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"preprocessor_global","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"]},"name":{"type":"string"},"function_type":{"type":"string","enum":["preprocessor"],"default":"preprocessor","description":"The type of global function. Defaults to 'preprocessor'."}}},{"type":"object","title":"preprocessor_inline","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor.","required":["type","code"],"properties":{"type":{"type":"string","enum":["inline"]},"code":{"type":"string","minLength":1,"description":"The complete JavaScript preprocessor implementation, including its handler."}}},{"type":"null","description":"For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor."}]},"tool_functions":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."}}},{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[]},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"]},"name":{"type":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"]}}}]}},{"type":"null","items":{"oneOf":[{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id"],"properties":{"type":{"type":"string","enum":["function"]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name","id"],"properties":{"type":{"type":"string","enum":[]},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."}}},{"type":"object","title":"function","description":"Optional function identifier that produced the classification","required":["type","id","name"],"properties":{"type":{"type":"string","enum":[]},"name":{"type":"string"},"function_type":{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"],"default":"scorer","description":"The type of global function. Defaults to 'scorer'."},"id":{"type":"string"},"version":{"type":"string","description":"The version of the function"}}},{"type":"object","title":"global","description":"Optional function identifier that produced the classification","required":["type","name"],"properties":{"type":{"type":"string","enum":["global"]},"name":{"type":"string"},"function_type":{"type":"string","description":"The type of global function. Defaults to 'scorer'.","default":"scorer","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox"]}}}]}}]},"template_format":{"oneOf":[{"type":"string","enum":["mustache","nunjucks","none",null]},{"type":"null","enum":["mustache","nunjucks","none",null]}]},"mcp":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"object","title":"MCP server id. This is used for project-level MCP server definitions.","required":["type","id"],"properties":{"type":{"type":"string","enum":["id"]},"id":{"type":"string","format":"uuid"},"is_disabled":{"type":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"If omitted, all tools are enabled"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled"}]}}},{"type":"object","title":"MCP server url. This is used for inline definitions of MCP servers.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"]},"url":{"type":"string"},"is_disabled":{"type":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"If omitted, all tools are enabled"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled"}]}}}]}},{"type":"null","additionalProperties":{"oneOf":[{"type":"object","title":"MCP server id. This is used for project-level MCP server definitions.","required":["type","id"],"properties":{"type":{"type":"string","enum":["id"]},"id":{"type":"string","format":"uuid"},"is_disabled":{"type":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"If omitted, all tools are enabled"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled"}]}}},{"type":"object","title":"MCP server url. This is used for inline definitions of MCP servers.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"]},"url":{"type":"string"},"is_disabled":{"type":"boolean"},"enabled_tools":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"If omitted, all tools are enabled"},{"type":"null","items":{"type":"string"},"description":"If omitted, all tools are enabled"}]}}}]}}]},"origin":{"oneOf":[{"type":"object","properties":{"prompt_id":{"type":"string"},"project_id":{"type":"string"},"prompt_version":{"type":"string"}}},{"type":"null","properties":{"prompt_id":{"type":"string"},"project_id":{"type":"string"},"prompt_version":{"type":"string"}}}]}},"description":"The prompt, model, and its parameters","uniqueKey":"prompt_data.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_data","typeLabel":"object | null"},"tags":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tags.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"A list of tags for the prompt","uniqueKey":"tags.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"A list of tags for the prompt","uniqueKey":"tags.oneOf.1","typeLabel":"null"}],"uniqueKey":"tags","typeLabel":"string[] | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.oneOf.0.additionalProperties","typeLabel":"any"},"description":"User-controlled metadata about the prompt","uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.oneOf.1.additionalProperties","typeLabel":"any"},"description":"User-controlled metadata about the prompt","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"function_type":{"oneOf":[{"type":"string","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox",null],"uniqueKey":"function_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["llm","scorer","task","tool","custom_view","preprocessor","facet","classifier","tag","parameters","sandbox",null],"uniqueKey":"function_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_type","typeLabel":"enum\u003cstring> | null"},"origin":{"oneOf":[{"type":"object","properties":{"object_type":{"type":"string","enum":["organization","project","experiment","dataset","prompt","prompt_session","group","role","org_member","project_log","org_project","org_audit_logs","project_group","project_group_projects","ai_secret","org_ai_secret","org_account"],"description":"The object type that the ACL applies to","isRequired":true,"uniqueKey":"origin.oneOf.0.object_type","typeLabel":"enum\u003cstring>"},"object_id":{"type":"string","format":"uuid","description":"Id of the object the function is originating from","isRequired":true,"uniqueKey":"origin.oneOf.0.object_id","typeLabel":"string\u003cuuid>"},"internal":{"oneOf":[{"type":"boolean","description":"The function exists for internal purposes and should not be displayed in the list of functions.","uniqueKey":"origin.oneOf.0.internal.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"The function exists for internal purposes and should not be displayed in the list of functions.","uniqueKey":"origin.oneOf.0.internal.oneOf.1","typeLabel":"null"}],"uniqueKey":"origin.oneOf.0.internal","typeLabel":"boolean | null"}},"required":["object_type","object_id"],"uniqueKey":"origin.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"object_type":{"type":"string","enum":["organization","project","experiment","dataset","prompt","prompt_session","group","role","org_member","project_log","org_project","org_audit_logs","project_group","project_group_projects","ai_secret","org_ai_secret","org_account"],"description":"The object type that the ACL applies to"},"object_id":{"type":"string","format":"uuid","description":"Id of the object the function is originating from"},"internal":{"oneOf":[{"type":"boolean","description":"The function exists for internal purposes and should not be displayed in the list of functions."},{"type":"null","description":"The function exists for internal purposes and should not be displayed in the list of functions."}]}},"required":["object_type","object_id"],"uniqueKey":"origin.oneOf.1","typeLabel":"null"}],"uniqueKey":"origin","typeLabel":"object | null"},"function_schema":{"oneOf":[{"type":"object","properties":{"parameters":{"oneOf":[{}],"uniqueKey":"function_schema.oneOf.0.parameters","typeLabel":"any"},"returns":{"oneOf":[{}],"uniqueKey":"function_schema.oneOf.0.returns","typeLabel":"any"}},"description":"JSON schema for the function's parameters and return type","uniqueKey":"function_schema.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"parameters":{"oneOf":[{}]},"returns":{"oneOf":[{}]}},"description":"JSON schema for the function's parameters and return type","uniqueKey":"function_schema.oneOf.1","typeLabel":"null"}],"uniqueKey":"function_schema","typeLabel":"object | null"}},"required":["id","_xact_id","project_id","log_id","org_id","name","slug","function_data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","_xact_id":"\u003cstring>","project_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","log_id":"p","org_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","slug":"\u003cstring>","function_data":{"type":"prompt"},"description":"\u003cstring>","created":"2023-11-07T05:31:56Z","prompt_data":{"prompt":{"type":"chat","messages":[{"role":"system","content":"","name":"\u003cstring>"}],"tools":"\u003cstring>"},"options":{"model":"\u003cstring>","params":{"use_cache":true,"reasoning_enabled":true,"reasoning_budget":123,"temperature":123,"top_p":123,"max_tokens":123,"max_completion_tokens":123,"frequency_penalty":123,"presence_penalty":123,"response_format":{"type":"json_object"},"tool_choice":"auto","function_call":"auto","n":123,"stop":["\u003cstring>"],"reasoning_effort":"none","chat_template_kwargs":{"enable_thinking":true},"verbosity":"low"},"position":"\u003cstring>","endpoint_name":"\u003cstring>"},"parser":{"type":"llm_classifier","use_cot":true,"choice_scores":{},"choice":["\u003cstring>"],"allow_no_match":true,"allow_skip":true},"preprocessor":{"type":"function","id":"\u003cstring>","version":"\u003cstring>"},"tool_functions":[{"type":"function","id":"\u003cstring>","version":"\u003cstring>"}],"template_format":"mustache","mcp":{},"origin":{"prompt_id":"\u003cstring>","project_id":"\u003cstring>","prompt_version":"\u003cstring>"}},"tags":["\u003cstring>"],"metadata":{},"function_type":"llm","origin":{"object_type":"organization","object_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","internal":true},"function_schema":{"parameters":"\u003cunknown>","returns":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"bb7d9e17-d980-497a-8786-aeb6caa81888":{"description":"The request was unacceptable, often due to missing a required parameter","content":{"text/plain":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"application/json":{"schema":{}}},"exampleType":"generated"},"d1fa990e-5866-44b6-af23-844115cf7ba6":{"description":"No valid API key provided","content":{"text/plain":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"application/json":{"schema":{}}},"exampleType":"generated"},"51dd25bf-83e5-48a9-93bc-c090de1e7b7f":{"description":"The API key doesn’t have permissions to perform the request","content":{"text/plain":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"application/json":{"schema":{}}},"exampleType":"generated"},"887409c0-675c-4e9d-af98-b9bf88872c8d":{"description":"Too many requests hit the API too quickly. We recommend an exponential backoff of your requests","headers":{"Retry-After":{"schema":{"type":"string"}}},"content":{"text/plain":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"application/json":{"schema":{}}},"exampleType":"generated"},"a1b70141-a06f-4912-b739-48914b193836":{"description":"Something went wrong on Braintrust's end. (These are rare.)","content":{"text/plain":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"application/json":{"schema":{}}},"exampleType":"generated"}},"security":{"87aa7fca-0824-4f1e-b75f-6de8e94f442c":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key or JWT","description":"Most Braintrust endpoints are authenticated by providing your API key as a header `Authorization: Bearer [api_key]` to your HTTP request. You can create an API key in the Braintrust [organization settings page](https://www.braintrustdata.com/app/settings?subroute=api-keys).","scopes":[],"schemeName":"bearerAuth"}},"c2785e0c-9314-41f3-9567-3d3244d2a4df":{}},"servers":{"1d9d417d-d904-4567-b8c6-4e98adac3af2":{"url":"https://api.braintrust.dev"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API key or JWT","description":"Most Braintrust endpoints are authenticated by providing your API key as a header `Authorization: Bearer [api_key]` to your HTTP request. You can create an API key in the Braintrust [organization settings page](https://www.braintrustdata.com/app/settings?subroute=api-keys).","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Most Braintrust endpoints are authenticated by providing your API key as a header `Authorization: Bearer [api_key]` to your HTTP request. You can create an API key in the Braintrust [organization settings page](https://www.braintrustdata.com/app/settings?subroute=api-keys).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"braintrust","siteName":"Braintrust","title":"Create or replace function - Braintrust","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T19:52:52.471Z","originalFileLocation":"api-reference/functions/create-or-replace-function.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=\"Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned\">\u003cmeta data-mint-head name=\"application-name\" content=\"Braintrust\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/braintrust/Pnqso5CFAxfn5afF/_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/braintrust/Pnqso5CFAxfn5afF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/braintrust/Pnqso5CFAxfn5afF/_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/braintrust/Pnqso5CFAxfn5afF/_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/braintrust/Pnqso5CFAxfn5afF/_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/braintrust/Pnqso5CFAxfn5afF/_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/braintrust/Pnqso5CFAxfn5afF/_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/braintrust/Pnqso5CFAxfn5afF/_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/braintrust/Pnqso5CFAxfn5afF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create or replace function - Braintrust\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Braintrust documentation, API reference, and changelog\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.braintrust.dev/api-reference/functions/create-or-replace-function\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://www.braintrust.dev/og?template=docs\u0026amp;title=Get+started\">\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=\"Create or replace function - Braintrust\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://www.braintrust.dev/og?template=docs\u0026amp;title=Get+started\">\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/braintrust/Pnqso5CFAxfn5afF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Braintrust\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3a4af8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.braintrust.dev/api-reference/functions/create-or-replace-function\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/functions/create-or-replace-function.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.braintrust.dev/#organization\",\"name\":\"Braintrust\",\"url\":\"https://docs.braintrust.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/braintrust/u7i5gTV-ad3TRDYt/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=u7i5gTV-ad3TRDYt\u0026q=85\u0026s=23878ca308aee393dcc8c89ed8705189\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.braintrust.dev#website\",\"name\":\"Braintrust\",\"url\":\"https://docs.braintrust.dev\",\"publisher\":{\"@id\":\"https://docs.braintrust.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.braintrust.dev/api-reference/functions/create-or-replace-function#webpage\",\"url\":\"https://docs.braintrust.dev/api-reference/functions/create-or-replace-function\",\"name\":\"Create or replace function\",\"description\":\"Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned\",\"dateModified\":\"2026-10-30T19:52:52.471Z\",\"isPartOf\":{\"@id\":\"https://docs.braintrust.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.braintrust.dev/api-reference/functions/create-or-replace-function#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.braintrust.dev/api-reference/functions/create-or-replace-function#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API\",\"item\":\"https://docs.braintrust.dev/api-reference/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https://docs.braintrust.dev/api-reference/projects/list-projects\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Functions\",\"item\":\"https://docs.braintrust.dev/api-reference/functions/list-functions\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Create or replace function\",\"item\":\"https://docs.braintrust.dev/api-reference/functions/create-or-replace-function\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.braintrust.dev/api-reference/functions/create-or-replace-function#apireference\",\"headline\":\"Create or replace function\",\"name\":\"Create or replace function\",\"description\":\"Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned\",\"url\":\"https://docs.braintrust.dev/api-reference/functions/create-or-replace-function\",\"mainEntityOfPage\":{\"@id\":\"https://docs.braintrust.dev/api-reference/functions/create-or-replace-function#webpage\"},\"image\":\"https://www.braintrust.dev/og?template=docs\u0026title=Get+started\",\"dateModified\":\"2026-10-30T19:52:52.471Z\",\"publisher\":{\"@id\":\"https://docs.braintrust.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.braintrust.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Braintrust\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Braintrust","nav":{"global":null,"tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":""}]},{"tab":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/integrations"}]},{"tab":"SDKs","icon":"blocks","dropdowns":[{"dropdown":"All SDKs","pages":[{"title":"SDKs","mode":"custom","href":"/sdks"}]},{"dropdown":"TypeScript","icon":"https://mintlify.s3.us-west-1.amazonaws.com/braintrust/images/sdk-icons/typescript.svg","pages":[{"title":"TypeScript SDK quickstart","sidebarTitle":"Quickstart","href":"/sdks/typescript/quickstart"},{"group":"Use the SDK","icon":"code","pages":[{"title":"Install and instrument","href":"/sdks/typescript/install-and-instrument"},{"title":"TypeScript SDK integrations","sidebarTitle":"SDK integrations","href":"/sdks/typescript/sdk-integrations"},{"title":"Troubleshooting","href":"/sdks/typescript/troubleshooting"}]},{"group":"Features","icon":"component","pages":[{"title":"Workflow evaluations","href":"/sdks/typescript/workflow-evaluations"},{"title":"Application logs","href":"/sdks/typescript/application-logs"},{"title":"Redact sensitive data","href":"/sdks/typescript/redact-sensitive-data"}]},{"group":"Reference","icon":"file-text","pages":[{"title":"API reference","href":"/sdks/typescript/api-reference"},{"group":"Versions","boost":0.5,"pages":[{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.42.0 (latest)","href":"/sdks/typescript/versions/3.42.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.41.0","href":"/sdks/typescript/versions/3.41.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.40.0","href":"/sdks/typescript/versions/3.40.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.39.0","href":"/sdks/typescript/versions/3.39.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.38.0","href":"/sdks/typescript/versions/3.38.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.37.2","href":"/sdks/typescript/versions/3.37.2"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.36.0","href":"/sdks/typescript/versions/3.36.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.35.0","href":"/sdks/typescript/versions/3.35.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.34.0","href":"/sdks/typescript/versions/3.34.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.33.0","href":"/sdks/typescript/versions/3.33.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.32.0","href":"/sdks/typescript/versions/3.32.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.31.0","href":"/sdks/typescript/versions/3.31.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.30.0","href":"/sdks/typescript/versions/3.30.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.29.0","href":"/sdks/typescript/versions/3.29.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.28.0","href":"/sdks/typescript/versions/3.28.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.27.0","href":"/sdks/typescript/versions/3.27.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.26.0","href":"/sdks/typescript/versions/3.26.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.25.0","href":"/sdks/typescript/versions/3.25.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.24.0","href":"/sdks/typescript/versions/3.24.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.23.1","href":"/sdks/typescript/versions/3.23.1"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.22.0","href":"/sdks/typescript/versions/3.22.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.21.0","href":"/sdks/typescript/versions/3.21.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.20.0","href":"/sdks/typescript/versions/3.20.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.19.0","href":"/sdks/typescript/versions/3.19.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.18.0","href":"/sdks/typescript/versions/3.18.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.17.0","href":"/sdks/typescript/versions/3.17.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.16.0","href":"/sdks/typescript/versions/3.16.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.15.0","href":"/sdks/typescript/versions/3.15.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.14.0","href":"/sdks/typescript/versions/3.14.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.13.0","href":"/sdks/typescript/versions/3.13.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.12.0","href":"/sdks/typescript/versions/3.12.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.11.0","href":"/sdks/typescript/versions/3.11.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.10.0","href":"/sdks/typescript/versions/3.10.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.9.0","href":"/sdks/typescript/versions/3.9.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.8.0","href":"/sdks/typescript/versions/3.8.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.7.1","href":"/sdks/typescript/versions/3.7.1"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.7.0","href":"/sdks/typescript/versions/3.7.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.6.0","href":"/sdks/typescript/versions/3.6.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.5.0","href":"/sdks/typescript/versions/3.5.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.4.0","href":"/sdks/typescript/versions/3.4.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.3.0","href":"/sdks/typescript/versions/3.3.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.2.0","href":"/sdks/typescript/versions/3.2.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.1.0","href":"/sdks/typescript/versions/3.1.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v3.0.0","href":"/sdks/typescript/versions/3.0.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v2.2.2","href":"/sdks/typescript/versions/2.2.2"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v2.1.0","href":"/sdks/typescript/versions/2.1.0"},{"title":"Braintrust TypeScript SDK","sidebarTitle":"v2.0.2","href":"/sdks/typescript/versions/2.0.2"},{"title":"TypeScript SDK","sidebarTitle":"v1.1.1","href":"/sdks/typescript/versions/1.1.1"}]},{"group":"Migration guides","pages":[{"title":"Migrate from v2.x to v3.x","sidebarTitle":"v2.x to v3.x","href":"/sdks/typescript/migrations/v2-to-v3"},{"title":"Migrate from v1.x to v2.x","sidebarTitle":"v1.x to v2.x","href":"/sdks/typescript/migrations/v1-to-v2"},{"title":"Migrate from v0.x to v1.x","sidebarTitle":"v0.x to v1.x","href":"/sdks/typescript/migrations/v0-to-v1"}]},{"title":"Changelog","url":"https://github.com/braintrustdata/braintrust-sdk-javascript/releases?q=js-sdk-\u0026expanded=true","href":"/sdks/typescript/changelog"},{"title":"GitHub","url":"https://github.com/braintrustdata/braintrust-sdk-javascript","href":"/sdks/typescript/github"}]},{"group":"Related packages","icon":"puzzle","pages":[{"title":"TypeScript SDK: related packages","sidebarTitle":"Overview","href":"/sdks/typescript/related/index"},{"group":"Audio","boost":0.5,"pages":[{"title":"Audio JS package","sidebarTitle":"v0.1.0 (latest)","href":"/sdks/typescript/related/audio/0.1.0"}]},{"group":"Autoevals","boost":0.5,"pages":[{"title":"Autoevals TypeScript API","sidebarTitle":"v0.3.0 (latest)","href":"/sdks/typescript/related/autoevals/0.3.0"},{"title":"Autoevals TypeScript API","sidebarTitle":"v0.0.132","href":"/sdks/typescript/related/autoevals/0.0.132"},{"title":"Autoevals TypeScript API","sidebarTitle":"v0.0.131","href":"/sdks/typescript/related/autoevals/0.0.131"}]},{"group":"LangChain (deprecated)","boost":0.5,"pages":[{"title":"LangChain JS Integration","sidebarTitle":"v0.2.5 (latest)","href":"/sdks/typescript/related/langchain/0.2.5"},{"title":"LangChain JS Integration","sidebarTitle":"v0.2.4","href":"/sdks/typescript/related/langchain/0.2.4"}]},{"group":"OpenAI Agents","boost":0.5,"pages":[{"title":"OpenAI Agents JS Integration","sidebarTitle":"v0.1.7 (latest)","href":"/sdks/typescript/related/openai-agents/0.1.7"},{"title":"OpenAI Agents JS Integration","sidebarTitle":"v0.1.6","href":"/sdks/typescript/related/openai-agents/0.1.6"}]},{"group":"OpenTelemetry","boost":0.5,"pages":[{"title":"OpenTelemetry JS Integration","sidebarTitle":"v1.1.0 (latest)","href":"/sdks/typescript/related/otel/1.1.0"},{"title":"OpenTelemetry JS Integration","sidebarTitle":"v1.0.2","href":"/sdks/typescript/related/otel/1.0.2"},{"title":"OpenTelemetry JS Integration","sidebarTitle":"v1.0.0","href":"/sdks/typescript/related/otel/1.0.0"}]}]}]},{"dropdown":"Python","icon":"https://mintlify.s3.us-west-1.amazonaws.com/braintrust/images/sdk-icons/python.svg","pages":[{"title":"Python SDK quickstart","sidebarTitle":"Quickstart","href":"/sdks/python/quickstart"},{"group":"Use the SDK","icon":"code","pages":[{"title":"Install and instrument","href":"/sdks/python/install-and-instrument"},{"title":"Python SDK integrations","sidebarTitle":"SDK integrations","href":"/sdks/python/sdk-integrations"},{"title":"Troubleshooting","href":"/sdks/python/troubleshooting"}]},{"group":"Features","icon":"component","pages":[{"title":"Workflow evaluations","href":"/sdks/python/workflow-evaluations"},{"title":"Application logs","href":"/sdks/python/application-logs"},{"title":"Redact sensitive data","href":"/sdks/python/redact-sensitive-data"}]},{"group":"Reference","icon":"file-text","pages":[{"title":"API reference","href":"/sdks/python/api-reference"},{"group":"Versions","boost":0.5,"pages":[{"title":"Braintrust Python SDK","sidebarTitle":"v0.49.1 (latest)","href":"/sdks/python/versions/0.49.1"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.48.1","href":"/sdks/python/versions/0.48.1"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.47.0","href":"/sdks/python/versions/0.47.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.46.1","href":"/sdks/python/versions/0.46.1"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.45.0","href":"/sdks/python/versions/0.45.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.44.1","href":"/sdks/python/versions/0.44.1"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.43.0","href":"/sdks/python/versions/0.43.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.42.0","href":"/sdks/python/versions/0.42.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.41.1","href":"/sdks/python/versions/0.41.1"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.40.0","href":"/sdks/python/versions/0.40.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.39.0","href":"/sdks/python/versions/0.39.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.38.0","href":"/sdks/python/versions/0.38.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.37.0","href":"/sdks/python/versions/0.37.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.36.0","href":"/sdks/python/versions/0.36.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.35.0","href":"/sdks/python/versions/0.35.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.34.0","href":"/sdks/python/versions/0.34.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.33.0","href":"/sdks/python/versions/0.33.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.32.0","href":"/sdks/python/versions/0.32.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.31.1","href":"/sdks/python/versions/0.31.1"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.31.0","href":"/sdks/python/versions/0.31.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.30.1","href":"/sdks/python/versions/0.30.1"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.30.0","href":"/sdks/python/versions/0.30.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.29.0","href":"/sdks/python/versions/0.29.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.28.0","href":"/sdks/python/versions/0.28.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.27.0","href":"/sdks/python/versions/0.27.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.26.0","href":"/sdks/python/versions/0.26.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.25.0","href":"/sdks/python/versions/0.25.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.24.0","href":"/sdks/python/versions/0.24.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.23.0","href":"/sdks/python/versions/0.23.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.22.1","href":"/sdks/python/versions/0.22.1"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.21.0","href":"/sdks/python/versions/0.21.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.20.0","href":"/sdks/python/versions/0.20.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.19.0","href":"/sdks/python/versions/0.19.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.18.0","href":"/sdks/python/versions/0.18.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.17.0","href":"/sdks/python/versions/0.17.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.16.0","href":"/sdks/python/versions/0.16.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.15.0","href":"/sdks/python/versions/0.15.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.14.0","href":"/sdks/python/versions/0.14.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.13.0","href":"/sdks/python/versions/0.13.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.12.1","href":"/sdks/python/versions/0.12.1"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.11.0","href":"/sdks/python/versions/0.11.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.10.0","href":"/sdks/python/versions/0.10.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.9.0","href":"/sdks/python/versions/0.9.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.8.0","href":"/sdks/python/versions/0.8.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.7.0","href":"/sdks/python/versions/0.7.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.6.0","href":"/sdks/python/versions/0.6.0"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.5.6","href":"/sdks/python/versions/0.5.6"},{"title":"Braintrust Python SDK","sidebarTitle":"v0.4.3","href":"/sdks/python/versions/0.4.3"},{"title":"Python SDK","sidebarTitle":"v0.3.15","href":"/sdks/python/versions/0.3.15"}]},{"title":"Changelog","url":"https://github.com/braintrustdata/braintrust-sdk-python/releases","href":"/sdks/python/changelog"},{"title":"GitHub","url":"https://github.com/braintrustdata/braintrust-sdk-python","href":"/sdks/python/github"}]},{"group":"Related packages","icon":"puzzle","pages":[{"title":"Python SDK: related packages","sidebarTitle":"Overview","href":"/sdks/python/related/index"},{"group":"Autoevals","boost":0.5,"pages":[{"title":"Autoevals Python API","sidebarTitle":"v0.3.0 (latest)","href":"/sdks/python/related/autoevals/0.3.0"},{"title":"Autoevals Python API","sidebarTitle":"v0.2.0","href":"/sdks/python/related/autoevals/0.2.0"},{"title":"Autoevals Python API","sidebarTitle":"v0.1.0","href":"/sdks/python/related/autoevals/0.1.0"},{"title":"Autoevals Python API","sidebarTitle":"v0.0.131","href":"/sdks/python/related/autoevals/0.0.131"},{"title":"Autoevals Python API","sidebarTitle":"v0.0.130","href":"/sdks/python/related/autoevals/0.0.130"}]},{"group":"LangChain (deprecated)","boost":0.5,"pages":[{"title":"LangChain Python Integration","sidebarTitle":"v0.3.0 (deprecated)","href":"/sdks/python/related/langchain/0.3.0"},{"title":"LangChain Python Integration","sidebarTitle":"v0.2.1 (deprecated)","href":"/sdks/python/related/langchain/0.2.1"},{"title":"LangChain Python Integration","sidebarTitle":"v0.2.0 (deprecated)","href":"/sdks/python/related/langchain/0.2.0"},{"title":"LangChain Python Integration","sidebarTitle":"v0.1.5 (deprecated)","href":"/sdks/python/related/langchain/0.1.5"}]},{"group":"Google ADK (deprecated)","boost":0.5,"pages":[{"title":"Google ADK Integration","sidebarTitle":"v0.4.0 (deprecated)","href":"/sdks/python/related/adk/0.4.0"},{"title":"Google ADK Integration","sidebarTitle":"v0.3.1 (deprecated)","href":"/sdks/python/related/adk/0.3.1"},{"title":"Google ADK Integration","sidebarTitle":"v0.2.4 (deprecated)","href":"/sdks/python/related/adk/0.2.4"}]}]}]},{"dropdown":"Go","icon":"https://mintlify.s3.us-west-1.amazonaws.com/braintrust/images/sdk-icons/go.svg","pages":[{"title":"Go SDK quickstart","sidebarTitle":"Quickstart","href":"/sdks/go/quickstart"},{"group":"Use the SDK","icon":"code","pages":[{"title":"Install and instrument","href":"/sdks/go/install-and-instrument"},{"title":"Go SDK integrations","sidebarTitle":"SDK integrations","href":"/sdks/go/sdk-integrations"},{"title":"Troubleshooting","href":"/sdks/go/troubleshooting"}]},{"group":"Features","icon":"component","pages":[{"title":"Workflow evaluations","href":"/sdks/go/workflow-evaluations"},{"title":"Redact sensitive data","href":"/sdks/go/redact-sensitive-data"}]},{"group":"Reference","icon":"file-text","pages":[{"title":"API reference","href":"/sdks/go/api-reference"},{"group":"Versions","boost":0.5,"pages":[{"title":"Braintrust Go SDK","sidebarTitle":"v0.19.0 (latest)","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.19.0","href":"/sdks/go/versions/0.19.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.18.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.18.0","href":"/sdks/go/versions/0.18.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.17.2","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.17.2","href":"/sdks/go/versions/0.17.2"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.17.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.17.1","href":"/sdks/go/versions/0.17.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.17.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.17.0","href":"/sdks/go/versions/0.17.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.16.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.16.0","href":"/sdks/go/versions/0.16.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.15.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.15.0","href":"/sdks/go/versions/0.15.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.14.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.14.0","href":"/sdks/go/versions/0.14.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.13.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.13.0","href":"/sdks/go/versions/0.13.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.12.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.12.0","href":"/sdks/go/versions/0.12.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.11.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.11.1","href":"/sdks/go/versions/0.11.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.11.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.11.0","href":"/sdks/go/versions/0.11.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.10.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.10.0","href":"/sdks/go/versions/0.10.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.9.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.9.1","href":"/sdks/go/versions/0.9.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.9.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.9.0","href":"/sdks/go/versions/0.9.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.8.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.8.0","href":"/sdks/go/versions/0.8.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.7.2","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.7.2","href":"/sdks/go/versions/0.7.2"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.7.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.7.0","href":"/sdks/go/versions/0.7.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.6.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.6.1","href":"/sdks/go/versions/0.6.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.6.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.6.0","href":"/sdks/go/versions/0.6.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.5.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.5.0","href":"/sdks/go/versions/0.5.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.4.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.4.1","href":"/sdks/go/versions/0.4.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.4.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.4.0","href":"/sdks/go/versions/0.4.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.3.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.3.1","href":"/sdks/go/versions/0.3.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.3.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.3.0","href":"/sdks/go/versions/0.3.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.2.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.2.1","href":"/sdks/go/versions/0.2.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.2.0-beta.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.2.0-beta.1","href":"/sdks/go/versions/0.2.0-beta.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.1.2","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.1.2","href":"/sdks/go/versions/0.1.2"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.1.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.1.1","href":"/sdks/go/versions/0.1.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.1.1-beta.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.1.1-beta.1","href":"/sdks/go/versions/0.1.1-beta.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.1.0","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.1.0","href":"/sdks/go/versions/0.1.0"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.0.3","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.0.3","href":"/sdks/go/versions/0.0.3"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.0.2","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.0.2","href":"/sdks/go/versions/0.0.2"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.0.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.0.1","href":"/sdks/go/versions/0.0.1"},{"title":"Braintrust Go SDK","sidebarTitle":"v0.0.1-beta.1","url":"https://pkg.go.dev/github.com/braintrustdata/braintrust-sdk-go@v0.0.1-beta.1","href":"/sdks/go/versions/0.0.1-beta.1"}]},{"group":"Migration guides","pages":[{"title":"Migrate from v0.3.x to v0.4.x","sidebarTitle":"v0.3.x to v0.4.x","href":"/sdks/go/migrations/v0-3-to-v0-4"}]},{"title":"Changelog","url":"https://github.com/braintrustdata/braintrust-sdk-go/releases","href":"/sdks/go/changelog"},{"title":"GitHub","url":"https://github.com/braintrustdata/braintrust-sdk-go","href":"/sdks/go/github"}]}]},{"dropdown":"Java","icon":"https://mintlify.s3.us-west-1.amazonaws.com/braintrust/images/sdk-icons/java.svg","pages":[{"title":"Java SDK quickstart","sidebarTitle":"Quickstart","href":"/sdks/java/quickstart"},{"group":"Use the SDK","icon":"code","pages":[{"title":"Install and instrument","href":"/sdks/java/install-and-instrument"},{"title":"Java SDK integrations","sidebarTitle":"SDK integrations","href":"/sdks/java/sdk-integrations"},{"title":"Troubleshooting","href":"/sdks/java/troubleshooting"}]},{"group":"Features","icon":"component","pages":[{"title":"Redact sensitive data","href":"/sdks/java/redact-sensitive-data"}]},{"group":"Reference","icon":"file-text","pages":[{"title":"API reference","href":"/sdks/java/api-reference"},{"group":"Versions","boost":0.5,"pages":[{"title":"0.3.26","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.26","href":"/sdks/java/versions/0.3.26"},{"title":"0.3.25","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.25","href":"/sdks/java/versions/0.3.25"},{"title":"0.3.24","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.24","href":"/sdks/java/versions/0.3.24"},{"title":"0.3.23","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.23","href":"/sdks/java/versions/0.3.23"},{"title":"0.3.22","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.22","href":"/sdks/java/versions/0.3.22"},{"title":"0.3.21","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.21","href":"/sdks/java/versions/0.3.21"},{"title":"0.3.20","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.20","href":"/sdks/java/versions/0.3.20"},{"title":"0.3.19","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.19","href":"/sdks/java/versions/0.3.19"},{"title":"0.3.18","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.18","href":"/sdks/java/versions/0.3.18"},{"title":"0.3.17","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.17","href":"/sdks/java/versions/0.3.17"},{"title":"0.3.16","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.16","href":"/sdks/java/versions/0.3.16"},{"title":"0.3.15","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.15","href":"/sdks/java/versions/0.3.15"},{"title":"0.3.14","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.14","href":"/sdks/java/versions/0.3.14"},{"title":"0.3.13","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.13","href":"/sdks/java/versions/0.3.13"},{"title":"0.3.12","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.12","href":"/sdks/java/versions/0.3.12"},{"title":"0.3.11","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.11","href":"/sdks/java/versions/0.3.11"},{"title":"0.3.10","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.10","href":"/sdks/java/versions/0.3.10"},{"title":"0.3.9","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.9","href":"/sdks/java/versions/0.3.9"},{"title":"0.3.8","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.8","href":"/sdks/java/versions/0.3.8"},{"title":"0.3.7","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.7","href":"/sdks/java/versions/0.3.7"},{"title":"0.3.6","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.6","href":"/sdks/java/versions/0.3.6"},{"title":"0.3.5","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.5","href":"/sdks/java/versions/0.3.5"},{"title":"0.3.4","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.4","href":"/sdks/java/versions/0.3.4"},{"title":"0.3.3","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.3","href":"/sdks/java/versions/0.3.3"},{"title":"0.3.2","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.2","href":"/sdks/java/versions/0.3.2"},{"title":"0.3.1","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.1","href":"/sdks/java/versions/0.3.1"},{"title":"0.3.0","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.3.0","href":"/sdks/java/versions/0.3.0"},{"title":"0.2.11","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.11","href":"/sdks/java/versions/0.2.11"},{"title":"0.2.10","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.10","href":"/sdks/java/versions/0.2.10"},{"title":"0.2.9","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.9","href":"/sdks/java/versions/0.2.9"},{"title":"0.2.8","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.8","href":"/sdks/java/versions/0.2.8"},{"title":"0.2.7","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.7","href":"/sdks/java/versions/0.2.7"},{"title":"0.2.6","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.6","href":"/sdks/java/versions/0.2.6"},{"title":"0.2.5","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.5","href":"/sdks/java/versions/0.2.5"},{"title":"0.2.4","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.4","href":"/sdks/java/versions/0.2.4"},{"title":"0.2.3","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.3","href":"/sdks/java/versions/0.2.3"},{"title":"0.2.2","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.2","href":"/sdks/java/versions/0.2.2"},{"title":"0.2.1","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.1","href":"/sdks/java/versions/0.2.1"},{"title":"0.2.0","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.2.0","href":"/sdks/java/versions/0.2.0"},{"title":"0.1.3","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.1.3","href":"/sdks/java/versions/0.1.3"},{"title":"0.1.2","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.1.2","href":"/sdks/java/versions/0.1.2"},{"title":"0.1.1","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.1.1","href":"/sdks/java/versions/0.1.1"},{"title":"0.1.0","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.1.0","href":"/sdks/java/versions/0.1.0"},{"title":"0.0.2","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.0.2","href":"/sdks/java/versions/0.0.2"},{"title":"0.0.1","url":"https://javadoc.io/doc/dev.braintrust/braintrust-sdk-java/0.0.1","href":"/sdks/java/versions/0.0.1"}]},{"title":"Changelog","url":"https://github.com/braintrustdata/braintrust-sdk-java/releases","href":"/sdks/java/changelog"},{"title":"GitHub","url":"https://github.com/braintrustdata/braintrust-sdk-java","href":"/sdks/java/github"}]}]},{"dropdown":"Ruby","icon":"https://mintlify.s3.us-west-1.amazonaws.com/braintrust/images/sdk-icons/ruby.svg","pages":[{"title":"Ruby SDK quickstart","sidebarTitle":"Quickstart","href":"/sdks/ruby/quickstart"},{"group":"Use the SDK","icon":"code","pages":[{"title":"Install and instrument","href":"/sdks/ruby/install-and-instrument"},{"title":"Ruby SDK integrations","sidebarTitle":"SDK integrations","href":"/sdks/ruby/sdk-integrations"},{"title":"Troubleshooting","href":"/sdks/ruby/troubleshooting"}]},{"group":"Features","icon":"component","pages":[{"title":"Redact sensitive data","href":"/sdks/ruby/redact-sensitive-data"}]},{"group":"Reference","icon":"file-text","pages":[{"title":"API reference","href":"/sdks/ruby/api-reference"},{"group":"Versions","boost":0.5,"pages":[{"title":"0.6.0","url":"https://gemdocs.org/gems/braintrust/0.6.0/","href":"/sdks/ruby/versions/0.6.0"},{"title":"0.5.0","url":"https://gemdocs.org/gems/braintrust/0.5.0/","href":"/sdks/ruby/versions/0.5.0"},{"title":"0.4.2","url":"https://gemdocs.org/gems/braintrust/0.4.2/","href":"/sdks/ruby/versions/0.4.2"},{"title":"0.4.1","url":"https://gemdocs.org/gems/braintrust/0.4.1/","href":"/sdks/ruby/versions/0.4.1"},{"title":"0.4.0","url":"https://gemdocs.org/gems/braintrust/0.4.0/","href":"/sdks/ruby/versions/0.4.0"},{"title":"0.3.2","url":"https://gemdocs.org/gems/braintrust/0.3.2/","href":"/sdks/ruby/versions/0.3.2"},{"title":"0.3.1","url":"https://gemdocs.org/gems/braintrust/0.3.1/","href":"/sdks/ruby/versions/0.3.1"},{"title":"0.3.0","url":"https://gemdocs.org/gems/braintrust/0.3.0/","href":"/sdks/ruby/versions/0.3.0"},{"title":"0.2.1","url":"https://gemdocs.org/gems/braintrust/0.2.1/","href":"/sdks/ruby/versions/0.2.1"},{"title":"0.2.0","url":"https://gemdocs.org/gems/braintrust/0.2.0/","href":"/sdks/ruby/versions/0.2.0"},{"title":"0.1.4","url":"https://gemdocs.org/gems/braintrust/0.1.4/","href":"/sdks/ruby/versions/0.1.4"},{"title":"0.1.3","url":"https://gemdocs.org/gems/braintrust/0.1.3/","href":"/sdks/ruby/versions/0.1.3"},{"title":"0.1.2","url":"https://gemdocs.org/gems/braintrust/0.1.2/","href":"/sdks/ruby/versions/0.1.2"},{"title":"0.1.1","url":"https://gemdocs.org/gems/braintrust/0.1.1/","href":"/sdks/ruby/versions/0.1.1"},{"title":"0.1.0","url":"https://gemdocs.org/gems/braintrust/0.1.0/","href":"/sdks/ruby/versions/0.1.0"},{"title":"0.0.12","url":"https://gemdocs.org/gems/braintrust/0.0.12/","href":"/sdks/ruby/versions/0.0.12"},{"title":"0.0.11","url":"https://gemdocs.org/gems/braintrust/0.0.11/","href":"/sdks/ruby/versions/0.0.11"},{"title":"0.0.10","url":"https://gemdocs.org/gems/braintrust/0.0.10/","href":"/sdks/ruby/versions/0.0.10"},{"title":"0.0.9","url":"https://gemdocs.org/gems/braintrust/0.0.9/","href":"/sdks/ruby/versions/0.0.9"},{"title":"0.0.8","url":"https://gemdocs.org/gems/braintrust/0.0.8/","href":"/sdks/ruby/versions/0.0.8"},{"title":"0.0.7","url":"https://gemdocs.org/gems/braintrust/0.0.7/","href":"/sdks/ruby/versions/0.0.7"},{"title":"0.0.6","url":"https://gemdocs.org/gems/braintrust/0.0.6/","href":"/sdks/ruby/versions/0.0.6"},{"title":"0.0.5","url":"https://gemdocs.org/gems/braintrust/0.0.5/","href":"/sdks/ruby/versions/0.0.5"},{"title":"0.0.4","url":"https://gemdocs.org/gems/braintrust/0.0.4/","href":"/sdks/ruby/versions/0.0.4"},{"title":"0.0.3","url":"https://gemdocs.org/gems/braintrust/0.0.3/","href":"/sdks/ruby/versions/0.0.3"},{"title":"0.0.2","url":"https://gemdocs.org/gems/braintrust/0.0.2/","href":"/sdks/ruby/versions/0.0.2"},{"title":"0.0.1","url":"https://gemdocs.org/gems/braintrust/0.0.1/","href":"/sdks/ruby/versions/0.0.1"}]},{"title":"Changelog","url":"https://github.com/braintrustdata/braintrust-sdk-ruby/releases","href":"/sdks/ruby/changelog"},{"title":"GitHub","url":"https://github.com/braintrustdata/braintrust-sdk-ruby","href":"/sdks/ruby/github"}]}]},{"dropdown":"C#","icon":"https://mintlify.s3.us-west-1.amazonaws.com/braintrust/images/sdk-icons/csharp.svg","pages":[{"title":"C# SDK quickstart","sidebarTitle":"Quickstart","href":"/sdks/csharp/quickstart"},{"group":"Use the SDK","icon":"code","pages":[{"title":"Install and instrument","href":"/sdks/csharp/install-and-instrument"},{"title":"C# SDK integrations","sidebarTitle":"SDK integrations","href":"/sdks/csharp/sdk-integrations"},{"title":"Troubleshooting","href":"/sdks/csharp/troubleshooting"}]},{"group":"Reference","icon":"file-text","pages":[{"title":"API reference","href":"/sdks/csharp/api-reference"},{"title":"Changelog","url":"https://github.com/braintrustdata/braintrust-sdk-dotnet/releases","href":"/sdks/csharp/changelog"},{"title":"GitHub","url":"https://github.com/braintrustdata/braintrust-sdk-dotnet","href":"/sdks/csharp/github"}]}]}]},{"tab":"Reference","icon":"code","pages":[{"title":"Reference","sidebarTitle":"Overview","href":"/reference"},{"title":"Glossary","href":"/reference/glossary"},{"group":"API","icon":"cloud","pages":[{"title":"API Reference","sidebarTitle":"Overview","href":"/api-reference/index"},{"title":"Query by SQL","href":"/api-reference/query"},{"group":"Resources","pages":[{"group":"Projects","pages":[{"title":"List projects","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project","href":"/api-reference/projects/list-projects"},{"title":"Create project","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/project","href":"/api-reference/projects/create-project"},{"title":"Get project","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project/{project_id}","href":"/api-reference/projects/get-project"},{"title":"Delete project","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/project/{project_id}","href":"/api-reference/projects/delete-project"},{"title":"Partially update project","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/project/{project_id}","href":"/api-reference/projects/partially-update-project"}]},{"group":"Logs","pages":[{"title":"Insert project logs events","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/project_logs/{project_id}/insert","href":"/api-reference/logs/insert-project-logs-events"},{"title":"Fetch project logs (GET form)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project_logs/{project_id}/fetch","href":"/api-reference/logs/fetch-project-logs-get-form"},{"title":"Fetch project logs (POST form)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/project_logs/{project_id}/fetch","href":"/api-reference/logs/fetch-project-logs-post-form"},{"title":"Feedback for project logs events","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/project_logs/{project_id}/feedback","href":"/api-reference/logs/feedback-for-project-logs-events"}]},{"group":"Experiments","pages":[{"title":"List experiments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/experiment","href":"/api-reference/experiments/list-experiments"},{"title":"Create experiment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/experiment","href":"/api-reference/experiments/create-experiment"},{"title":"Get experiment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/experiment/{experiment_id}","href":"/api-reference/experiments/get-experiment"},{"title":"Delete experiment","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/experiment/{experiment_id}","href":"/api-reference/experiments/delete-experiment"},{"title":"Partially update experiment","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/experiment/{experiment_id}","href":"/api-reference/experiments/partially-update-experiment"},{"title":"Insert experiment events","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/experiment/{experiment_id}/insert","href":"/api-reference/experiments/insert-experiment-events"},{"title":"Fetch experiment (GET form)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/experiment/{experiment_id}/fetch","href":"/api-reference/experiments/fetch-experiment-get-form"},{"title":"Fetch experiment (POST form)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/experiment/{experiment_id}/fetch","href":"/api-reference/experiments/fetch-experiment-post-form"},{"title":"Feedback for experiment events","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/experiment/{experiment_id}/feedback","href":"/api-reference/experiments/feedback-for-experiment-events"},{"title":"Summarize experiment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/experiment/{experiment_id}/summarize","href":"/api-reference/experiments/summarize-experiment"}]},{"group":"Datasets","pages":[{"title":"List datasets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/dataset","href":"/api-reference/datasets/list-datasets"},{"title":"Create dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/dataset","href":"/api-reference/datasets/create-dataset"},{"title":"Get dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/dataset/{dataset_id}","href":"/api-reference/datasets/get-dataset"},{"title":"Delete dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/dataset/{dataset_id}","href":"/api-reference/datasets/delete-dataset"},{"title":"Partially update dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/dataset/{dataset_id}","href":"/api-reference/datasets/partially-update-dataset"},{"title":"Insert dataset events","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/dataset/{dataset_id}/insert","href":"/api-reference/datasets/insert-dataset-events"},{"title":"Fetch dataset (GET form)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/dataset/{dataset_id}/fetch","href":"/api-reference/datasets/fetch-dataset-get-form"},{"title":"Fetch dataset (POST form)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/dataset/{dataset_id}/fetch","href":"/api-reference/datasets/fetch-dataset-post-form"},{"title":"Feedback for dataset events","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/dataset/{dataset_id}/feedback","href":"/api-reference/datasets/feedback-for-dataset-events"},{"title":"Summarize dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/dataset/{dataset_id}/summarize","href":"/api-reference/datasets/summarize-dataset"},{"title":"Preview dataset restore","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/dataset/{dataset_id}/restore/preview","href":"/api-reference/datasets/preview-dataset-restore"},{"title":"Restore dataset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/dataset/{dataset_id}/restore","href":"/api-reference/datasets/restore-dataset"}]},{"group":"Prompts","pages":[{"title":"List prompts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/prompt","href":"/api-reference/prompts/list-prompts"},{"title":"Create or replace prompt","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/prompt","href":"/api-reference/prompts/create-or-replace-prompt"},{"title":"Create prompt","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/prompt","href":"/api-reference/prompts/create-prompt"},{"title":"Get prompt","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/prompt/{prompt_id}","href":"/api-reference/prompts/get-prompt"},{"title":"Delete prompt","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/prompt/{prompt_id}","href":"/api-reference/prompts/delete-prompt"},{"title":"Partially update prompt","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/prompt/{prompt_id}","href":"/api-reference/prompts/partially-update-prompt"}]},{"group":"Roles","pages":[{"title":"List roles","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/role","href":"/api-reference/roles/list-roles"},{"title":"Create or replace role","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/role","href":"/api-reference/roles/create-or-replace-role"},{"title":"Create role","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/role","href":"/api-reference/roles/create-role"},{"title":"Get role","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/role/{role_id}","href":"/api-reference/roles/get-role"},{"title":"Delete role","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/role/{role_id}","href":"/api-reference/roles/delete-role"},{"title":"Partially update role","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/role/{role_id}","href":"/api-reference/roles/partially-update-role"}]},{"group":"Groups","pages":[{"title":"List groups","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/group","href":"/api-reference/groups/list-groups"},{"title":"Create or replace group","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/group","href":"/api-reference/groups/create-or-replace-group"},{"title":"Create group","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/group","href":"/api-reference/groups/create-group"},{"title":"Get group","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/group/{group_id}","href":"/api-reference/groups/get-group"},{"title":"Delete group","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/group/{group_id}","href":"/api-reference/groups/delete-group"},{"title":"Partially update group","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/group/{group_id}","href":"/api-reference/groups/partially-update-group"}]},{"group":"ProjectGroups","pages":[{"title":"List project groups","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project_group","href":"/api-reference/projectgroups/list-project-groups"},{"title":"Create or replace project group","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/project_group","href":"/api-reference/projectgroups/create-or-replace-project-group"},{"title":"Create project group","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/project_group","href":"/api-reference/projectgroups/create-project-group"},{"title":"Get project group","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project_group/{project_group_id}","href":"/api-reference/projectgroups/get-project-group"},{"title":"Delete project group","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/project_group/{project_group_id}","href":"/api-reference/projectgroups/delete-project-group"},{"title":"Partially update project group","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/project_group/{project_group_id}","href":"/api-reference/projectgroups/partially-update-project-group"}]},{"group":"Acls","pages":[{"title":"List ACLs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/acl","href":"/api-reference/acls/list-acls"},{"title":"Create ACL","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/acl","href":"/api-reference/acls/create-acl"},{"title":"Delete single ACL","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/acl","href":"/api-reference/acls/delete-single-acl"},{"title":"Get ACL","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/acl/{acl_id}","href":"/api-reference/acls/get-acl"},{"title":"Delete ACL","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/acl/{acl_id}","href":"/api-reference/acls/delete-acl"},{"title":"Batch update ACLs","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/acl/batch_update","href":"/api-reference/acls/batch-update-acls"},{"title":"List org ACLs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/acl/list_org","href":"/api-reference/acls/list-org-acls"}]},{"group":"Users","pages":[{"title":"List users","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/user","href":"/api-reference/users/list-users"},{"title":"Get user","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/user/{user_id}","href":"/api-reference/users/get-user"}]},{"group":"Agents","pages":[{"title":"List agents","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent","href":"/api-reference/agents/list-agents"},{"title":"Create or replace agent","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/agent","href":"/api-reference/agents/create-or-replace-agent"},{"title":"Create agent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent","href":"/api-reference/agents/create-agent"},{"title":"Get agent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/{agent_id}","href":"/api-reference/agents/get-agent"},{"title":"Delete agent","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/agent/{agent_id}","href":"/api-reference/agents/delete-agent"},{"title":"Partially update agent","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/agent/{agent_id}","href":"/api-reference/agents/partially-update-agent"}]},{"group":"ProjectAutomations","pages":[{"title":"List project automations","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project_automation","href":"/api-reference/projectautomations/list-project-automations"},{"title":"Create or replace project automation","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/project_automation","href":"/api-reference/projectautomations/create-or-replace-project-automation"},{"title":"Create project automation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/project_automation","href":"/api-reference/projectautomations/create-project-automation"},{"title":"Get project automation","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project_automation/{project_automation_id}","href":"/api-reference/projectautomations/get-project-automation"},{"title":"Delete project automation","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/project_automation/{project_automation_id}","href":"/api-reference/projectautomations/delete-project-automation"},{"title":"Partially update project automation","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/project_automation/{project_automation_id}","href":"/api-reference/projectautomations/partially-update-project-automation"}]},{"group":"OrgAutomations","pages":[{"title":"List org automations","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/org_automation","href":"/api-reference/orgautomations/list-org-automations"},{"title":"Create or replace org automation","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/org_automation","href":"/api-reference/orgautomations/create-or-replace-org-automation"},{"title":"Create org automation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/org_automation","href":"/api-reference/orgautomations/create-org-automation"},{"title":"Get org automation","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/org_automation/{org_automation_id}","href":"/api-reference/orgautomations/get-org-automation"},{"title":"Delete org automation","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/org_automation/{org_automation_id}","href":"/api-reference/orgautomations/delete-org-automation"},{"title":"Partially update org automation","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/org_automation/{org_automation_id}","href":"/api-reference/orgautomations/partially-update-org-automation"}]},{"group":"ProjectScores","pages":[{"title":"List project scores","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project_score","href":"/api-reference/projectscores/list-project-scores"},{"title":"Create or replace project score","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/project_score","href":"/api-reference/projectscores/create-or-replace-project-score"},{"title":"Create project score","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/project_score","href":"/api-reference/projectscores/create-project-score"},{"title":"Get project score","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project_score/{project_score_id}","href":"/api-reference/projectscores/get-project-score"},{"title":"Delete project score","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/project_score/{project_score_id}","href":"/api-reference/projectscores/delete-project-score"},{"title":"Partially update project score","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/project_score/{project_score_id}","href":"/api-reference/projectscores/partially-update-project-score"}]},{"group":"ProjectTags","pages":[{"title":"List project tags","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project_tag","href":"/api-reference/projecttags/list-project-tags"},{"title":"Create or replace project tag","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/project_tag","href":"/api-reference/projecttags/create-or-replace-project-tag"},{"title":"Create project tag","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/project_tag","href":"/api-reference/projecttags/create-project-tag"},{"title":"Get project tag","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project_tag/{project_tag_id}","href":"/api-reference/projecttags/get-project-tag"},{"title":"Delete project tag","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/project_tag/{project_tag_id}","href":"/api-reference/projecttags/delete-project-tag"},{"title":"Partially update project tag","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/project_tag/{project_tag_id}","href":"/api-reference/projecttags/partially-update-project-tag"}]},{"group":"SpanIframes","pages":[{"title":"List span iframes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/span_iframe","href":"/api-reference/spaniframes/list-span-iframes"},{"title":"Create or replace span iframe","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/span_iframe","href":"/api-reference/spaniframes/create-or-replace-span-iframe"},{"title":"Create span iframe","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/span_iframe","href":"/api-reference/spaniframes/create-span-iframe"},{"title":"Get span iframe","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/span_iframe/{span_iframe_id}","href":"/api-reference/spaniframes/get-span-iframe"},{"title":"Delete span iframe","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/span_iframe/{span_iframe_id}","href":"/api-reference/spaniframes/delete-span-iframe"},{"title":"Partially update span iframe","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/span_iframe/{span_iframe_id}","href":"/api-reference/spaniframes/partially-update-span-iframe"}]},{"group":"Functions","pages":[{"title":"List functions","description":"List out all functions. The functions are sorted by creation date, with the most recently-created functions coming first","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/function","href":"/api-reference/functions/list-functions"},{"title":"Create or replace function","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/function","href":"/api-reference/functions/create-or-replace-function"},{"title":"Create function","description":"Create a new function. If there is an existing function in the project with the same slug as the one specified in the request, a new version of the function will be appended and returned","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/function","href":"/api-reference/functions/create-function"},{"title":"Get function","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/function/{function_id}","href":"/api-reference/functions/get-function"},{"title":"Delete function","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/function/{function_id}","href":"/api-reference/functions/delete-function"},{"title":"Partially update function","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/function/{function_id}","href":"/api-reference/functions/partially-update-function"},{"title":"Invoke function","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/function/{function_id}/invoke","href":"/api-reference/functions/invoke-function"}]},{"group":"Views","pages":[{"title":"List views","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/view","href":"/api-reference/views/list-views"},{"title":"Create or replace view","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/view","href":"/api-reference/views/create-or-replace-view"},{"title":"Create view","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/view","href":"/api-reference/views/create-view"},{"title":"Get view","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/view/{view_id}","href":"/api-reference/views/get-view"},{"title":"Delete view","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/view/{view_id}","href":"/api-reference/views/delete-view"},{"title":"Partially update view","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/view/{view_id}","href":"/api-reference/views/partially-update-view"}]},{"group":"Organizations","pages":[{"title":"List organizations","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/organization","href":"/api-reference/organizations/list-organizations"},{"title":"Get organization","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/organization/{organization_id}","href":"/api-reference/organizations/get-organization"},{"title":"Partially update organization","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/organization/{organization_id}","href":"/api-reference/organizations/partially-update-organization"},{"title":"Modify organization membership","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/organization/members","href":"/api-reference/organizations/modify-organization-membership"},{"title":"List organization API keys","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/organization/api_keys","href":"/api-reference/organizations/list-organization-api-keys"}]},{"group":"ApiKeys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/api_key","href":"/api-reference/apikeys/list-api-keys"},{"title":"Get API key","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/api_key/{api_key_id}","href":"/api-reference/apikeys/get-api-key"},{"title":"Delete API key","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/api_key/{api_key_id}","href":"/api-reference/apikeys/delete-api-key"}]},{"group":"ServiceTokens","pages":[{"title":"List service tokens","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/service_token","href":"/api-reference/servicetokens/list-service-tokens"},{"title":"Create or replace service token","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/service_token","href":"/api-reference/servicetokens/create-or-replace-service-token"},{"title":"Create service token","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/service_token","href":"/api-reference/servicetokens/create-service-token"},{"title":"Delete single service token","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/service_token","href":"/api-reference/servicetokens/delete-single-service-token"},{"title":"Get service token","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/service_token/{service_token_id}","href":"/api-reference/servicetokens/get-service-token"},{"title":"Delete service token","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/service_token/{service_token_id}","href":"/api-reference/servicetokens/delete-service-token"}]},{"group":"AiSecrets","pages":[{"title":"List AI secrets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/ai_secret","href":"/api-reference/aisecrets/list-ai-secrets"},{"title":"Create or replace AI secret","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/ai_secret","href":"/api-reference/aisecrets/create-or-replace-ai-secret"},{"title":"Create AI secret","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/ai_secret","href":"/api-reference/aisecrets/create-ai-secret"},{"title":"Delete single AI secret","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/ai_secret","href":"/api-reference/aisecrets/delete-single-ai-secret"},{"title":"Get AI secret","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/ai_secret/{ai_secret_id}","href":"/api-reference/aisecrets/get-ai-secret"},{"title":"Delete AI secret","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/ai_secret/{ai_secret_id}","href":"/api-reference/aisecrets/delete-ai-secret"},{"title":"Partially update AI secret","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/ai_secret/{ai_secret_id}","href":"/api-reference/aisecrets/partially-update-ai-secret"}]},{"group":"EnvVars","pages":[{"title":"List env vars","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/env_var","href":"/api-reference/envvars/list-env-vars"},{"title":"Create or replace env var","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/env_var","href":"/api-reference/envvars/create-or-replace-env-var"},{"title":"Create env var","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/env_var","href":"/api-reference/envvars/create-env-var"},{"title":"Get env var","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/env_var/{env_var_id}","href":"/api-reference/envvars/get-env-var"},{"title":"Delete env var","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/env_var/{env_var_id}","href":"/api-reference/envvars/delete-env-var"},{"title":"Partially update env var","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/env_var/{env_var_id}","href":"/api-reference/envvars/partially-update-env-var"}]},{"group":"McpServers","pages":[{"title":"List MCP servers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/mcp_server","href":"/api-reference/mcpservers/list-mcp-servers"},{"title":"Create or replace MCP server","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/mcp_server","href":"/api-reference/mcpservers/create-or-replace-mcp-server"},{"title":"Create MCP server","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/mcp_server","href":"/api-reference/mcpservers/create-mcp-server"},{"title":"Get MCP server","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/mcp_server/{mcp_server_id}","href":"/api-reference/mcpservers/get-mcp-server"},{"title":"Delete MCP server","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/mcp_server/{mcp_server_id}","href":"/api-reference/mcpservers/delete-mcp-server"},{"title":"Partially update MCP server","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/mcp_server/{mcp_server_id}","href":"/api-reference/mcpservers/partially-update-mcp-server"}]},{"group":"DatasetSnapshots","pages":[{"title":"List dataset snapshots","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/dataset_snapshot","href":"/api-reference/datasetsnapshots/list-dataset-snapshots"},{"title":"Create or replace dataset snapshot","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/dataset_snapshot","href":"/api-reference/datasetsnapshots/create-or-replace-dataset-snapshot"},{"title":"Create dataset snapshot","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/dataset_snapshot","href":"/api-reference/datasetsnapshots/create-dataset-snapshot"},{"title":"Get dataset snapshot","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/dataset_snapshot/{dataset_snapshot_id}","href":"/api-reference/datasetsnapshots/get-dataset-snapshot"},{"title":"Delete dataset snapshot","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/dataset_snapshot/{dataset_snapshot_id}","href":"/api-reference/datasetsnapshots/delete-dataset-snapshot"},{"title":"Partially update dataset snapshot","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/dataset_snapshot/{dataset_snapshot_id}","href":"/api-reference/datasetsnapshots/partially-update-dataset-snapshot"}]},{"group":"Simulated users","pages":[{"title":"List simulated users","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project/{project_id}/simulated_user","href":"/api-reference/simulated-users/list-simulated-users"},{"title":"Create simulated user","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/project/{project_id}/simulated_user","href":"/api-reference/simulated-users/create-simulated-user"},{"title":"Get simulated user","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/project/{project_id}/simulated_user/{id}","href":"/api-reference/simulated-users/get-simulated-user"},{"title":"Delete simulated user","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/project/{project_id}/simulated_user/{id}","href":"/api-reference/simulated-users/delete-simulated-user"},{"title":"Update simulated user","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/project/{project_id}/simulated_user/{id}","href":"/api-reference/simulated-users/update-simulated-user"}]},{"group":"Environments","pages":[{"title":"List environments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /environment","href":"/api-reference/environments/list-environments"},{"title":"Create environment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /environment","href":"/api-reference/environments/create-environment"},{"title":"Get environment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /environment/{environment_id}","href":"/api-reference/environments/get-environment"},{"title":"Delete environment","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /environment/{environment_id}","href":"/api-reference/environments/delete-environment"},{"title":"Partially update environment","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /environment/{environment_id}","href":"/api-reference/environments/partially-update-environment"}]},{"group":"Other","pages":[{"title":"Hello world endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1","href":"/api-reference/other/hello-world-endpoint"}]},{"group":"CrossObject","pages":[{"title":"Cross-object insert","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/insert","href":"/api-reference/crossobject/cross-object-insert"}]},{"group":"Proxy","pages":[{"title":"Proxy chat/completions","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/proxy/chat/completions","href":"/api-reference/proxy/proxy-chatcompletions"},{"title":"Proxy completions","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/proxy/completions","href":"/api-reference/proxy/proxy-completions"},{"title":"Proxy a model to chat/completions or completions automatically","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/proxy/auto","href":"/api-reference/proxy/proxy-a-model-to-chatcompletions-or-completions-automatically"},{"title":"Proxy embeddings","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/proxy/embeddings","href":"/api-reference/proxy/proxy-embeddings"},{"title":"Create temporary credential","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/proxy/credentials","href":"/api-reference/proxy/create-temporary-credential"},{"title":"Proxy any OpenAI request (fallback)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/proxy/{path+}","href":"/api-reference/proxy/proxy-any-openai-request-fallback"}]},{"group":"Evals","pages":[{"title":"Launch an eval","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/eval","href":"/api-reference/evals/launch-an-eval"}]}]}]},{"group":"CLI","boost":2,"icon":"terminal","pages":[{"title":"CLI quickstart","sidebarTitle":"Quickstart","href":"/reference/cli/quickstart"},{"group":"Commands","pages":[{"title":"CLI overview","sidebarTitle":"Overview","href":"/reference/cli/overview"},{"title":"bt custom-views","sidebarTitle":"bt custom-views","href":"/reference/cli/custom-views"},{"title":"bt datasets","sidebarTitle":"bt datasets","href":"/reference/cli/datasets"},{"title":"bt docs","sidebarTitle":"bt docs","href":"/reference/cli/docs"},{"title":"bt environments","sidebarTitle":"bt environments","href":"/reference/cli/environments"},{"title":"bt eval","sidebarTitle":"bt eval","href":"/reference/cli/eval"},{"title":"bt experiments","sidebarTitle":"bt experiments","href":"/reference/cli/experiments"},{"title":"bt functions","sidebarTitle":"bt functions","href":"/reference/cli/functions"},{"title":"bt init","sidebarTitle":"bt init","href":"/reference/cli/init"},{"title":"bt login","sidebarTitle":"bt login","href":"/reference/cli/login"},{"title":"bt logout","sidebarTitle":"bt logout","href":"/reference/cli/logout"},{"title":"bt mcp","sidebarTitle":"bt mcp","href":"/reference/cli/mcp"},{"title":"bt observability","sidebarTitle":"bt observability","href":"/reference/cli/observability"},{"title":"bt preprocessors","sidebarTitle":"bt preprocessors","href":"/reference/cli/preprocessors"},{"title":"bt profiles","sidebarTitle":"bt profiles","href":"/reference/cli/profiles"},{"title":"bt projects","sidebarTitle":"bt projects","href":"/reference/cli/projects"},{"title":"bt prompts","sidebarTitle":"bt prompts","href":"/reference/cli/prompts"},{"title":"bt scorers","sidebarTitle":"bt scorers","href":"/reference/cli/scorers"},{"title":"bt setup","sidebarTitle":"bt setup","href":"/reference/cli/setup"},{"title":"bt sql","sidebarTitle":"bt sql","href":"/reference/cli/sql"},{"title":"bt status","sidebarTitle":"bt status","href":"/reference/cli/status"},{"title":"bt switch","sidebarTitle":"bt switch","href":"/reference/cli/switch"},{"title":"bt sync","sidebarTitle":"bt sync","href":"/reference/cli/sync"},{"title":"bt tools","sidebarTitle":"bt tools","href":"/reference/cli/tools"},{"title":"bt topics","sidebarTitle":"bt topics","href":"/reference/cli/topics"},{"title":"bt trace","sidebarTitle":"bt trace","href":"/reference/cli/trace"},{"title":"bt update","sidebarTitle":"bt update","href":"/reference/cli/update"},{"title":"bt view","sidebarTitle":"bt view","href":"/reference/cli/view"}]},{"title":"Migrate bt","sidebarTitle":"Migrate","href":"/reference/cli/migrate"}]},{"group":"Terraform","icon":"boxes","pages":[{"title":"Terraform provider","sidebarTitle":"Overview","href":"/reference/terraform"},{"title":"Terraform Registry","sidebarTitle":"Reference","url":"https://registry.terraform.io/providers/braintrustdata/braintrust/latest/docs","href":"/reference/terraform-registry"}]},{"group":"SQL","icon":"database","pages":[{"title":"SQL reference","sidebarTitle":"Overview","href":"/reference/sql/index"},{"title":"How filtering works","sidebarTitle":"Filtering","href":"/reference/sql/filtering"},{"title":"SQL query structure","sidebarTitle":"Query structure","href":"/reference/sql/query-structure"},{"title":"SQL functions and operators","sidebarTitle":"Functions and operators","href":"/reference/sql/functions"},{"title":"Example queries","sidebarTitle":"Examples","href":"/reference/sql/examples"},{"title":"SQL best practices","sidebarTitle":"Best practices","href":"/reference/sql/best-practices"}]}]},{"tab":"Cookbook","icon":"notebook","pages":[{"title":"Cookbook","href":"/cookbook"}]},{"tab":"Troubleshooting","icon":"wrench","pages":[{"title":"Troubleshooting","href":"/kb"}]},{"tab":"Changelog","icon":"mailbox","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Create or replace function - Braintrust","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B7XKH4J3.js","utils-lOYzL7z-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DF6jUUIM.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dpsj5f7C.js","snippetPresets-CYeiDe8v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CUFz1YZ_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D8H_iLS4.js","shallow-DdluZBHX.js","getApiPlaygroundDisplay-B9922vev.js","CodeSnippet-CMoRNGYs.js","CodeSnippets-DwyrPHuw.js","Page-DSVu9Ucl.js","getPastedJson-G-zIvlHh.js","icon-B03fnEy0.js","MethodPill-CW7teklc.js","DuplicateIcon-CtO8eekd.js","createIcon-DZTKdM_A.js","DynamicMarkdown-D5M2At0B.js","SectionHeading-C_2NaA2U.js","axios-vUo_bRtp.js","Markdown-D7QRHV3m.js","clsx-D1Z-ELXV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-lvhuD9Du.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CKfC4ywL.js"]}