For the complete documentation index, see llms.txt. This page is also available as Markdown.

Answer

An answer is generated prose plus the citations that support it. It is never a bare string.

Shape

json
{ "object": "answer", "text": "Warming interacts with habitat fragmentation to accelerate local extinctions [1]. …", "citations": [ { "index": 1, "quote": "…", "source": { "type": "paper", "id": "pap_…" }, "locations": [ { "page": 7, "bbox": { "…": 0 } } ] } ], "unsourced_claim_count": 0 }

Reading the markers

Claims carry [n] markers that match citations[].index. Render them as links into the source; see citation-highlights for a worked example.

Not every claim has a source

When the model asserts something it could not ground, the citation's source.type is model. Surface that state in your UI rather than hiding it.

citation · searches · chats · grounded-answers

Last updated