Skip to content

Bedrock Agent Runtime  >  Structures  >  TextResponsePart

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:

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.