You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Lex::Types::ActiveContext
- Inherits:
-
Struct
- Object
- Struct
- Aws::Lex::Types::ActiveContext
- Defined in:
- (unknown)
Overview
When passing ActiveContext as input to an Aws::Client method, you can use a vanilla Hash:
{
name: "ActiveContextName", # required
time_to_live: { # required
time_to_live_in_seconds: 1,
turns_to_live: 1,
},
parameters: { # required
"ParameterName" => "Text",
},
}
A context is a variable that contains information about the current state of the conversation between a user and Amazon Lex. Context can be set automatically by Amazon Lex when an intent is fulfilled, or it can be set at runtime using the PutContent, PutText, or PutSession operation.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the context.
-
#parameters ⇒ Hash<String,String>
State variables for the current context.
-
#time_to_live ⇒ Types::ActiveContextTimeToLive
The length of time or number of turns that a context remains active.
Instance Attribute Details
#name ⇒ String
The name of the context.
#parameters ⇒ Hash<String,String>
State variables for the current context. You can use these values as default values for slots in subsequent events.
#time_to_live ⇒ Types::ActiveContextTimeToLive
The length of time or number of turns that a context remains active.