Generates a structured document using one of three template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of templateRef, assemblyTemplate, or dynamicTemplate must be provided.
Context can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM.
With the exception of the plain templateRef path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.
Pass the optional X-Corti-Retention-Policy: none header to generate and return the document without saving it to the database. The response will be 200 with GuidedDocumentsCreateEphemeralResponse. Without the header the document is saved and the response is 201 with GuidedDocumentsCreateResponse.
Available options:
none
Body
application/json
templateRef
assemblyTemplate
dynamicTemplate
Generate a document using a stored template. Optionally supply runtime overrides to patch instructions or sections without mutating the base template. At least one of context or interactionId must be supplied as input context for the model.
Ordered list of context items the model reasons over. Each item is one of text, a transcript (with optional metadata and segments), or a single fact. Items are interleaved by timestamps where present on transcript segments; otherwise array order is preserved.
When supplied, all facts and transcripts already attached to the referenced interaction are passed implicitly as input context. Facts with isDiscarded: true are not passed on.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Corti API Documentation","description":"Explore product documentation, quickstart guides, tutorials, release notes, and detailed API references to build with Corti API. Leverage full stack AI to unlock workflows with speech to text, text generation, agentic framework, embedded Corti Assistant and more.","colors":{"primary":"#3F3F46","light":"#F4F4F5","dark":"#18181B"},"logo":{"light":"https://mintcdn.com/corti/en_RPjQCFb1qJpbU/logo/corti_light.svg?fit=max\u0026auto=format\u0026n=en_RPjQCFb1qJpbU\u0026q=85\u0026s=effbca890e531e034f6b66ce8e15aa6c","dark":"https://mintcdn.com/corti/en_RPjQCFb1qJpbU/logo/corti_dark.svg?fit=max\u0026auto=format\u0026n=en_RPjQCFb1qJpbU\u0026q=85\u0026s=39e1b8245783318adebc44f1548aee0d"},"favicon":"https://mintcdn.com/corti/en_RPjQCFb1qJpbU/logo/favicon-docs.svg?fit=max\u0026auto=format\u0026n=en_RPjQCFb1qJpbU\u0026q=85\u0026s=1971ff0d52cd65b9f56d059bc6457848","api":{"playground":{"display":"simple"},"examples":{"languages":["curl","javascript","csharp","python","php","go","java"]},"mdx":{"auth":{"method":"bearer"}}},"background":{"color":{"light":"#FFFFFF","dark":"#09090B"}},"navbar":{"links":[{"href":"https://help.corti.app/","label":"Support"}],"primary":{"type":"button","label":"Start Building","href":"https://console.corti.app/signup"}},"footer":{"socials":{"website":"https://www.corti.ai","x":"https://x.com/corti_ai","linkedin":"https://www.linkedin.com/company/corti","github":"https://github.com/corticph","youtube":"https://www.youtube.com/@cortiai"}},"fonts":{"heading":{"family":"Booton","weight":600},"body":{"family":"Booton","weight":400}},"icons":{"library":"lucide"},"integrations":{"gtm":{"tagId":"GTM-MR3DSSF2"},"intercom":{"appId":"y30epli4"}},"banner":{"content":"Corti Models is now available: frontier AI on sovereign infrastructure, through an OpenAI-compatible API. [Get started](/models/welcome).","dismissible":true},"errors":{"404":{"redirect":false,"title":"Page not found","description":"The page you're looking for doesn't exist or may have moved. Use the search bar above, or start from one of these pages:\n\n- [Get started](/get_started/welcome)\n- [Corti Models](/models/welcome)\n- [Agentic Framework](/agentic/overview)\n- [Speech to Text](/stt/overview)\n- [Clinical Text Generation](/textgen/overview)\n- [Medical Coding](/coding/overview)\n- [Clinical Assistant](/assistant/welcome)\n- [API Reference](/api-reference/welcome)"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"corti","hasAudioNarration":false,"actualSubdomain":"corti","customDomains":["docs.corti.ai"],"gitSource":{"type":"github","owner":"corticph","repo":"docs_corti","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae9e9a807405bf5d5962d53","collectionId":"4dcb83c2-ac0d-4dcb-81f6-3ed8cd1a3b9c","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae9e9a807405bf5d5962d53"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae9e9a807405bf5d5962d53","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Healthcare","count":209},{"language":"default","tag":"API Reference","count":141},{"language":"default","tag":"Clinical Assistant","count":117},{"language":"default","tag":"Events","count":85},{"language":"default","tag":"Event Reference","count":84},{"language":"default","tag":"REST APIs","count":60},{"language":"default","tag":"Agentic Framework","count":51},{"language":"default","tag":"Home","count":49},{"language":"default","tag":"Speech to Text","count":48},{"language":"default","tag":"Clinical Text Generation","count":47}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":false,"enableAskAiSearchBar":false,"deflection":{"enabled":true,"email":"help@corti.ai"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"Booton\";src:url(\"/fonts/booton/Booton-Regular.woff2\") format(\"woff2\");font-style:normal;font-weight:400;font-display:swap}@font-face{font-family:\"Booton\";src:url(\"/fonts/booton/Booton-Medium.woff2\") format(\"woff2\");font-style:normal;font-weight:500;font-display:swap}@font-face{font-family:\"Booton\";src:url(\"/fonts/booton/Booton-Semibold.woff2\") format(\"woff2\");font-style:normal;font-weight:600;font-display:swap}:root{--corti-font-sans: \"Booton\", \"Inter\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif;--mintlify-slot-header-height: 7rem}html,body{font-family:var(--corti-font-sans);font-weight:400;-webkit-font-smoothing:antialiased}body :not(code):not(code *):not(pre):not(pre *):not(kbd):not(kbd *):not(samp):not(samp *){font-family:var(--corti-font-sans)}h1,h2,h3,h4,h5,h6{font-family:var(--corti-font-sans);font-weight:600!important;color:var(--tw-prose-headings, #18181b)!important}:is(html.dark,.dark) h1,:is(html.dark,.dark) h2,:is(html.dark,.dark) h3,:is(html.dark,.dark) h4,:is(html.dark,.dark) h5,:is(html.dark,.dark) h6{color:#fafafa!important}:is(html.dark,.dark) [data-component-part=\"step-title\"]{color:#fafafa!important}a[target=\"_blank\"][href=\"https://console.corti.app/signup\"].group>span.absolute.inset-0{background-color:#18181b!important}:is(html.dark,.dark) a[target=\"_blank\"][href=\"https://console.corti.app/signup\"].group>span.absolute.inset-0{background-color:#fafafa!important}:is(html.dark,.dark) a[target=\"_blank\"][href=\"https://console.corti.app/signup\"].group .z-10,:is(html.dark,.dark) a[target=\"_blank\"][href=\"https://console.corti.app/signup\"].group .z-10 *,:is(html.dark,.dark) a[target=\"_blank\"][href=\"https://console.corti.app/signup\"].group svg{color:#18181b!important}[data-component-part=\"card-content-container\"]{align-items:flex-start!important}.card [data-component-part=\"card-content\"]>.code-block:last-child{margin-bottom:0!important}[data-component-part=\"card-content-container\"]>div[class*=\"h-6\"][class*=\"w-6\"]{width:24px!important;height:24px!important;min-width:24px;min-height:24px;display:inline-flex;align-items:center;justify-content:center;margin-top:2px}[data-component-part=\"card-content-container\"]>div[class*=\"h-6\"][class*=\"w-6\"] svg,[data-component-part=\"card-content-container\"]>div[class*=\"h-6\"][class*=\"w-6\"] img{width:24px!important;height:24px!important}:is(html.dark,.dark) .card [data-component-part=\"card-title\"],:is(html.dark,.dark) .card [data-component-part=\"card-title\"] a,:is(html.dark,.dark) .card h2 a,:is(html.dark,.dark) .card h3 a,:is(html.dark,.dark) .card h4 a,:is(html.dark,.dark) .card a[href].font-semibold{color:#fafafa!important}:is(html.dark,.dark) .card [data-component-part=\"card-title\"] a:visited,:is(html.dark,.dark) .card h2 a:visited,:is(html.dark,.dark) .card h3 a:visited,:is(html.dark,.dark) .card h4 a:visited,:is(html.dark,.dark) .card a[href].font-semibold:visited{color:#fafafa!important}.nav-tag-pill-text[data-nav-tag=\"beta\"],[data-nav-tag=\"beta\"].nav-tag-pill-text{background-color:#b8f818!important;border:none!important;color:#18181b!important;text-transform:uppercase!important;font-weight:600!important}#navigation-items{padding-bottom:9rem}.accent-badge{background-color:#b8f818!important;border:none!important;color:#18181b!important;text-transform:uppercase!important;font-weight:600!important}.mdx-content li strong{font-weight:600!important}.mdx-content [class*=\"overflow-x-auto\"]{overflow-x:visible!important}.mdx-content [class*=\"w-[calc(100%+(var(--page-padding)*2))]\"]{width:100%!important}.mdx-content [class*=\"-mx-[var(--page-padding)]\"]{margin-left:0!important;margin-right:0!important}.mdx-content [class*=\"max-w-none\"]{max-width:100%!important}.mdx-content .table{display:block!important}.mdx-content table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:auto;border-collapse:collapse;box-sizing:border-box;margin:0}.mdx-content table th,.mdx-content table td{min-width:0!important;vertical-align:top}.mdx-content table th,.mdx-content table th *{white-space:normal;overflow-wrap:normal!important;word-break:normal!important;hyphens:manual}.mdx-content table th,.mdx-content table th *,.mdx-content table strong{font-weight:600!important}.mdx-content table td{white-space:normal;overflow-wrap:break-word;word-break:normal;hyphens:manual}.mdx-content table code,.mdx-content table kbd,.mdx-content table samp{white-space:nowrap;overflow-wrap:normal;word-break:keep-all}.mdx-content table td code,.mdx-content table td kbd,.mdx-content table td samp{white-space:normal;overflow-wrap:normal;word-break:normal}.mdx-content table td a{white-space:normal;overflow-wrap:break-word;word-break:normal;hyphens:manual}.mdx-content .capabilities-table table th:first-child,.mdx-content .capabilities-table table td:first-child,.mdx-content .capabilities-table table th:last-child,.mdx-content .capabilities-table table td:last-child,.mdx-content .capabilities-table table td:first-child a,.mdx-content .capabilities-table table td:last-child a{white-space:nowrap}.mdx-content table img,.mdx-content table svg{max-width:100%;height:auto;display:block}.mdx-content [data-component-part=\"code-block-root\"]{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}.mdx-content [data-component-part=\"code-block-root\"][class*=\"overflow-x-auto\"]{overflow-x:auto!important}.mdx-content [data-component-part=\"code-block-root\"] pre,.mdx-content [data-component-part=\"code-block-root\"] code,.mdx-content [data-component-part=\"code-block-root\"] .shiki,.mdx-content [data-component-part=\"code-block-root\"] .shiki .line,.mdx-content [data-component-part=\"code-block-root\"] .shiki .line>span{white-space:pre!important;word-break:normal!important;overflow-wrap:normal!important}.mdx-content [data-component-part=\"code-block-root\"] pre>code>span.line-diff{min-width:max-content!important}:not(pre)>code{background-color:rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.08);border-radius:6px;padding:0.15em 0.4em;font-size:0.875em;color:inherit}:is(html.dark,.dark) :not(pre)>code{background-color:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.08);color:#fafafa}html:not(.dark) .mdx-content [data-component-part=\"code-block-root\"] .line-highlight,html:not(.dark) .mdx-content [data-component-part=\"code-block-root\"] .line-highlight::before{background-color:rgba(115, 115, 115, 0.16)!important}:is(html.dark,.dark) g.node.nodeNeutral span,:is(html.dark,.dark) g.node.nodeNeutral .label,:is(html.dark,.dark) g.node.nodeNeutral .label text,:is(html.dark,.dark) g.node.nodeGray span,:is(html.dark,.dark) g.node.nodeGray .label,:is(html.dark,.dark) g.node.nodeGray .label text,:is(html.dark,.dark) g.node.nodeBlue span,:is(html.dark,.dark) g.node.nodeBlue .label,:is(html.dark,.dark) g.node.nodeBlue .label text,:is(html.dark,.dark) g.node.nodeGreen span,:is(html.dark,.dark) g.node.nodeGreen .label,:is(html.dark,.dark) g.node.nodeGreen .label text,:is(html.dark,.dark) g.node.nodeYellow span,:is(html.dark,.dark) g.node.nodeYellow .label,:is(html.dark,.dark) g.node.nodeYellow .label text,:is(html.dark,.dark) g.node.nodeCyan span,:is(html.dark,.dark) g.node.nodeCyan .label,:is(html.dark,.dark) g.node.nodeCyan .label text,:is(html.dark,.dark) g.node.nodePurple span,:is(html.dark,.dark) g.node.nodePurple .label,:is(html.dark,.dark) g.node.nodePurple .label text,:is(html.dark,.dark) g.node.nodeLightPurple span,:is(html.dark,.dark) g.node.nodeLightPurple .label,:is(html.dark,.dark) g.node.nodeLightPurple .label text{color:#1a1a1a!important;fill:#1a1a1a!important}img[src$=\"embedded-assistant.svg\"]{filter:brightness(0) invert(32%)}a[aria-current=\"location\"] img[src$=\"embedded-assistant.svg\"],a:hover img[src$=\"embedded-assistant.svg\"]{filter:brightness(0) invert(15%)}:is(html.dark,.dark) img[src$=\"embedded-assistant.svg\"]{filter:brightness(0) invert(63%)}:is(html.dark,.dark) a[aria-current=\"location\"] img[src$=\"embedded-assistant.svg\"],:is(html.dark,.dark) a:hover img[src$=\"embedded-assistant.svg\"]{filter:brightness(0) invert(88%)}.errors-tabs [role=\"tablist\"] [role=\"tab\"],.errors-tabs [role=\"tablist\"] [role=\"tab\"] *,.errors-tabs [role=\"tablist\"] button,.errors-tabs [role=\"tablist\"] button *{font-weight:800!important;font-size:1.05em!important}"}],"page":{"pagePath":"api-reference/guided-documents/generate-a-structured-document","slug":"/api-reference/guided-documents/generate-a-structured-document","pageMetadata":{"title":"Generate a structured document","description":"Generates a structured document using one of three template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of `templateRef`, `assemblyTemplate`, or `dynamicTemplate` must be provided.\nContext can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM.\nWith the exception of the plain `templateRef` path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.\n","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/","href":"/api-reference/guided-documents/generate-a-structured-document","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Generates a structured document using one of three template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of \", _jsx(_components.code, {\n children: \"templateRef\"\n }), \", \", _jsx(_components.code, {\n children: \"assemblyTemplate\"\n }), \", or \", _jsx(_components.code, {\n children: \"dynamicTemplate\"\n }), \" must be provided.\\nContext can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM.\\nWith the exception of the plain \", _jsx(_components.code, {\n children: \"templateRef\"\n }), \" path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Generate a structured document","description":"Generates a structured document using one of three template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of `templateRef`, `assemblyTemplate`, or `dynamicTemplate` must be provided.\nContext can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM.\nWith the exception of the plain `templateRef` path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.\n","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/","href":"/api-reference/guided-documents/generate-a-structured-document","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/corti/f39b9e0170d6232a/api-reference/corti.js","/_mintlify/custom/corti/8c15918c79eb9f3c/generate-events-nav.js"],"openApiReferenceData":{"operation":{"tags":["Guided Documents"],"summary":"Generate a structured document","description":"Generates a structured document using one of three template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of `templateRef`, `assemblyTemplate`, or `dynamicTemplate` must be provided.\nContext can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM.\nWith the exception of the plain `templateRef` path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.\n","operationId":"guided_documents_generate","parameters":["c8421782-3087-4db5-801b-5c1fea45c5d6","c6ac0e32-da2b-42fa-ad4f-f39426fe3b37"],"requestBody":"15050e9c-16d7-4803-b228-401ccc3bfb15","responses":{"200":"397801f0-677f-45af-9dd8-aa9748395820","201":"fa63a28f-b9b5-439d-b211-a7a035af5d47","400":"3519d3b9-81fd-4122-bff8-91128ce368dc","404":"e7272b66-73a4-416d-83fe-3a6cba344683","422":"36188e06-9c1b-4d78-80c8-cdc37763aa70","500":"ea19c4e2-c274-4cb5-8c42-cf76b21df934"},"x-codeSamples":[{"lang":"csharp","label":"C# .NET SDK","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByTemplateRef\n {\n OutputLanguage = \"outputLanguage\",\n TemplateRef = new GuidedTemplateRef { TemplateId = \"templateId\" },\n }\n);\n"},{"lang":"javascript","label":"JavaScript SDK","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\nawait client.documents.generate({\n outputLanguage: \"outputLanguage\",\n templateRef: {\n templateId: \"templateId\"\n }\n});\n"},{"lang":"csharp","label":"templateRef(context)","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByTemplateRef\n {\n OutputLanguage = \"\u003cstring>\",\n Context = new List\u003cGuidedDocumentContext>\n {\n new CommonTextContext { Type = \"text\", Text = \"\u003cstring>\" }\n },\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n TemplateRef = new GuidedTemplateRef\n {\n TemplateId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n TemplateVersionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Overrides = new GuidedTemplateOverrides\n {\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n Sections = new List\u003cGuidedSectionOverride>\n {\n new GuidedSectionOverride\n {\n SectionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Generation = new GuidedSectionOverrides\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructionsOverride\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n },\n }\n },\n },\n },\n }\n);\n","x-fern-sdk-language-id":"templateref(context)"},{"lang":"csharp","label":"templateRef(interaction ID)","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByTemplateRef\n {\n OutputLanguage = \"\u003cstring>\",\n InteractionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n TemplateRef = new GuidedTemplateRef\n {\n TemplateId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n TemplateVersionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Overrides = new GuidedTemplateOverrides\n {\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n Sections = new List\u003cGuidedSectionOverride>\n {\n new GuidedSectionOverride\n {\n SectionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Generation = new GuidedSectionOverrides\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructionsOverride\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n },\n }\n },\n },\n },\n }\n);\n","x-fern-sdk-language-id":"templateref(interaction-id)"},{"lang":"csharp","label":"assemblyTemplate(context)","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByAssembly\n {\n OutputLanguage = \"\u003cstring>\",\n Context = new List\u003cGuidedDocumentContext>\n {\n new CommonTextContext { Type = \"text\", Text = \"\u003cstring>\" }\n },\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n AssemblyTemplate = new GuidedAssemblyRequest\n {\n Name = \"\u003cstring>\",\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n SectionRefs = new List\u003cGuidedAssemblySectionRef>\n {\n new GuidedAssemblySectionRef\n {\n SectionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n SectionVersionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Overrides = new GuidedSectionOverrides\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructionsOverride\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n },\n }\n },\n },\n }\n);\n","x-fern-sdk-language-id":"assemblytemplate(context)"},{"lang":"csharp","label":"assemblyTemplate(interaction ID)","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByAssembly\n {\n OutputLanguage = \"\u003cstring>\",\n InteractionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n AssemblyTemplate = new GuidedAssemblyRequest\n {\n Name = \"\u003cstring>\",\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n SectionRefs = new List\u003cGuidedAssemblySectionRef>\n {\n new GuidedAssemblySectionRef\n {\n SectionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n SectionVersionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Overrides = new GuidedSectionOverrides\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructionsOverride\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n },\n }\n },\n },\n }\n);\n","x-fern-sdk-language-id":"assemblytemplate(interaction-id)"},{"lang":"csharp","label":"dynamicTemplate(context)","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByDynamic\n {\n OutputLanguage = \"\u003cstring>\",\n Context = new List\u003cGuidedDocumentContext>\n {\n new CommonTextContext { Type = \"text\", Text = \"\u003cstring>\" }\n },\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n DynamicTemplate = new GuidedDynamicRequest\n {\n Name = \"\u003cstring>\",\n Generation = new GuidedDynamicInline\n {\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n Sections = new List\u003cGuidedSectionGeneration>\n {\n new GuidedSectionGeneration\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructions\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n }\n },\n },\n },\n }\n);\n","x-fern-sdk-language-id":"dynamictemplate(context)"},{"lang":"csharp","label":"dynamicTemplate(interaction ID)","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByDynamic\n {\n OutputLanguage = \"\u003cstring>\",\n InteractionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n DynamicTemplate = new GuidedDynamicRequest\n {\n Name = \"\u003cstring>\",\n Generation = new GuidedDynamicInline\n {\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n Sections = new List\u003cGuidedSectionGeneration>\n {\n new GuidedSectionGeneration\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructions\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n }\n },\n },\n },\n }\n);\n","x-fern-sdk-language-id":"dynamictemplate(interaction-id)"},{"lang":"javascript","label":"templateRef(context)","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n context: [\n { type: \"text\", text: \"\u003cstring>\" }\n ],\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n templateRef: {\n templateId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n templateVersionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n overrides: {\n instructions: { prompt: \"\u003cstring>\" },\n sections: [\n {\n sectionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n generation: {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n});\n","x-fern-sdk-language-id":"templateref(context)"},{"lang":"javascript","label":"templateRef(interaction ID)","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n interactionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n templateRef: {\n templateId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n templateVersionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n overrides: {\n instructions: { prompt: \"\u003cstring>\" },\n sections: [\n {\n sectionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n generation: {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n});\n","x-fern-sdk-language-id":"templateref(interaction-id)"},{"lang":"javascript","label":"assemblyTemplate(context)","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n context: [\n { type: \"text\", text: \"\u003cstring>\" }\n ],\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n assemblyTemplate: {\n name: \"\u003cstring>\",\n instructions: { prompt: \"\u003cstring>\" },\n sectionRefs: [\n {\n sectionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n sectionVersionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n overrides: {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n }\n ]\n }\n});\n","x-fern-sdk-language-id":"assemblytemplate(context)"},{"lang":"javascript","label":"assemblyTemplate(interaction ID)","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n interactionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n assemblyTemplate: {\n name: \"\u003cstring>\",\n instructions: { prompt: \"\u003cstring>\" },\n sectionRefs: [\n {\n sectionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n sectionVersionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n overrides: {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n }\n ]\n }\n});\n","x-fern-sdk-language-id":"assemblytemplate(interaction-id)"},{"lang":"javascript","label":"dynamicTemplate(context)","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n context: [\n { type: \"text\", text: \"\u003cstring>\" }\n ],\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n dynamicTemplate: {\n name: \"\u003cstring>\",\n generation: {\n instructions: { prompt: \"\u003cstring>\" },\n sections: [\n {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n ]\n }\n }\n});\n","x-fern-sdk-language-id":"dynamictemplate(context)"},{"lang":"javascript","label":"dynamicTemplate(interaction ID)","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n interactionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n dynamicTemplate: {\n name: \"\u003cstring>\",\n generation: {\n instructions: { prompt: \"\u003cstring>\" },\n sections: [\n {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n ]\n }\n }\n});\n","x-fern-sdk-language-id":"dynamictemplate(interaction-id)"},{"lang":"bash","label":"templateRef(context)","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n}'","x-fern-sdk-language-id":"templateref(context)"},{"lang":"bash","label":"templateRef(interaction ID)","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n}'","x-fern-sdk-language-id":"templateref(interaction-id)"},{"lang":"bash","label":"assemblyTemplate(context)","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n}'","x-fern-sdk-language-id":"assemblytemplate(context)"},{"lang":"bash","label":"assemblyTemplate(interaction ID)","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n}'","x-fern-sdk-language-id":"assemblytemplate(interaction-id)"},{"lang":"bash","label":"dynamicTemplate(context)","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n}'","x-fern-sdk-language-id":"dynamictemplate(context)"},{"lang":"bash","label":"dynamicTemplate(interaction ID)","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n}'","x-fern-sdk-language-id":"dynamictemplate(interaction-id)"},{"lang":"go","label":"templateRef(context)","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": []interface{}{\n map[string]interface{}{\n \"type\": \"text\",\n \"text\": \"\u003cstring>\",\n },\n },\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"templateRef\": map[string]interface{}{\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": map[string]interface{}{\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sections\": []interface{}{\n map[string]interface{}{\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n","x-fern-sdk-language-id":"templateref(context)"},{"lang":"go","label":"templateRef(interaction ID)","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"templateRef\": map[string]interface{}{\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": map[string]interface{}{\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sections\": []interface{}{\n map[string]interface{}{\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n","x-fern-sdk-language-id":"templateref(interaction-id)"},{"lang":"go","label":"assemblyTemplate(context)","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": []interface{}{\n map[string]interface{}{\n \"type\": \"text\",\n \"text\": \"\u003cstring>\",\n },\n },\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"assemblyTemplate\": map[string]interface{}{\n \"name\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sectionRefs\": []interface{}{\n map[string]interface{}{\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n","x-fern-sdk-language-id":"assemblytemplate(context)"},{"lang":"go","label":"assemblyTemplate(interaction ID)","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"assemblyTemplate\": map[string]interface{}{\n \"name\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sectionRefs\": []interface{}{\n map[string]interface{}{\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n","x-fern-sdk-language-id":"assemblytemplate(interaction-id)"},{"lang":"go","label":"dynamicTemplate(context)","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": []interface{}{\n map[string]interface{}{\n \"type\": \"text\",\n \"text\": \"\u003cstring>\",\n },\n },\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"dynamicTemplate\": map[string]interface{}{\n \"name\": \"\u003cstring>\",\n \"generation\": map[string]interface{}{\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sections\": []interface{}{\n map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n","x-fern-sdk-language-id":"dynamictemplate(context)"},{"lang":"go","label":"dynamicTemplate(interaction ID)","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"dynamicTemplate\": map[string]interface{}{\n \"name\": \"\u003cstring>\",\n \"generation\": map[string]interface{}{\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sections\": []interface{}{\n map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n","x-fern-sdk-language-id":"dynamictemplate(interaction-id)"},{"lang":"java","label":"templateRef(context)","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n","x-fern-sdk-language-id":"templateref(context)"},{"lang":"java","label":"templateRef(interaction ID)","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n","x-fern-sdk-language-id":"templateref(interaction-id)"},{"lang":"java","label":"assemblyTemplate(context)","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n","x-fern-sdk-language-id":"assemblytemplate(context)"},{"lang":"java","label":"assemblyTemplate(interaction ID)","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n","x-fern-sdk-language-id":"assemblytemplate(interaction-id)"},{"lang":"java","label":"dynamicTemplate(context)","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n","x-fern-sdk-language-id":"dynamictemplate(context)"},{"lang":"java","label":"dynamicTemplate(interaction ID)","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n","x-fern-sdk-language-id":"dynamictemplate(interaction-id)"},{"lang":"php","label":"templateRef(context)","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'context' => [\n [\n 'type' => 'text',\n 'text' => '\u003cstring>',\n ],\n ],\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'templateRef' => [\n 'templateId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'templateVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'overrides' => [\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sections' => [\n [\n 'sectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'generation' => [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n","x-fern-sdk-language-id":"templateref(context)"},{"lang":"php","label":"templateRef(interaction ID)","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'interactionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'templateRef' => [\n 'templateId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'templateVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'overrides' => [\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sections' => [\n [\n 'sectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'generation' => [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n","x-fern-sdk-language-id":"templateref(interaction-id)"},{"lang":"php","label":"assemblyTemplate(context)","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'context' => [\n [\n 'type' => 'text',\n 'text' => '\u003cstring>',\n ],\n ],\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'assemblyTemplate' => [\n 'name' => '\u003cstring>',\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sectionRefs' => [\n [\n 'sectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'sectionVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'overrides' => [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n","x-fern-sdk-language-id":"assemblytemplate(context)"},{"lang":"php","label":"assemblyTemplate(interaction ID)","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'interactionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'assemblyTemplate' => [\n 'name' => '\u003cstring>',\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sectionRefs' => [\n [\n 'sectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'sectionVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'overrides' => [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n","x-fern-sdk-language-id":"assemblytemplate(interaction-id)"},{"lang":"php","label":"dynamicTemplate(context)","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'context' => [\n [\n 'type' => 'text',\n 'text' => '\u003cstring>',\n ],\n ],\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'dynamicTemplate' => [\n 'name' => '\u003cstring>',\n 'generation' => [\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sections' => [\n [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n","x-fern-sdk-language-id":"dynamictemplate(context)"},{"lang":"php","label":"dynamicTemplate(interaction ID)","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'interactionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'dynamicTemplate' => [\n 'name' => '\u003cstring>',\n 'generation' => [\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sections' => [\n [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n","x-fern-sdk-language-id":"dynamictemplate(interaction-id)"},{"lang":"python","label":"templateRef(context)","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n","x-fern-sdk-language-id":"templateref(context)"},{"lang":"python","label":"templateRef(interaction ID)","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n","x-fern-sdk-language-id":"templateref(interaction-id)"},{"lang":"python","label":"assemblyTemplate(context)","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n","x-fern-sdk-language-id":"assemblytemplate(context)"},{"lang":"python","label":"assemblyTemplate(interaction ID)","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n","x-fern-sdk-language-id":"assemblytemplate(interaction-id)"},{"lang":"python","label":"dynamicTemplate(context)","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n","x-fern-sdk-language-id":"dynamictemplate(context)"},{"lang":"python","label":"dynamicTemplate(interaction ID)","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n","x-fern-sdk-language-id":"dynamictemplate(interaction-id)"}],"method":"post","type":"path","servers":["e28b1232-d248-4e01-9e62-262b94876da6"],"security":["604ea4ae-7224-4e00-bccd-8cfa09175ed7"],"path":"/documents/","baseUrlOptions":["https://api.{environment}.corti.app/v2/"],"title":"Generate a structured document","codeSamples":[{"label":"C# .NET SDK","lang":"csharp","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByTemplateRef\n {\n OutputLanguage = \"outputLanguage\",\n TemplateRef = new GuidedTemplateRef { TemplateId = \"templateId\" },\n }\n);\n"},{"label":"JavaScript SDK","lang":"javascript","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\nawait client.documents.generate({\n outputLanguage: \"outputLanguage\",\n templateRef: {\n templateId: \"templateId\"\n }\n});\n"},{"label":"templateRef(context)","lang":"csharp","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByTemplateRef\n {\n OutputLanguage = \"\u003cstring>\",\n Context = new List\u003cGuidedDocumentContext>\n {\n new CommonTextContext { Type = \"text\", Text = \"\u003cstring>\" }\n },\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n TemplateRef = new GuidedTemplateRef\n {\n TemplateId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n TemplateVersionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Overrides = new GuidedTemplateOverrides\n {\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n Sections = new List\u003cGuidedSectionOverride>\n {\n new GuidedSectionOverride\n {\n SectionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Generation = new GuidedSectionOverrides\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructionsOverride\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n },\n }\n },\n },\n },\n }\n);\n"},{"label":"templateRef(interaction ID)","lang":"csharp","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByTemplateRef\n {\n OutputLanguage = \"\u003cstring>\",\n InteractionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n TemplateRef = new GuidedTemplateRef\n {\n TemplateId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n TemplateVersionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Overrides = new GuidedTemplateOverrides\n {\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n Sections = new List\u003cGuidedSectionOverride>\n {\n new GuidedSectionOverride\n {\n SectionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Generation = new GuidedSectionOverrides\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructionsOverride\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n },\n }\n },\n },\n },\n }\n);\n"},{"label":"assemblyTemplate(context)","lang":"csharp","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByAssembly\n {\n OutputLanguage = \"\u003cstring>\",\n Context = new List\u003cGuidedDocumentContext>\n {\n new CommonTextContext { Type = \"text\", Text = \"\u003cstring>\" }\n },\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n AssemblyTemplate = new GuidedAssemblyRequest\n {\n Name = \"\u003cstring>\",\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n SectionRefs = new List\u003cGuidedAssemblySectionRef>\n {\n new GuidedAssemblySectionRef\n {\n SectionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n SectionVersionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Overrides = new GuidedSectionOverrides\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructionsOverride\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n },\n }\n },\n },\n }\n);\n"},{"label":"assemblyTemplate(interaction ID)","lang":"csharp","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByAssembly\n {\n OutputLanguage = \"\u003cstring>\",\n InteractionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n AssemblyTemplate = new GuidedAssemblyRequest\n {\n Name = \"\u003cstring>\",\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n SectionRefs = new List\u003cGuidedAssemblySectionRef>\n {\n new GuidedAssemblySectionRef\n {\n SectionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n SectionVersionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Overrides = new GuidedSectionOverrides\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructionsOverride\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n },\n }\n },\n },\n }\n);\n"},{"label":"dynamicTemplate(context)","lang":"csharp","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByDynamic\n {\n OutputLanguage = \"\u003cstring>\",\n Context = new List\u003cGuidedDocumentContext>\n {\n new CommonTextContext { Type = \"text\", Text = \"\u003cstring>\" }\n },\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n DynamicTemplate = new GuidedDynamicRequest\n {\n Name = \"\u003cstring>\",\n Generation = new GuidedDynamicInline\n {\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n Sections = new List\u003cGuidedSectionGeneration>\n {\n new GuidedSectionGeneration\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructions\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n }\n },\n },\n },\n }\n);\n"},{"label":"dynamicTemplate(interaction ID)","lang":"csharp","source":"using Corti;\n\nvar client = new CortiClient(\n \"TENANT_NAME\",\n CortiClientEnvironment.Eu,\n new CortiClientAuth.ClientCredentials(\"client_id\", \"client_secret\")\n);\nawait client.Documents.GenerateAsync(\n new GuidedDocumentsGenerateByDynamic\n {\n OutputLanguage = \"\u003cstring>\",\n InteractionId = \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n Labels = new List\u003cGuidedLabel>\n {\n new GuidedLabel { Key = \"\u003cstring>\", Value = \"\u003cstring>\" }\n },\n DynamicTemplate = new GuidedDynamicRequest\n {\n Name = \"\u003cstring>\",\n Generation = new GuidedDynamicInline\n {\n Instructions = new GuidedTemplateInstructions { Prompt = \"\u003cstring>\" },\n Sections = new List\u003cGuidedSectionGeneration>\n {\n new GuidedSectionGeneration\n {\n Heading = \"\u003cstring>\",\n Instructions = new GuidedSectionInstructions\n {\n ContentPrompt = \"\u003cstring>\",\n WritingStylePrompt = \"\u003cstring>\",\n MiscPrompt = \"\u003cstring>\",\n },\n OutputSchema = new GuidedStringNode\n {\n Type = \"string\",\n Description = \"\u003cstring>\",\n Default = \"\u003cstring>\",\n Enum = new List\u003cstring> { \"\u003cstring>\" },\n Pattern = \"\u003cstring>\",\n },\n }\n },\n },\n },\n }\n);\n"},{"label":"templateRef(context)","lang":"javascript","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n context: [\n { type: \"text\", text: \"\u003cstring>\" }\n ],\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n templateRef: {\n templateId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n templateVersionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n overrides: {\n instructions: { prompt: \"\u003cstring>\" },\n sections: [\n {\n sectionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n generation: {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n});\n"},{"label":"templateRef(interaction ID)","lang":"javascript","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n interactionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n templateRef: {\n templateId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n templateVersionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n overrides: {\n instructions: { prompt: \"\u003cstring>\" },\n sections: [\n {\n sectionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n generation: {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n});\n"},{"label":"assemblyTemplate(context)","lang":"javascript","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n context: [\n { type: \"text\", text: \"\u003cstring>\" }\n ],\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n assemblyTemplate: {\n name: \"\u003cstring>\",\n instructions: { prompt: \"\u003cstring>\" },\n sectionRefs: [\n {\n sectionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n sectionVersionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n overrides: {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n }\n ]\n }\n});\n"},{"label":"assemblyTemplate(interaction ID)","lang":"javascript","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n interactionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n assemblyTemplate: {\n name: \"\u003cstring>\",\n instructions: { prompt: \"\u003cstring>\" },\n sectionRefs: [\n {\n sectionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n sectionVersionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n overrides: {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n }\n ]\n }\n});\n"},{"label":"dynamicTemplate(context)","lang":"javascript","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n context: [\n { type: \"text\", text: \"\u003cstring>\" }\n ],\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n dynamicTemplate: {\n name: \"\u003cstring>\",\n generation: {\n instructions: { prompt: \"\u003cstring>\" },\n sections: [\n {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n ]\n }\n }\n});\n"},{"label":"dynamicTemplate(interaction ID)","lang":"javascript","source":"import { CortiClient, CortiEnvironment } from \"@corti/sdk\";\n\nconst client = new CortiClient({\n environment: CortiEnvironment.Eu,\n auth: {\n clientId: \"YOUR_CLIENT_ID\",\n clientSecret: \"YOUR_CLIENT_SECRET\"\n },\n tenantName: \"YOUR_TENANT_NAME\"\n});\n\nawait client.documents.generate({\n outputLanguage: \"\u003cstring>\",\n interactionId: \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n labels: [\n { key: \"\u003cstring>\", value: \"\u003cstring>\" }\n ],\n dynamicTemplate: {\n name: \"\u003cstring>\",\n generation: {\n instructions: { prompt: \"\u003cstring>\" },\n sections: [\n {\n heading: \"\u003cstring>\",\n instructions: {\n contentPrompt: \"\u003cstring>\",\n writingStylePrompt: \"\u003cstring>\",\n miscPrompt: \"\u003cstring>\"\n },\n outputSchema: {\n type: \"string\",\n description: \"\u003cstring>\",\n default: \"\u003cstring>\",\n enum: [\"\u003cstring>\"],\n pattern: \"\u003cstring>\"\n }\n }\n ]\n }\n }\n});\n"},{"label":"templateRef(context)","lang":"bash","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n}'"},{"label":"templateRef(interaction ID)","lang":"bash","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n}'"},{"label":"assemblyTemplate(context)","lang":"bash","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n}'"},{"label":"assemblyTemplate(interaction ID)","lang":"bash","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n}'"},{"label":"dynamicTemplate(context)","lang":"bash","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n}'"},{"label":"dynamicTemplate(interaction ID)","lang":"bash","source":"curl --request POST \\\n --url https://api.{environment}.corti.app/v2/documents/ \\\n --header 'Authorization: Bearer \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --header 'Tenant-Name: \u003ctenant-name>' \\\n --data '{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n}'"},{"label":"templateRef(context)","lang":"go","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": []interface{}{\n map[string]interface{}{\n \"type\": \"text\",\n \"text\": \"\u003cstring>\",\n },\n },\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"templateRef\": map[string]interface{}{\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": map[string]interface{}{\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sections\": []interface{}{\n map[string]interface{}{\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n"},{"label":"templateRef(interaction ID)","lang":"go","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"templateRef\": map[string]interface{}{\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": map[string]interface{}{\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sections\": []interface{}{\n map[string]interface{}{\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n"},{"label":"assemblyTemplate(context)","lang":"go","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": []interface{}{\n map[string]interface{}{\n \"type\": \"text\",\n \"text\": \"\u003cstring>\",\n },\n },\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"assemblyTemplate\": map[string]interface{}{\n \"name\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sectionRefs\": []interface{}{\n map[string]interface{}{\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n"},{"label":"assemblyTemplate(interaction ID)","lang":"go","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"assemblyTemplate\": map[string]interface{}{\n \"name\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sectionRefs\": []interface{}{\n map[string]interface{}{\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n"},{"label":"dynamicTemplate(context)","lang":"go","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": []interface{}{\n map[string]interface{}{\n \"type\": \"text\",\n \"text\": \"\u003cstring>\",\n },\n },\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"dynamicTemplate\": map[string]interface{}{\n \"name\": \"\u003cstring>\",\n \"generation\": map[string]interface{}{\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sections\": []interface{}{\n map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n"},{"label":"dynamicTemplate(interaction ID)","lang":"go","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"net/http\"\n)\n\nfunc main() {\n body, _ := json.Marshal(map[string]interface{}{\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": []interface{}{\n map[string]interface{}{\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\",\n },\n },\n \"dynamicTemplate\": map[string]interface{}{\n \"name\": \"\u003cstring>\",\n \"generation\": map[string]interface{}{\n \"instructions\": map[string]interface{}{\n \"prompt\": \"\u003cstring>\",\n },\n \"sections\": []interface{}{\n map[string]interface{}{\n \"heading\": \"\u003cstring>\",\n \"instructions\": map[string]interface{}{\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\",\n },\n \"outputSchema\": map[string]interface{}{\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": []interface{}{\n \"\u003cstring>\",\n },\n \"pattern\": \"\u003cstring>\",\n },\n },\n },\n },\n },\n })\n\n req, _ := http.NewRequest(\"POST\", \"https://api.{environment}.corti.app/v2/documents/\", bytes.NewBuffer(body))\n req.Header.Set(\"Authorization\", \"Bearer \u003ctoken>\")\n req.Header.Set(\"Content-Type\", \"application/json\")\n req.Header.Set(\"Tenant-Name\", \"\u003ctenant-name>\")\n\n client := \u0026http.Client{}\n resp, _ := client.Do(req)\n defer resp.Body.Close()\n}\n"},{"label":"templateRef(context)","lang":"java","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n"},{"label":"templateRef(interaction ID)","lang":"java","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n"},{"label":"assemblyTemplate(context)","lang":"java","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n"},{"label":"assemblyTemplate(interaction ID)","lang":"java","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n"},{"label":"dynamicTemplate(context)","lang":"java","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n"},{"label":"dynamicTemplate(interaction ID)","lang":"java","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String body = \"\"\"\n {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n }\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://api.{environment}.corti.app/v2/documents/\"))\n .header(\"Authorization\", \"Bearer \u003ctoken>\")\n .header(\"Content-Type\", \"application/json\")\n .header(\"Tenant-Name\", \"\u003ctenant-name>\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n HttpClient client = HttpClient.newHttpClient();\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n }\n}\n"},{"label":"templateRef(context)","lang":"php","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'context' => [\n [\n 'type' => 'text',\n 'text' => '\u003cstring>',\n ],\n ],\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'templateRef' => [\n 'templateId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'templateVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'overrides' => [\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sections' => [\n [\n 'sectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'generation' => [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n"},{"label":"templateRef(interaction ID)","lang":"php","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'interactionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'templateRef' => [\n 'templateId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'templateVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'overrides' => [\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sections' => [\n [\n 'sectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'generation' => [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n"},{"label":"assemblyTemplate(context)","lang":"php","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'context' => [\n [\n 'type' => 'text',\n 'text' => '\u003cstring>',\n ],\n ],\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'assemblyTemplate' => [\n 'name' => '\u003cstring>',\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sectionRefs' => [\n [\n 'sectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'sectionVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'overrides' => [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n"},{"label":"assemblyTemplate(interaction ID)","lang":"php","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'interactionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'assemblyTemplate' => [\n 'name' => '\u003cstring>',\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sectionRefs' => [\n [\n 'sectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'sectionVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'overrides' => [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n"},{"label":"dynamicTemplate(context)","lang":"php","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'context' => [\n [\n 'type' => 'text',\n 'text' => '\u003cstring>',\n ],\n ],\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'dynamicTemplate' => [\n 'name' => '\u003cstring>',\n 'generation' => [\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sections' => [\n [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n"},{"label":"dynamicTemplate(interaction ID)","lang":"php","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.{environment}.corti.app/v2/documents/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => json_encode([\n 'outputLanguage' => '\u003cstring>',\n 'interactionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',\n 'labels' => [\n [\n 'key' => '\u003cstring>',\n 'value' => '\u003cstring>',\n ],\n ],\n 'dynamicTemplate' => [\n 'name' => '\u003cstring>',\n 'generation' => [\n 'instructions' => [\n 'prompt' => '\u003cstring>',\n ],\n 'sections' => [\n [\n 'heading' => '\u003cstring>',\n 'instructions' => [\n 'contentPrompt' => '\u003cstring>',\n 'writingStylePrompt' => '\u003cstring>',\n 'miscPrompt' => '\u003cstring>',\n ],\n 'outputSchema' => [\n 'type' => 'string',\n 'description' => '\u003cstring>',\n 'default' => '\u003cstring>',\n 'enum' => [\n '\u003cstring>',\n ],\n 'pattern' => '\u003cstring>',\n ],\n ],\n ],\n ],\n ],\n ]),\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \u003ctoken>\",\n \"Content-Type: application/json\",\n \"Tenant-Name: \u003ctenant-name>\",\n ],\n]);\n\n$response = curl_exec($curl);\ncurl_close($curl);\n"},{"label":"templateRef(context)","lang":"python","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n"},{"label":"templateRef(interaction ID)","lang":"python","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"templateRef\": {\n \"templateId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"templateVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"generation\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n"},{"label":"assemblyTemplate(context)","lang":"python","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n"},{"label":"assemblyTemplate(interaction ID)","lang":"python","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"assemblyTemplate\": {\n \"name\": \"\u003cstring>\",\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sectionRefs\": [\n {\n \"sectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sectionVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"overrides\": {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n }\n ]\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n"},{"label":"dynamicTemplate(context)","lang":"python","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"context\": [\n {\n \"type\": \"text\",\n \"text\": \"\u003cstring>\"\n }\n ],\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n"},{"label":"dynamicTemplate(interaction ID)","lang":"python","source":"import requests\n\nurl = \"https://api.{environment}.corti.app/v2/documents/\"\nheaders = {\n \"Authorization\": \"Bearer \u003ctoken>\",\n \"Content-Type\": \"application/json\",\n \"Tenant-Name\": \"\u003ctenant-name>\",\n}\npayload = {\n \"outputLanguage\": \"\u003cstring>\",\n \"interactionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"labels\": [\n {\n \"key\": \"\u003cstring>\",\n \"value\": \"\u003cstring>\"\n }\n ],\n \"dynamicTemplate\": {\n \"name\": \"\u003cstring>\",\n \"generation\": {\n \"instructions\": {\n \"prompt\": \"\u003cstring>\"\n },\n \"sections\": [\n {\n \"heading\": \"\u003cstring>\",\n \"instructions\": {\n \"contentPrompt\": \"\u003cstring>\",\n \"writingStylePrompt\": \"\u003cstring>\",\n \"miscPrompt\": \"\u003cstring>\"\n },\n \"outputSchema\": {\n \"type\": \"string\",\n \"description\": \"\u003cstring>\",\n \"default\": \"\u003cstring>\",\n \"enum\": [\n \"\u003cstring>\"\n ],\n \"pattern\": \"\u003cstring>\"\n }\n }\n ]\n }\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n"}],"requestExampleLanguages":["bash","javascript","csharp","python","php","go","java"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"c8421782-3087-4db5-801b-5c1fea45c5d6":{"name":"Tenant-Name","in":"header","description":"Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.","required":true,"example":"base","schema":{"type":"string","description":"Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.","example":"base","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"c6ac0e32-da2b-42fa-ad4f-f39426fe3b37":{"name":"X-Corti-Retention-Policy","in":"header","description":"Pass the optional `X-Corti-Retention-Policy: none` header to generate and return the document without saving it to the database. The response will be 200 with `GuidedDocumentsCreateEphemeralResponse`. Without the header the document is saved and the response is 201 with `GuidedDocumentsCreateResponse`.","required":false,"schema":{"type":"string","enum":["none"],"isRequired":false,"description":"Pass the optional `X-Corti-Retention-Policy: none` header to generate and return the document without saving it to the database. The response will be 200 with `GuidedDocumentsCreateEphemeralResponse`. Without the header the document is saved and the response is 201 with `GuidedDocumentsCreateResponse`.","uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"templateRef","description":"Generate a document using a stored template. Optionally supply runtime overrides to patch instructions or sections without mutating the base template. At least one of `context` or `interactionId` must be supplied as input context for the model.\n","required":["templateRef","outputLanguage"],"properties":{"outputLanguage":{"type":"string","description":"The language in which the document will be generated as a BCP 47 tag.","isRequired":true,"uniqueKey":"oneOf.0.outputLanguage","typeLabel":"string"},"templateRef":{"type":"object","required":["templateId"],"properties":{"templateId":{"type":"string","format":"uuid","description":"The UUID of a stored template.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.templateId","typeLabel":"string\u003cuuid>"},"templateVersionId":{"oneOf":[{"type":"string","format":"uuid","description":"Optional explicit template version. Defaults to the template's published version when omitted.","uniqueKey":"oneOf.0.templateRef.templateVersionId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Optional explicit template version. Defaults to the template's published version when omitted.","uniqueKey":"oneOf.0.templateRef.templateVersionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.templateVersionId","typeLabel":"string\u003cuuid> | null"},"overrides":{"type":"object","description":"Runtime overrides applied on top of the resolved template. When present, a new auto-generated template is persisted with `inheritedFromId` pointing at the base template.\n","example":{"generation":{"instructions":{"prompt":"Produce a concise discharge summary"},"sections":[{"sectionId":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","generation":{"heading":"Discharge Plan","instructions":{"contentPrompt":"Focus on medications and follow-up"}}}]}},"properties":{"generation":{"type":"object","description":"The canonical override wrapper for this template.","example":{"instructions":{"prompt":"Produce a concise discharge summary"},"sections":[{"sectionId":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","generation":{"heading":"Discharge Plan","instructions":{"contentPrompt":"Focus on medications and follow-up"}}}]},"properties":{"instructions":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"Template-level prompt instructions that apply generally to all sections.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.instructions.prompt","typeLabel":"string"}},"description":"Replaces the template-level instructions for this call.","uniqueKey":"oneOf.0.templateRef.overrides.generation.instructions","typeLabel":"object"},"sections":{"type":"array","description":"Per-section override patches. Each entry must reference a section already linked to the base template version.","items":{"type":"object","description":"Override patch applied to a section linked to the base template version. Override semantics are per-field for `instructions` (any field you omit is inherited from the parent's published version) and wholesale for `outputSchema` (whatever you submit fully replaces the parent schema — partial schemas are not merged). The same rule applies when a section is forked via `inheritFromId`.\n","required":["sectionId"],"example":{"generation":{"heading":"Discharge Plan","instructions":{"contentPrompt":"Focus on medications and follow-up"},"outputSchema":{"type":"string"}}},"properties":{"sectionId":{"type":"string","format":"uuid","description":"The UUID of a section linked to the base template version.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].sectionId","typeLabel":"string\u003cuuid>"},"generation":{"type":"object","description":"The canonical override patch for this section.","properties":{"heading":{"oneOf":[{"type":"string","description":"When provided, replaces the section's heading for this call.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.heading.oneOf.0","typeLabel":"string"},{"type":"null","description":"When provided, replaces the section's heading for this call.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.heading.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.heading","typeLabel":"string | null"},"instructions":{"type":"object","description":"Partial section-instructions patch used in override and fork contexts. Each field is independent: provide only the fields you want to replace, and any field you omit is inherited from the parent's published version.\n","properties":{"contentPrompt":{"type":"string","description":"When provided, replaces the section's content prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.instructions.contentPrompt","typeLabel":"string"},"writingStylePrompt":{"type":"string","description":"When provided, replaces the section's writing style prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.instructions.writingStylePrompt","typeLabel":"string"},"miscPrompt":{"type":"string","description":"When provided, replaces the section's misc prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.instructions.miscPrompt","typeLabel":"string"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.instructions","typeLabel":"object"},"outputSchema":{"oneOf":[{"type":"object","title":"String","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["string"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0.description","typeLabel":"string"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0.default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0.default","typeLabel":"string | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"string","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0.enum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0.enum","typeLabel":"string[]"},"pattern":{"oneOf":[{"type":"string","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0.pattern.oneOf.0","typeLabel":"string"},{"type":"null","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0.pattern.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0.pattern","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.0","typeLabel":"String · object"},{"type":"object","title":"Number","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["number"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.description","typeLabel":"string"},"default":{"oneOf":[{"type":"number","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.default.oneOf.0","typeLabel":"number"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.default","typeLabel":"number | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"number","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.enum.items.[INDEX]","typeLabel":"number"},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.enum","typeLabel":"number[]"},"minimum":{"oneOf":[{"type":"number","description":"Use if a minimum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.minimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a minimum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.minimum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.minimum","typeLabel":"number | null"},"maximum":{"oneOf":[{"type":"number","description":"Use if a maximum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.maximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a maximum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.maximum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1.maximum","typeLabel":"number | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.1","typeLabel":"Number · object"},{"type":"object","title":"Boolean","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["boolean"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.2.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.2.description","typeLabel":"string"},"default":{"oneOf":[{"type":"boolean","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.2.default.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.2.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.2.default","typeLabel":"boolean | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.2","typeLabel":"Boolean · object"},{"type":"object","title":"Array","description":"When provided, fully replaces the parent's output schema.","required":["type","items"],"properties":{"type":{"type":"string","enum":["array"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.type","typeLabel":"enum\u003cstring>"},"items":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.\\items","typeLabel":"any"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.description","typeLabel":"string"},"itemFormat":{"type":"string","default":"- {item}\n","description":"Format string used to render each array item in the generated output. Use the `{item}` placeholder for the item value.\n","example":"- {item}\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.itemFormat","typeLabel":"string"},"minItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.minItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.minItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.minItems","typeLabel":"integer | null"},"maxItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.maxItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.maxItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.maxItems","typeLabel":"integer | null"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.3","typeLabel":"Array · object"},{"type":"object","title":"Object","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["object"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.description","typeLabel":"string"},"fieldFormat":{"type":"string","default":"{key}: {value}\n","description":"Free-form format string that controls how an object's fields are rendered into the final text output. Operates in one of two modes determined by which placeholders appear:\n\n**Subheading mode** (default: `\"{key}: {value}\\n\"`): triggered when the format contains both `{key}` and `{value}`. Applied per field — each field becomes a key/value line. When a field has no relevant input/output and no `default` is set, the entire key/value line for that field is omitted from the rendered output.\n\n**Object mode** (e.g. `\"{name} ({age})\"`): triggered when `{key}` and `{value}` are absent. Placeholders must be actual field keys defined in `fields`. Applied once for the whole object, composing all fields into a single string. When a field has no relevant input/output and no `default` is set, its placeholder is replaced with an empty string (`\"\"`).\n\nValidation rules: format must not be empty; if either `{key}` or `{value}` appears, both must be present; in subheading mode no extra placeholders are allowed; in object mode every placeholder must match a defined field key.\n","example":"{key}: {value}\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fieldFormat","typeLabel":"string"},"fields":{"type":"array","description":"Define what fields are possible to return in the object.","items":{"type":"object","required":["key","description","value"],"properties":{"key":{"type":"string","description":"Use to set a key to reference.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].key","typeLabel":"string"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].description","typeLabel":"string"},"value":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].value","typeLabel":"any"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].default","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields","typeLabel":"object[]"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema.oneOf.4","typeLabel":"Object · object"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation.outputSchema","typeLabel":"String · object | Number · object | Boolean · object | Array · object | Object · object"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].generation","typeLabel":"object"},"heading":{"oneOf":[{"type":"string","deprecated":true,"description":"**Deprecated** — use `generation.heading`. Replaces the section's heading for this call.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].heading.oneOf.0","typeLabel":"string"},{"type":"null","deprecated":true,"description":"**Deprecated** — use `generation.heading`. Replaces the section's heading for this call.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].heading.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].heading","typeLabel":"string | null"},"instructions":{"type":"object","description":"**Deprecated** — use `generation.instructions`.","deprecated":true,"properties":{"contentPrompt":{"type":"string","description":"When provided, replaces the section's content prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].instructions.contentPrompt","typeLabel":"string"},"writingStylePrompt":{"type":"string","description":"When provided, replaces the section's writing style prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].instructions.writingStylePrompt","typeLabel":"string"},"miscPrompt":{"type":"string","description":"When provided, replaces the section's misc prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].instructions.miscPrompt","typeLabel":"string"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].instructions","typeLabel":"object"},"outputSchema":{"oneOf":[{"type":"object","title":"String","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["string"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0.description","typeLabel":"string"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0.default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0.default","typeLabel":"string | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"string","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0.enum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0.enum","typeLabel":"string[]"},"pattern":{"oneOf":[{"type":"string","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0.pattern.oneOf.0","typeLabel":"string"},{"type":"null","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0.pattern.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0.pattern","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.0","typeLabel":"String · object"},{"type":"object","title":"Number","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["number"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.description","typeLabel":"string"},"default":{"oneOf":[{"type":"number","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.default.oneOf.0","typeLabel":"number"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.default","typeLabel":"number | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"number","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.enum.items.[INDEX]","typeLabel":"number"},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.enum","typeLabel":"number[]"},"minimum":{"oneOf":[{"type":"number","description":"Use if a minimum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.minimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a minimum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.minimum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.minimum","typeLabel":"number | null"},"maximum":{"oneOf":[{"type":"number","description":"Use if a maximum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.maximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a maximum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.maximum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1.maximum","typeLabel":"number | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.1","typeLabel":"Number · object"},{"type":"object","title":"Boolean","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["boolean"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.2.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.2.description","typeLabel":"string"},"default":{"oneOf":[{"type":"boolean","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.2.default.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.2.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.2.default","typeLabel":"boolean | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.2","typeLabel":"Boolean · object"},{"type":"object","title":"Array","description":"**Deprecated** — use `generation.outputSchema`.","required":["type","items"],"deprecated":true,"properties":{"type":{"type":"string","enum":["array"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.type","typeLabel":"enum\u003cstring>"},"items":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.\\items","typeLabel":"any"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.description","typeLabel":"string"},"itemFormat":{"type":"string","default":"- {item}\n","description":"Format string used to render each array item in the generated output. Use the `{item}` placeholder for the item value.\n","example":"- {item}\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.itemFormat","typeLabel":"string"},"minItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.minItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.minItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.minItems","typeLabel":"integer | null"},"maxItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.maxItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.maxItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.maxItems","typeLabel":"integer | null"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.3","typeLabel":"Array · object"},{"type":"object","title":"Object","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["object"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.description","typeLabel":"string"},"fieldFormat":{"type":"string","default":"{key}: {value}\n","description":"Free-form format string that controls how an object's fields are rendered into the final text output. Operates in one of two modes determined by which placeholders appear:\n\n**Subheading mode** (default: `\"{key}: {value}\\n\"`): triggered when the format contains both `{key}` and `{value}`. Applied per field — each field becomes a key/value line. When a field has no relevant input/output and no `default` is set, the entire key/value line for that field is omitted from the rendered output.\n\n**Object mode** (e.g. `\"{name} ({age})\"`): triggered when `{key}` and `{value}` are absent. Placeholders must be actual field keys defined in `fields`. Applied once for the whole object, composing all fields into a single string. When a field has no relevant input/output and no `default` is set, its placeholder is replaced with an empty string (`\"\"`).\n\nValidation rules: format must not be empty; if either `{key}` or `{value}` appears, both must be present; in subheading mode no extra placeholders are allowed; in object mode every placeholder must match a defined field key.\n","example":"{key}: {value}\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fieldFormat","typeLabel":"string"},"fields":{"type":"array","description":"Define what fields are possible to return in the object.","items":{"type":"object","required":["key","description","value"],"properties":{"key":{"type":"string","description":"Use to set a key to reference.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].key","typeLabel":"string"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].description","typeLabel":"string"},"value":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].value","typeLabel":"any"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].default","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields","typeLabel":"object[]"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema.oneOf.4","typeLabel":"Object · object"}],"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX].outputSchema","typeLabel":"String · object | Number · object | Boolean · object | Array · object | Object · object"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.templateRef.overrides.generation.sections","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.templateRef.overrides.generation","typeLabel":"object"},"instructions":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"Template-level prompt instructions that apply generally to all sections.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.instructions.prompt","typeLabel":"string"}},"deprecated":true,"description":"**Deprecated** — use `generation.instructions`. Replaces the template-level instructions for this call.","uniqueKey":"oneOf.0.templateRef.overrides.instructions","typeLabel":"object"},"sections":{"type":"array","deprecated":true,"description":"**Deprecated** — use `generation.sections`. Per-section override patches. Each entry must reference a section already linked to the base template version.","items":{"type":"object","description":"Override patch applied to a section linked to the base template version. Override semantics are per-field for `instructions` (any field you omit is inherited from the parent's published version) and wholesale for `outputSchema` (whatever you submit fully replaces the parent schema — partial schemas are not merged). The same rule applies when a section is forked via `inheritFromId`.\n","required":["sectionId"],"example":{"generation":{"heading":"Discharge Plan","instructions":{"contentPrompt":"Focus on medications and follow-up"},"outputSchema":{"type":"string"}}},"properties":{"sectionId":{"type":"string","format":"uuid","description":"The UUID of a section linked to the base template version.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].sectionId","typeLabel":"string\u003cuuid>"},"generation":{"type":"object","description":"The canonical override patch for this section.","properties":{"heading":{"oneOf":[{"type":"string","description":"When provided, replaces the section's heading for this call.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.heading.oneOf.0","typeLabel":"string"},{"type":"null","description":"When provided, replaces the section's heading for this call.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.heading.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.heading","typeLabel":"string | null"},"instructions":{"type":"object","description":"Partial section-instructions patch used in override and fork contexts. Each field is independent: provide only the fields you want to replace, and any field you omit is inherited from the parent's published version.\n","properties":{"contentPrompt":{"type":"string","description":"When provided, replaces the section's content prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.instructions.contentPrompt","typeLabel":"string"},"writingStylePrompt":{"type":"string","description":"When provided, replaces the section's writing style prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.instructions.writingStylePrompt","typeLabel":"string"},"miscPrompt":{"type":"string","description":"When provided, replaces the section's misc prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.instructions.miscPrompt","typeLabel":"string"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.instructions","typeLabel":"object"},"outputSchema":{"oneOf":[{"type":"object","title":"String","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["string"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0.description","typeLabel":"string"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0.default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0.default","typeLabel":"string | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"string","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0.enum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0.enum","typeLabel":"string[]"},"pattern":{"oneOf":[{"type":"string","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0.pattern.oneOf.0","typeLabel":"string"},{"type":"null","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0.pattern.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0.pattern","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.0","typeLabel":"String · object"},{"type":"object","title":"Number","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["number"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.description","typeLabel":"string"},"default":{"oneOf":[{"type":"number","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.default.oneOf.0","typeLabel":"number"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.default","typeLabel":"number | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"number","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.enum.items.[INDEX]","typeLabel":"number"},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.enum","typeLabel":"number[]"},"minimum":{"oneOf":[{"type":"number","description":"Use if a minimum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.minimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a minimum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.minimum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.minimum","typeLabel":"number | null"},"maximum":{"oneOf":[{"type":"number","description":"Use if a maximum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.maximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a maximum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.maximum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1.maximum","typeLabel":"number | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.1","typeLabel":"Number · object"},{"type":"object","title":"Boolean","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["boolean"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.2.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.2.description","typeLabel":"string"},"default":{"oneOf":[{"type":"boolean","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.2.default.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.2.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.2.default","typeLabel":"boolean | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.2","typeLabel":"Boolean · object"},{"type":"object","title":"Array","description":"When provided, fully replaces the parent's output schema.","required":["type","items"],"properties":{"type":{"type":"string","enum":["array"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.type","typeLabel":"enum\u003cstring>"},"items":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.\\items","typeLabel":"any"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.description","typeLabel":"string"},"itemFormat":{"type":"string","default":"- {item}\n","description":"Format string used to render each array item in the generated output. Use the `{item}` placeholder for the item value.\n","example":"- {item}\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.itemFormat","typeLabel":"string"},"minItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.minItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.minItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.minItems","typeLabel":"integer | null"},"maxItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.maxItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.maxItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.maxItems","typeLabel":"integer | null"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.3","typeLabel":"Array · object"},{"type":"object","title":"Object","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["object"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.description","typeLabel":"string"},"fieldFormat":{"type":"string","default":"{key}: {value}\n","description":"Free-form format string that controls how an object's fields are rendered into the final text output. Operates in one of two modes determined by which placeholders appear:\n\n**Subheading mode** (default: `\"{key}: {value}\\n\"`): triggered when the format contains both `{key}` and `{value}`. Applied per field — each field becomes a key/value line. When a field has no relevant input/output and no `default` is set, the entire key/value line for that field is omitted from the rendered output.\n\n**Object mode** (e.g. `\"{name} ({age})\"`): triggered when `{key}` and `{value}` are absent. Placeholders must be actual field keys defined in `fields`. Applied once for the whole object, composing all fields into a single string. When a field has no relevant input/output and no `default` is set, its placeholder is replaced with an empty string (`\"\"`).\n\nValidation rules: format must not be empty; if either `{key}` or `{value}` appears, both must be present; in subheading mode no extra placeholders are allowed; in object mode every placeholder must match a defined field key.\n","example":"{key}: {value}\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fieldFormat","typeLabel":"string"},"fields":{"type":"array","description":"Define what fields are possible to return in the object.","items":{"type":"object","required":["key","description","value"],"properties":{"key":{"type":"string","description":"Use to set a key to reference.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].key","typeLabel":"string"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].description","typeLabel":"string"},"value":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].value","typeLabel":"any"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX].default","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fields","typeLabel":"object[]"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema.oneOf.4","typeLabel":"Object · object"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation.outputSchema","typeLabel":"String · object | Number · object | Boolean · object | Array · object | Object · object"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].generation","typeLabel":"object"},"heading":{"oneOf":[{"type":"string","deprecated":true,"description":"**Deprecated** — use `generation.heading`. Replaces the section's heading for this call.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].heading.oneOf.0","typeLabel":"string"},{"type":"null","deprecated":true,"description":"**Deprecated** — use `generation.heading`. Replaces the section's heading for this call.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].heading.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].heading","typeLabel":"string | null"},"instructions":{"type":"object","description":"**Deprecated** — use `generation.instructions`.","deprecated":true,"properties":{"contentPrompt":{"type":"string","description":"When provided, replaces the section's content prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].instructions.contentPrompt","typeLabel":"string"},"writingStylePrompt":{"type":"string","description":"When provided, replaces the section's writing style prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].instructions.writingStylePrompt","typeLabel":"string"},"miscPrompt":{"type":"string","description":"When provided, replaces the section's misc prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].instructions.miscPrompt","typeLabel":"string"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].instructions","typeLabel":"object"},"outputSchema":{"oneOf":[{"type":"object","title":"String","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["string"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0.description","typeLabel":"string"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0.default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0.default","typeLabel":"string | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"string","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0.enum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0.enum","typeLabel":"string[]"},"pattern":{"oneOf":[{"type":"string","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0.pattern.oneOf.0","typeLabel":"string"},{"type":"null","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0.pattern.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0.pattern","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.0","typeLabel":"String · object"},{"type":"object","title":"Number","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["number"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.description","typeLabel":"string"},"default":{"oneOf":[{"type":"number","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.default.oneOf.0","typeLabel":"number"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.default","typeLabel":"number | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"number","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.enum.items.[INDEX]","typeLabel":"number"},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.enum","typeLabel":"number[]"},"minimum":{"oneOf":[{"type":"number","description":"Use if a minimum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.minimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a minimum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.minimum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.minimum","typeLabel":"number | null"},"maximum":{"oneOf":[{"type":"number","description":"Use if a maximum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.maximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a maximum value applies.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.maximum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1.maximum","typeLabel":"number | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.1","typeLabel":"Number · object"},{"type":"object","title":"Boolean","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["boolean"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.2.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.2.description","typeLabel":"string"},"default":{"oneOf":[{"type":"boolean","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.2.default.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.2.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.2.default","typeLabel":"boolean | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.2","typeLabel":"Boolean · object"},{"type":"object","title":"Array","description":"**Deprecated** — use `generation.outputSchema`.","required":["type","items"],"deprecated":true,"properties":{"type":{"type":"string","enum":["array"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.type","typeLabel":"enum\u003cstring>"},"items":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.\\items","typeLabel":"any"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.description","typeLabel":"string"},"itemFormat":{"type":"string","default":"- {item}\n","description":"Format string used to render each array item in the generated output. Use the `{item}` placeholder for the item value.\n","example":"- {item}\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.itemFormat","typeLabel":"string"},"minItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.minItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.minItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.minItems","typeLabel":"integer | null"},"maxItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.maxItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.maxItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.maxItems","typeLabel":"integer | null"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.3","typeLabel":"Array · object"},{"type":"object","title":"Object","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["object"],"isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.description","typeLabel":"string"},"fieldFormat":{"type":"string","default":"{key}: {value}\n","description":"Free-form format string that controls how an object's fields are rendered into the final text output. Operates in one of two modes determined by which placeholders appear:\n\n**Subheading mode** (default: `\"{key}: {value}\\n\"`): triggered when the format contains both `{key}` and `{value}`. Applied per field — each field becomes a key/value line. When a field has no relevant input/output and no `default` is set, the entire key/value line for that field is omitted from the rendered output.\n\n**Object mode** (e.g. `\"{name} ({age})\"`): triggered when `{key}` and `{value}` are absent. Placeholders must be actual field keys defined in `fields`. Applied once for the whole object, composing all fields into a single string. When a field has no relevant input/output and no `default` is set, its placeholder is replaced with an empty string (`\"\"`).\n\nValidation rules: format must not be empty; if either `{key}` or `{value}` appears, both must be present; in subheading mode no extra placeholders are allowed; in object mode every placeholder must match a defined field key.\n","example":"{key}: {value}\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fieldFormat","typeLabel":"string"},"fields":{"type":"array","description":"Define what fields are possible to return in the object.","items":{"type":"object","required":["key","description","value"],"properties":{"key":{"type":"string","description":"Use to set a key to reference.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].key","typeLabel":"string"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].description","typeLabel":"string"},"value":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].value","typeLabel":"any"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].default","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fields","typeLabel":"object[]"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema.oneOf.4","typeLabel":"Object · object"}],"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX].outputSchema","typeLabel":"String · object | Number · object | Boolean · object | Array · object | Object · object"}},"uniqueKey":"oneOf.0.templateRef.overrides.sections.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.templateRef.overrides.sections","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.templateRef.overrides","typeLabel":"object"}},"description":"Reference an existing stored template, optionally with overrides.","isRequired":true,"uniqueKey":"oneOf.0.templateRef","typeLabel":"object"},"context":{"type":"array","description":"Ordered list of context items the model reasons over. Each item is one of text, a transcript (with optional metadata and segments), or a single fact. Items are interleaved by timestamps where present on transcript segments; otherwise array order is preserved.\n","items":{"oneOf":[{"type":"object","title":"CommonTextContext","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"description":"The type of context, always \"text\" in this context.\n","isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"A text string to be used as input to the model.\n","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.0","typeLabel":"CommonTextContext · object"},{"type":"object","title":"CommonTranscriptContext","description":"A transcript provided as input context to the model.","required":["type","transcript"],"properties":{"type":{"type":"string","enum":["transcript"],"isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"transcript":{"type":"object","required":["transcripts"],"description":"Minimal transcript shape accepted as guided-document input context. Decoupled from the transcript resource: only `transcripts` is required, and within each segment only `text` is required.\n","properties":{"transcripts":{"type":"array","minItems":1,"items":{"type":"object","required":["text"],"description":"Minimal transcript segment. Only `text` is required.","properties":{"text":{"type":"string","description":"The spoken phrase or utterance.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].text","typeLabel":"string"},"channel":{"type":"integer","description":"The channel associated with this phrase/utterance.","uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].channel","typeLabel":"integer"},"participant":{"type":"integer","description":"The identifier of the participant.","uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].participant","typeLabel":"integer"},"speakerId":{"type":"integer","description":"Id to tag an identified speaker.","uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].speakerId","typeLabel":"integer"},"start":{"type":"integer","description":"Start time in milliseconds for phrase/utterance.","uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].start","typeLabel":"integer"},"end":{"type":"integer","description":"End time in milliseconds for phrase/utterance.","uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].end","typeLabel":"integer"}},"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.transcripts","typeLabel":"object[]"},"metadata":{"type":"object","description":"Optional transcript-level metadata. All fields optional.","properties":{"participantsRoles":{"oneOf":[{"type":"array","items":{"type":"object","required":["channel","role"],"properties":{"channel":{"type":"integer","minimum":0,"description":"The audio channel to associate with a participant role.","isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX].channel","typeLabel":"integer"},"role":{"type":"string","description":"Free-form label for the participant role (e.g., 'doctor', 'patient', 'Attending Physician'). Must not be empty or whitespace-only after trimming, must not contain control characters, and must not exceed 100 characters or 10 words.","isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX].role","typeLabel":"string"}},"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["channel","role"],"properties":{"channel":{"type":"integer","minimum":0,"description":"The audio channel to associate with a participant role."},"role":{"type":"string","description":"Free-form label for the participant role (e.g., 'doctor', 'patient', 'Attending Physician'). Must not be empty or whitespace-only after trimming, must not contain control characters, and must not exceed 100 characters or 10 words."}}},"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles","typeLabel":"object[] | null"}},"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1.transcript","typeLabel":"object"}},"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.1","typeLabel":"CommonTranscriptContext · object"},{"type":"object","title":"CommonFactsContext","description":"A list of facts provided as input context to the model.","required":["type","facts"],"properties":{"type":{"type":"string","enum":["facts"],"isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"facts":{"type":"array","minItems":1,"items":{"type":"object","required":["text"],"description":"Minimal fact shape. Only `text` is required.","properties":{"text":{"type":"string","description":"The text of the fact.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.2.facts.items.[INDEX].text","typeLabel":"string"},"group":{"type":"string","description":"The group to which the fact belongs.","example":"Others","uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.2.facts.items.[INDEX].group","typeLabel":"string"}},"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.2.facts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.2.facts","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.context.items.[INDEX].oneOf.2","typeLabel":"CommonFactsContext · object"}],"uniqueKey":"oneOf.0.context.items.[INDEX]","typeLabel":"CommonTextContext · object | CommonTranscriptContext · object | CommonFactsContext · object"},"uniqueKey":"oneOf.0.context","typeLabel":"(CommonTextContext · object | CommonTranscriptContext · object | CommonFactsContext · object)[]"},"interactionId":{"type":"string","format":"uuid","description":"When supplied, all facts and transcripts already attached to the referenced interaction are passed implicitly as input context. Facts with `isDiscarded: true` are not passed on.\n","uniqueKey":"oneOf.0.interactionId","typeLabel":"string\u003cuuid>"},"labels":{"type":"array","description":"Key/value labels attached to the document. Used for filtering in the LIST /documents endpoint.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.labels.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.labels.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"oneOf.0.labels.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.labels","typeLabel":"object[]"}},"uniqueKey":"oneOf.0","typeLabel":"templateRef · object"},{"type":"object","title":"assemblyTemplate","description":"Generate a document by assembling a template from existing stored sections. The resulting template aggregate is auto-saved and can be referenced in future calls. At least one of `context` or `interactionId` must be supplied as input context for the model.\n","required":["assemblyTemplate","outputLanguage"],"properties":{"outputLanguage":{"type":"string","description":"The language in which the document will be generated as a BCP 47 tag.","isRequired":true,"uniqueKey":"oneOf.1.outputLanguage","typeLabel":"string"},"assemblyTemplate":{"type":"object","required":["name","sectionRefs"],"description":"Assemble a template from existing stored sections.","example":{"name":"Discharge summary assembly","instructions":{"prompt":"Produce a concise discharge summary"},"sectionRefs":[{"sectionId":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","overrides":{"generation":{"heading":"Discharge Plan","instructions":{"contentPrompt":"Focus on medications and follow-up"}}}}]},"properties":{"name":{"type":"string","description":"Name for the auto-generated template aggregate that will be persisted.","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.name","typeLabel":"string"},"sectionRefs":{"type":"array","minItems":1,"items":{"type":"object","required":["sectionId"],"description":"Per-section reference for the assembly path. \n","example":{"sectionId":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","overrides":{"generation":{"heading":"Discharge Plan","instructions":{"contentPrompt":"Focus on medications and follow-up"}}}},"properties":{"sectionId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].sectionId","typeLabel":"string\u003cuuid>"},"sectionVersionId":{"oneOf":[{"type":"string","format":"uuid","description":"Optional explicit section version. Defaults to the section's published version when omitted.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].sectionVersionId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Optional explicit section version. Defaults to the section's published version when omitted.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].sectionVersionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].sectionVersionId","typeLabel":"string\u003cuuid> | null"},"overrides":{"type":"object","description":"Runtime override patch for this section. `generation` is the canonical shape. The flat fields are deprecated.","example":{"generation":{"heading":"Discharge Plan","instructions":{"contentPrompt":"Focus on medications and follow-up"},"outputSchema":{"type":"string"}}},"properties":{"generation":{"type":"object","description":"The canonical override patch for this section.","properties":{"heading":{"oneOf":[{"type":"string","description":"When provided, replaces the section's heading for this call.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.heading.oneOf.0","typeLabel":"string"},{"type":"null","description":"When provided, replaces the section's heading for this call.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.heading.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.heading","typeLabel":"string | null"},"instructions":{"type":"object","description":"Partial section-instructions patch used in override and fork contexts. Each field is independent: provide only the fields you want to replace, and any field you omit is inherited from the parent's published version.\n","properties":{"contentPrompt":{"type":"string","description":"When provided, replaces the section's content prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.instructions.contentPrompt","typeLabel":"string"},"writingStylePrompt":{"type":"string","description":"When provided, replaces the section's writing style prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.instructions.writingStylePrompt","typeLabel":"string"},"miscPrompt":{"type":"string","description":"When provided, replaces the section's misc prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.instructions.miscPrompt","typeLabel":"string"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.instructions","typeLabel":"object"},"outputSchema":{"oneOf":[{"type":"object","title":"String","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["string"],"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0.description","typeLabel":"string"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0.default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0.default","typeLabel":"string | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"string","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0.enum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0.enum","typeLabel":"string[]"},"pattern":{"oneOf":[{"type":"string","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0.pattern.oneOf.0","typeLabel":"string"},{"type":"null","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0.pattern.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0.pattern","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.0","typeLabel":"String · object"},{"type":"object","title":"Number","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["number"],"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.description","typeLabel":"string"},"default":{"oneOf":[{"type":"number","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.default.oneOf.0","typeLabel":"number"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.default","typeLabel":"number | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"number","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.enum.items.[INDEX]","typeLabel":"number"},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.enum","typeLabel":"number[]"},"minimum":{"oneOf":[{"type":"number","description":"Use if a minimum value applies.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.minimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a minimum value applies.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.minimum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.minimum","typeLabel":"number | null"},"maximum":{"oneOf":[{"type":"number","description":"Use if a maximum value applies.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.maximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a maximum value applies.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.maximum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1.maximum","typeLabel":"number | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.1","typeLabel":"Number · object"},{"type":"object","title":"Boolean","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["boolean"],"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.2.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.2.description","typeLabel":"string"},"default":{"oneOf":[{"type":"boolean","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.2.default.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.2.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.2.default","typeLabel":"boolean | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.2","typeLabel":"Boolean · object"},{"type":"object","title":"Array","description":"When provided, fully replaces the parent's output schema.","required":["type","items"],"properties":{"type":{"type":"string","enum":["array"],"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.type","typeLabel":"enum\u003cstring>"},"items":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.\\items","typeLabel":"any"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.description","typeLabel":"string"},"itemFormat":{"type":"string","default":"- {item}\n","description":"Format string used to render each array item in the generated output. Use the `{item}` placeholder for the item value.\n","example":"- {item}\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.itemFormat","typeLabel":"string"},"minItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.minItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.minItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.minItems","typeLabel":"integer | null"},"maxItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.maxItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.maxItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.maxItems","typeLabel":"integer | null"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.3","typeLabel":"Array · object"},{"type":"object","title":"Object","description":"When provided, fully replaces the parent's output schema.","required":["type"],"properties":{"type":{"type":"string","enum":["object"],"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.description","typeLabel":"string"},"fieldFormat":{"type":"string","default":"{key}: {value}\n","description":"Free-form format string that controls how an object's fields are rendered into the final text output. Operates in one of two modes determined by which placeholders appear:\n\n**Subheading mode** (default: `\"{key}: {value}\\n\"`): triggered when the format contains both `{key}` and `{value}`. Applied per field — each field becomes a key/value line. When a field has no relevant input/output and no `default` is set, the entire key/value line for that field is omitted from the rendered output.\n\n**Object mode** (e.g. `\"{name} ({age})\"`): triggered when `{key}` and `{value}` are absent. Placeholders must be actual field keys defined in `fields`. Applied once for the whole object, composing all fields into a single string. When a field has no relevant input/output and no `default` is set, its placeholder is replaced with an empty string (`\"\"`).\n\nValidation rules: format must not be empty; if either `{key}` or `{value}` appears, both must be present; in subheading mode no extra placeholders are allowed; in object mode every placeholder must match a defined field key.\n","example":"{key}: {value}\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fieldFormat","typeLabel":"string"},"fields":{"type":"array","description":"Define what fields are possible to return in the object.","items":{"type":"object","required":["key","description","value"],"properties":{"key":{"type":"string","description":"Use to set a key to reference.","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fields.items.[INDEX].key","typeLabel":"string"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fields.items.[INDEX].description","typeLabel":"string"},"value":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fields.items.[INDEX].value","typeLabel":"any"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fields.items.[INDEX].default","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fields","typeLabel":"object[]"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema.oneOf.4","typeLabel":"Object · object"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation.outputSchema","typeLabel":"String · object | Number · object | Boolean · object | Array · object | Object · object"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.generation","typeLabel":"object"},"heading":{"oneOf":[{"type":"string","deprecated":true,"description":"**Deprecated** — use `generation.heading`. Replaces the section's heading for this call.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.heading.oneOf.0","typeLabel":"string"},{"type":"null","deprecated":true,"description":"**Deprecated** — use `generation.heading`. Replaces the section's heading for this call.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.heading.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.heading","typeLabel":"string | null"},"instructions":{"type":"object","description":"**Deprecated** — use `generation.instructions`.","deprecated":true,"properties":{"contentPrompt":{"type":"string","description":"When provided, replaces the section's content prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.instructions.contentPrompt","typeLabel":"string"},"writingStylePrompt":{"type":"string","description":"When provided, replaces the section's writing style prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.instructions.writingStylePrompt","typeLabel":"string"},"miscPrompt":{"type":"string","description":"When provided, replaces the section's misc prompt. Omit to inherit from the parent.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.instructions.miscPrompt","typeLabel":"string"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.instructions","typeLabel":"object"},"outputSchema":{"oneOf":[{"type":"object","title":"String","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["string"],"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0.description","typeLabel":"string"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0.default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0.default","typeLabel":"string | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"string","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0.enum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0.enum","typeLabel":"string[]"},"pattern":{"oneOf":[{"type":"string","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0.pattern.oneOf.0","typeLabel":"string"},{"type":"null","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0.pattern.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0.pattern","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.0","typeLabel":"String · object"},{"type":"object","title":"Number","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["number"],"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.description","typeLabel":"string"},"default":{"oneOf":[{"type":"number","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.default.oneOf.0","typeLabel":"number"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.default","typeLabel":"number | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"number","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.enum.items.[INDEX]","typeLabel":"number"},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.enum","typeLabel":"number[]"},"minimum":{"oneOf":[{"type":"number","description":"Use if a minimum value applies.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.minimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a minimum value applies.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.minimum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.minimum","typeLabel":"number | null"},"maximum":{"oneOf":[{"type":"number","description":"Use if a maximum value applies.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.maximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a maximum value applies.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.maximum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1.maximum","typeLabel":"number | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.1","typeLabel":"Number · object"},{"type":"object","title":"Boolean","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["boolean"],"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.2.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.2.description","typeLabel":"string"},"default":{"oneOf":[{"type":"boolean","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.2.default.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.2.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.2.default","typeLabel":"boolean | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.2","typeLabel":"Boolean · object"},{"type":"object","title":"Array","description":"**Deprecated** — use `generation.outputSchema`.","required":["type","items"],"deprecated":true,"properties":{"type":{"type":"string","enum":["array"],"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.type","typeLabel":"enum\u003cstring>"},"items":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.\\items","typeLabel":"any"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.description","typeLabel":"string"},"itemFormat":{"type":"string","default":"- {item}\n","description":"Format string used to render each array item in the generated output. Use the `{item}` placeholder for the item value.\n","example":"- {item}\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.itemFormat","typeLabel":"string"},"minItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.minItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.minItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.minItems","typeLabel":"integer | null"},"maxItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.maxItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.maxItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.maxItems","typeLabel":"integer | null"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.3","typeLabel":"Array · object"},{"type":"object","title":"Object","description":"**Deprecated** — use `generation.outputSchema`.","required":["type"],"deprecated":true,"properties":{"type":{"type":"string","enum":["object"],"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.description","typeLabel":"string"},"fieldFormat":{"type":"string","default":"{key}: {value}\n","description":"Free-form format string that controls how an object's fields are rendered into the final text output. Operates in one of two modes determined by which placeholders appear:\n\n**Subheading mode** (default: `\"{key}: {value}\\n\"`): triggered when the format contains both `{key}` and `{value}`. Applied per field — each field becomes a key/value line. When a field has no relevant input/output and no `default` is set, the entire key/value line for that field is omitted from the rendered output.\n\n**Object mode** (e.g. `\"{name} ({age})\"`): triggered when `{key}` and `{value}` are absent. Placeholders must be actual field keys defined in `fields`. Applied once for the whole object, composing all fields into a single string. When a field has no relevant input/output and no `default` is set, its placeholder is replaced with an empty string (`\"\"`).\n\nValidation rules: format must not be empty; if either `{key}` or `{value}` appears, both must be present; in subheading mode no extra placeholders are allowed; in object mode every placeholder must match a defined field key.\n","example":"{key}: {value}\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fieldFormat","typeLabel":"string"},"fields":{"type":"array","description":"Define what fields are possible to return in the object.","items":{"type":"object","required":["key","description","value"],"properties":{"key":{"type":"string","description":"Use to set a key to reference.","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fields.items.[INDEX].key","typeLabel":"string"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fields.items.[INDEX].description","typeLabel":"string"},"value":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fields.items.[INDEX].value","typeLabel":"any"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fields.items.[INDEX].default","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fields","typeLabel":"object[]"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4.fallbackString","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema.oneOf.4","typeLabel":"Object · object"}],"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides.outputSchema","typeLabel":"String · object | Number · object | Boolean · object | Array · object | Object · object"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX].overrides","typeLabel":"object"}},"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.sectionRefs","typeLabel":"object[]"},"instructions":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"Template-level prompt instructions that apply generally to all sections.","isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate.instructions.prompt","typeLabel":"string"}},"description":"Template-level instructions for the assembled template.","uniqueKey":"oneOf.1.assemblyTemplate.instructions","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.1.assemblyTemplate","typeLabel":"object"},"context":{"type":"array","description":"Ordered list of context items the model reasons over. Each item is one of text, a transcript (with optional metadata and segments), or a single fact. Items are interleaved by timestamps where present on transcript segments; otherwise array order is preserved.\n","items":{"oneOf":[{"type":"object","title":"CommonTextContext","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"description":"The type of context, always \"text\" in this context.\n","isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"A text string to be used as input to the model.\n","minLength":1,"isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.0","typeLabel":"CommonTextContext · object"},{"type":"object","title":"CommonTranscriptContext","description":"A transcript provided as input context to the model.","required":["type","transcript"],"properties":{"type":{"type":"string","enum":["transcript"],"isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"transcript":{"type":"object","required":["transcripts"],"description":"Minimal transcript shape accepted as guided-document input context. Decoupled from the transcript resource: only `transcripts` is required, and within each segment only `text` is required.\n","properties":{"transcripts":{"type":"array","minItems":1,"items":{"type":"object","required":["text"],"description":"Minimal transcript segment. Only `text` is required.","properties":{"text":{"type":"string","description":"The spoken phrase or utterance.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].text","typeLabel":"string"},"channel":{"type":"integer","description":"The channel associated with this phrase/utterance.","uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].channel","typeLabel":"integer"},"participant":{"type":"integer","description":"The identifier of the participant.","uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].participant","typeLabel":"integer"},"speakerId":{"type":"integer","description":"Id to tag an identified speaker.","uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].speakerId","typeLabel":"integer"},"start":{"type":"integer","description":"Start time in milliseconds for phrase/utterance.","uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].start","typeLabel":"integer"},"end":{"type":"integer","description":"End time in milliseconds for phrase/utterance.","uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].end","typeLabel":"integer"}},"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.transcripts","typeLabel":"object[]"},"metadata":{"type":"object","description":"Optional transcript-level metadata. All fields optional.","properties":{"participantsRoles":{"oneOf":[{"type":"array","items":{"type":"object","required":["channel","role"],"properties":{"channel":{"type":"integer","minimum":0,"description":"The audio channel to associate with a participant role.","isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX].channel","typeLabel":"integer"},"role":{"type":"string","description":"Free-form label for the participant role (e.g., 'doctor', 'patient', 'Attending Physician'). Must not be empty or whitespace-only after trimming, must not contain control characters, and must not exceed 100 characters or 10 words.","isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX].role","typeLabel":"string"}},"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["channel","role"],"properties":{"channel":{"type":"integer","minimum":0,"description":"The audio channel to associate with a participant role."},"role":{"type":"string","description":"Free-form label for the participant role (e.g., 'doctor', 'patient', 'Attending Physician'). Must not be empty or whitespace-only after trimming, must not contain control characters, and must not exceed 100 characters or 10 words."}}},"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles","typeLabel":"object[] | null"}},"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1.transcript","typeLabel":"object"}},"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.1","typeLabel":"CommonTranscriptContext · object"},{"type":"object","title":"CommonFactsContext","description":"A list of facts provided as input context to the model.","required":["type","facts"],"properties":{"type":{"type":"string","enum":["facts"],"isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"facts":{"type":"array","minItems":1,"items":{"type":"object","required":["text"],"description":"Minimal fact shape. Only `text` is required.","properties":{"text":{"type":"string","description":"The text of the fact.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.2.facts.items.[INDEX].text","typeLabel":"string"},"group":{"type":"string","description":"The group to which the fact belongs.","example":"Others","uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.2.facts.items.[INDEX].group","typeLabel":"string"}},"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.2.facts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.2.facts","typeLabel":"object[]"}},"uniqueKey":"oneOf.1.context.items.[INDEX].oneOf.2","typeLabel":"CommonFactsContext · object"}],"uniqueKey":"oneOf.1.context.items.[INDEX]","typeLabel":"CommonTextContext · object | CommonTranscriptContext · object | CommonFactsContext · object"},"uniqueKey":"oneOf.1.context","typeLabel":"(CommonTextContext · object | CommonTranscriptContext · object | CommonFactsContext · object)[]"},"interactionId":{"type":"string","format":"uuid","description":"When supplied, all facts and transcripts already attached to the referenced interaction are passed implicitly as input context. Facts with `isDiscarded: true` are not passed on.\n","uniqueKey":"oneOf.1.interactionId","typeLabel":"string\u003cuuid>"},"labels":{"type":"array","description":"Key/value labels attached to the document. Used for filtering in the LIST /documents endpoint.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.labels.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.labels.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"oneOf.1.labels.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.labels","typeLabel":"object[]"}},"uniqueKey":"oneOf.1","typeLabel":"assemblyTemplate · object"},{"type":"object","title":"dynamicTemplate","description":"Generate a document from a fully inline template definition supplied in the request body. Sections and the wrapping template are created and immediately published as auto-generated resources. At least one of `context` or `interactionId` must be supplied as input context for the model.\n","required":["dynamicTemplate","outputLanguage"],"properties":{"outputLanguage":{"type":"string","description":"The language in which the document will be generated as a BCP 47 tag.","isRequired":true,"uniqueKey":"oneOf.2.outputLanguage","typeLabel":"string"},"dynamicTemplate":{"type":"object","required":["name","generation"],"description":"Fully inline template defined in the request body.","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.name","typeLabel":"string"},"generation":{"type":"object","required":["instructions","sections"],"properties":{"instructions":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"Template-level prompt instructions that apply generally to all sections.","isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.instructions.prompt","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.instructions","typeLabel":"object"},"sections":{"type":"array","minItems":1,"items":{"type":"object","required":["heading","instructions","outputSchema"],"properties":{"heading":{"type":"string","description":"The heading of this section. Passed to the LLM.","isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].heading","typeLabel":"string"},"instructions":{"type":"object","required":["contentPrompt"],"properties":{"contentPrompt":{"type":"string","description":"The content prompt instructs the model what to include for synthesis. For `documentationMode: routed_parallel` this impacts what facts to route to this section.","isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].instructions.contentPrompt","typeLabel":"string"},"writingStylePrompt":{"type":"string","description":"The writingStyle prompt instructs the model in what tone and style to output.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].instructions.writingStylePrompt","typeLabel":"string"},"miscPrompt":{"type":"string","description":"Optional free-form prompt for any instructions that don't fit contentPrompt or writingStylePrompt.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].instructions.miscPrompt","typeLabel":"string"}},"description":"The prompt instructions for this section.","isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].instructions","typeLabel":"object"},"outputSchema":{"oneOf":[{"type":"object","title":"String","description":"Outputs a string according to the optionally configurable schema requirements.","required":["type"],"properties":{"type":{"type":"string","enum":["string"],"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0.description","typeLabel":"string"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0.default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0.default","typeLabel":"string | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"string","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0.enum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0.enum","typeLabel":"string[]"},"pattern":{"oneOf":[{"type":"string","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0.pattern.oneOf.0","typeLabel":"string"},{"type":"null","description":"Can be used to constrain the LLM to output a specific pattern.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0.pattern.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0.pattern","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.0","typeLabel":"String · object"},{"type":"object","title":"Number","description":"Outputs a number. The model infers whether it should be an integer or float from context.","required":["type"],"properties":{"type":{"type":"string","enum":["number"],"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.description","typeLabel":"string"},"default":{"oneOf":[{"type":"number","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.default.oneOf.0","typeLabel":"number"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.default","typeLabel":"number | null"},"enum":{"type":"array","description":"Can be used to guide the LLM with specific values to output.","items":{"type":"number","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.enum.items.[INDEX]","typeLabel":"number"},"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.enum","typeLabel":"number[]"},"minimum":{"oneOf":[{"type":"number","description":"Use if a minimum value applies.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.minimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a minimum value applies.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.minimum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.minimum","typeLabel":"number | null"},"maximum":{"oneOf":[{"type":"number","description":"Use if a maximum value applies.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.maximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Use if a maximum value applies.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.maximum.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1.maximum","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.1","typeLabel":"Number · object"},{"type":"object","title":"Boolean","description":"Outputs a boolean true or false according to schema configuration.","required":["type"],"properties":{"type":{"type":"string","enum":["boolean"],"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.2.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.2.description","typeLabel":"string"},"default":{"oneOf":[{"type":"boolean","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.2.default.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"If nothing is outputted, this default is used.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.2.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.2.default","typeLabel":"boolean | null"}},"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.2","typeLabel":"Boolean · object"},{"type":"object","title":"Array","description":"Outputs an array of items according to the optionally configurable schema requirements. Items can be configured as any type of node.","required":["type","items"],"properties":{"type":{"type":"string","enum":["array"],"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.type","typeLabel":"enum\u003cstring>"},"items":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.\\items","typeLabel":"any"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.description","typeLabel":"string"},"itemFormat":{"type":"string","default":"- {item}\n","description":"Format string used to render each array item in the generated output. Use the `{item}` placeholder for the item value.\n","example":"- {item}\n","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.itemFormat","typeLabel":"string"},"minItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.minItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Minimum number of array items to generate.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.minItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.minItems","typeLabel":"integer | null"},"maxItems":{"oneOf":[{"type":"integer","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.maxItems.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Maximum number of array items to generate.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.maxItems.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.maxItems","typeLabel":"integer | null"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the array when no items have relevant input/output.\n","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3.fallbackString","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.3","typeLabel":"Array · object"},{"type":"object","title":"Object","description":"The object output type offers advanced schema configuration with the ability to define for each field value any of the outputSchema types.","required":["type"],"properties":{"type":{"type":"string","enum":["object"],"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.description","typeLabel":"string"},"fieldFormat":{"type":"string","default":"{key}: {value}\n","description":"Free-form format string that controls how an object's fields are rendered into the final text output. Operates in one of two modes determined by which placeholders appear:\n\n**Subheading mode** (default: `\"{key}: {value}\\n\"`): triggered when the format contains both `{key}` and `{value}`. Applied per field — each field becomes a key/value line. When a field has no relevant input/output and no `default` is set, the entire key/value line for that field is omitted from the rendered output.\n\n**Object mode** (e.g. `\"{name} ({age})\"`): triggered when `{key}` and `{value}` are absent. Placeholders must be actual field keys defined in `fields`. Applied once for the whole object, composing all fields into a single string. When a field has no relevant input/output and no `default` is set, its placeholder is replaced with an empty string (`\"\"`).\n\nValidation rules: format must not be empty; if either `{key}` or `{value}` appears, both must be present; in subheading mode no extra placeholders are allowed; in object mode every placeholder must match a defined field key.\n","example":"{key}: {value}\n","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fieldFormat","typeLabel":"string"},"fields":{"type":"array","description":"Define what fields are possible to return in the object.","items":{"type":"object","required":["key","description","value"],"properties":{"key":{"type":"string","description":"Use to set a key to reference.","isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].key","typeLabel":"string"},"description":{"type":"string","description":"Guide the LLM in what to output for this node. Supplements the section-level instructions.","isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].description","typeLabel":"string"},"value":{"description":"Must be another output schema node (string, number, boolean, array, or object).","isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].value","typeLabel":"any"},"default":{"oneOf":[{"type":"string","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.0","typeLabel":"string"},{"type":"null","description":"If nothing is outputted for this field, this default value is used in the rendered output.","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].default.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX].default","typeLabel":"string | null"}},"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fields","typeLabel":"object[]"},"fallbackString":{"oneOf":[{"type":"string","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fallbackString.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set.\n","uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fallbackString.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4.fallbackString","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema.oneOf.4","typeLabel":"Object · object"}],"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX].outputSchema","typeLabel":"String · object | Number · object | Boolean · object | Array · object | Object · object"}},"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation.sections","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate.generation","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.2.dynamicTemplate","typeLabel":"object"},"context":{"type":"array","description":"Ordered list of context items the model reasons over. Each item is one of text, a transcript (with optional metadata and segments), or a single fact. Items are interleaved by timestamps where present on transcript segments; otherwise array order is preserved.\n","items":{"oneOf":[{"type":"object","title":"CommonTextContext","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"description":"The type of context, always \"text\" in this context.\n","isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"A text string to be used as input to the model.\n","minLength":1,"isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.0","typeLabel":"CommonTextContext · object"},{"type":"object","title":"CommonTranscriptContext","description":"A transcript provided as input context to the model.","required":["type","transcript"],"properties":{"type":{"type":"string","enum":["transcript"],"isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"transcript":{"type":"object","required":["transcripts"],"description":"Minimal transcript shape accepted as guided-document input context. Decoupled from the transcript resource: only `transcripts` is required, and within each segment only `text` is required.\n","properties":{"transcripts":{"type":"array","minItems":1,"items":{"type":"object","required":["text"],"description":"Minimal transcript segment. Only `text` is required.","properties":{"text":{"type":"string","description":"The spoken phrase or utterance.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].text","typeLabel":"string"},"channel":{"type":"integer","description":"The channel associated with this phrase/utterance.","uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].channel","typeLabel":"integer"},"participant":{"type":"integer","description":"The identifier of the participant.","uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].participant","typeLabel":"integer"},"speakerId":{"type":"integer","description":"Id to tag an identified speaker.","uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].speakerId","typeLabel":"integer"},"start":{"type":"integer","description":"Start time in milliseconds for phrase/utterance.","uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].start","typeLabel":"integer"},"end":{"type":"integer","description":"End time in milliseconds for phrase/utterance.","uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX].end","typeLabel":"integer"}},"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.transcripts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.transcripts","typeLabel":"object[]"},"metadata":{"type":"object","description":"Optional transcript-level metadata. All fields optional.","properties":{"participantsRoles":{"oneOf":[{"type":"array","items":{"type":"object","required":["channel","role"],"properties":{"channel":{"type":"integer","minimum":0,"description":"The audio channel to associate with a participant role.","isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX].channel","typeLabel":"integer"},"role":{"type":"string","description":"Free-form label for the participant role (e.g., 'doctor', 'patient', 'Attending Physician'). Must not be empty or whitespace-only after trimming, must not contain control characters, and must not exceed 100 characters or 10 words.","isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX].role","typeLabel":"string"}},"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["channel","role"],"properties":{"channel":{"type":"integer","minimum":0,"description":"The audio channel to associate with a participant role."},"role":{"type":"string","description":"Free-form label for the participant role (e.g., 'doctor', 'patient', 'Attending Physician'). Must not be empty or whitespace-only after trimming, must not contain control characters, and must not exceed 100 characters or 10 words."}}},"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.metadata.participantsRoles","typeLabel":"object[] | null"}},"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1.transcript","typeLabel":"object"}},"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.1","typeLabel":"CommonTranscriptContext · object"},{"type":"object","title":"CommonFactsContext","description":"A list of facts provided as input context to the model.","required":["type","facts"],"properties":{"type":{"type":"string","enum":["facts"],"isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"facts":{"type":"array","minItems":1,"items":{"type":"object","required":["text"],"description":"Minimal fact shape. Only `text` is required.","properties":{"text":{"type":"string","description":"The text of the fact.","minLength":1,"isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.2.facts.items.[INDEX].text","typeLabel":"string"},"group":{"type":"string","description":"The group to which the fact belongs.","example":"Others","uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.2.facts.items.[INDEX].group","typeLabel":"string"}},"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.2.facts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.2.facts","typeLabel":"object[]"}},"uniqueKey":"oneOf.2.context.items.[INDEX].oneOf.2","typeLabel":"CommonFactsContext · object"}],"uniqueKey":"oneOf.2.context.items.[INDEX]","typeLabel":"CommonTextContext · object | CommonTranscriptContext · object | CommonFactsContext · object"},"uniqueKey":"oneOf.2.context","typeLabel":"(CommonTextContext · object | CommonTranscriptContext · object | CommonFactsContext · object)[]"},"interactionId":{"type":"string","format":"uuid","description":"When supplied, all facts and transcripts already attached to the referenced interaction are passed implicitly as input context. Facts with `isDiscarded: true` are not passed on.\n","uniqueKey":"oneOf.2.interactionId","typeLabel":"string\u003cuuid>"},"labels":{"type":"array","description":"Key/value labels attached to the document. Used for filtering in the LIST /documents endpoint.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.labels.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.labels.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"oneOf.2.labels.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.labels","typeLabel":"object[]"}},"uniqueKey":"oneOf.2","typeLabel":"dynamicTemplate · object"}],"uniqueKey":"","typeLabel":"templateRef · object | assemblyTemplate · object | dynamicTemplate · object"},"examples":{"Example":{"title":"Example","value":{"outputLanguage":"\u003cstring>","templateRef":{"templateId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","templateVersionId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","overrides":{"generation":{"instructions":{"prompt":"Produce a concise discharge summary"},"sections":[{"sectionId":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","generation":{"heading":"Discharge Plan","instructions":{"contentPrompt":"Focus on medications and follow-up"}}}]}}},"context":[{"type":"text","text":"\u003cstring>"}],"interactionId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","labels":[{"key":"\u003cstring>","value":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"397801f0-677f-45af-9dd8-aa9748395820":{"description":"OK — document was generated but not saved (retention policy `none`).","content":{"application/json":{"schema":{"type":"object","required":["document","usageInfo"],"description":"Response when a document is generated but not saved (retention policy `none`).\n","properties":{"document":{"type":"object","required":["name","templateId","templateVersionId","outputLanguage","stringDocument","labels"],"description":"A generated document that was not saved to the database.","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"document.name","typeLabel":"string"},"templateId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"document.templateId","typeLabel":"string\u003cuuid>"},"templateVersionId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"document.templateVersionId","typeLabel":"string\u003cuuid>"},"outputLanguage":{"type":"string","description":"The BCP 47 language tag of the generated output.","isRequired":true,"uniqueKey":"document.outputLanguage","typeLabel":"string"},"stringDocument":{"type":"object","description":"The generated document as a map of section ID to rendered string output. The `sections` array lists every section ID and its heading.\n","additionalProperties":{"type":"string","uniqueKey":"document.stringDocument.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"document.stringDocument","typeLabel":"object"},"labels":{"type":"array","description":"Key/value labels attached to this document.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"document.labels.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"document.labels.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"document.labels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"document.labels","typeLabel":"object[]"},"interactionId":{"oneOf":[{"type":"string","format":"uuid","description":"The interaction whose context was used to generate this document, if supplied.","uniqueKey":"document.interactionId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The interaction whose context was used to generate this document, if supplied.","uniqueKey":"document.interactionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"document.interactionId","typeLabel":"string\u003cuuid> | null"},"structuredDocument":{"oneOf":[{"description":"The generated document as a structured object keyed by section ID. The `sections` array lists every section ID and its heading.\n","type":"object","additionalProperties":true,"uniqueKey":"document.structuredDocument.oneOf.0","typeLabel":"object"},{"description":"The generated document as a structured object keyed by section ID. The `sections` array lists every section ID and its heading.\n","type":"null","additionalProperties":true,"uniqueKey":"document.structuredDocument.oneOf.1","typeLabel":"null"}],"uniqueKey":"document.structuredDocument","typeLabel":"object | null"},"sections":{"type":"array","description":"Every section in the template version, in template order, including sections the model left empty. Use `sectionId` as the key into `stringDocument` and `structuredDocument`. The `heading` and `labels` let you render the section without a GET request per section.\n","items":{"type":"object","required":["sectionId","heading"],"description":"One section of a generated document. The `heading` is the section heading at generation time, after overrides. The section's order is its position in the parent `sections` array.\n","properties":{"sectionId":{"type":"string","format":"uuid","description":"The section ID. Use this as the key into `stringDocument` and `structuredDocument`.","example":"f47ac10b-58cc-4372-a567-0e02b2c3d479","isRequired":true,"uniqueKey":"document.sections.items.[INDEX].sectionId","typeLabel":"string\u003cuuid>"},"heading":{"type":"string","description":"The section heading at generation time, after overrides.","example":"Chief Complaint","isRequired":true,"uniqueKey":"document.sections.items.[INDEX].heading","typeLabel":"string"},"labels":{"type":"array","description":"Key/value labels attached to this section.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"document.sections.items.[INDEX].labels.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"document.sections.items.[INDEX].labels.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"document.sections.items.[INDEX].labels.items.[INDEX]","typeLabel":"object"},"uniqueKey":"document.sections.items.[INDEX].labels","typeLabel":"object[]"}},"uniqueKey":"document.sections.items.[INDEX]","typeLabel":"object"},"example":[{"sectionId":"f47ac10b-58cc-4372-a567-0e02b2c3d479","heading":"Chief Complaint","labels":[{"key":"inlineTemplate","value":"true"}]},{"sectionId":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","heading":"Assessment and Plan","labels":[{"key":"inlineTemplate","value":"true"}]}],"uniqueKey":"document.sections","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"document","typeLabel":"object"},"usageInfo":{"type":"object","description":"Credits consumed for this request.","required":["creditsConsumed"],"properties":{"creditsConsumed":{"type":"number","isRequired":true,"uniqueKey":"usageInfo.creditsConsumed","typeLabel":"number"}},"isRequired":true,"uniqueKey":"usageInfo","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"document":{"name":"\u003cstring>","templateId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","templateVersionId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","outputLanguage":"\u003cstring>","stringDocument":{},"labels":[{"key":"\u003cstring>","value":"\u003cstring>"}],"interactionId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","structuredDocument":{},"sections":[{"sectionId":"f47ac10b-58cc-4372-a567-0e02b2c3d479","heading":"Chief Complaint","labels":[{"key":"inlineTemplate","value":"true"}]},{"sectionId":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","heading":"Assessment and Plan","labels":[{"key":"inlineTemplate","value":"true"}]}]},"usageInfo":{"creditsConsumed":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"fa63a28f-b9b5-439d-b211-a7a035af5d47":{"description":"Created — document was generated and saved.","content":{"application/json":{"schema":{"type":"object","required":["document","usageInfo"],"description":"Response when a document is generated and saved (default retention).","properties":{"document":{"type":"object","required":["id","name","templateId","templateVersionId","outputLanguage","stringDocument","labels","createdAt","updatedAt"],"description":"A generated document saved to the database.","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"document.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","isRequired":true,"uniqueKey":"document.name","typeLabel":"string"},"templateId":{"type":"string","format":"uuid","description":"The template ID used for generation. For a plain `templateRef` with no overrides this is the referenced template. For other paths it is the newly saved auto-generated template aggregate.\n","isRequired":true,"uniqueKey":"document.templateId","typeLabel":"string\u003cuuid>"},"templateVersionId":{"type":"string","format":"uuid","description":"The specific template version that was used for generation.","isRequired":true,"uniqueKey":"document.templateVersionId","typeLabel":"string\u003cuuid>"},"outputLanguage":{"type":"string","description":"The BCP 47 language tag of the generated output.","isRequired":true,"uniqueKey":"document.outputLanguage","typeLabel":"string"},"stringDocument":{"type":"object","description":"The generated document as a map of section ID to rendered string output. The `sections` array lists every section ID and its heading.\n","additionalProperties":{"type":"string","uniqueKey":"document.stringDocument.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"document.stringDocument","typeLabel":"object"},"labels":{"type":"array","description":"Key/value labels attached to this document.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"document.labels.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"document.labels.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"document.labels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"document.labels","typeLabel":"object[]"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"document.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"document.updatedAt","typeLabel":"string\u003cdate-time>"},"interactionId":{"oneOf":[{"type":"string","format":"uuid","description":"The interaction whose context was used to generate this document, if supplied.","uniqueKey":"document.interactionId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The interaction whose context was used to generate this document, if supplied.","uniqueKey":"document.interactionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"document.interactionId","typeLabel":"string\u003cuuid> | null"},"structuredDocument":{"oneOf":[{"description":"The generated document as a structured object keyed by section ID. The `sections` array lists every section ID and its heading.\n","type":"object","additionalProperties":true,"uniqueKey":"document.structuredDocument.oneOf.0","typeLabel":"object"},{"description":"The generated document as a structured object keyed by section ID. The `sections` array lists every section ID and its heading.\n","type":"null","additionalProperties":true,"uniqueKey":"document.structuredDocument.oneOf.1","typeLabel":"null"}],"uniqueKey":"document.structuredDocument","typeLabel":"object | null"},"sections":{"type":"array","description":"Every section in the template version, in template order, including sections the model left empty. Use `sectionId` as the key into `stringDocument` and `structuredDocument`. The `heading` and `labels` let you render the section without a GET request per section.\n","items":{"type":"object","required":["sectionId","heading"],"description":"One section of a generated document. The `heading` is the section heading at generation time, after overrides. The section's order is its position in the parent `sections` array.\n","properties":{"sectionId":{"type":"string","format":"uuid","description":"The section ID. Use this as the key into `stringDocument` and `structuredDocument`.","example":"f47ac10b-58cc-4372-a567-0e02b2c3d479","isRequired":true,"uniqueKey":"document.sections.items.[INDEX].sectionId","typeLabel":"string\u003cuuid>"},"heading":{"type":"string","description":"The section heading at generation time, after overrides.","example":"Chief Complaint","isRequired":true,"uniqueKey":"document.sections.items.[INDEX].heading","typeLabel":"string"},"labels":{"type":"array","description":"Key/value labels attached to this section.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"document.sections.items.[INDEX].labels.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"document.sections.items.[INDEX].labels.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"document.sections.items.[INDEX].labels.items.[INDEX]","typeLabel":"object"},"uniqueKey":"document.sections.items.[INDEX].labels","typeLabel":"object[]"}},"uniqueKey":"document.sections.items.[INDEX]","typeLabel":"object"},"example":[{"sectionId":"f47ac10b-58cc-4372-a567-0e02b2c3d479","heading":"Chief Complaint","labels":[{"key":"inlineTemplate","value":"true"}]},{"sectionId":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","heading":"Assessment and Plan","labels":[{"key":"inlineTemplate","value":"true"}]}],"uniqueKey":"document.sections","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"document","typeLabel":"object"},"usageInfo":{"type":"object","description":"Credits consumed for this request.","required":["creditsConsumed"],"properties":{"creditsConsumed":{"type":"number","isRequired":true,"uniqueKey":"usageInfo.creditsConsumed","typeLabel":"number"}},"isRequired":true,"uniqueKey":"usageInfo","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"document":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","templateId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","templateVersionId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","outputLanguage":"\u003cstring>","stringDocument":{},"labels":[{"key":"\u003cstring>","value":"\u003cstring>"}],"createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","interactionId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","structuredDocument":{},"sections":[{"sectionId":"f47ac10b-58cc-4372-a567-0e02b2c3d479","heading":"Chief Complaint","labels":[{"key":"inlineTemplate","value":"true"}]},{"sectionId":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","heading":"Assessment and Plan","labels":[{"key":"inlineTemplate","value":"true"}]}]},"usageInfo":{"creditsConsumed":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"3519d3b9-81fd-4122-bff8-91128ce368dc":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","required":["requestid","status","type","detail"],"properties":{"requestid":{"type":"string","isRequired":true,"uniqueKey":"requestid","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"validationErrors":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"validationErrors.items.[INDEX].additionalProperties","typeLabel":"string"},"uniqueKey":"validationErrors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"validationErrors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestid":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","validationErrors":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"},"e7272b66-73a4-416d-83fe-3a6cba344683":{"description":"Referenced template, template version, or section was not found.","content":{"application/json":{"schema":{"type":"object","required":["requestid","status","type","detail"],"properties":{"requestid":{"type":"string","isRequired":true,"uniqueKey":"requestid","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"validationErrors":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"validationErrors.items.[INDEX].additionalProperties","typeLabel":"string"},"uniqueKey":"validationErrors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"validationErrors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestid":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","validationErrors":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"},"36188e06-9c1b-4d78-80c8-cdc37763aa70":{"description":"Request was syntactically valid but semantically rejected — for example, none of `templateRef`/`assemblyTemplate`/`dynamicTemplate` was supplied, the referenced template has no published version, or an override referenced a section that is not part of the base template.\n","content":{"application/json":{"schema":{"type":"object","required":["requestid","status","type","detail"],"properties":{"requestid":{"type":"string","isRequired":true,"uniqueKey":"requestid","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"validationErrors":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"validationErrors.items.[INDEX].additionalProperties","typeLabel":"string"},"uniqueKey":"validationErrors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"validationErrors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestid":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","validationErrors":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"},"ea19c4e2-c274-4cb5-8c42-cf76b21df934":{"description":"The downstream ML service failed to generate the document.","content":{"application/json":{"schema":{"type":"object","required":["requestid","status","type","detail"],"properties":{"requestid":{"type":"string","isRequired":true,"uniqueKey":"requestid","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"validationErrors":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"validationErrors.items.[INDEX].additionalProperties","typeLabel":"string"},"uniqueKey":"validationErrors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"validationErrors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestid":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","validationErrors":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"604ea4ae-7224-4e00-bccd-8cfa09175ed7":{"AuthorizationHeader":{"type":"http","description":"Input your token","scheme":"bearer","scopes":["bearer"],"schemeName":"AuthorizationHeader"}}},"servers":{"e28b1232-d248-4e01-9e62-262b94876da6":{"url":"https://api.{environment}.corti.app/v2/","variables":{"environment":{"default":"eu","enum":["us","eu"]}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","description":"Input your token","scheme":"bearer","scopes":["bearer"],"schemeName":"AuthorizationHeader"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Input your token","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"AuthorizationHeader","name":"Authorization"}],"title":"AuthorizationHeader"}]},"originalFileLocation":"api-reference/auto-generated-openapi.yml"},"subdomain":"corti","siteName":"Corti API Documentation","title":"Generate a structured document - Corti API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T15:15:02.914Z","originalFileLocation":"api-reference/guided-documents/generate-a-structured-document.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=\"Generates a structured document using one of three template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of templateRef, assemblyTemplate, or dynamicTemplate must be provided. Context can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM. With the exception of the plain templateRef path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Corti API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_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/corti/gI_ok5T7zaR8y4z1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_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/corti/gI_ok5T7zaR8y4z1/_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/corti/gI_ok5T7zaR8y4z1/_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/corti/gI_ok5T7zaR8y4z1/_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/corti/gI_ok5T7zaR8y4z1/_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/corti/gI_ok5T7zaR8y4z1/_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/corti/gI_ok5T7zaR8y4z1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Generate a structured document - Corti API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generates a structured document using one of three template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of templateRef, assemblyTemplate, or dynamicTemplate must be provided. Context can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM. With the exception of the plain templateRef path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Corti API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.corti.ai/api-reference/guided-documents/generate-a-structured-document\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://corti.mintlify.site/_mintlify/api/og/v2?division=Guided+Documents\u0026amp;title=Generate+a+structured+document\u0026amp;description=Generates+a+structured+document+using+one+of+three+template-supply+paths%3A+a+stored+template+reference+%28optionally+with+runtime+overrides%29%2C+an+ad-hoc+assembly+of\u0026amp;theme=34b80329efcd2beff359af85\u0026amp;signature=f8ea5b012cce09985b5c20767f72777adf26effd53099c99c49f97a951b88334\">\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=\"Generate a structured document - Corti API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generates a structured document using one of three template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of templateRef, assemblyTemplate, or dynamicTemplate must be provided. Context can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM. With the exception of the plain templateRef path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://corti.mintlify.site/_mintlify/api/og/v2?division=Guided+Documents\u0026amp;title=Generate+a+structured+document\u0026amp;description=Generates+a+structured+document+using+one+of+three+template-supply+paths%3A+a+stored+template+reference+%28optionally+with+runtime+overrides%29%2C+an+ad-hoc+assembly+of\u0026amp;theme=34b80329efcd2beff359af85\u0026amp;signature=f8ea5b012cce09985b5c20767f72777adf26effd53099c99c49f97a951b88334\">\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/corti/gI_ok5T7zaR8y4z1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Corti API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3F3F46\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.corti.ai/api-reference/guided-documents/generate-a-structured-document\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/guided-documents/generate-a-structured-document.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.corti.ai/#organization\",\"name\":\"Corti API Documentation\",\"url\":\"https://docs.corti.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/corti/en_RPjQCFb1qJpbU/logo/corti_light.svg?fit=max\u0026auto=format\u0026n=en_RPjQCFb1qJpbU\u0026q=85\u0026s=effbca890e531e034f6b66ce8e15aa6c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.corti.ai#website\",\"name\":\"Corti API Documentation\",\"url\":\"https://docs.corti.ai\",\"publisher\":{\"@id\":\"https://docs.corti.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.corti.ai/api-reference/guided-documents/generate-a-structured-document#webpage\",\"url\":\"https://docs.corti.ai/api-reference/guided-documents/generate-a-structured-document\",\"name\":\"Generate a structured document\",\"description\":\"Generates a structured document using one of three template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of templateRef, assemblyTemplate, or dynamicTemplate must be provided. Context can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM. With the exception of the plain templateRef path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.\",\"dateModified\":\"2026-10-29T15:15:02.914Z\",\"isPartOf\":{\"@id\":\"https://docs.corti.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.corti.ai/api-reference/guided-documents/generate-a-structured-document#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.corti.ai/api-reference/guided-documents/generate-a-structured-document#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST APIs\",\"item\":\"https://docs.corti.ai/api-reference/interactions/list-all-interactions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Guided Documents\",\"item\":\"https://docs.corti.ai/api-reference/guided-documents/list-documents\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Generate a structured document\",\"item\":\"https://docs.corti.ai/api-reference/guided-documents/generate-a-structured-document\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.corti.ai/api-reference/guided-documents/generate-a-structured-document#apireference\",\"headline\":\"Generate a structured document\",\"name\":\"Generate a structured document\",\"description\":\"Generates a structured document using one of three template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of templateRef, assemblyTemplate, or dynamicTemplate must be provided. Context can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM. With the exception of the plain templateRef path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.\",\"url\":\"https://docs.corti.ai/api-reference/guided-documents/generate-a-structured-document\",\"mainEntityOfPage\":{\"@id\":\"https://docs.corti.ai/api-reference/guided-documents/generate-a-structured-document#webpage\"},\"dateModified\":\"2026-10-29T15:15:02.914Z\",\"publisher\":{\"@id\":\"https://docs.corti.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.corti.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Corti API Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Corti API Documentation","nav":{"global":null,"tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":"/get_started/welcome"}]},{"tab":"Corti Models","icon":"microchip","pages":[{"title":"Corti Models","href":"/models/welcome"}]},{"tab":"Agentic Framework","icon":"layers","pages":[{"title":"Agentic Framework","href":"/agentic/overview"}]},{"tab":"Speech to Text","icon":"audio-lines","pages":[{"title":"Speech to Text","href":"/stt/overview"}]},{"tab":"Healthcare","icon":"heart-pulse","pages":[{"title":"Healthcare","href":"/healthcare"}]},{"tab":"API Reference","icon":"square-code","pages":[{"title":"Welcome to the Corti API Reference","sidebarTitle":"Welcome","mode":"wide","href":"/api-reference/welcome"},{"group":"Corti Models APIs","icon":"microchip","pages":[{"group":"Models","pages":[{"title":"List available models","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml get /v1/models","href":"/api-reference/corti-models/models/list-available-models"}]},{"group":"Chat","pages":[{"title":"Create chat completion","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /v1/chat/completions","href":"/api-reference/corti-models/chat/create-chat-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /v1/completions","href":"/api-reference/corti-models/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create response","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /v1/responses","href":"/api-reference/corti-models/responses/create-response"}]},{"group":"Anthropic","pages":[{"title":"Create message (Anthropic)","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /anthropic/v1/messages","href":"/api-reference/corti-models/anthropic/create-message-anthropic"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /v1/embeddings","href":"/api-reference/corti-models/embeddings/create-embeddings"}]}]},{"group":"Agentic APIs","icon":"layers","pages":[{"group":"Agents","pages":[{"title":"List agents","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents","href":"/agentic-v2/agents/list-agents"},{"title":"Create an agent","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents","href":"/agentic-v2/agents/create-an-agent"},{"title":"Get an agent","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}","href":"/agentic-v2/agents/get-an-agent"},{"title":"Delete an agent","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml delete /agentic/agents/{agentId}","href":"/agentic-v2/agents/delete-an-agent"},{"title":"Update an agent (partial)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml patch /agentic/agents/{agentId}","href":"/agentic-v2/agents/update-an-agent-partial"}]},{"group":"Agent Card","pages":[{"title":"Get the A2A agent card","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/.well-known/agent-card.json","href":"/agentic-v2/agent-card/get-the-a2a-agent-card"}]},{"group":"A2A","pages":[{"title":"A2A JSON-RPC binding","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/a2a","href":"/agentic-v2/a2a/a2a-json-rpc-binding"},{"title":"Send a message (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/a2a/message:send","href":"/agentic-v2/a2a/send-a-message-a2a-rest"},{"title":"Stream a message (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/a2a/message:stream","href":"/agentic-v2/a2a/stream-a-message-a2a-rest"},{"title":"List tasks (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/a2a/tasks","href":"/agentic-v2/a2a/list-tasks-a2a-rest"},{"title":"Get a task (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/a2a/tasks/{taskId}","href":"/agentic-v2/a2a/get-a-task-a2a-rest"},{"title":"Cancel a task (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/a2a/tasks/{taskId}:cancel","href":"/agentic-v2/a2a/cancel-a-task-a2a-rest"},{"title":"Subscribe to task events (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe","href":"/agentic-v2/a2a/subscribe-to-task-events-a2a-rest"}]},{"group":"Usage","pages":[{"title":"Get an agent's usage","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/usage","href":"/agentic-v2/usage/get-an-agents-usage"}]},{"group":"Connectors","pages":[{"title":"List an agent's connectors","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/connectors","href":"/agentic-v2/connectors/list-an-agents-connectors"},{"title":"Attach a connector","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/connectors","href":"/agentic-v2/connectors/attach-a-connector"},{"title":"Get an agent-scoped connector","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/connectors/{agentConnectorId}","href":"/agentic-v2/connectors/get-an-agent-scoped-connector"},{"title":"Remove a connector","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml delete /agentic/agents/{agentId}/connectors/{agentConnectorId}","href":"/agentic-v2/connectors/remove-a-connector"},{"title":"Update an agent-scoped connector (partial)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml patch /agentic/agents/{agentId}/connectors/{agentConnectorId}","href":"/agentic-v2/connectors/update-an-agent-scoped-connector-partial"}]},{"group":"Contexts","pages":[{"title":"List contexts","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts","href":"/agentic-v2/contexts/list-contexts"},{"title":"Get a context","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}","href":"/agentic-v2/contexts/get-a-context"},{"title":"Delete or expire a context","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml delete /agentic/contexts/{contextId}","href":"/agentic-v2/contexts/delete-or-expire-a-context"},{"title":"Export the observability trace for a context","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}/trace","href":"/agentic-v2/contexts/export-the-observability-trace-for-a-context"},{"title":"List tasks within a context","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}/tasks","href":"/agentic-v2/contexts/list-tasks-within-a-context"},{"title":"Get a task within a context","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}/tasks/{taskId}","href":"/agentic-v2/contexts/get-a-task-within-a-context"}]},{"group":"Artifacts","pages":[{"title":"Get an artifact","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId}","href":"/agentic-v2/artifacts/get-an-artifact"}]},{"group":"Registry","pages":[{"title":"List available registry connectors","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/registry/connectors","href":"/agentic-v2/registry/list-available-registry-connectors"},{"title":"Get registry connector details and configuration schema","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/registry/connectors/{connectorId}","href":"/agentic-v2/registry/get-registry-connector-details-and-configuration-schema"}]},{"group":"Feedback","pages":[{"title":"List feedback for a task","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}/tasks/{taskId}/feedback","href":"/agentic-v2/feedback/list-feedback-for-a-task"},{"title":"Submit feedback for a task","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/contexts/{contextId}/tasks/{taskId}/feedback","href":"/agentic-v2/feedback/submit-feedback-for-a-task"},{"title":"Delete a feedback resource","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml delete /agentic/contexts/{contextId}/tasks/{taskId}/feedback/{feedbackId}","href":"/agentic-v2/feedback/delete-a-feedback-resource"}]}]},{"group":"Web Socket APIs","icon":"handshake","pages":[{"group":"Transcribe","pages":[{"title":"Real-time stateless dictation","sidebarTitle":"Stateless dictation","tag":"WSS","href":"/api-reference/transcribe"}]},{"group":"Streams","pages":[{"title":"Real-time conversational transcript generation and fact extraction (FactsR™)","sidebarTitle":"Conversational fact extraction","tag":"WSS","href":"/api-reference/streams"}]}]},{"group":"REST APIs","icon":"arrow-up-down","pages":[{"group":"Interactions","pages":[{"title":"List All Interactions","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/","href":"/api-reference/interactions/list-all-interactions"},{"title":"Create Interaction","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/","href":"/api-reference/interactions/create-interaction"},{"title":"Get Existing Interaction","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}","href":"/api-reference/interactions/get-existing-interaction"},{"title":"Delete Interaction","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /interactions/{id}","href":"/api-reference/interactions/delete-interaction"},{"title":"Update Interaction","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /interactions/{id}","href":"/api-reference/interactions/update-interaction"},{"title":"Update Interaction Retention Policy","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml put /interactions/{id}/retention-policy","href":"/api-reference/interactions/update-interaction-retention-policy"}]},{"group":"Recordings","pages":[{"title":"List Recordings","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/recordings/","href":"/api-reference/recordings/list-recordings"},{"title":"Upload Recording","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/{id}/recordings/","href":"/api-reference/recordings/upload-recording"},{"title":"Get Recording","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/recordings/{recordingId}","href":"/api-reference/recordings/get-recording"},{"title":"Delete Recording","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /interactions/{id}/recordings/{recordingId}","href":"/api-reference/recordings/delete-recording"}]},{"group":"Transcripts","pages":[{"title":"List Transcripts","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/transcripts/","href":"/api-reference/transcripts/list-transcripts"},{"title":"Create Transcript","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/{id}/transcripts/","href":"/api-reference/transcripts/create-transcript"},{"title":"Get Transcript","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/transcripts/{transcriptId}","href":"/api-reference/transcripts/get-transcript"},{"title":"Delete Transcript","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /interactions/{id}/transcripts/{transcriptId}","href":"/api-reference/transcripts/delete-transcript"},{"title":"Get Transcript Status","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/transcripts/{transcriptId}/status","href":"/api-reference/transcripts/get-transcript-status"}]},{"group":"Facts","pages":[{"title":"List Fact Groups","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /factgroups/","href":"/api-reference/facts/list-fact-groups"},{"title":"List Facts","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/facts/","href":"/api-reference/facts/list-facts"},{"title":"Add Facts","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/{id}/facts/","href":"/api-reference/facts/add-facts"},{"title":"Update Facts","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /interactions/{id}/facts/","href":"/api-reference/facts/update-facts"},{"title":"Update Fact","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /interactions/{id}/facts/{factId}","href":"/api-reference/facts/update-fact"},{"title":"Extract Facts","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/extract-facts","href":"/api-reference/facts/extract-facts"}]},{"group":"Documents (Classic)","pages":[{"title":"List Documents","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/documents/","href":"/api-reference/documents-classic/list-documents"},{"title":"Generate Document","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/{id}/documents/","href":"/api-reference/documents-classic/generate-document"},{"title":"Get Document","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/documents/{documentId}","href":"/api-reference/documents-classic/get-document"},{"title":"Delete Document","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /interactions/{id}/documents/{documentId}","href":"/api-reference/documents-classic/delete-document"},{"title":"Update Document","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /interactions/{id}/documents/{documentId}","href":"/api-reference/documents-classic/update-document"}]},{"group":"Templates (Classic)","pages":[{"title":"List Template Sections","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /templateSections/","href":"/api-reference/templates-classic/list-template-sections"},{"title":"List Templates","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /templates/","href":"/api-reference/templates-classic/list-templates"},{"title":"Get Template","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /templates/{key}","href":"/api-reference/templates-classic/get-template"}]},{"group":"Codes (Legacy)","pages":[{"title":"List Codes","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/codes/","href":"/api-reference/codes-legacy/list-codes"},{"title":"Select Codes","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml put /interactions/{id}/codes/","href":"/api-reference/codes-legacy/select-codes"},{"title":"Generate Codes","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/{id}/codes/","href":"/api-reference/codes-legacy/generate-codes"}]},{"group":"Codes","pages":[{"title":"Predict Codes","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/coding/","href":"/api-reference/codes/predict-codes"}]},{"group":"Guided Templates","pages":[{"title":"List templates","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/templates/","href":"/api-reference/guided-templates/list-templates"},{"title":"Create template","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/templates/","href":"/api-reference/guided-templates/create-template"},{"title":"Get template","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/templates/{templateID}","href":"/api-reference/guided-templates/get-template"},{"title":"Delete template","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /documents/templates/{templateID}","href":"/api-reference/guided-templates/delete-template"},{"title":"Update template metadata","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /documents/templates/{templateID}","href":"/api-reference/guided-templates/update-template-metadata"},{"title":"List template versions","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/templates/{templateID}/versions/","href":"/api-reference/guided-templates/list-template-versions"},{"title":"Create template version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/templates/{templateID}/versions/","href":"/api-reference/guided-templates/create-template-version"},{"title":"Get template version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/templates/{templateID}/versions/{versionID}","href":"/api-reference/guided-templates/get-template-version"},{"title":"Delete template version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /documents/templates/{templateID}/versions/{versionID}","href":"/api-reference/guided-templates/delete-template-version"},{"title":"Publish template version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/templates/{templateID}/versions/{versionID}/publish","href":"/api-reference/guided-templates/publish-template-version"}]},{"group":"Guided Sections","pages":[{"title":"List sections","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/sections/","href":"/api-reference/guided-sections/list-sections"},{"title":"Create section","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/sections/","href":"/api-reference/guided-sections/create-section"},{"title":"Get section","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/sections/{sectionID}","href":"/api-reference/guided-sections/get-section"},{"title":"Delete section","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /documents/sections/{sectionID}","href":"/api-reference/guided-sections/delete-section"},{"title":"Update section metadata","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /documents/sections/{sectionID}","href":"/api-reference/guided-sections/update-section-metadata"},{"title":"List section versions","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/sections/{sectionID}/versions/","href":"/api-reference/guided-sections/list-section-versions"},{"title":"Create section version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/sections/{sectionID}/versions/","href":"/api-reference/guided-sections/create-section-version"},{"title":"Get section version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/sections/{sectionID}/versions/{versionID}","href":"/api-reference/guided-sections/get-section-version"},{"title":"Delete section version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /documents/sections/{sectionID}/versions/{versionID}","href":"/api-reference/guided-sections/delete-section-version"},{"title":"Publish section version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/sections/{sectionID}/versions/{versionID}/publish","href":"/api-reference/guided-sections/publish-section-version"},{"title":"Get section impact","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/sections/{sectionID}/impact","href":"/api-reference/guided-sections/get-section-impact"}]},{"group":"Guided Documents","pages":[{"title":"List documents","description":"Returns a list of previously generated documents.\nUse query parameters to filter by template, interaction, or label.\n","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/","href":"/api-reference/guided-documents/list-documents"},{"title":"Generate a structured document","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/","href":"/api-reference/guided-documents/generate-a-structured-document"},{"title":"Get document","description":"Returns a previously generated document by ID, including its rendered string output\nand structured object.\n","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/{documentID}","href":"/api-reference/guided-documents/get-document"},{"title":"Delete document","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /documents/{documentID}","href":"/api-reference/guided-documents/delete-document"},{"title":"Update document","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /documents/{documentID}","href":"/api-reference/guided-documents/update-document"}]},{"group":"Languages","pages":[{"title":"List Languages","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /languages/","href":"/api-reference/languages/list-languages"}]}]},{"group":"Admin APIs","icon":"shield-check","pages":[{"group":"Auth","pages":[{"title":"Authenticate user and get access token","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml post /auth/token","href":"/api-reference/admin/auth/authenticate-user-and-get-access-token"}]},{"group":"Customers","pages":[{"title":"List customers for a project","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/customers","href":"/api-reference/admin/customers/list-customers-for-a-project"},{"title":"Create a new customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml post /projects/{projectId}/customers","href":"/api-reference/admin/customers/create-a-new-customer"},{"title":"Delete a customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml delete /projects/{projectId}/customers/{customerId}","href":"/api-reference/admin/customers/delete-a-customer"},{"title":"Update a customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml patch /projects/{projectId}/customers/{customerId}","href":"/api-reference/admin/customers/update-a-customer"},{"title":"Get quotas for a customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/customers/{customerId}/quotas","href":"/api-reference/admin/customers/get-quotas-for-a-customer"}]},{"group":"Projects","pages":[{"title":"Get quotas for all tenants within a project","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/quotas","href":"/api-reference/admin/projects/get-quotas-for-all-tenants-within-a-project"}]},{"group":"Users","pages":[{"title":"List users for a customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/customers/{customerId}/users","href":"/api-reference/admin/users/list-users-for-a-customer"},{"title":"Create a new user and add it to the customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml post /projects/{projectId}/customers/{customerId}/users","href":"/api-reference/admin/users/create-a-new-user-and-add-it-to-the-customer"},{"title":"Get a user by ID","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/customers/{customerId}/users/{userId}","href":"/api-reference/admin/users/get-a-user-by-id"},{"title":"Update a user","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml patch /projects/{projectId}/customers/{customerId}/users/{userId}","href":"/api-reference/admin/users/update-a-user"},{"title":"Get usage consumption for a user within a time window","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/customers/{customerId}/users/{userId}/consumption","href":"/api-reference/admin/users/get-usage-consumption-for-a-user-within-a-time-window"},{"title":"Delete a user","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml delete /projects/{projectId}/customers/{customerId}/users/{userId}/consumption","href":"/api-reference/admin/users/delete-a-user"}]}]},{"group":"Errors","icon":"triangle-alert","pages":[{"title":"Errors","href":"/api-reference/errors"}]},{"group":"Agentic APIs v1 (deprecated)","icon":"layers","pages":[{"group":"Agents","pages":[{"title":"List Agents","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents","href":"/agentic/agents/list-agents"},{"title":"Create Agent","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml post /agents","href":"/agentic/agents/create-agent"},{"title":"Get Agent by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents/{id}","href":"/agentic/agents/get-agent-by-id"},{"title":"Delete Agent by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml delete /agents/{id}","href":"/agentic/agents/delete-agent-by-id"},{"title":"Update Agent by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml patch /agents/{id}","href":"/agentic/agents/update-agent-by-id"},{"title":"Get Agent Card","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents/{id}/agent-card.json","href":"/agentic/agents/get-agent-card"},{"title":"Send Message to Agent","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml post /agents/{id}/v1/message:send","href":"/agentic/agents/send-message-to-agent"},{"title":"Get Task by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents/{id}/v1/tasks/{taskId}","href":"/agentic/agents/get-task-by-id"},{"title":"Get Context by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents/{id}/v1/contexts/{contextId}","href":"/agentic/agents/get-context-by-id"},{"title":"Delete Context by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml delete /agents/{id}/v1/contexts/{contextId}","href":"/agentic/agents/delete-context-by-id"},{"title":"List Registry Experts","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents/registry/experts","href":"/agentic/agents/list-registry-experts"}]}]}]}]},"basePath":"","title":"Generate a structured document - Corti API Documentation","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-BcDCEkh6.js","dist-CwjSCXIK.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-eKJ4rcii.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","AssistantPageLink-9EK5IAXV.js"]}