PostTextResponse class

Constructors

PostTextResponse({List<ActiveContext>? activeContexts, List<PredictedIntent>? alternativeIntents, String? botVersion, DialogState? dialogState, String? intentName, String? message, MessageFormatType? messageFormat, IntentConfidence? nluIntentConfidence, ResponseCard? responseCard, SentimentResponse? sentimentResponse, Map<String, String>? sessionAttributes, String? sessionId, String? slotToElicit, Map<String, String>? slots})
PostTextResponse.fromJson(Map<String, dynamic> json)
factory

Properties

activeContexts List<ActiveContext>?
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the PostContent, PostText, or PutSession operation.
final
alternativeIntents List<PredictedIntent>?
One to four alternative intents that may be applicable to the user's intent.
final
botVersion String?
The version of the bot that responded to the conversation. You can use this information to help determine if one version of a bot is performing better than another version.
final
dialogState DialogState?
Identifies the current state of the user interaction. Amazon Lex returns one of the following values as dialogState. The client can optionally use this information to customize the user interface.
final
hashCode int
The hash code for this object.
no setterinherited
intentName String?
The current user intent that Amazon Lex is aware of.
final
message String?
The message to convey to the user. The message can come from the bot's configuration or from a Lambda function.
final
messageFormat MessageFormatType?
The format of the response message. One of the following values:
final
nluIntentConfidence IntentConfidence?
Provides a score that indicates how confident Amazon Lex is that the returned intent is the one that matches the user's intent. The score is between 0.0 and 1.0. For more information, see Confidence Scores.
final
responseCard ResponseCard?
Represents the options that the user has to respond to the current prompt. Response Card can come from the bot configuration (in the Amazon Lex console, choose the settings button next to a slot) or from a code hook (Lambda function).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentimentResponse SentimentResponse?
The sentiment expressed in and utterance.
final
sessionAttributes Map<String, String>?
A map of key-value pairs representing the session-specific context information.
final
sessionId String?
A unique identifier for the session.
final
slots Map<String, String>?
The intent slots that Amazon Lex detected from the user input in the conversation.
final
slotToElicit String?
If the dialogState value is ElicitSlot, returns the name of the slot for which Amazon Lex is eliciting a value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited