Skip to content

CitationsContentBlock

Structure Class

CitationsContentBlock dataclass

Bases: _SerdeShape

A content block that contains both generated text and associated citation information. This block type is returned when document citations are enabled, providing traceability between the generated content and the source documents that informed the response.

Attributes

citations class-attribute instance-attribute
citations: list[Citation] | None = ...

An array of citations that reference the source documents used to generate the associated content.

content class-attribute instance-attribute
content: list[CitationGeneratedContent] | None = ...

The generated content that is supported by the associated citations.