Class: Aws::QConnect::Types::MessageData
- Inherits:
-
Struct
- Object
- Struct
- Aws::QConnect::Types::MessageData
- Defined in:
- gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/types.rb
Overview
MessageData is a union - when making an API calls you must set exactly one of the members.
MessageData is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of MessageData corresponding to the set member.
The message data.
Defined Under Namespace
Classes: Data, Text, ToolUseResult, Unknown
Constant Summary collapse
- SENSITIVE =
[:data]
Instance Attribute Summary collapse
-
#data ⇒ Hash, ...
The message data as a structured JSON document.
-
#text ⇒ Types::TextMessage
The message data in text type.
-
#tool_use_result ⇒ Types::ToolUseResultData
The result of tool usage in the message.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#data ⇒ Hash, ...
The message data as a structured JSON document. This is the payload
for a message of type DATA, and must be a JSON object at the root
level.
7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 |
# File 'gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/types.rb', line 7408 class MessageData < Struct.new( :text, :tool_use_result, :data, :unknown) SENSITIVE = [:data] include Aws::Structure include Aws::Structure::Union class Text < MessageData; end class ToolUseResult < MessageData; end class Data < MessageData; end class Unknown < MessageData; end end |
#text ⇒ Types::TextMessage
The message data in text type.
7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 |
# File 'gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/types.rb', line 7408 class MessageData < Struct.new( :text, :tool_use_result, :data, :unknown) SENSITIVE = [:data] include Aws::Structure include Aws::Structure::Union class Text < MessageData; end class ToolUseResult < MessageData; end class Data < MessageData; end class Unknown < MessageData; end end |
#tool_use_result ⇒ Types::ToolUseResultData
The result of tool usage in the message.
7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 |
# File 'gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/types.rb', line 7408 class MessageData < Struct.new( :text, :tool_use_result, :data, :unknown) SENSITIVE = [:data] include Aws::Structure include Aws::Structure::Union class Text < MessageData; end class ToolUseResult < MessageData; end class Data < MessageData; end class Unknown < MessageData; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
7408 7409 7410 |
# File 'gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/types.rb', line 7408 def unknown @unknown end |