AttachmentMetadata(AttachmentMetadata)
Metadata describing files attached to a chat request.Both fields are optional; an empty payload (or no attachment_metadata
at all) means the request has no attached files. corpus_id is used to
link the file's corpus to the destination chat thread so RAG retrieval
can hit it on this turn. doc_ids are used to fetch display filenames
(rendered as attachment chips in the UI) via Django's document polling
endpoint.
{
"corpus_id": 0,
"doc_ids": [
0
]
}