Skip to content

RecognizeTextResponse

Source code in docs_src/capo_lex_runtime_v2/types/recognize_text_response.py
class RecognizeTextResponse(TypedDict, closed=True):
    messages: NotRequired["capo_lex_runtime_v2.types.messages.Messages"]
    """<p>A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.</p>"""
    session_state: NotRequired["capo_lex_runtime_v2.types.session_state.SessionState"]
    """<p>Represents the current state of the dialog between the user and the bot. </p> <p>Use this to determine the progress of the conversation and what the next action may be.</p>"""
    interpretations: NotRequired[
        "capo_lex_runtime_v2.types.interpretations.Interpretations"
    ]
    """<p>A list of intents that Amazon Lex V2 determined might satisfy the user's utterance. </p> <p>Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.</p>"""
    request_attributes: NotRequired["capo_lex_runtime_v2.types.string_map.StringMap"]
    """<p>The attributes sent in the request.</p>"""
    session_id: NotRequired["capo_lex_runtime_v2.types.session_id.SessionId"]
    """<p>The identifier of the session in use.</p>"""
    recognized_bot_member: NotRequired[
        "capo_lex_runtime_v2.types.recognized_bot_member.RecognizedBotMember"
    ]
    """<p>The bot member that recognized the text.</p>"""

interpretations instance-attribute

interpretations: NotRequired[Interpretations]

A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.

Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.

messages instance-attribute

messages: NotRequired[Messages]

A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.

recognized_bot_member instance-attribute

recognized_bot_member: NotRequired[RecognizedBotMember]

The bot member that recognized the text.

request_attributes instance-attribute

request_attributes: NotRequired[StringMap]

The attributes sent in the request.

session_id instance-attribute

session_id: NotRequired[SessionId]

The identifier of the session in use.

session_state instance-attribute

session_state: NotRequired[SessionState]

Represents the current state of the dialog between the user and the bot.

Use this to determine the progress of the conversation and what the next action may be.