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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockruntime/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

Image, ToolResult, ToolUse, Unknown

Defined Under Namespace

Classes: Image, ToolResult, ToolUse, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#imageTypes::ImageBlockStart

The initial event indicating the start of a streaming image block.



840
841
842
843
844
845
846
847
848
849
850
851
852
853
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 840

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

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

#tool_resultTypes::ToolResultBlockStart

The



840
841
842
843
844
845
846
847
848
849
850
851
852
853
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 840

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

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

#tool_useTypes::ToolUseBlockStart

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



840
841
842
843
844
845
846
847
848
849
850
851
852
853
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 840

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

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

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



840
841
842
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 840

def unknown
  @unknown
end