Skip to content

SessionState

Source code in docs_src/capo_lex_runtime_v2/types/session_state.py
class SessionState(TypedDict, closed=True):
    dialog_action: NotRequired["capo_lex_runtime_v2.types.dialog_action.DialogAction"]
    """<p>The next step that Amazon Lex V2 should take in the conversation with a user.</p>"""
    intent: NotRequired["capo_lex_runtime_v2.types.intent.Intent"]
    """<p>The active intent that Amazon Lex V2 is processing.</p>"""
    active_contexts: NotRequired[
        "capo_lex_runtime_v2.types.active_contexts_list.ActiveContextsList"
    ]
    """<p>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.</p>"""
    session_attributes: NotRequired["capo_lex_runtime_v2.types.string_map.StringMap"]
    """<p>Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.</p>"""
    originating_request_id: NotRequired[
        "capo_lex_runtime_v2.types.non_empty_string.NonEmptyString"
    ]
    """<p>A unique identifier for a specific request.</p>"""
    runtime_hints: NotRequired["capo_lex_runtime_v2.types.runtime_hints.RuntimeHints"]
    """<p>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.</p>"""

active_contexts instance-attribute

active_contexts: NotRequired[ActiveContextsList]

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: NotRequired[DialogAction]

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

intent instance-attribute

intent: NotRequired[Intent]

The active intent that Amazon Lex V2 is processing.

originating_request_id instance-attribute

originating_request_id: NotRequired[NonEmptyString]

A unique identifier for a specific request.

runtime_hints instance-attribute

runtime_hints: NotRequired[RuntimeHints]

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: NotRequired[StringMap]

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