The retrieval sub-agent, named for what a caller delegates to it: a model
writes queries over the database’s tables until one validates, and the
rows of that query come back as facts, never as prose (unless answer
asks for a written answer beside them).
Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
database
string
required
Target database.
Body
application/json
POST /v1/sub_agent/{database}: a question about the database's data,
and how to scope and bound the retrieval that answers it. An unknown
field is refused.
question
string
required
The question, in natural language, about the database's data. What
the question names (its numbers, names, quoted terms and
identifiers) is what a validated result must contain, so put only
the question here.
answer
boolean
Compose a written answer from the facts as well: once the facts are
final, a model is shown them with every line numbered as it is in
the source and writes the answer for a developer, citing the facts'
lines. The facts still come back beside it, and the answer's
citations are checked against them, repaired where the facts say
where a citation belongs, and, on a deployment that runs a grading
model, graded against the lines they cite (coverage.answer reports
all of it). A caller that writes its own prose leaves this off and
reads the facts.
context
string | null
Text shown to the model beside the question and not part of it: a
description of the data, a hint, a convention. Nothing in it is
required of the result.
facts
object[] | null
The rows to write the answer from, when the caller already holds them
from its earlier calls: the retrieval does not run, the writer is
shown these rows and no others, and the answer's citations are
checked against them. A row given by its place alone (path and a
line inside it, start_line, on a code table, or a table's key
cells) is read back from the table, so the writer sees its lines as
the index holds them; a row given with other cells is shown as
given. Requires answer: true and table; more rows than the
deployment's facts limit is refused.
Show child attributes
include_transcript
boolean
Return the whole conversation, every model reply and tool result,
as transcript beside the facts.
k
integer | null
Facts returned at most: 10 when omitted, as many as asked otherwise,
up to the deployment's limit (1,000 by default; above it the request
is refused). The sub-agent's searches fetch a multiple of this many
rows (10 times by default) as the candidates ranked against the
question before the top k go back.
Required range: x >= 0
max_turns
integer | null
Fewer turns than the deployment allows, when the caller wants a
cheaper answer; a value above the deployment's cap is lowered to it.
Required range: x >= 0
max_wall_secs
integer<int64> | null
A shorter wall-clock budget than the deployment allows, in seconds;
a value above the deployment's cap is lowered to it.
Required range: x >= 0
playbook
string | null
A playbook of learned notes for the sub-agent to read beside its
instructions: the label the notes were stored under, the
session_id of the database's memory rows of kind playbook. The
notes nearest the question are recalled once per call. Omitted, no
playbook is read.
projection
string[] | null
The columns a search or find fact carries beside the text and the
score, for a caller who knows which columns place a row (a code
table's path, start_line, end_line), each applied to the tables
that have it. Omitted, a fact carries the table's key columns, or the
engine's row id when it has none. A list naming no column of any
table is refused.
table
string | null
The one table the question is about, when the database holds several.
The sub-agent is then shown that table's card alone, so it cannot
wander to a sibling. A name that is not a described table of the
database is refused with 404. Omitted (and with no tables), every
table's card is shown.
tables
string[]
The tables the question is about, when it is about more than one and
less than all: the sub-agent is shown their cards alone and may join
them. With table too, the scope is both. A table named here with
no card yet (or no such table) is left out of the scope and listed
in the response's left_out; the request is refused with 404 only
when none of the named tables has a card and no table is given.
Response
The facts: the rows of the query that validated (it ran on the database, returned rows, and the rows contain what the question asked for: its numbers, names, quoted terms and identifiers; the statement's text counts for nothing; or, for an aggregate (a GROUP BY, a COUNT, SUM, AVG, MIN or MAX), it returned a non-zero number), the top k of them (10 by default, up to the deployment's limit), ranked against the question by the deployment's embedding model when the query left their order to the engine (coverage.ranker names it; absent when the query's own order stands), each with the table it came from, plus the statement they came from and how many rows it returned in all. A question whose queries retrieved nothing still returns 200: after three failed attempts terminate is escalated and error carries the sub-agent's account of the problem for the caller to act on; a turn or wall cap is named the same way, with facts empty. inference_tokens is the one figure for the model work: the tokens the sub-agent's calls consumed, prompt and completion together, the count this call's inference was billed on. What the inference was billed is in the x-infino-inference-nanodollars response header.
The answer as the caller receives it (POST /v1/sub_agent/{database}):
the facts and what produced them, and one figure for the model work.
inference_tokens is the count the call's inference was billed on, so
a bill can be checked against the responses. Always 200 once the
sub-agent ran: a run that hit its turn or wall cap, or lost its model,
reports that in terminate and error rather than as an HTTP failure,
so a client can tell "nothing retrieved" from "the request was wrong".
coverage
object
required
How much of what the query returned facts holds, and what ordered
them.
Show child attributes
facts
object[]
required
The facts: the top k of the rows the validated query returned,
ranked against the question when the query left their order to the
engine (coverage.ranker names what ranked them), in the query's own
order when it chose one. Every row is the database's; empty when the
sub-agent ended with nothing retrieved.
Show child attributes
inference_tokens
integer<int64>
required
Tokens the sub-agent's model calls consumed over the whole run,
prompt and completion together, the composed answer's included: the
count this call's inference was billed on.
Required range: x >= 0
retries
integer
required
Times a query or an answer was sent back to the model.
Required range: x >= 0
terminate
enum<string>
required
How the sub-agent's run ended.
Available options:
answered,
turn_cap,
wall_cap,
error,
escalated
turns
integer
required
Model turns the run took.
Required range: x >= 0
answer
string | null
The written answer, when the request asked for one (answer: true)
and facts were there to write from: what the facts show, for a
developer, citing their lines. Absent otherwise.
error
string | null
Why the run ended without facts, when it did: the model's failure;
or, after three attempts validated no query (terminate: escalated), the sub-agent's own account of the problem, for the
caller to act on. Absent otherwise.
left_out
string[]
Tables of the question's scope the sub-agent was not shown, because
no card describes them yet: nothing of theirs is in the facts, so an
empty or partial answer says nothing about them. Absent when every
table in scope was consulted.
statement
string | null
The query the facts came from: SQL, or a search call written as the
SQL it equals, or a find call. It is how to get every row again.
Absent when the sub-agent ended with nothing retrieved.
transcript
object[] | null
The conversation, when the request asked for it
(include_transcript: true): every model reply and tool result, in
order, each a JSON object. Absent otherwise.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Infino","description":"Infino is an open-source retrieval engine for full-text, vector, and SQL search, with your data stored as Apache Parquet on object storage.","colors":{"primary":"#d24011","light":"#e8623a","dark":"#d24011"},"logo":{"light":"https://mintcdn.com/infino-29/sXqDYmwcZ7BW4kvO/logo/infino-logo.png?fit=max\u0026auto=format\u0026n=sXqDYmwcZ7BW4kvO\u0026q=85\u0026s=6bf8ba5e6249a14bb302a90e30e5e18f","dark":"https://mintcdn.com/infino-29/sXqDYmwcZ7BW4kvO/logo/infino-logo.png?fit=max\u0026auto=format\u0026n=sXqDYmwcZ7BW4kvO\u0026q=85\u0026s=6bf8ba5e6249a14bb302a90e30e5e18f","href":"https://infino.ai"},"favicon":"https://mintcdn.com/infino-29/LrgKEC9MS1pd7XX7/favicon.png?fit=max\u0026auto=format\u0026n=LrgKEC9MS1pd7XX7\u0026q=85\u0026s=e08bd7081efa9de5d611ea206ba6e46c","navbar":{"links":[{"href":"https://infino.ai","label":"Home"},{"href":"https://infino.ai/vs","label":"Compare"},{"href":"https://infino.ai/cloud","label":"Infino Cloud"},{"href":"https://github.com/infino-ai/infino","label":"GitHub"}],"primary":{"type":"button","label":"Talk to us","href":"mailto:[email protected]"}},"footer":{"socials":{"github":"https://github.com/infino-ai/infino"},"links":[{"header":"Resources","items":[{"label":"GitHub","href":"https://github.com/infino-ai/infino"},{"label":"Issues","href":"https://github.com/infino-ai/infino/issues"}]}]},"search":{"prompt":"Search the Infino docs…"},"seo":{"metatags":{"canonical":"https://infino.ai/docs","og:site_name":"Infino","og:type":"website","og:image":"/images/og-card.png","twitter:card":"summary_large_image","twitter:image":"/images/og-card.png"},"indexing":"all"},"fonts":{"family":"Inter"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"infino-29","hasAudioNarration":false,"actualSubdomain":"infino-29","customDomains":["infino.ai"],"gitSource":{"type":"github","owner":"infino-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10f1f49ffae5051c417fed"},"feedback":{"agentFeedback":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b114b72948bc6989af172ce","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"API Reference","count":32},{"language":"default","tag":"REST API","count":29},{"language":"default","tag":"Documentation","count":28},{"language":"default","tag":"Infino Cloud","count":12},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Agent","count":7},{"language":"default","tag":"Search","count":7},{"language":"default","tag":"Reference","count":4},{"language":"default","tag":"Databases","count":4},{"language":"default","tag":"Hydrate","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/agent/ask-the-retrieval-sub-agent","slug":"/api-reference/agent/ask-the-retrieval-sub-agent","pageMetadata":{"title":"Ask the retrieval sub-agent","description":"The retrieval sub-agent, named for what a caller delegates to it: a model\nwrites queries over the database's tables until one validates, and the\nrows of that query come back as facts, never as prose (unless `answer`\nasks for a written answer beside them).\n\nPreview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/sub_agent/{database}","href":"/api-reference/agent/ask-the-retrieval-sub-agent","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, 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(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"The retrieval sub-agent, named for what a caller delegates to it: a model\\nwrites queries over the database’s tables until one validates, and the\\nrows of that query come back as facts, never as prose (unless \", _jsx(_components.code, {\n children: \"answer\"\n }), \"\\nasks for a written answer beside them).\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\"\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":"Ask the retrieval sub-agent","description":"The retrieval sub-agent, named for what a caller delegates to it: a model\nwrites queries over the database's tables until one validates, and the\nrows of that query come back as facts, never as prose (unless `answer`\nasks for a written answer beside them).\n\nPreview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/sub_agent/{database}","href":"/api-reference/agent/ask-the-retrieval-sub-agent","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/infino-29/645d308d2f9fae79/structured-data.js","/docs/_mintlify/custom/infino-29/ec3d5239f2e7ff69/same-tab-links.js","/docs/_mintlify/custom/infino-29/cf391a6d1558677e/context7-widget.js"],"openApiReferenceData":{"operation":{"tags":["Agent"],"summary":"Ask the retrieval sub-agent","description":"The retrieval sub-agent, named for what a caller delegates to it: a model\nwrites queries over the database's tables until one validates, and the\nrows of that query come back as facts, never as prose (unless `answer`\nasks for a written answer beside them).\n\nPreview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.","operationId":"sub_agent","parameters":["ac3e092b-a463-40fa-afc3-7d3d48b0745e"],"requestBody":"e1d2be18-62ff-478a-b662-c96001b35c0e","responses":{"200":"f26411b8-9765-4676-861c-1620c123379e","400":"7c4f988a-ea01-4459-85a5-ea06139f0a03","401":"fdf83942-e4fe-45ea-82a7-28e638549d4c","402":"b61762b8-7c2d-416b-bbb6-655faaa67545","403":"be3b7dc5-02b5-4707-babc-e6c257641bee","404":"0f33378a-ec02-44fb-a93c-ebd6529d9c01","410":"1b185536-4277-4118-8658-01e83b3f20e1","429":"6609629e-62b8-4166-bc23-8b3945231543","501":"faa2cfb5-1534-4079-b06d-be5128229892","502":"c25d5db2-7496-41b7-a1a7-f7ed21166879","503":"510ee5ad-2ebb-48d0-a567-fa1bd5bd49be"},"security":["01ceaaaf-30be-43bd-a147-303cca735a7c"],"x-stability":"preview","method":"post","type":"path","servers":["599977cb-8918-427d-9d7b-8a848f5cf332"],"path":"/v1/sub_agent/{database}","baseUrlOptions":["https://api.platform.infino.ws"],"title":"Ask the retrieval sub-agent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"ac3e092b-a463-40fa-afc3-7d3d48b0745e":{"name":"database","in":"path","description":"Target database.","required":true,"schema":{"type":"string","isRequired":true,"description":"Target database.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"`POST /v1/sub_agent/{database}`: a question about the database's data,\nand how to scope and bound the retrieval that answers it. An unknown\nfield is refused.","required":["question"],"properties":{"question":{"type":"string","description":"The question, in natural language, about the database's data. What\nthe question names (its numbers, names, quoted terms and\nidentifiers) is what a validated result must contain, so put only\nthe question here.","isRequired":true,"uniqueKey":"question","typeLabel":"string"},"answer":{"type":"boolean","description":"Compose a written answer from the facts as well: once the facts are\nfinal, a model is shown them with every line numbered as it is in\nthe source and writes the answer for a developer, citing the facts'\nlines. The facts still come back beside it, and the answer's\ncitations are checked against them, repaired where the facts say\nwhere a citation belongs, and, on a deployment that runs a grading\nmodel, graded against the lines they cite (`coverage.answer` reports\nall of it). A caller that writes its own prose leaves this off and\nreads the facts.","uniqueKey":"answer","typeLabel":"boolean"},"context":{"oneOf":[{"type":"string","description":"Text shown to the model beside the question and not part of it: a\ndescription of the data, a hint, a convention. Nothing in it is\nrequired of the result.","uniqueKey":"context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text shown to the model beside the question and not part of it: a\ndescription of the data, a hint, a convention. Nothing in it is\nrequired of the result.","uniqueKey":"context.oneOf.1","typeLabel":"null"}],"uniqueKey":"context","typeLabel":"string | null"},"facts":{"oneOf":[{"type":"array","items":{"type":"object","description":"One fact: a row the query returned, with the table it came from.","required":["row"],"properties":{"row":{"type":"object","description":"The row's cells by column name, as the database holds them.","isRequired":true,"uniqueKey":"facts.oneOf.0.items.[INDEX].row","typeLabel":"object"},"table":{"oneOf":[{"type":"string","description":"The table the row belongs to, when the query searched one table;\nabsent for a SQL statement, which may join several.","uniqueKey":"facts.oneOf.0.items.[INDEX].table.oneOf.0","typeLabel":"string"},{"type":"null","description":"The table the row belongs to, when the query searched one table;\nabsent for a SQL statement, which may join several.","uniqueKey":"facts.oneOf.0.items.[INDEX].table.oneOf.1","typeLabel":"null"}],"uniqueKey":"facts.oneOf.0.items.[INDEX].table","typeLabel":"string | null"}},"uniqueKey":"facts.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The rows to write the answer from, when the caller already holds them\nfrom its earlier calls: the retrieval does not run, the writer is\nshown these rows and no others, and the answer's citations are\nchecked against them. A row given by its place alone (`path` and a\nline inside it, `start_line`, on a code table, or a table's key\ncells) is read back from the table, so the writer sees its lines as\nthe index holds them; a row given with other cells is shown as\ngiven. Requires `answer: true` and `table`; more rows than the\ndeployment's facts limit is refused.","uniqueKey":"facts.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"One fact: a row the query returned, with the table it came from.","required":["row"],"properties":{"row":{"type":"object","description":"The row's cells by column name, as the database holds them."},"table":{"oneOf":[{"type":"string","description":"The table the row belongs to, when the query searched one table;\nabsent for a SQL statement, which may join several."},{"type":"null","description":"The table the row belongs to, when the query searched one table;\nabsent for a SQL statement, which may join several."}]}}},"description":"The rows to write the answer from, when the caller already holds them\nfrom its earlier calls: the retrieval does not run, the writer is\nshown these rows and no others, and the answer's citations are\nchecked against them. A row given by its place alone (`path` and a\nline inside it, `start_line`, on a code table, or a table's key\ncells) is read back from the table, so the writer sees its lines as\nthe index holds them; a row given with other cells is shown as\ngiven. Requires `answer: true` and `table`; more rows than the\ndeployment's facts limit is refused.","uniqueKey":"facts.oneOf.1","typeLabel":"null"}],"uniqueKey":"facts","typeLabel":"object[] | null"},"include_transcript":{"type":"boolean","description":"Return the whole conversation, every model reply and tool result,\nas `transcript` beside the facts.","uniqueKey":"include_transcript","typeLabel":"boolean"},"k":{"oneOf":[{"type":"integer","description":"Facts returned at most: 10 when omitted, as many as asked otherwise,\nup to the deployment's limit (1,000 by default; above it the request\nis refused). The sub-agent's searches fetch a multiple of this many\nrows (10 times by default) as the candidates ranked against the\nquestion before the top `k` go back.","minimum":0,"uniqueKey":"k.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Facts returned at most: 10 when omitted, as many as asked otherwise,\nup to the deployment's limit (1,000 by default; above it the request\nis refused). The sub-agent's searches fetch a multiple of this many\nrows (10 times by default) as the candidates ranked against the\nquestion before the top `k` go back.","minimum":0,"uniqueKey":"k.oneOf.1","typeLabel":"null"}],"uniqueKey":"k","typeLabel":"integer | null"},"max_turns":{"oneOf":[{"type":"integer","description":"Fewer turns than the deployment allows, when the caller wants a\ncheaper answer; a value above the deployment's cap is lowered to it.","minimum":0,"uniqueKey":"max_turns.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Fewer turns than the deployment allows, when the caller wants a\ncheaper answer; a value above the deployment's cap is lowered to it.","minimum":0,"uniqueKey":"max_turns.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_turns","typeLabel":"integer | null"},"max_wall_secs":{"oneOf":[{"type":"integer","format":"int64","description":"A shorter wall-clock budget than the deployment allows, in seconds;\na value above the deployment's cap is lowered to it.","minimum":0,"uniqueKey":"max_wall_secs.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"A shorter wall-clock budget than the deployment allows, in seconds;\na value above the deployment's cap is lowered to it.","minimum":0,"uniqueKey":"max_wall_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_wall_secs","typeLabel":"integer\u003cint64> | null"},"playbook":{"oneOf":[{"type":"string","description":"A playbook of learned notes for the sub-agent to read beside its\ninstructions: the label the notes were stored under, the\n`session_id` of the database's memory rows of kind `playbook`. The\nnotes nearest the question are recalled once per call. Omitted, no\nplaybook is read.","uniqueKey":"playbook.oneOf.0","typeLabel":"string"},{"type":"null","description":"A playbook of learned notes for the sub-agent to read beside its\ninstructions: the label the notes were stored under, the\n`session_id` of the database's memory rows of kind `playbook`. The\nnotes nearest the question are recalled once per call. Omitted, no\nplaybook is read.","uniqueKey":"playbook.oneOf.1","typeLabel":"null"}],"uniqueKey":"playbook","typeLabel":"string | null"},"projection":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"projection.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"The columns a search or `find` fact carries beside the text and the\nscore, for a caller who knows which columns place a row (a code\ntable's `path`, `start_line`, `end_line`), each applied to the tables\nthat have it. Omitted, a fact carries the table's key columns, or the\nengine's row id when it has none. A list naming no column of any\ntable is refused.","uniqueKey":"projection.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"The columns a search or `find` fact carries beside the text and the\nscore, for a caller who knows which columns place a row (a code\ntable's `path`, `start_line`, `end_line`), each applied to the tables\nthat have it. Omitted, a fact carries the table's key columns, or the\nengine's row id when it has none. A list naming no column of any\ntable is refused.","uniqueKey":"projection.oneOf.1","typeLabel":"null"}],"uniqueKey":"projection","typeLabel":"string[] | null"},"table":{"oneOf":[{"type":"string","description":"The one table the question is about, when the database holds several.\nThe sub-agent is then shown that table's card alone, so it cannot\nwander to a sibling. A name that is not a described table of the\ndatabase is refused with 404. Omitted (and with no `tables`), every\ntable's card is shown.","uniqueKey":"table.oneOf.0","typeLabel":"string"},{"type":"null","description":"The one table the question is about, when the database holds several.\nThe sub-agent is then shown that table's card alone, so it cannot\nwander to a sibling. A name that is not a described table of the\ndatabase is refused with 404. Omitted (and with no `tables`), every\ntable's card is shown.","uniqueKey":"table.oneOf.1","typeLabel":"null"}],"uniqueKey":"table","typeLabel":"string | null"},"tables":{"type":"array","items":{"type":"string","uniqueKey":"tables.items.[INDEX]","typeLabel":"string"},"description":"The tables the question is about, when it is about more than one and\nless than all: the sub-agent is shown their cards alone and may join\nthem. With `table` too, the scope is both. A table named here with\nno card yet (or no such table) is left out of the scope and listed\nin the response's `left_out`; the request is refused with 404 only\nwhen none of the named tables has a card and no `table` is given.","uniqueKey":"tables","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"example":{"question":"Which services logged a timeout calling `billing-api` last week?","table":"logs","projection":["service","ts"],"k":2},"examples":{"Example":{"title":"Example","value":{"question":"Which services logged a timeout calling `billing-api` last week?","table":"logs","projection":["service","ts"],"k":2}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"f26411b8-9765-4676-861c-1620c123379e":{"description":"The facts: the rows of the query that validated (it ran on the database, returned rows, and the rows contain what the question asked for: its numbers, names, quoted terms and identifiers; the statement's text counts for nothing; or, for an aggregate (a GROUP BY, a COUNT, SUM, AVG, MIN or MAX), it returned a non-zero number), the top `k` of them (10 by default, up to the deployment's limit), ranked against the question by the deployment's embedding model when the query left their order to the engine (`coverage.ranker` names it; absent when the query's own order stands), each with the table it came from, plus the statement they came from and how many rows it returned in all. A question whose queries retrieved nothing still returns 200: after three failed attempts `terminate` is `escalated` and `error` carries the sub-agent's account of the problem for the caller to act on; a turn or wall cap is named the same way, with `facts` empty. `inference_tokens` is the one figure for the model work: the tokens the sub-agent's calls consumed, prompt and completion together, the count this call's inference was billed on. What the inference was billed is in the `x-infino-inference-nanodollars` response header.","headers":{"x-infino-inference-nanodollars":{"schema":{"type":"integer","format":"int64","minimum":0},"description":"What this call's inference was billed, in billionths of a US dollar."}},"content":{"application/json":{"schema":{"type":"object","description":"The answer as the caller receives it (`POST /v1/sub_agent/{database}`):\nthe facts and what produced them, and one figure for the model work.\n`inference_tokens` is the count the call's inference was billed on, so\na bill can be checked against the responses. Always `200` once the\nsub-agent ran: a run that hit its turn or wall cap, or lost its model,\nreports that in `terminate` and `error` rather than as an HTTP failure,\nso a client can tell \"nothing retrieved\" from \"the request was wrong\".","required":["facts","coverage","terminate","turns","retries","inference_tokens"],"properties":{"coverage":{"type":"object","description":"How much of what the query returned `facts` holds, and what ordered\nthem.","required":["rows_total","rows_returned","truncated"],"properties":{"rows_returned":{"type":"integer","description":"Rows in `facts`: all of them, or the top `k`.","minimum":0,"isRequired":true,"uniqueKey":"coverage.rows_returned","typeLabel":"integer"},"rows_total":{"type":"integer","description":"Rows the query returned in all.","minimum":0,"isRequired":true,"uniqueKey":"coverage.rows_total","typeLabel":"integer"},"truncated":{"type":"boolean","description":"Whether rows were left out.","isRequired":true,"uniqueKey":"coverage.truncated","typeLabel":"boolean"},"answer":{"oneOf":[{"type":"null","uniqueKey":"coverage.answer.oneOf.0","typeLabel":"null"},{"type":"object","description":"The composed answer's accounting, when the request asked for one and\nfacts were there to write from: which model wrote it, how long it\ntook, its tokens, and how many of its citations fall inside the facts\nit was shown. Absent when no answer was composed.","required":["model","ms","prompt_tokens","completion_tokens","citations","held"],"properties":{"citations":{"type":"integer","description":"`path:line` and `path:start-end` citations in the answer as it\nstands, after any repair.","minimum":0,"isRequired":true,"uniqueKey":"coverage.answer.oneOf.1.citations","typeLabel":"integer"},"completion_tokens":{"type":"integer","format":"int64","description":"The writing call's completion tokens, counted into the response's\n`inference_tokens`.","minimum":0,"isRequired":true,"uniqueKey":"coverage.answer.oneOf.1.completion_tokens","typeLabel":"integer\u003cint64>"},"held":{"type":"integer","description":"Citations that fall inside a fact of that path the model was shown.","minimum":0,"isRequired":true,"uniqueKey":"coverage.answer.oneOf.1.held","typeLabel":"integer"},"model":{"type":"string","description":"The model that wrote the answer.","isRequired":true,"uniqueKey":"coverage.answer.oneOf.1.model","typeLabel":"string"},"ms":{"type":"integer","format":"int64","description":"How long the whole answer stage took, in milliseconds: the writing,\nthe citation repair, the per-sentence grade and the re-pointing\ntogether.","minimum":0,"isRequired":true,"uniqueKey":"coverage.answer.oneOf.1.ms","typeLabel":"integer\u003cint64>"},"prompt_tokens":{"type":"integer","format":"int64","description":"The writing call's prompt tokens, counted into the response's\n`inference_tokens`.","minimum":0,"isRequired":true,"uniqueKey":"coverage.answer.oneOf.1.prompt_tokens","typeLabel":"integer\u003cint64>"},"error":{"oneOf":[{"type":"string","description":"Why no answer came back, when none did: the call's failure in a\nsentence. The facts stand.","uniqueKey":"coverage.answer.oneOf.1.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why no answer came back, when none did: the call's failure in a\nsentence. The facts stand.","uniqueKey":"coverage.answer.oneOf.1.error.oneOf.1","typeLabel":"null"}],"uniqueKey":"coverage.answer.oneOf.1.error","typeLabel":"string | null"},"graded":{"oneOf":[{"type":"null","uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.0","typeLabel":"null"},{"type":"object","description":"The grade of each held citation's sentence against the lines it\ncites, and the moves it led to, when the deployment runs a grading\nmodel. Absent when it does not.","required":["model","graded","ms","tokens"],"properties":{"graded":{"type":"integer","description":"Citations put to it.","minimum":0,"isRequired":true,"uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.graded","typeLabel":"integer"},"model":{"type":"string","description":"The grading model.","isRequired":true,"uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.model","typeLabel":"string"},"ms":{"type":"integer","format":"int64","description":"How long the grade and the moves took, in milliseconds.","minimum":0,"isRequired":true,"uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.ms","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","description":"Input tokens the grading calls read. Billed as inference at the\ngrading model's rate, and kept apart from the response's\n`inference_tokens`, which is priced at the answering model's.","minimum":0,"isRequired":true,"uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.tokens","typeLabel":"integer\u003cint64>"},"doubted":{"type":"array","items":{"type":"string","uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.doubted.items.[INDEX]","typeLabel":"string"},"description":"Citations it doubted that stayed where they were: no other shown\nplace held their identifier, or it chose none.","uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.doubted","typeLabel":"string[]"},"error":{"oneOf":[{"type":"string","description":"Why a grade or a move did not happen, when one did not: the failure\nin a sentence. The answer stands as it was.","uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why a grade or a move did not happen, when one did not: the failure\nin a sentence. The answer stands as it was.","uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.error.oneOf.1","typeLabel":"null"}],"uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.error","typeLabel":"string | null"},"moved":{"type":"array","items":{"type":"string","uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.moved.items.[INDEX]","typeLabel":"string"},"description":"Citations it doubted and moved, each `from -> to`.","uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1.moved","typeLabel":"string[]"}},"uniqueKey":"coverage.answer.oneOf.1.graded.oneOf.1","typeLabel":"object"}],"uniqueKey":"coverage.answer.oneOf.1.graded","typeLabel":"null | object"},"repaired":{"type":"array","items":{"type":"string","uniqueKey":"coverage.answer.oneOf.1.repaired.items.[INDEX]","typeLabel":"string"},"description":"Citations the repair rewrote against the facts, each\n`as written -> as it stands (why)`: a bare name written out, a range\nmoved to where the identifier beside it sits in the shown lines.","uniqueKey":"coverage.answer.oneOf.1.repaired","typeLabel":"string[]"},"revised":{"type":"boolean","description":"Whether the answer here is a second one, written after the first did\nnot validate and the writer was told what was wrong with it. A\nsecond answer is kept only when it is wrong in fewer ways than the\nfirst; either way both calls' tokens are counted. Omitted when\nfalse.","uniqueKey":"coverage.answer.oneOf.1.revised","typeLabel":"boolean"},"unheld":{"type":"array","items":{"type":"string","uniqueKey":"coverage.answer.oneOf.1.unheld.items.[INDEX]","typeLabel":"string"},"description":"The citations that do not, as written: a file the model was never\nshown, or a bare name several shown files carry.","uniqueKey":"coverage.answer.oneOf.1.unheld","typeLabel":"string[]"},"unknown_names":{"type":"array","items":{"type":"string","uniqueKey":"coverage.answer.oneOf.1.unknown_names.items.[INDEX]","typeLabel":"string"},"description":"Names the answer writes in backticks that no row it was shown holds,\neach once. The writer is told to write from the rows and nothing\nelse, so a name in none of them was recalled or invented rather than\nread. Reported, not edited: the checks move where a citation points,\nnever what a claim says.","uniqueKey":"coverage.answer.oneOf.1.unknown_names","typeLabel":"string[]"},"unplaced":{"type":"array","items":{"type":"string","uniqueKey":"coverage.answer.oneOf.1.unplaced.items.[INDEX]","typeLabel":"string"},"description":"Citations that kept their path and lost their line numbers, with\nwhy: no shown line of that file placed them.","uniqueKey":"coverage.answer.oneOf.1.unplaced","typeLabel":"string[]"},"unrevised":{"oneOf":[{"type":"string","description":"Why an answer found to have faults went back unrevised, then the\nfaults it stands with, each the sentence the writer would have been\ntold. One fault ships as it is; two or more call for a second\nwriting call, which is made only when the writing model's rate limit\nhas room for it and kept only when it is wrong in fewer ways. Absent\nwhen the answer validated or was revised.","uniqueKey":"coverage.answer.oneOf.1.unrevised.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why an answer found to have faults went back unrevised, then the\nfaults it stands with, each the sentence the writer would have been\ntold. One fault ships as it is; two or more call for a second\nwriting call, which is made only when the writing model's rate limit\nhas room for it and kept only when it is wrong in fewer ways. Absent\nwhen the answer validated or was revised.","uniqueKey":"coverage.answer.oneOf.1.unrevised.oneOf.1","typeLabel":"null"}],"uniqueKey":"coverage.answer.oneOf.1.unrevised","typeLabel":"string | null"},"wrote_ms":{"type":"integer","format":"int64","description":"How long the writing model's own call or calls took, of that, in\nmilliseconds. The rest of `ms` is the service's work on the answer.","minimum":0,"uniqueKey":"coverage.answer.oneOf.1.wrote_ms","typeLabel":"integer\u003cint64>"}},"uniqueKey":"coverage.answer.oneOf.1","typeLabel":"object"}],"uniqueKey":"coverage.answer","typeLabel":"null | object"},"ranker":{"oneOf":[{"type":"string","description":"What ordered `facts`: the embedding model whose similarity to the\nquestion ranked the query's candidates. Absent when the query's own\norder stands: it ordered by a column, grouped, was a `find`,\nreturned one row, or no embedding model could be reached.","uniqueKey":"coverage.ranker.oneOf.0","typeLabel":"string"},{"type":"null","description":"What ordered `facts`: the embedding model whose similarity to the\nquestion ranked the query's candidates. Absent when the query's own\norder stands: it ordered by a column, grouped, was a `find`,\nreturned one row, or no embedding model could be reached.","uniqueKey":"coverage.ranker.oneOf.1","typeLabel":"null"}],"uniqueKey":"coverage.ranker","typeLabel":"string | null"},"repoint":{"oneOf":[{"type":"null","uniqueKey":"coverage.repoint.oneOf.0","typeLabel":"null"},{"type":"object","description":"The re-pointing pass after the grading, when the deployment runs one\nand the question named an identifier: which identifiers it read off\nthe question, which it looked up in the index because no kept row\nheld them on a line of code, how many places it put to the model,\nand which places it added to the facts. Absent when no pass ran.","required":["model","identifiers","looked_up","places","added","ms","tokens"],"properties":{"added":{"type":"array","items":{"type":"string","uniqueKey":"coverage.repoint.oneOf.1.added.items.[INDEX]","typeLabel":"string"},"description":"The places added to the front of the facts, as `path:line` of the\nline the identifier sits on; one at most per identifier.","isRequired":true,"uniqueKey":"coverage.repoint.oneOf.1.added","typeLabel":"string[]"},"identifiers":{"type":"array","items":{"type":"string","uniqueKey":"coverage.repoint.oneOf.1.identifiers.items.[INDEX]","typeLabel":"string"},"description":"The identifiers read off the question, in its order.","isRequired":true,"uniqueKey":"coverage.repoint.oneOf.1.identifiers","typeLabel":"string[]"},"looked_up":{"type":"array","items":{"type":"string","uniqueKey":"coverage.repoint.oneOf.1.looked_up.items.[INDEX]","typeLabel":"string"},"description":"The identifiers looked up in the index: those no kept row held on a\nline of code.","isRequired":true,"uniqueKey":"coverage.repoint.oneOf.1.looked_up","typeLabel":"string[]"},"model":{"type":"string","description":"The grading model that chose among the places.","isRequired":true,"uniqueKey":"coverage.repoint.oneOf.1.model","typeLabel":"string"},"ms":{"type":"integer","format":"int64","description":"How long the pass took, in milliseconds, its calls in flight\ntogether.","minimum":0,"isRequired":true,"uniqueKey":"coverage.repoint.oneOf.1.ms","typeLabel":"integer\u003cint64>"},"places":{"type":"integer","description":"Candidate places put to the model, over every identifier looked up.","minimum":0,"isRequired":true,"uniqueKey":"coverage.repoint.oneOf.1.places","typeLabel":"integer"},"tokens":{"type":"integer","format":"int64","description":"Input tokens the pass's calls read. Billed as inference at the\ngrading model's rate, and kept apart from the response's\n`inference_tokens`, which is priced at the answering model's.","minimum":0,"isRequired":true,"uniqueKey":"coverage.repoint.oneOf.1.tokens","typeLabel":"integer\u003cint64>"},"error":{"oneOf":[{"type":"string","description":"Why a lookup or a choice did not happen, when one did not: the\nfailure in a sentence. The facts are left as they were.","uniqueKey":"coverage.repoint.oneOf.1.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why a lookup or a choice did not happen, when one did not: the\nfailure in a sentence. The facts are left as they were.","uniqueKey":"coverage.repoint.oneOf.1.error.oneOf.1","typeLabel":"null"}],"uniqueKey":"coverage.repoint.oneOf.1.error","typeLabel":"string | null"}},"uniqueKey":"coverage.repoint.oneOf.1","typeLabel":"object"}],"uniqueKey":"coverage.repoint","typeLabel":"null | object"},"triage":{"oneOf":[{"type":"null","uniqueKey":"coverage.triage.oneOf.0","typeLabel":"null"},{"type":"object","description":"The grading pass over the ranked candidates, when the deployment\nruns one: what scored them, how many it scored and dropped before\nthe top `k` were taken, and what went wrong when it could not.\nAbsent when no pass ran.","required":["model","scored","dropped","ms"],"properties":{"dropped":{"type":"integer","description":"Rows dropped for scoring under the cut.","minimum":0,"isRequired":true,"uniqueKey":"coverage.triage.oneOf.1.dropped","typeLabel":"integer"},"model":{"type":"string","description":"The grading model that scored the rows.","isRequired":true,"uniqueKey":"coverage.triage.oneOf.1.model","typeLabel":"string"},"ms":{"type":"integer","format":"int64","description":"How long the pass took, in milliseconds, every call in flight\ntogether.","minimum":0,"isRequired":true,"uniqueKey":"coverage.triage.oneOf.1.ms","typeLabel":"integer\u003cint64>"},"scored":{"type":"integer","description":"Rows put to the model.","minimum":0,"isRequired":true,"uniqueKey":"coverage.triage.oneOf.1.scored","typeLabel":"integer"},"error":{"oneOf":[{"type":"string","description":"Why a batch of rows was kept unscored, when one was: the call's\nfailure in a sentence. Rows of a failed batch are kept as ranked.","uniqueKey":"coverage.triage.oneOf.1.error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why a batch of rows was kept unscored, when one was: the call's\nfailure in a sentence. Rows of a failed batch are kept as ranked.","uniqueKey":"coverage.triage.oneOf.1.error.oneOf.1","typeLabel":"null"}],"uniqueKey":"coverage.triage.oneOf.1.error","typeLabel":"string | null"},"tokens":{"type":"integer","format":"int64","description":"Input tokens the pass's calls read. Billed as inference at the\ngrading model's rate, and kept apart from the response's\n`inference_tokens`, which is priced at the answering model's: one\ncount over two rates would misstate the cost.","minimum":0,"uniqueKey":"coverage.triage.oneOf.1.tokens","typeLabel":"integer\u003cint64>"}},"uniqueKey":"coverage.triage.oneOf.1","typeLabel":"object"}],"uniqueKey":"coverage.triage","typeLabel":"null | object"}},"isRequired":true,"uniqueKey":"coverage","typeLabel":"object"},"facts":{"type":"array","items":{"type":"object","description":"One fact: a row the query returned, with the table it came from.","required":["row"],"properties":{"row":{"type":"object","description":"The row's cells by column name, as the database holds them.","isRequired":true,"uniqueKey":"facts.items.[INDEX].row","typeLabel":"object"},"table":{"oneOf":[{"type":"string","description":"The table the row belongs to, when the query searched one table;\nabsent for a SQL statement, which may join several.","uniqueKey":"facts.items.[INDEX].table.oneOf.0","typeLabel":"string"},{"type":"null","description":"The table the row belongs to, when the query searched one table;\nabsent for a SQL statement, which may join several.","uniqueKey":"facts.items.[INDEX].table.oneOf.1","typeLabel":"null"}],"uniqueKey":"facts.items.[INDEX].table","typeLabel":"string | null"}},"uniqueKey":"facts.items.[INDEX]","typeLabel":"object"},"description":"The facts: the top `k` of the rows the validated query returned,\nranked against the question when the query left their order to the\nengine (`coverage.ranker` names what ranked them), in the query's own\norder when it chose one. Every row is the database's; empty when the\nsub-agent ended with nothing retrieved.","isRequired":true,"uniqueKey":"facts","typeLabel":"object[]"},"inference_tokens":{"type":"integer","format":"int64","description":"Tokens the sub-agent's model calls consumed over the whole run,\nprompt and completion together, the composed answer's included: the\ncount this call's inference was billed on.","minimum":0,"isRequired":true,"uniqueKey":"inference_tokens","typeLabel":"integer\u003cint64>"},"retries":{"type":"integer","description":"Times a query or an answer was sent back to the model.","minimum":0,"isRequired":true,"uniqueKey":"retries","typeLabel":"integer"},"terminate":{"type":"string","description":"How the sub-agent's run ended.","enum":["answered","turn_cap","wall_cap","error","escalated"],"isRequired":true,"uniqueKey":"terminate","typeLabel":"enum\u003cstring>"},"turns":{"type":"integer","description":"Model turns the run took.","minimum":0,"isRequired":true,"uniqueKey":"turns","typeLabel":"integer"},"answer":{"oneOf":[{"type":"string","description":"The written answer, when the request asked for one (`answer: true`)\nand facts were there to write from: what the facts show, for a\ndeveloper, citing their lines. Absent otherwise.","uniqueKey":"answer.oneOf.0","typeLabel":"string"},{"type":"null","description":"The written answer, when the request asked for one (`answer: true`)\nand facts were there to write from: what the facts show, for a\ndeveloper, citing their lines. Absent otherwise.","uniqueKey":"answer.oneOf.1","typeLabel":"null"}],"uniqueKey":"answer","typeLabel":"string | null"},"error":{"oneOf":[{"type":"string","description":"Why the run ended without facts, when it did: the model's failure;\nor, after three attempts validated no query (`terminate:\nescalated`), the sub-agent's own account of the problem, for the\ncaller to act on. Absent otherwise.","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the run ended without facts, when it did: the model's failure;\nor, after three attempts validated no query (`terminate:\nescalated`), the sub-agent's own account of the problem, for the\ncaller to act on. Absent otherwise.","uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"string | null"},"left_out":{"type":"array","items":{"type":"string","uniqueKey":"left_out.items.[INDEX]","typeLabel":"string"},"description":"Tables of the question's scope the sub-agent was not shown, because\nno card describes them yet: nothing of theirs is in the facts, so an\nempty or partial answer says nothing about them. Absent when every\ntable in scope was consulted.","uniqueKey":"left_out","typeLabel":"string[]"},"statement":{"oneOf":[{"type":"string","description":"The query the facts came from: SQL, or a search call written as the\nSQL it equals, or a `find` call. It is how to get every row again.\nAbsent when the sub-agent ended with nothing retrieved.","uniqueKey":"statement.oneOf.0","typeLabel":"string"},{"type":"null","description":"The query the facts came from: SQL, or a search call written as the\nSQL it equals, or a `find` call. It is how to get every row again.\nAbsent when the sub-agent ended with nothing retrieved.","uniqueKey":"statement.oneOf.1","typeLabel":"null"}],"uniqueKey":"statement","typeLabel":"string | null"},"transcript":{"oneOf":[{"type":"array","items":{"type":"object","uniqueKey":"transcript.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The conversation, when the request asked for it\n(`include_transcript: true`): every model reply and tool result, in\norder, each a JSON object. Absent otherwise.","uniqueKey":"transcript.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object"},"description":"The conversation, when the request asked for it\n(`include_transcript: true`): every model reply and tool result, in\norder, each a JSON object. Absent otherwise.","uniqueKey":"transcript.oneOf.1","typeLabel":"null"}],"uniqueKey":"transcript","typeLabel":"object[] | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"facts":[{"table":"logs","row":{"service":"checkout","ts":"2026-03-02T10:14:07Z","message":"timeout calling billing-api after 30s"}},{"table":"logs","row":{"service":"invoicing","ts":"2026-03-03T08:41:55Z","message":"billing-api: request timeout"}}],"coverage":{"rows_total":37,"rows_returned":2,"truncated":true},"statement":"SELECT service, ts, message FROM bm25_search('logs', 'message', 'timeout billing-api', 20)","terminate":"answered","turns":2,"retries":0,"inference_tokens":4210},"examples":{"Example":{"title":"Example","value":{"facts":[{"table":"logs","row":{"service":"checkout","ts":"2026-03-02T10:14:07Z","message":"timeout calling billing-api after 30s"}},{"table":"logs","row":{"service":"invoicing","ts":"2026-03-03T08:41:55Z","message":"billing-api: request timeout"}}],"coverage":{"rows_total":37,"rows_returned":2,"truncated":true},"statement":"SELECT service, ts, message FROM bm25_search('logs', 'message', 'timeout billing-api', 20)","terminate":"answered","turns":2,"retries":0,"inference_tokens":4210}}},"exampleType":"examples"}},"exampleType":"examples"},"7c4f988a-ea01-4459-85a5-ea06139f0a03":{"description":"Invalid request body; a `projection` naming no column of any table in scope; `k`, or more `facts`, than the deployment's limit; `facts` without `answer` and `table`; or a database with no tables.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"fdf83942-e4fe-45ea-82a7-28e638549d4c":{"description":"Missing or invalid API key.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"b61762b8-7c2d-416b-bbb6-655faaa67545":{"description":"The account is suspended for non-payment, or its free period has ended.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"be3b7dc5-02b5-4707-babc-e6c257641bee":{"description":"The agent APIs are not enabled for this account, or the API key lacks read access to this database.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"0f33378a-ec02-44fb-a93c-ebd6529d9c01":{"description":"The database does not exist; the named `table` is not a described table of it; or none of the named `tables` is. The message lists the tables the database does have described.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"1b185536-4277-4118-8658-01e83b3f20e1":{"description":"The database is being purged.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"6609629e-62b8-4166-bc23-8b3945231543":{"description":"The database's model pool is full: as many sub-agent calls as it serves at once are in progress, and one more would only queue until its wall cap. Transient: retry after the `Retry-After` interval when one is given (the wait one call takes here), else shortly.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"faa2cfb5-1534-4079-b06d-be5128229892":{"description":"This deployment has no answering model configured.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"c25d5db2-7496-41b7-a1a7-f7ed21166879":{"description":"The service could not read the answer computed for this request. Transient: retry.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"510ee5ad-2ebb-48d0-a567-fa1bd5bd49be":{"description":"No table of the database has been described yet (a table is described shortly after it is created), or the database is still activating. Transient: retry after the `Retry-After` interval.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"01ceaaaf-30be-43bd-a147-303cca735a7c":{"api_key":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"api_key"}}},"servers":{"599977cb-8918-427d-9d7b-8a848f5cf332":{"url":"https://api.platform.infino.ws","description":"Infino Cloud"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"api_key"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"api_key","name":"Authorization"}],"title":"api_key"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"infino-29","siteName":"Infino","title":"Ask the retrieval sub-agent - Infino","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/agent/ask-the-retrieval-sub-agent.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=\"The retrieval sub-agent, named for what a caller delegates to it: a model writes queries over the database\u0026#x27;s tables until one validates, and the rows of that query come back as facts, never as prose (unless answer asks for a written answer beside them). Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Infino\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_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=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ask the retrieval sub-agent - Infino\">\u003cmeta data-mint-head property=\"og:description\" content=\"The retrieval sub-agent, named for what a caller delegates to it: a model writes queries over the database\u0026#x27;s tables until one validates, and the rows of that query come back as facts, never as prose (unless answer asks for a written answer beside them). Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Infino\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://infino.ai/docs/api-reference/agent/ask-the-retrieval-sub-agent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://infino-29.mintlify.site/docs/images/og-card.png\">\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=\"Ask the retrieval sub-agent - Infino\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The retrieval sub-agent, named for what a caller delegates to it: a model writes queries over the database\u0026#x27;s tables until one validates, and the rows of that query come back as facts, never as prose (unless answer asks for a written answer beside them). Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://infino-29.mintlify.site/docs/images/og-card.png\">\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=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Infino\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#d24011\">\u003clink data-mint-head rel=\"canonical\" href=\"https://infino.ai/docs/api-reference/agent/ask-the-retrieval-sub-agent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/agent/ask-the-retrieval-sub-agent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://infino.ai/#organization\",\"name\":\"Infino\",\"url\":\"https://infino.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/infino-29/sXqDYmwcZ7BW4kvO/logo/infino-logo.png?fit=max\u0026auto=format\u0026n=sXqDYmwcZ7BW4kvO\u0026q=85\u0026s=6bf8ba5e6249a14bb302a90e30e5e18f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://infino.ai/docs#website\",\"name\":\"Infino\",\"url\":\"https://infino.ai/docs\",\"publisher\":{\"@id\":\"https://infino.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://infino.ai/docs/api-reference/agent/ask-the-retrieval-sub-agent#webpage\",\"url\":\"https://infino.ai/docs/api-reference/agent/ask-the-retrieval-sub-agent\",\"name\":\"Ask the retrieval sub-agent\",\"description\":\"The retrieval sub-agent, named for what a caller delegates to it: a model writes queries over the database's tables until one validates, and the rows of that query come back as facts, never as prose (unless answer asks for a written answer beside them). Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\",\"isPartOf\":{\"@id\":\"https://infino.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://infino.ai/docs/api-reference/agent/ask-the-retrieval-sub-agent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://infino.ai/docs/api-reference/agent/ask-the-retrieval-sub-agent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST API\",\"item\":\"https://infino.ai/docs/api-reference/rows/append-rows\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agent\",\"item\":\"https://infino.ai/docs/api-reference/agent/find-lines\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ask the retrieval sub-agent\",\"item\":\"https://infino.ai/docs/api-reference/agent/ask-the-retrieval-sub-agent\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://infino.ai/docs/api-reference/agent/ask-the-retrieval-sub-agent#apireference\",\"headline\":\"Ask the retrieval sub-agent\",\"name\":\"Ask the retrieval sub-agent\",\"description\":\"The retrieval sub-agent, named for what a caller delegates to it: a model writes queries over the database's tables until one validates, and the rows of that query come back as facts, never as prose (unless answer asks for a written answer beside them). Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\",\"url\":\"https://infino.ai/docs/api-reference/agent/ask-the-retrieval-sub-agent\",\"mainEntityOfPage\":{\"@id\":\"https://infino.ai/docs/api-reference/agent/ask-the-retrieval-sub-agent#webpage\"},\"image\":\"https://infino.ai/images/og-card.png\",\"publisher\":{\"@id\":\"https://infino.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://infino.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Infino\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Infino\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/agent/ask-the-retrieval-sub-agent.md","siteName":"Infino","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/mcp"}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/tutorials"}]},{"tab":"Use Cases","pages":[{"title":"Use Cases","href":"/use-cases"}]},{"tab":"Demos","pages":[{"title":"Demos","href":"/demos"}]},{"tab":"API Reference","groups":[{"group":"SDKs \u0026 CLI","pages":[{"title":"Overview","icon":"code","href":"/api-reference"},{"title":"Local vs Infino Cloud","icon":"table-columns","href":"/api-reference/parity"},{"title":"Infino CLI: create tables, ingest, and search","icon":"terminal","href":"/cli"}]},{"group":"REST API","pages":[{"group":"Rows","pages":[{"title":"Append rows","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/append/{database}","href":"/api-reference/rows/append-rows"},{"title":"Delete rows","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/delete/{database}","href":"/api-reference/rows/delete-rows"},{"title":"Update rows","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/update/{database}","href":"/api-reference/rows/update-rows"}]},{"group":"Search","pages":[{"title":"BM25 full-text search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/bm25_search/{database}","href":"/api-reference/search/bm25-full-text-search"},{"title":"Count matches","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/count/{database}","href":"/api-reference/search/count-matches"},{"title":"Exact match","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/exact_match/{database}","href":"/api-reference/search/exact-match"},{"title":"Hybrid search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/hybrid_search/{database}","href":"/api-reference/search/hybrid-search"},{"title":"Run a SQL query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/query_sql/{database}","href":"/api-reference/search/run-a-sql-query"},{"title":"Token match","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/token_match/{database}","href":"/api-reference/search/token-match"},{"title":"Vector search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/vector_search/{database}","href":"/api-reference/search/vector-search"}]},{"group":"Tables","pages":[{"title":"Create a table","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/create_table/{database}","href":"/api-reference/tables/create-a-table"},{"title":"Drop a table","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/drop_table/{database}","href":"/api-reference/tables/drop-a-table"},{"title":"List tables","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/list_tables/{database}","href":"/api-reference/tables/list-tables"},{"title":"Describe or change a table's schema","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/schema/{database}","href":"/api-reference/tables/describe-or-change-a-tables-schema"}]},{"group":"Databases","pages":[{"title":"List databases","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/databases","href":"/api-reference/databases/list-databases"},{"title":"Create a database","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases","href":"/api-reference/databases/create-a-database"},{"title":"Delete a database","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/databases/{name}","href":"/api-reference/databases/delete-a-database"},{"title":"Verify a storage binding","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{name}/storage/verify","href":"/api-reference/databases/verify-a-storage-binding"}]},{"group":"Agent","pages":[{"title":"Find lines","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/find/{database}","href":"/api-reference/agent/find-lines"},{"title":"Expand rows through the graph","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/graph_expand/{database}","href":"/api-reference/agent/expand-rows-through-the-graph"},{"title":"Query graph facts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/graph_facts/{database}","href":"/api-reference/agent/query-graph-facts"},{"title":"Find join keys","description":"For a caller about to write a JOIN: name the tables and get every join\namong them as a predicate ready to paste into `ON`, measured on the data\nrather than guessed from column names.\n\nPreview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/join_keys/{database}","href":"/api-reference/agent/find-join-keys"},{"title":"Ask the retrieval sub-agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/sub_agent/{database}","href":"/api-reference/agent/ask-the-retrieval-sub-agent"},{"title":"Read a table card","description":"A card is the table's schema with index roles, per-column statistics and\nsample rows, computed by the service shortly after the table changes. It\nsays nothing about the table's keys to other tables: those are the\n`join_keys` route's to return. One route, two answers: `table` reads one\ntable's card, `tables` renders several tables' cards as prompt text.\n\nFor example, `GET /v1/table_card/support?table=issues\u0026tier=enriched`\nreads one card, and\n`GET /v1/table_card/support?tables=issues,logs\u0026question=which+issues+mention+a+timeout`\nrenders two tables' cards for a question.\n\nPreview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/table_card/{database}","href":"/api-reference/agent/read-a-table-card"},{"title":"Validate a result","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/validate/{database}","href":"/api-reference/agent/validate-a-result"}]},{"group":"Hydrate","pages":[{"title":"Get the status of a load","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/hydrate/{database}","href":"/api-reference/hydrate/get-the-status-of-a-load"},{"title":"Start a load","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/hydrate/{database}","href":"/api-reference/hydrate/start-a-load"},{"title":"Cancel a load, or clear one that has ended","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/hydrate/{database}","href":"/api-reference/hydrate/cancel-a-load-or-clear-one-that-has-ended"},{"title":"Run a sync pass now","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/hydrate/{database}/{table}/sync","href":"/api-reference/hydrate/run-a-sync-pass-now"}]}]}]}]},"basePath":"","title":"Ask the retrieval sub-agent - Infino","deploymentId":"dpl_2XYgqAEo2Z87hCspE7GmXvEteEBv","buildId":"dpl_2XYgqAEo2Z87hCspE7GmXvEteEBv","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DNqkp7YS.js","snippetPresets-C38JHxW2.js","utils-5JdO8rlh.js","style-to-object-BY3JEAdk.js","utils-C0Bo3eqZ.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-D-aWhlw8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BPmIGmRa.js","_Uint8Array-CcjpDbJb.js","isObject-FP1Yky1u.js","ApiExamples-D422jahk.js","usePlaygroundInputsStore-osHAJtpm.js","shallow-Gw98mn20.js","isEqual-X71_hSCS.js","CodeSnippets-D5iZ7Wia.js","CodeSnippet-Br0gsSYf.js","use-playground-group-access-D2GsZl7r.js","Page-Tji5sfbr.js","api-description-markdown-Dl9akA3Z.js","DynamicMarkdown-nQmF4d4W.js","SectionHeading-_u13RW5t.js","MethodPill-DvROsJQF.js","getPastedJson-Df88_Idg.js","Check2Icon-CFIe--gy.js","axios-CsQoIw0U.js","Markdown-BL3fHinh.js","AssistantPageLink-CwNgb7pc.js","dist-D_Pa01uY.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}