Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
data OutputContext Source #
Describes a session context that is activated when an intent is fulfilled.
See: newOutputContext
smart constructor.
OutputContext' | |
|
Instances
:: Text | |
-> Natural | |
-> Natural | |
-> OutputContext |
Create a value of OutputContext
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:OutputContext'
, outputContext_name
- The name of the output context.
$sel:timeToLiveInSeconds:OutputContext'
, outputContext_timeToLiveInSeconds
- The amount of time, in seconds, that the output context should remain
active. The time is figured from the first time the context is sent to
the user.
$sel:turnsToLive:OutputContext'
, outputContext_turnsToLive
- The number of conversation turns that the output context should remain
active. The number of turns is counted from the first time that the
context is sent to the user.
outputContext_name :: Lens' OutputContext Text Source #
The name of the output context.
outputContext_timeToLiveInSeconds :: Lens' OutputContext Natural Source #
The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
outputContext_turnsToLive :: Lens' OutputContext Natural Source #
The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.