Class: Aws::DevOpsAgent::Types::AssistantMessageBlock

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

Overview

Note:

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

A block of content in an assistant message.

Direct Known Subclasses

Text, ToolUse, Unknown

Defined Under Namespace

Classes: Text, ToolUse, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#textString

Text content from the assistant.

Returns:

  • (String)


260
261
262
263
264
265
266
267
268
269
270
271
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 260

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

  class Text < AssistantMessageBlock; end
  class ToolUse < AssistantMessageBlock; end
  class Unknown < AssistantMessageBlock; end
end

#tool_useHash, ...

Tool use request from the assistant.

Returns:

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


260
261
262
263
264
265
266
267
268
269
270
271
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 260

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

  class Text < AssistantMessageBlock; end
  class ToolUse < AssistantMessageBlock; end
  class Unknown < AssistantMessageBlock; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



260
261
262
# File 'gems/aws-sdk-devopsagent/lib/aws-sdk-devopsagent/types.rb', line 260

def unknown
  @unknown
end