Skip to content

TextResponsePart

Source code in docs_src/capo_bedrock_agent_runtime/types/text_response_part.py
class TextResponsePart(TypedDict, closed=True):
    text: NotRequired["str"]
    """<p>The part of the generated text that contains a citation.</p>"""
    span: NotRequired["capo_bedrock_agent_runtime.types.span.Span"]
    """<p>Contains information about where the text with a citation begins and ends in the generated output.</p>"""

span instance-attribute

span: NotRequired[Span]

Contains information about where the text with a citation begins and ends in the generated output.

text instance-attribute

text: NotRequired[str]

The part of the generated text that contains a citation.