Verdict-first Server-Sent Events. Events arrive in a locked order: request_accepted → verdict → optional pii_findings → optional verdict_revised → explanation_chunk* → rewrite_chunk* → optional safety_findings → done (the current judge emits no explanation_chunk / rewrite_chunk; audit-only safety_findings can trail done). The trailing done event carries an envelope field byte-equivalent to the sync /decide response body. Block at the verdict event; allow side-effectful calls only at done — an enforcing safety finding can outrank the EEO verdict via verdict_revised. Streaming guide.
A self-serve API key (sk_tenet_…, from platform.tenetlabs.com; accepted on /decide and /decide/stream) or an M2M token (audience https://sdk.tenetlabs.com; accepted everywhere). See /authentication.
Body
application/json
surface
string
What kind of recruiting action is being checked — the judge reads it with the request, and it frames how the ask is interpreted, so pick it per request from the user's current intent, never once per application. Canonical values: resume_triage (screening/filtering candidates — the default), job_ad_drafting, candidate_ranking, interview_question_gen, candidate_outreach. Not an enum on the wire: unknown values are accepted and passed to the judge as written — stick to the five canonical values. Optional: when omitted, the judge infers the surface from the request text; with no clear signal it uses resume_triage. A provided value takes precedence, with one exception: at phase: "agent_input", a provided resume_triage is refined to another canonical surface when the request text clearly matches one. Full guidance: Surfaces.
Example:
"resume_triage"
messages
object[]
Chat-style messages — the content being judged. Each item is a {role, content} object. content is a string or a list of text parts ({"type": "text", "text": ...}; input_text and output_text are also accepted), concatenated with no separator before any scanning or judging. Any other part type (image, audio, file, tool block) returns 422 naming the offending index. With more than one user message, the last is the request under judgment and earlier ones are read as conversation context. Send retrieved or tool-returned text as a role: "tool" message — the judge reads it as untrusted content. Message content.
Show child attributes
context
object
Evaluation context — tool name, tool input/output, and any harness metadata. Two keys matter most: recruiter_prompt (the user's actual ask, verbatim — required for full safety-pattern coverage) and candidate_content (the resume/candidate text, whenever the action involves one — omitting it disables candidate-side protections). See Surfaces — what else the judge needs.
Show child attributes
phase
enum<string> | null
Where in the agent loop this content sits.
Available options:
agent_input,
tool_pre,
tool_post,
agent_output,
null
resolution_status
enum<string> | null
Whether the tool output resolved the request (tool_post only).
Available options:
resolved,
unresolved,
error,
null
session_id
string | null
Conversation ID — groups a multi-turn conversation's evaluations into one audit trace. Keep it stable within a conversation, new across conversations.
Maximum string length: 199
Example:
"conv-8841"
domains
string[] | null
Per-call narrowing of the entitled domain set. Omit (or null) to run against every domain your account is entitled to (the default — maximum coverage). When provided, the effective set is entitled ∩ requested; unknown or unentitled values are silently filtered. An empty list returns 422.
Example:
["eeo"]
intent
enum<string> | null
Caller-asserted classification of the call — the service's highest-precedence intent signal. Omit (or send unknown/null) for no assertion. A read is authoritative only at phase: "tool_post" and advisory at agent_input. Read-intent contract.
Available options:
read,
action,
unknown,
null
Example:
"read"
tool_name
string | null
Name of the tool being judged, as a named top-level field (the SDK sends it at the tool phases). A hint the service re-validates for intent classification — never an exemption. Tool context.
Example:
"send_candidate_message"
tool_input
object | null
The tool's arguments as a named top-level field (tenet-client 0.7.1 sends a dict tool_input here). PII spans detected elsewhere in the request are swept out of it. It is not rendered into the judge's prompt — put what the judge must read in context. Tool context.
Example:
{ "candidate_id": "c_8841", "message": "Hi Jane, are you free Tuesday for a 30-minute call?" }
workflow
string | null
Optional label naming which of your integrations made the call (e.g. resume-screener, recruiter-agent), so your account's decisions can be filtered per workflow on the trace. Lowercase letters, digits, ., _, -, starting with a letter or digit; at most 64 chars — a malformed value returns 422. Recorded on the decision trace only: never read by the judge and never affects the verdict. Distinct from surface, which the judge reads and must not be overloaded to separate callers.
Required string length: 1 - 64
Pattern: ^[a-z0-9][a-z0-9._-]*$
Example:
"resume-screener"
mode
enum<string>
default:judge
judge (default) runs the EEO judge. guardrails skips it and runs only PII detection and the safety rails; the response adds redacted — your messages and context with detected PII replaced by placeholders. /decide only: /decide/stream returns 400 for guardrails. Guardrails mode.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Tenet Labs","description":"Tenet Labs documentation — Tenet Guardrails (hosted guardrails for agent tool calls, served by the Judge API) and PII Engine (Enterprise), de-identification that runs in your own AWS account.","colors":{"primary":"#254BB0","light":"#7B9AEB","dark":"#1A3A8F"},"logo":{"light":"https://mintcdn.com/tenetlabs/Ux15lHnF6gElpQTR/logo/light.svg?fit=max\u0026auto=format\u0026n=Ux15lHnF6gElpQTR\u0026q=85\u0026s=ad2a07649adcf4d8be428b5187f69dd3","dark":"https://mintcdn.com/tenetlabs/Ux15lHnF6gElpQTR/logo/dark.svg?fit=max\u0026auto=format\u0026n=Ux15lHnF6gElpQTR\u0026q=85\u0026s=63483a7e8bc79fe2d8552c527fb1f187","href":"https://tenetlabs.com"},"favicon":"https://mintcdn.com/tenetlabs/f83ct0NG_FFBa-fQ/favicon.svg?fit=max\u0026auto=format\u0026n=f83ct0NG_FFBa-fQ\u0026q=85\u0026s=cb379042881580f3b646d44dc107ca17","navbar":{"links":[{"href":"mailto:team@tenetlabs.com","label":"Support"}],"primary":{"type":"button","label":"Get API keys","href":"https://platform.tenetlabs.com"}},"footer":{"socials":{"github":"https://github.com/tenetlabsdev"}},"fonts":{"heading":{"family":"DM Sans"},"body":{"family":"IBM Plex Sans"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","add-mcp","cursor","vscode","windsurf"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tenetlabs","hasAudioNarration":false,"actualSubdomain":"tenetlabs","customDomains":["docs.tenetlabs.com"],"gitSource":{"type":"github","owner":"tenetlabsdev","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10eb819ffae5051c4157e3"},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0c81caf742bc3f276814f0","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Documentation","count":42},{"language":"default","tag":"PII Engine (Enterprise)","count":30},{"language":"default","tag":"Tenet Guardrails","count":29},{"language":"default","tag":"API Reference","count":16},{"language":"default","tag":"Concepts","count":10},{"language":"default","tag":"Getting Started","count":9},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Operate","count":7},{"language":"default","tag":"Judge API","count":7},{"language":"default","tag":"PII Engine API","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"team@tenetlabs.com","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"6a29da138cafb8a43c371463","deploymentId":"6a14c5b5c81d589b95bf2b49","questionText":"How do I add guardrails to my agent?","status":"active","generatedBy":"manual","createdAt":"2026-06-10T21:41:39.491Z","updatedAt":"2026-06-10T21:41:39.491Z","__v":0}],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api-reference/decide/decide-streaming","slug":"/api-reference/decide/decide-streaming","pageMetadata":{"title":"Decide (streaming)","description":"Verdict-first Server-Sent Events. Events arrive in a locked order: `request_accepted` → `verdict` → optional `pii_findings` → optional `verdict_revised` → `explanation_chunk`* → `rewrite_chunk`* → optional `safety_findings` → `done` (the current judge emits no `explanation_chunk` / `rewrite_chunk`; audit-only `safety_findings` can trail `done`). The trailing `done` event carries an `envelope` field byte-equivalent to the sync `/decide` response body. Block at the `verdict` event; allow side-effectful calls only at `done` — an enforcing safety finding can outrank the EEO verdict via `verdict_revised`. [Streaming guide](/guides/streaming).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /decide/stream","href":"/api-reference/decide/decide-streaming","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 a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Verdict-first Server-Sent Events. Events arrive in a locked order: \", _jsx(_components.code, {\n children: \"request_accepted\"\n }), \" → \", _jsx(_components.code, {\n children: \"verdict\"\n }), \" → optional \", _jsx(_components.code, {\n children: \"pii_findings\"\n }), \" → optional \", _jsx(_components.code, {\n children: \"verdict_revised\"\n }), \" → \", _jsx(_components.code, {\n children: \"explanation_chunk\"\n }), \"* → \", _jsx(_components.code, {\n children: \"rewrite_chunk\"\n }), \"* → optional \", _jsx(_components.code, {\n children: \"safety_findings\"\n }), \" → \", _jsx(_components.code, {\n children: \"done\"\n }), \" (the current judge emits no \", _jsx(_components.code, {\n children: \"explanation_chunk\"\n }), \" / \", _jsx(_components.code, {\n children: \"rewrite_chunk\"\n }), \"; audit-only \", _jsx(_components.code, {\n children: \"safety_findings\"\n }), \" can trail \", _jsx(_components.code, {\n children: \"done\"\n }), \"). The trailing \", _jsx(_components.code, {\n children: \"done\"\n }), \" event carries an \", _jsx(_components.code, {\n children: \"envelope\"\n }), \" field byte-equivalent to the sync \", _jsx(_components.code, {\n children: \"/decide\"\n }), \" response body. Block at the \", _jsx(_components.code, {\n children: \"verdict\"\n }), \" event; allow side-effectful calls only at \", _jsx(_components.code, {\n children: \"done\"\n }), \" — an enforcing safety finding can outrank the EEO verdict via \", _jsx(_components.code, {\n children: \"verdict_revised\"\n }), \". \", _jsx(_components.a, {\n href: \"/guides/streaming\",\n children: \"Streaming guide\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Decide (streaming)","description":"Verdict-first Server-Sent Events. Events arrive in a locked order: `request_accepted` → `verdict` → optional `pii_findings` → optional `verdict_revised` → `explanation_chunk`* → `rewrite_chunk`* → optional `safety_findings` → `done` (the current judge emits no `explanation_chunk` / `rewrite_chunk`; audit-only `safety_findings` can trail `done`). The trailing `done` event carries an `envelope` field byte-equivalent to the sync `/decide` response body. Block at the `verdict` event; allow side-effectful calls only at `done` — an enforcing safety finding can outrank the EEO verdict via `verdict_revised`. [Streaming guide](/guides/streaming).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /decide/stream","href":"/api-reference/decide/decide-streaming","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"decideStream","summary":"Decide (streaming)","description":"Verdict-first Server-Sent Events. Events arrive in a locked order: `request_accepted` → `verdict` → optional `pii_findings` → optional `verdict_revised` → `explanation_chunk`* → `rewrite_chunk`* → optional `safety_findings` → `done` (the current judge emits no `explanation_chunk` / `rewrite_chunk`; audit-only `safety_findings` can trail `done`). The trailing `done` event carries an `envelope` field byte-equivalent to the sync `/decide` response body. Block at the `verdict` event; allow side-effectful calls only at `done` — an enforcing safety finding can outrank the EEO verdict via `verdict_revised`. [Streaming guide](/guides/streaming).","tags":["Decide"],"requestBody":"bff228b3-0a56-42e7-843d-296b15d06816","responses":{"200":"0cb2f094-b693-463c-8fb8-c4096f10cc4b","400":"d8ca87d9-73d5-4b4f-a755-239df75470e9","401":"9422d029-b643-4dc9-8485-cf6ac987e70e","422":"f22cd49e-e692-4e82-997a-a46e1f8dd795","429":"1d03eb1c-2e82-49be-9a4b-1652482187a7","503":"7470beb7-0d06-49e8-bc9a-0387a083ae2f"},"method":"post","type":"path","servers":["a5d20fec-eb67-4dcb-8ce8-132d967d9f6f"],"security":["7173e5c8-e9a5-405a-a687-84f336952ba8"],"path":"/decide/stream","baseUrlOptions":["https://judge.tenetlabs.com"],"title":"Decide (streaming)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"surface":{"type":"string","description":"What kind of recruiting action is being checked — the judge reads it with the request, and it frames how the ask is interpreted, so pick it **per request** from the user's current intent, never once per application. Canonical values: `resume_triage` (screening/filtering candidates — the default), `job_ad_drafting`, `candidate_ranking`, `interview_question_gen`, `candidate_outreach`. Not an enum on the wire: unknown values are accepted and passed to the judge as written — stick to the five canonical values. Optional: when omitted, the judge infers the surface from the request text; with no clear signal it uses `resume_triage`. A provided value takes precedence, with one exception: at `phase: \"agent_input\"`, a provided `resume_triage` is refined to another canonical surface when the request text clearly matches one. Full guidance: [Surfaces](/concepts/surfaces#omitting-surface--automatic-inference).","example":"resume_triage","uniqueKey":"surface","typeLabel":"string"},"messages":{"type":"array","description":"Chat-style messages — the content being judged. Each item is a {role, content} object. `content` is a string or a list of text parts (`{\"type\": \"text\", \"text\": ...}`; `input_text` and `output_text` are also accepted), concatenated with no separator before any scanning or judging. Any other part type (image, audio, file, tool block) returns 422 naming the offending index. With more than one `user` message, the last is the request under judgment and earlier ones are read as conversation context. Send retrieved or tool-returned text as a `role: \"tool\"` message — the judge reads it as untrusted content. [Message content](/api-reference/introduction#message-content).","items":{"type":"object","properties":{"role":{"type":"string","example":"user","uniqueKey":"messages.items.[INDEX].role","typeLabel":"string"},"content":{"oneOf":[{"type":"string","example":"find recent grads","uniqueKey":"messages.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["text","input_text","output_text"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].text","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"object"},"example":"find recent grads","uniqueKey":"messages.items.[INDEX].content.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"messages.items.[INDEX].content","typeLabel":"string | object[]"}},"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"default":[],"uniqueKey":"messages","typeLabel":"object[]"},"context":{"type":"object","description":"Evaluation context — tool name, tool input/output, and any harness metadata. Two keys matter most: `recruiter_prompt` (the user's actual ask, verbatim — required for full safety-pattern coverage) and `candidate_content` (the resume/candidate text, whenever the action involves one — omitting it disables candidate-side protections). See [Surfaces — what else the judge needs](/concepts/surfaces#what-else-the-judge-needs-in-the-request).","properties":{"recruiter_prompt":{"type":"string","description":"The user's actual ask, verbatim. Required for full safety-pattern coverage — a serialized args blob is not the user's words.","example":"filter to candidates with 5+ years of Python","uniqueKey":"context.recruiter_prompt","typeLabel":"string"},"candidate_content":{"oneOf":[{"type":"string","description":"Resume/candidate text, whenever the action involves a specific candidate's material. Omitting it disables candidate-side protections.","uniqueKey":"context.candidate_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"Resume/candidate text, whenever the action involves a specific candidate's material. Omitting it disables candidate-side protections.","uniqueKey":"context.candidate_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"context.candidate_content","typeLabel":"string | null"},"tool_name":{"type":"string","description":"The tool being judged. Useful in your own traces; on its own it does not move a verdict — a caller-asserted name is a hint the service re-validates, never an exemption. [Tool context](/concepts/tool-context).","example":"run_background_check","uniqueKey":"context.tool_name","typeLabel":"string"},"tool_input":{"description":"The parameters the tool is about to be called with (`phase: \"tool_pre\"`). The highest-value tool field — the judge reads these as facts and evaluates whether they describe a lawful action, so a call whose parameters carry the role, process stage, or consent basis passes where a bare call routes. [Tool context](/concepts/tool-context).","example":{"role":"delivery driver","stage":"post_offer","consent_on_file":true},"uniqueKey":"context.tool_input","typeLabel":"any"},"tool_description":{"type":"string","description":"What the tool does and what it requires, in the tool's own words. Gives the judge the tool's constraints alongside the call.","example":"FCRA-compliant pre-employment screening. Requires signed disclosure and candidate consent before execution.","uniqueKey":"context.tool_description","typeLabel":"string"},"tool_output":{"description":"What the tool returned (`phase: \"tool_post\"`). Send content you need judged at `tool_post` as a `role: \"tool\"` message. Keep it to what is actually being judged, since payload size drives latency. [Tool context](/concepts/tool-context#the-operational-fast-pass).","uniqueKey":"context.tool_output","typeLabel":"any"}},"additionalProperties":true,"default":{},"uniqueKey":"context","typeLabel":"object"},"phase":{"oneOf":[{"type":"string","description":"Where in the agent loop this content sits.","enum":["agent_input","tool_pre","tool_post","agent_output",null],"uniqueKey":"phase.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Where in the agent loop this content sits.","enum":["agent_input","tool_pre","tool_post","agent_output",null],"uniqueKey":"phase.oneOf.1","typeLabel":"null"}],"uniqueKey":"phase","typeLabel":"enum\u003cstring> | null"},"resolution_status":{"oneOf":[{"type":"string","description":"Whether the tool output resolved the request (tool_post only).","enum":["resolved","unresolved","error",null],"uniqueKey":"resolution_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Whether the tool output resolved the request (tool_post only).","enum":["resolved","unresolved","error",null],"uniqueKey":"resolution_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"resolution_status","typeLabel":"enum\u003cstring> | null"},"session_id":{"oneOf":[{"type":"string","maxLength":199,"description":"Conversation ID — groups a multi-turn conversation's evaluations into one audit trace. Keep it stable within a conversation, new across conversations.","example":"conv-8841","uniqueKey":"session_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":199,"description":"Conversation ID — groups a multi-turn conversation's evaluations into one audit trace. Keep it stable within a conversation, new across conversations.","example":"conv-8841","uniqueKey":"session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"session_id","typeLabel":"string | null"},"domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Per-call narrowing of the entitled domain set. Omit (or null) to run against every domain your account is entitled to (the default — maximum coverage). When provided, the effective set is `entitled ∩ requested`; unknown or unentitled values are silently filtered. An empty list returns 422.","example":["eeo"],"uniqueKey":"domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Per-call narrowing of the entitled domain set. Omit (or null) to run against every domain your account is entitled to (the default — maximum coverage). When provided, the effective set is `entitled ∩ requested`; unknown or unentitled values are silently filtered. An empty list returns 422.","example":["eeo"],"uniqueKey":"domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"domains","typeLabel":"string[] | null"},"intent":{"oneOf":[{"type":"string","enum":["read","action","unknown",null],"description":"Caller-asserted classification of the call — the service's highest-precedence intent signal. Omit (or send `unknown`/`null`) for no assertion. A `read` is authoritative only at `phase: \"tool_post\"` and advisory at `agent_input`. [Read-intent contract](/concepts/read-intent).","example":"read","uniqueKey":"intent.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["read","action","unknown",null],"description":"Caller-asserted classification of the call — the service's highest-precedence intent signal. Omit (or send `unknown`/`null`) for no assertion. A `read` is authoritative only at `phase: \"tool_post\"` and advisory at `agent_input`. [Read-intent contract](/concepts/read-intent).","example":"read","uniqueKey":"intent.oneOf.1","typeLabel":"null"}],"uniqueKey":"intent","typeLabel":"enum\u003cstring> | null"},"tool_name":{"oneOf":[{"type":"string","description":"Name of the tool being judged, as a named top-level field (the SDK sends it at the tool phases). A hint the service re-validates for intent classification — never an exemption. [Tool context](/concepts/tool-context).","example":"send_candidate_message","uniqueKey":"tool_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the tool being judged, as a named top-level field (the SDK sends it at the tool phases). A hint the service re-validates for intent classification — never an exemption. [Tool context](/concepts/tool-context).","example":"send_candidate_message","uniqueKey":"tool_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"tool_name","typeLabel":"string | null"},"tool_input":{"oneOf":[{"type":"object","description":"The tool's arguments as a named top-level field (`tenet-client` 0.7.1 sends a dict `tool_input` here). PII spans detected elsewhere in the request are swept out of it. It is **not** rendered into the judge's prompt — put what the judge must read in `context`. [Tool context](/concepts/tool-context#the-operational-fast-pass).","example":{"candidate_id":"c_8841","message":"Hi Jane, are you free Tuesday for a 30-minute call?"},"uniqueKey":"tool_input.oneOf.0","typeLabel":"object"},{"type":"null","description":"The tool's arguments as a named top-level field (`tenet-client` 0.7.1 sends a dict `tool_input` here). PII spans detected elsewhere in the request are swept out of it. It is **not** rendered into the judge's prompt — put what the judge must read in `context`. [Tool context](/concepts/tool-context#the-operational-fast-pass).","example":{"candidate_id":"c_8841","message":"Hi Jane, are you free Tuesday for a 30-minute call?"},"uniqueKey":"tool_input.oneOf.1","typeLabel":"null"}],"uniqueKey":"tool_input","typeLabel":"object | null"},"workflow":{"oneOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9][a-z0-9._-]*$","description":"Optional label naming which of your integrations made the call (e.g. `resume-screener`, `recruiter-agent`), so your account's decisions can be filtered per workflow on the trace. Lowercase letters, digits, `.`, `_`, `-`, starting with a letter or digit; at most 64 chars — a malformed value returns 422. Recorded on the decision trace only: never read by the judge and never affects the verdict. Distinct from `surface`, which the judge reads and must not be overloaded to separate callers.","example":"resume-screener","uniqueKey":"workflow.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":64,"pattern":"^[a-z0-9][a-z0-9._-]*$","description":"Optional label naming which of your integrations made the call (e.g. `resume-screener`, `recruiter-agent`), so your account's decisions can be filtered per workflow on the trace. Lowercase letters, digits, `.`, `_`, `-`, starting with a letter or digit; at most 64 chars — a malformed value returns 422. Recorded on the decision trace only: never read by the judge and never affects the verdict. Distinct from `surface`, which the judge reads and must not be overloaded to separate callers.","example":"resume-screener","uniqueKey":"workflow.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow","typeLabel":"string | null"},"mode":{"type":"string","enum":["judge","guardrails"],"default":"judge","description":"`judge` (default) runs the EEO judge. `guardrails` skips it and runs only PII detection and the safety rails; the response adds `redacted` — your `messages` and `context` with detected PII replaced by placeholders. `/decide` only: `/decide/stream` returns 400 for `guardrails`. [Guardrails mode](/api-reference/introduction#guardrails-mode).","example":"guardrails","uniqueKey":"mode","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"surface":"resume_triage","messages":[],"context":{},"session_id":"conv-8841","domains":["eeo"],"intent":"read","tool_name":"send_candidate_message","tool_input":{"candidate_id":"c_8841","message":"Hi Jane, are you free Tuesday for a 30-minute call?"},"workflow":"resume-screener","mode":"guardrails"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"0cb2f094-b693-463c-8fb8-c4096f10cc4b":{"description":"SSE stream (`text/event-stream`). Each frame: `event: \u003ctype>`, `id: \u003cevent_id>`, `data: \u003cjson>`.","content":{"text/event-stream":{"schema":{"type":"string","description":"SSE frames. Event types: request_accepted, pii_findings, verdict, verdict_revised, explanation_chunk, rewrite_chunk, safety_findings, error, done.","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"},"d8ca87d9-73d5-4b4f-a755-239df75470e9":{"description":"Malformed request — for example `mode: \"guardrails\"` on `/decide/stream`, which supports only `judge`. `code` is `BAD_REQUEST`.","content":{"application/json":{"schema":{"type":"object","description":"Error envelope. Branch on `code`; `message` is for humans.","properties":{"code":{"type":"string","description":"Stable, programmatic error code — `BAD_REQUEST`, `UNAUTHENTICATED`, `VALIDATION_ERROR`, `RATE_LIMITED`, `QUOTA_EXCEEDED`, `SERVICE_UNAVAILABLE`, `batch_api_retired`, …","example":"VALIDATION_ERROR","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description. For a validation error it names the offending field.","uniqueKey":"message","typeLabel":"string"},"docs_url":{"type":"string","description":"Link to this code's entry in the [Errors](/api-reference/introduction#errors) table.","uniqueKey":"docs_url","typeLabel":"string"},"request_id":{"type":"string","description":"Echoes the `X-Tenet-Request-Id` response header. Include it when reporting a problem.","example":"req_0123456789abcdef0123456789abcdef","uniqueKey":"request_id","typeLabel":"string"},"retry_after":{"type":"integer","description":"Seconds to wait before retrying. Present only when applicable.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"VALIDATION_ERROR","message":"\u003cstring>","docs_url":"\u003cstring>","request_id":"req_0123456789abcdef0123456789abcdef","retry_after":123}}},"exampleType":"generated"}},"exampleType":"generated"},"9422d029-b643-4dc9-8485-cf6ac987e70e":{"description":"Missing or invalid bearer token. `code` is `UNAUTHENTICATED`. Some `401` responses carry no error envelope, so branch on the status code.","content":{"application/json":{"schema":{"type":"object","description":"Error envelope. Branch on `code`; `message` is for humans.","properties":{"code":{"type":"string","description":"Stable, programmatic error code — `BAD_REQUEST`, `UNAUTHENTICATED`, `VALIDATION_ERROR`, `RATE_LIMITED`, `QUOTA_EXCEEDED`, `SERVICE_UNAVAILABLE`, `batch_api_retired`, …","example":"VALIDATION_ERROR","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description. For a validation error it names the offending field.","uniqueKey":"message","typeLabel":"string"},"docs_url":{"type":"string","description":"Link to this code's entry in the [Errors](/api-reference/introduction#errors) table.","uniqueKey":"docs_url","typeLabel":"string"},"request_id":{"type":"string","description":"Echoes the `X-Tenet-Request-Id` response header. Include it when reporting a problem.","example":"req_0123456789abcdef0123456789abcdef","uniqueKey":"request_id","typeLabel":"string"},"retry_after":{"type":"integer","description":"Seconds to wait before retrying. Present only when applicable.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"VALIDATION_ERROR","message":"\u003cstring>","docs_url":"\u003cstring>","request_id":"req_0123456789abcdef0123456789abcdef","retry_after":123}}},"exampleType":"generated"}},"exampleType":"generated"},"f22cd49e-e692-4e82-997a-a46e1f8dd795":{"description":"Request failed validation — for example an empty `domains` list, a malformed `workflow`, or a `messages[*].content` part the judge cannot read. `code` is `VALIDATION_ERROR`; `message` names the offending field.","content":{"application/json":{"schema":{"type":"object","description":"Error envelope. Branch on `code`; `message` is for humans.","properties":{"code":{"type":"string","description":"Stable, programmatic error code — `BAD_REQUEST`, `UNAUTHENTICATED`, `VALIDATION_ERROR`, `RATE_LIMITED`, `QUOTA_EXCEEDED`, `SERVICE_UNAVAILABLE`, `batch_api_retired`, …","example":"VALIDATION_ERROR","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description. For a validation error it names the offending field.","uniqueKey":"message","typeLabel":"string"},"docs_url":{"type":"string","description":"Link to this code's entry in the [Errors](/api-reference/introduction#errors) table.","uniqueKey":"docs_url","typeLabel":"string"},"request_id":{"type":"string","description":"Echoes the `X-Tenet-Request-Id` response header. Include it when reporting a problem.","example":"req_0123456789abcdef0123456789abcdef","uniqueKey":"request_id","typeLabel":"string"},"retry_after":{"type":"integer","description":"Seconds to wait before retrying. Present only when applicable.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"VALIDATION_ERROR","message":"\u003cstring>","docs_url":"\u003cstring>","request_id":"req_0123456789abcdef0123456789abcdef","retry_after":123}}},"exampleType":"generated"}},"exampleType":"generated"},"1d03eb1c-2e82-49be-9a4b-1652482187a7":{"description":"Rate or quota limit reached. `code` is `RATE_LIMITED` (per-minute burst limit) or `QUOTA_EXCEEDED` (the account's monthly limit). The response carries a `Retry-After` header and a matching `retry_after` body field, in seconds; wait that long before retrying. On the stream endpoint the 429 arrives before any SSE event.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","description":"Error envelope. Branch on `code`; `message` is for humans.","properties":{"code":{"type":"string","description":"Stable, programmatic error code — `BAD_REQUEST`, `UNAUTHENTICATED`, `VALIDATION_ERROR`, `RATE_LIMITED`, `QUOTA_EXCEEDED`, `SERVICE_UNAVAILABLE`, `batch_api_retired`, …","example":"VALIDATION_ERROR","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description. For a validation error it names the offending field.","uniqueKey":"message","typeLabel":"string"},"docs_url":{"type":"string","description":"Link to this code's entry in the [Errors](/api-reference/introduction#errors) table.","uniqueKey":"docs_url","typeLabel":"string"},"request_id":{"type":"string","description":"Echoes the `X-Tenet-Request-Id` response header. Include it when reporting a problem.","example":"req_0123456789abcdef0123456789abcdef","uniqueKey":"request_id","typeLabel":"string"},"retry_after":{"type":"integer","description":"Seconds to wait before retrying. Present only when applicable.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"VALIDATION_ERROR","message":"\u003cstring>","docs_url":"\u003cstring>","request_id":"req_0123456789abcdef0123456789abcdef","retry_after":123}}},"exampleType":"generated"}},"exampleType":"generated"},"7470beb7-0d06-49e8-bc9a-0387a083ae2f":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","description":"Error envelope. Branch on `code`; `message` is for humans.","properties":{"code":{"type":"string","description":"Stable, programmatic error code — `BAD_REQUEST`, `UNAUTHENTICATED`, `VALIDATION_ERROR`, `RATE_LIMITED`, `QUOTA_EXCEEDED`, `SERVICE_UNAVAILABLE`, `batch_api_retired`, …","example":"VALIDATION_ERROR","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description. For a validation error it names the offending field.","uniqueKey":"message","typeLabel":"string"},"docs_url":{"type":"string","description":"Link to this code's entry in the [Errors](/api-reference/introduction#errors) table.","uniqueKey":"docs_url","typeLabel":"string"},"request_id":{"type":"string","description":"Echoes the `X-Tenet-Request-Id` response header. Include it when reporting a problem.","example":"req_0123456789abcdef0123456789abcdef","uniqueKey":"request_id","typeLabel":"string"},"retry_after":{"type":"integer","description":"Seconds to wait before retrying. Present only when applicable.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"VALIDATION_ERROR","message":"\u003cstring>","docs_url":"\u003cstring>","request_id":"req_0123456789abcdef0123456789abcdef","retry_after":123}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"7173e5c8-e9a5-405a-a687-84f336952ba8":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A self-serve API key (sk_tenet_…, from platform.tenetlabs.com; accepted on /decide and /decide/stream) or an M2M token (audience https://sdk.tenetlabs.com; accepted everywhere). See /authentication.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"a5d20fec-eb67-4dcb-8ce8-132d967d9f6f":{"url":"https://judge.tenetlabs.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A self-serve API key (sk_tenet_…, from platform.tenetlabs.com; accepted on /decide and /decide/stream) or an M2M token (audience https://sdk.tenetlabs.com; accepted everywhere). See /authentication.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A self-serve API key (sk_tenet_…, from platform.tenetlabs.com; accepted on /decide and /decide/stream) or an M2M token (audience https://sdk.tenetlabs.com; accepted everywhere). See /authentication.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"tenetlabs","siteName":"Tenet Labs","title":"Decide (streaming) - Tenet Labs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T22:51:52.303Z","originalFileLocation":"api-reference/decide/decide-streaming.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=\"Verdict-first Server-Sent Events. Events arrive in a locked order: request_accepted → verdict → optional pii_findings → optional verdict_revised → explanation_chunk → rewrite_chunk → optional safety_findings → done (the current judge emits no explanation_chunk / rewrite_chunk; audit-only safety_findings can trail done). The trailing done event carries an envelope field byte-equivalent to the sync /decide response body. Block at the verdict event; allow side-effectful calls only at done — an enforcing safety finding can outrank the EEO verdict via verdict_revised. Streaming guide.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Tenet Labs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Decide (streaming) - Tenet Labs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Verdict-first Server-Sent Events. Events arrive in a locked order: request_accepted → verdict → optional pii_findings → optional verdict_revised → explanation_chunk → rewrite_chunk → optional safety_findings → done (the current judge emits no explanation_chunk / rewrite_chunk; audit-only safety_findings can trail done). The trailing done event carries an envelope field byte-equivalent to the sync /decide response body. Block at the verdict event; allow side-effectful calls only at done — an enforcing safety finding can outrank the EEO verdict via verdict_revised. Streaming guide.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Tenet Labs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tenetlabs.com/api-reference/decide/decide-streaming\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tenetlabs.mintlify.site/_mintlify/api/og/v2?division=Decide\u0026amp;title=Decide+%28streaming%29\u0026amp;description=Verdict-first+Server-Sent+Events.+Events+arrive+in+a+locked+order%3A+%60request_accepted%60+%E2%86%92+%60verdict%60+%E2%86%92+optional+%60pii_findings%60+%E2%86%92+optional+%60verdict_revised%60+%E2%86%92+%60expl\u0026amp;theme=391546b21e00cc0a494931a4\u0026amp;signature=b65acdaa21a0646560c1d332a82358085ee1a35d52eecc1cbdc5794e7f4c721b\">\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=\"Decide (streaming) - Tenet Labs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Verdict-first Server-Sent Events. Events arrive in a locked order: request_accepted → verdict → optional pii_findings → optional verdict_revised → explanation_chunk → rewrite_chunk → optional safety_findings → done (the current judge emits no explanation_chunk / rewrite_chunk; audit-only safety_findings can trail done). The trailing done event carries an envelope field byte-equivalent to the sync /decide response body. Block at the verdict event; allow side-effectful calls only at done — an enforcing safety finding can outrank the EEO verdict via verdict_revised. Streaming guide.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tenetlabs.mintlify.site/_mintlify/api/og/v2?division=Decide\u0026amp;title=Decide+%28streaming%29\u0026amp;description=Verdict-first+Server-Sent+Events.+Events+arrive+in+a+locked+order%3A+%60request_accepted%60+%E2%86%92+%60verdict%60+%E2%86%92+optional+%60pii_findings%60+%E2%86%92+optional+%60verdict_revised%60+%E2%86%92+%60expl\u0026amp;theme=391546b21e00cc0a494931a4\u0026amp;signature=b65acdaa21a0646560c1d332a82358085ee1a35d52eecc1cbdc5794e7f4c721b\">\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/tenetlabs/KiptfhnHYoT5u1IQ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Tenet Labs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#254BB0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tenetlabs.com/api-reference/decide/decide-streaming\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/decide/decide-streaming.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tenetlabs.com/#organization\",\"name\":\"Tenet Labs\",\"url\":\"https://docs.tenetlabs.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tenetlabs/Ux15lHnF6gElpQTR/logo/light.svg?fit=max\u0026auto=format\u0026n=Ux15lHnF6gElpQTR\u0026q=85\u0026s=ad2a07649adcf4d8be428b5187f69dd3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tenetlabs.com#website\",\"name\":\"Tenet Labs\",\"url\":\"https://docs.tenetlabs.com\",\"publisher\":{\"@id\":\"https://docs.tenetlabs.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tenetlabs.com/api-reference/decide/decide-streaming#webpage\",\"url\":\"https://docs.tenetlabs.com/api-reference/decide/decide-streaming\",\"name\":\"Decide (streaming)\",\"description\":\"Verdict-first Server-Sent Events. Events arrive in a locked order: request_accepted → verdict → optional pii_findings → optional verdict_revised → explanation_chunk → rewrite_chunk → optional safety_findings → done (the current judge emits no explanation_chunk / rewrite_chunk; audit-only safety_findings can trail done). The trailing done event carries an envelope field byte-equivalent to the sync /decide response body. Block at the verdict event; allow side-effectful calls only at done — an enforcing safety finding can outrank the EEO verdict via verdict_revised. Streaming guide.\",\"dateModified\":\"2026-11-11T22:51:52.303Z\",\"isPartOf\":{\"@id\":\"https://docs.tenetlabs.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tenetlabs.com/api-reference/decide/decide-streaming#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tenetlabs.com/api-reference/decide/decide-streaming#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Judge API\",\"item\":\"https://docs.tenetlabs.com/api-reference/decide/decide\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Decide\",\"item\":\"https://docs.tenetlabs.com/api-reference/decide/decide\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Decide (streaming)\",\"item\":\"https://docs.tenetlabs.com/api-reference/decide/decide-streaming\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tenetlabs.com/api-reference/decide/decide-streaming#apireference\",\"headline\":\"Decide (streaming)\",\"name\":\"Decide (streaming)\",\"description\":\"Verdict-first Server-Sent Events. Events arrive in a locked order: request_accepted → verdict → optional pii_findings → optional verdict_revised → explanation_chunk → rewrite_chunk → optional safety_findings → done (the current judge emits no explanation_chunk / rewrite_chunk; audit-only safety_findings can trail done). The trailing done event carries an envelope field byte-equivalent to the sync /decide response body. Block at the verdict event; allow side-effectful calls only at done — an enforcing safety finding can outrank the EEO verdict via verdict_revised. Streaming guide.\",\"url\":\"https://docs.tenetlabs.com/api-reference/decide/decide-streaming\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tenetlabs.com/api-reference/decide/decide-streaming#webpage\"},\"dateModified\":\"2026-11-11T22:51:52.303Z\",\"publisher\":{\"@id\":\"https://docs.tenetlabs.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tenetlabs.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Tenet Labs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Tenet Labs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/decide/decide-streaming.md","siteName":"Tenet Labs","nav":{"global":null,"products":[{"product":"Tenet Guardrails","icon":"gavel","description":"Guardrails for agent tool calls, decided by the Judge","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API overview","href":"/api-reference/introduction"}]},{"group":"Judge API","pages":[{"group":"Decide","pages":[{"title":"Decide","description":"Synchronous evaluation. Blocks until the verdict is ready. A deterministic guard hit or an operational ask returns with no model call; everything else waits on one judge model call. `latency_ms` on the response is the end-to-end server time. To act on the verdict before the merged response is complete, use `/decide/stream`.\n\nWhich domains evaluate this request depends on your plan. PII detection runs on every request regardless of plan, and any detected PII spans are redacted out of the input before it is sent to any downstream LLM. The response carries one `Finding` per evaluated domain in `findings[]`; the top-level `verdict` is the merged most-restrictive value across findings whose `enforcement` is `enforce`. See `DecideResponse` and [Multi-verdict responses](/concepts/multi-verdict).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /decide","href":"/api-reference/decide/decide"},{"title":"Decide (streaming)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /decide/stream","href":"/api-reference/decide/decide-streaming"}]},{"group":"Voice","pages":[{"title":"Voice decide (streaming)","description":"**Preview.** Judge one voice-agent turn as Server-Sent Events. The transcript is scanned by the same injection + PII rails that judge text; the audio is judged directly by transcript-independent acoustic detectors, and the two fuse most-restrictive-wins. Events arrive in a locked order: `request_accepted` → `transcript_ready` → optional `pii_findings` → optional `safety_findings` → `verdict` → optional `acoustic_findings` → optional `verdict_revised` → `done`. Act at the `verdict` event for blocking decisions; an acoustic finding may revise it via `verdict_revised`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /voice/decide/stream","href":"/api-reference/voice/voice-decide-streaming"}]},{"group":"Health","pages":[{"title":"Liveness","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /health","href":"/api-reference/health/liveness"},{"title":"Readiness","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /ready","href":"/api-reference/health/readiness"},{"title":"Warmup","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /health/warm","href":"/api-reference/health/warmup"},{"title":"Config introspection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/config","href":"/api-reference/health/config-introspection"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"product":"PII Engine (Enterprise)","icon":"shield-halved","description":"De-identification that runs in your AWS account","pages":[{"title":"PII Engine (Enterprise)","href":"/pii-engine/overview"}]}]},"basePath":"","title":"Decide (streaming) - Tenet Labs","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","SectionHeading-S4Jc_qPe.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}