Module: Aws::LexRuntimeV2::Types
- Defined in:
- gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb
Defined Under Namespace
Classes: AccessDeniedException, ActiveContext, ActiveContextTimeToLive, AudioInputEvent, AudioResponseEvent, BadGatewayException, Button, ConfidenceScore, ConfigurationEvent, ConflictException, DTMFInputEvent, DeleteSessionRequest, DeleteSessionResponse, DependencyFailedException, DialogAction, DisconnectionEvent, GetSessionRequest, GetSessionResponse, HeartbeatEvent, ImageResponseCard, Intent, IntentResultEvent, InternalServerException, Interpretation, Message, PlaybackCompletionEvent, PlaybackInterruptionEvent, PutSessionRequest, PutSessionResponse, RecognizeTextRequest, RecognizeTextResponse, RecognizeUtteranceRequest, RecognizeUtteranceResponse, ResourceNotFoundException, RuntimeHintDetails, RuntimeHintValue, RuntimeHints, SentimentResponse, SentimentScore, SessionState, Slot, StartConversationRequest, StartConversationRequestEventStream, StartConversationResponse, StartConversationResponseEventStream, TextInputEvent, TextResponseEvent, ThrottlingException, TranscriptEvent, ValidationException, Value
Instance Attribute Summary collapse
-
#audio_chunk ⇒ String
A chunk of the audio to play.
-
#caused_by_event_id ⇒ String
The identifier of the event that contained the audio, DTMF, or text that caused the interruption.
-
#client_timestamp_millis ⇒ Integer
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
-
#content_type ⇒ String
The encoding of the audio chunk.
-
#disable_playback ⇒ Boolean
Determines whether Amazon Lex V2 should send audio responses to the client application.
-
#event_id ⇒ String
A unique identifier of the event sent by Amazon Lex V2.
-
#event_reason ⇒ String
Indicates the type of user input that Amazon Lex V2 detected.
-
#input_character ⇒ String
The DTMF character that the user pressed.
-
#input_mode ⇒ String
Indicates whether the input to the operation was text or speech.
-
#interpretations ⇒ Array<Types::Interpretation>
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
-
#message ⇒ String
-
#messages ⇒ Array<Types::Message>
A list of messages to send to the user.
-
#request_attributes ⇒ Hash<String,String>
The attributes sent in the request.
-
#response_content_type ⇒ String
The message that Amazon Lex V2 returns in the response can be either text or speech based on the
responseContentType
value. -
#session_id ⇒ String
The identifier of the session in use.
-
#session_state ⇒ Types::SessionState
The state of the user's session with Amazon Lex V2.
-
#text ⇒ String
The text from the user.
-
#transcript ⇒ String
The transcript of the voice audio from the user.
-
#welcome_messages ⇒ Array<Types::Message>
A list of messages to send to the user.
Instance Attribute Details
#audio_chunk ⇒ String
A chunk of the audio to play.
149 150 151 152 153 154 155 156 157 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 149 class AudioInputEvent < Struct.new( :audio_chunk, :content_type, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#caused_by_event_id ⇒ String
The identifier of the event that contained the audio, DTMF, or text that caused the interruption.
1045 1046 1047 1048 1049 1050 1051 1052 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1045 class PlaybackInterruptionEvent < Struct.new( :event_reason, :caused_by_event_id, :event_id, :event_type) SENSITIVE = [] include Aws::Structure end |
#client_timestamp_millis ⇒ Integer
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
149 150 151 152 153 154 155 156 157 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 149 class AudioInputEvent < Struct.new( :audio_chunk, :content_type, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#content_type ⇒ String
The encoding of the audio chunk. This is the same as the encoding
configure in the contentType
field of the ConfigurationEvent
.
149 150 151 152 153 154 155 156 157 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 149 class AudioInputEvent < Struct.new( :audio_chunk, :content_type, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#disable_playback ⇒ Boolean
Determines whether Amazon Lex V2 should send audio responses to the client application.
Set this field to false when the client is operating in a playback mode where audio responses are played to the user. If the client isn't operating in playback mode, such as a text chat application, set this to true so that Amazon Lex V2 doesn't wait for the prompt to finish playing on the client.
404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 404 class ConfigurationEvent < Struct.new( :request_attributes, :response_content_type, :session_state, :welcome_messages, :disable_playback, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#event_id ⇒ String
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.
149 150 151 152 153 154 155 156 157 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 149 class AudioInputEvent < Struct.new( :audio_chunk, :content_type, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#event_reason ⇒ String
Indicates the type of user input that Amazon Lex V2 detected.
1045 1046 1047 1048 1049 1050 1051 1052 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1045 class PlaybackInterruptionEvent < Struct.new( :event_reason, :caused_by_event_id, :event_id, :event_type) SENSITIVE = [] include Aws::Structure end |
#input_character ⇒ String
The DTMF character that the user pressed. The allowed characters are A - D, 0 - 9, # and *.
460 461 462 463 464 465 466 467 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 460 class DTMFInputEvent < Struct.new( :input_character, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [:input_character] include Aws::Structure end |
#input_mode ⇒ String
Indicates whether the input to the operation was text or speech.
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 |
#interpretations ⇒ Array<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.
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 |
#message ⇒ String
18 19 20 21 22 23 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 18 class AccessDeniedException < Struct.new( :message, :event_type) SENSITIVE = [] include Aws::Structure end |
#messages ⇒ Array<Types::Message>
A list of messages to send to the user. 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.
2106 2107 2108 2109 2110 2111 2112 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 2106 class TextResponseEvent < Struct.new( :messages, :event_id, :event_type) SENSITIVE = [] include Aws::Structure end |
#request_attributes ⇒ Hash<String,String>
The attributes sent in the request.
404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 404 class ConfigurationEvent < Struct.new( :request_attributes, :response_content_type, :session_state, :welcome_messages, :disable_playback, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#response_content_type ⇒ String
The message that Amazon Lex V2 returns in the response can be either
text or speech based on the responseContentType
value.
If the value is
text/plain;charset=utf-8
, Amazon Lex V2 returns text in the response.If the value begins with
audio/
, Amazon Lex V2 returns speech in the response. Amazon Lex V2 uses Amazon Polly to generate the speech using the configuration that you specified in therequestContentType
parameter. For example, if you specifyaudio/mpeg
as the value, Amazon Lex V2 returns speech in the MPEG format.If the value is
audio/pcm
, the speech returned is audio/pcm in 16-bit, little-endian format.The following are the accepted values:
audio/mpeg
audio/ogg
audio/pcm
audio/* (defaults to mpeg)
text/plain; charset=utf-8
404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 404 class ConfigurationEvent < Struct.new( :request_attributes, :response_content_type, :session_state, :welcome_messages, :disable_playback, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#session_id ⇒ String
The identifier of the session in use.
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_state ⇒ Types::SessionState
The state of the user's session with Amazon Lex V2.
404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 404 class ConfigurationEvent < Struct.new( :request_attributes, :response_content_type, :session_state, :welcome_messages, :disable_playback, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#text ⇒ String
The text from the user. Amazon Lex V2 processes this as a complete statement.
2079 2080 2081 2082 2083 2084 2085 2086 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 2079 class TextInputEvent < Struct.new( :text, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [:text] include Aws::Structure end |
#transcript ⇒ String
The transcript of the voice audio from the user.
2142 2143 2144 2145 2146 2147 2148 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 2142 class TranscriptEvent < Struct.new( :transcript, :event_id, :event_type) SENSITIVE = [] include Aws::Structure end |
#welcome_messages ⇒ Array<Types::Message>
A list of messages to send to the user.
404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 404 class ConfigurationEvent < Struct.new( :request_attributes, :response_content_type, :session_state, :welcome_messages, :disable_playback, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |