Skip to content

IntentResultEvent

Structure Class

IntentResultEvent dataclass

Bases: _SerdeShape

Contains the current state of the conversation between the client application and Amazon Lex V2.

Attributes

event_id class-attribute instance-attribute
event_id: str | 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.

input_mode class-attribute instance-attribute
input_mode: str | None = ...

Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.

interpretations class-attribute instance-attribute
interpretations: list[Interpretation] | None = ...

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

Each interpretation includes the intent, a score that indicates how 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.

recognized_bot_member class-attribute instance-attribute
recognized_bot_member: RecognizedBotMember | None = ...

The bot member that is processing the intent.

request_attributes class-attribute instance-attribute
request_attributes: dict[str, str] | None = ...

The attributes sent in the request.

session_id class-attribute instance-attribute
session_id: str | None = ...

The identifier of the session in use.

session_state class-attribute instance-attribute
session_state: SessionState | None = ...

The state of the user's session with Amazon Lex V2.