Citation¶
Structure Class¶
Citation
dataclass
¶
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:
-
InvokeAgent response -- in the
citationsfield -
RetrieveAndGenerate response -- in the
citationsfield
Attributes¶
generated_response_part
class-attribute
instance-attribute
¶
generated_response_part: GeneratedResponsePart | None = None
Contains the generated response and metadata
retrieved_references
class-attribute
instance-attribute
¶
retrieved_references: list[RetrievedReference] | None = None
Contains metadata about the sources cited for the generated response.