Skip to content

RetrievalInstructionContent

Structure Class

RetrievalInstructionContent dataclass

Bases: _SerdeShape

The instruction content, as a set of named fields. Every field is optional; at least one must be present. Service-side validation enforces per-field and aggregate size limits.

Attributes

answer_format class-attribute instance-attribute
answer_format: str | None = ...

How the answer is structured, including how sources are cited.

answer_policy class-attribute instance-attribute
answer_policy: str | None = ...

Whether and how to answer: how strongly an answer must be supported, and what to do with questions outside scope.

persona class-attribute instance-attribute
persona: str | None = ...

Who the assistant is: identity, tone and language.

retrieval_guidance class-attribute instance-attribute
retrieval_guidance: str | None = ...

How to interpret and decompose the question, and what to prioritise when searching.