Class: Aws::LexRuntimeV2::Types::RecognizeTextResponse

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#interpretationsArray<Types::Interpretation>

A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.

Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.

Returns:



1333
1334
1335
1336
1337
1338
1339
1340
1341
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1333

class RecognizeTextResponse < Struct.new(
  :messages,
  :session_state,
  :interpretations,
  :request_attributes,
  :session_id)
  SENSITIVE = []
  include Aws::Structure
end

#messagesArray<Types::Message>

A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.

Returns:



1333
1334
1335
1336
1337
1338
1339
1340
1341
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1333

class RecognizeTextResponse < Struct.new(
  :messages,
  :session_state,
  :interpretations,
  :request_attributes,
  :session_id)
  SENSITIVE = []
  include Aws::Structure
end

#request_attributesHash<String,String>

The attributes sent in the request.

Returns:

  • (Hash<String,String>)


1333
1334
1335
1336
1337
1338
1339
1340
1341
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1333

class RecognizeTextResponse < Struct.new(
  :messages,
  :session_state,
  :interpretations,
  :request_attributes,
  :session_id)
  SENSITIVE = []
  include Aws::Structure
end

#session_idString

The identifier of the session in use.

Returns:

  • (String)


1333
1334
1335
1336
1337
1338
1339
1340
1341
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1333

class RecognizeTextResponse < Struct.new(
  :messages,
  :session_state,
  :interpretations,
  :request_attributes,
  :session_id)
  SENSITIVE = []
  include Aws::Structure
end

#session_stateTypes::SessionState

Represents the current state of the dialog between the user and the bot.

Use this to determine the progress of the conversation and what the next action may be.

Returns:



1333
1334
1335
1336
1337
1338
1339
1340
1341
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1333

class RecognizeTextResponse < Struct.new(
  :messages,
  :session_state,
  :interpretations,
  :request_attributes,
  :session_id)
  SENSITIVE = []
  include Aws::Structure
end