Class: Aws::DevOpsAgent::Types::Message

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

Overview

Note:

Message is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Message corresponding to the set member.

A message in a conversation, either from the user or the assistant.

Direct Known Subclasses

AssistantMessage, Unknown, UserMessage

Defined Under Namespace

Classes: AssistantMessage, Unknown, UserMessage

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#assistant_messageArray<Types::AssistantMessageBlock>

A message from the assistant.

Returns:



2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 2854

class Message < Struct.new(
  :user_message,
  :assistant_message,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class UserMessage < Message; end
  class AssistantMessage < Message; end
  class Unknown < Message; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



2854
2855
2856
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 2854

def unknown
  @unknown
end

#user_messageArray<Types::UserMessageBlock>

A message from the user.

Returns:



2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 2854

class Message < Struct.new(
  :user_message,
  :assistant_message,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class UserMessage < Message; end
  class AssistantMessage < Message; end
  class Unknown < Message; end
end