/AWS1/CL_LM2OUTPUTCONTEXT¶
Describes a session context that is activated when an intent is fulfilled.
CONSTRUCTOR
¶
IMPORTING¶
Required arguments:¶
IV_NAME
TYPE /AWS1/LM2NAME
/AWS1/LM2NAME
¶
The name of the output context.
IV_TIMETOLIVEINSECONDS
TYPE /AWS1/LM2CTXTIMETOLIVEINSECS
/AWS1/LM2CTXTIMETOLIVEINSECS
¶
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.
IV_TURNSTOLIVE
TYPE /AWS1/LM2CONTEXTTURNSTOLIVE
/AWS1/LM2CONTEXTTURNSTOLIVE
¶
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.
Queryable Attributes¶
name¶
The name of the output context.
Accessible with the following methods¶
Method | Description |
---|---|
GET_NAME() |
Getter for NAME, with configurable default |
ASK_NAME() |
Getter for NAME w/ exceptions if field has no value |
HAS_NAME() |
Determine if NAME has a value |
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.
Accessible with the following methods¶
Method | Description |
---|---|
GET_TIMETOLIVEINSECONDS() |
Getter for TIMETOLIVEINSECONDS, with configurable default |
ASK_TIMETOLIVEINSECONDS() |
Getter for TIMETOLIVEINSECONDS w/ exceptions if field has no |
HAS_TIMETOLIVEINSECONDS() |
Determine if TIMETOLIVEINSECONDS has a value |
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.
Accessible with the following methods¶
Method | Description |
---|---|
GET_TURNSTOLIVE() |
Getter for TURNSTOLIVE, with configurable default |
ASK_TURNSTOLIVE() |
Getter for TURNSTOLIVE w/ exceptions if field has no value |
HAS_TURNSTOLIVE() |
Determine if TURNSTOLIVE has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_OUTPUTCONTEXTSLIST
¶
TYPES TT_OUTPUTCONTEXTSLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_LM2OUTPUTCONTEXT WITH DEFAULT KEY
.