Skip to content

Citation

Structure Class

Citation dataclass

Bases: _SerdeShape

An object containing a segment of the generated response that is based on a source in the knowledge base, alongside information about the source.

This data type is used in the following API operations:

Attributes

generated_response_part class-attribute instance-attribute
generated_response_part: GeneratedResponsePart | None = ...

Contains the generated response and metadata

retrieved_references class-attribute instance-attribute
retrieved_references: list[RetrievedReference] | None = ...

Contains metadata about the sources cited for the generated response.