Skip to content

Lex Runtime V2  >  Structures  >  TextResponseEvent

TextResponseEvent

Structure Class

TextResponseEvent dataclass

The event sent from Amazon Lex V2 to your application with text to present to the user.

Attributes

event_id class-attribute instance-attribute
event_id: str | None = None

A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.

messages class-attribute instance-attribute
messages: list[Message] | None = None

A list of messages to send to the user. 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.