Class: Aws::BedrockRuntime::Types::ContentBlockStart

Inherits:
Struct
  • Object
show all
Includes:
Structure, Structure::Union
Defined in:
lib/aws-sdk-bedrockruntime/types.rb

Overview

Note:

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

Content block start information.

Direct Known Subclasses

ToolResult, ToolUse, Unknown

Defined Under Namespace

Classes: ToolResult, ToolUse, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#tool_resultTypes::ToolResultBlockStart

The



720
721
722
723
724
725
726
727
728
729
730
731
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 720

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

  class ToolUse < ContentBlockStart; end
  class ToolResult < ContentBlockStart; end
  class Unknown < ContentBlockStart; end
end

#tool_useTypes::ToolUseBlockStart

Information about a tool that the model is requesting to use.



720
721
722
723
724
725
726
727
728
729
730
731
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 720

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

  class ToolUse < ContentBlockStart; end
  class ToolResult < ContentBlockStart; end
  class Unknown < ContentBlockStart; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



720
721
722
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 720

def unknown
  @unknown
end