Skip to content

Lex Runtime V2  >  Structures  >  SessionState

SessionState

Structure Class

SessionState dataclass

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

Attributes

active_contexts class-attribute instance-attribute
active_contexts: list[ActiveContext] | None = None

One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.

dialog_action class-attribute instance-attribute
dialog_action: DialogAction | None = None

The next step that Amazon Lex V2 should take in the conversation with a user.

intent class-attribute instance-attribute
intent: Intent | None = None

The active intent that Amazon Lex V2 is processing.

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

A unique identifier for a specific request.

runtime_hints class-attribute instance-attribute
runtime_hints: RuntimeHints | None = None

Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.

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

Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.