Skip to content

SessionStateDict

Dictionary Type

SessionStateDict

Bases: TypedDict

Dictionary form of SessionState.

Attributes

active_contexts instance-attribute
active_contexts: Sequence[ActiveContext | ActiveContextDict] | 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 instance-attribute
dialog_action: DialogAction | DialogActionDict | None

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

intent instance-attribute
intent: Intent | IntentDict | None

The active intent that Amazon Lex V2 is processing.

originating_request_id instance-attribute
originating_request_id: str | None

A unique identifier for a specific request.

runtime_hints instance-attribute
runtime_hints: RuntimeHints | RuntimeHintsDict | 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 instance-attribute
session_attributes: Mapping[str, str] | None

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