Class: Aws::LexRuntimeV2::Types::IntentResultEvent

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

Overview

Contains the current state of the conversation between the client application and Amazon Lex V2.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#event_idString

A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.

Returns:

  • (String)


883
884
885
886
887
888
889
890
891
892
893
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 883

class IntentResultEvent < Struct.new(
  :input_mode,
  :interpretations,
  :session_state,
  :request_attributes,
  :session_id,
  :event_id,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#event_typeObject

Returns the value of attribute event_type

Returns:

  • (Object)

    the current value of event_type



883
884
885
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 883

def event_type
  @event_type
end

#input_modeString

Indicates whether the input to the operation was text or speech.

Returns:

  • (String)


883
884
885
886
887
888
889
890
891
892
893
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 883

class IntentResultEvent < Struct.new(
  :input_mode,
  :interpretations,
  :session_state,
  :request_attributes,
  :session_id,
  :event_id,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#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 how 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:



883
884
885
886
887
888
889
890
891
892
893
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 883

class IntentResultEvent < Struct.new(
  :input_mode,
  :interpretations,
  :session_state,
  :request_attributes,
  :session_id,
  :event_id,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#request_attributesHash<String,String>

The attributes sent in the request.

Returns:

  • (Hash<String,String>)


883
884
885
886
887
888
889
890
891
892
893
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 883

class IntentResultEvent < Struct.new(
  :input_mode,
  :interpretations,
  :session_state,
  :request_attributes,
  :session_id,
  :event_id,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#session_idString

The identifier of the session in use.

Returns:

  • (String)


883
884
885
886
887
888
889
890
891
892
893
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 883

class IntentResultEvent < Struct.new(
  :input_mode,
  :interpretations,
  :session_state,
  :request_attributes,
  :session_id,
  :event_id,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#session_stateTypes::SessionState

The state of the user's session with Amazon Lex V2.

Returns:



883
884
885
886
887
888
889
890
891
892
893
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 883

class IntentResultEvent < Struct.new(
  :input_mode,
  :interpretations,
  :session_state,
  :request_attributes,
  :session_id,
  :event_id,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end