Class: Aws::DevOpsAgent::Types::UserMessageBlock

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

Overview

Note:

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

A block of content in a user message.

Direct Known Subclasses

Text, ToolResult, Unknown

Defined Under Namespace

Classes: Text, ToolResult, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#textString

Text content from the user.

Returns:

  • (String)


5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 5055

class UserMessageBlock < Struct.new(
  :text,
  :tool_result,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Text < UserMessageBlock; end
  class ToolResult < UserMessageBlock; end
  class Unknown < UserMessageBlock; end
end

#tool_resultHash, ...

Tool execution result provided by the user.

Returns:

  • (Hash, Array, String, Numeric, Boolean)


5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 5055

class UserMessageBlock < Struct.new(
  :text,
  :tool_result,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Text < UserMessageBlock; end
  class ToolResult < UserMessageBlock; end
  class Unknown < UserMessageBlock; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



5055
5056
5057
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 5055

def unknown
  @unknown
end