Skip to content

ActiveContext

Source code in docs_src/capo_lex_runtime_v2/types/active_context.py
class ActiveContext(TypedDict, closed=True):
    name: "capo_lex_runtime_v2.types.active_context_name.ActiveContextName"
    """<p>The name of the context.</p>"""
    time_to_live: (
        "capo_lex_runtime_v2.types.active_context_time_to_live.ActiveContextTimeToLive"
    )
    """<p>Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.</p>"""
    context_attributes: "capo_lex_runtime_v2.types.active_context_parameters_map.ActiveContextParametersMap"
    """<p>A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request.</p> <p>If you don't specify a list of contexts, Amazon Lex V2 will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared. </p>"""

context_attributes instance-attribute

context_attributes: ActiveContextParametersMap

A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request.

If you don't specify a list of contexts, Amazon Lex V2 will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.

name instance-attribute

The name of the context.

time_to_live instance-attribute

Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.