Skip to content

TextResponsePart

Structure Class

TextResponsePart dataclass

Bases: _SerdeShape

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:

Attributes

span class-attribute instance-attribute
span: Span | 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 = ...

The part of the generated text that contains a citation.