TextResponsePart¶
Structure Class¶
TextResponsePart
dataclass
¶
Contains the part of the generated text that contains a citation, alongside where it begins and ends.
This data type is used in the following API operations:
-
RetrieveAndGenerate response -- in the
textResponsePartfield -
InvokeAgent response -- in the
textResponsePartfield
Attributes¶
span
class-attribute
instance-attribute
¶
span: Span | None = None
Contains information about where the text with a citation begins and ends in the generated output.
text
class-attribute
instance-attribute
¶
text: str | None = None
The part of the generated text that contains a citation.