Class: Aws::LexRuntimeV2::Types::Interpretation

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-lexruntimev2/types.rb

Overview

An object containing information about an intent that Amazon Lex V2 determined might satisfy the user’s utterance. The intents are ordered by the confidence score.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#intentTypes::Intent

A list of intents that might satisfy the user’s utterance. The intents are ordered by the confidence score.

Returns:



787
788
789
790
791
792
793
794
# File 'lib/aws-sdk-lexruntimev2/types.rb', line 787

class Interpretation < Struct.new(
  :nlu_confidence,
  :sentiment_response,
  :intent,
  :interpretation_source)
  SENSITIVE = []
  include Aws::Structure
end

#interpretation_sourceString

Specifies the service that interpreted the input.

Returns:

  • (String)


787
788
789
790
791
792
793
794
# File 'lib/aws-sdk-lexruntimev2/types.rb', line 787

class Interpretation < Struct.new(
  :nlu_confidence,
  :sentiment_response,
  :intent,
  :interpretation_source)
  SENSITIVE = []
  include Aws::Structure
end

#nlu_confidenceTypes::ConfidenceScore

Determines the threshold where Amazon Lex V2 will insert the ‘AMAZON.FallbackIntent`, `AMAZON.KendraSearchIntent`, or both when returning alternative intents in a response. `AMAZON.FallbackIntent` and `AMAZON.KendraSearchIntent` are only inserted if they are configured for the bot.



787
788
789
790
791
792
793
794
# File 'lib/aws-sdk-lexruntimev2/types.rb', line 787

class Interpretation < Struct.new(
  :nlu_confidence,
  :sentiment_response,
  :intent,
  :interpretation_source)
  SENSITIVE = []
  include Aws::Structure
end

#sentiment_responseTypes::SentimentResponse

The sentiment expressed in an utterance.

When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.



787
788
789
790
791
792
793
794
# File 'lib/aws-sdk-lexruntimev2/types.rb', line 787

class Interpretation < Struct.new(
  :nlu_confidence,
  :sentiment_response,
  :intent,
  :interpretation_source)
  SENSITIVE = []
  include Aws::Structure
end