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.

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:



2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 2850

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



2850
2851
2852
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 2850

def unknown
  @unknown
end

#user_messageArray<Types::UserMessageBlock>

A message from the user.

Returns:



2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 2850

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