Class: Aws::BedrockAgentCore::Types::HarnessContentBlock

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

Overview

Note:

HarnessContentBlock is a union - when making an API calls you must set exactly one of the members.

A content block within a message.

Defined Under Namespace

Classes: ReasoningContent, Text, ToolResult, ToolUse, Unknown

Constant Summary collapse

SENSITIVE =
[:text, :reasoning_content]

Instance Attribute Summary collapse

Instance Attribute Details

#reasoning_content ⇒ Types::HarnessReasoningContentBlock

Model reasoning content.



4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 4547

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

  class Text < HarnessContentBlock; end
  class ToolUse < HarnessContentBlock; end
  class ToolResult < HarnessContentBlock; end
  class ReasoningContent < HarnessContentBlock; end
  class Unknown < HarnessContentBlock; end
end

#text ⇒ String

Text content.

Returns:

  • (String)


4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 4547

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

  class Text < HarnessContentBlock; end
  class ToolUse < HarnessContentBlock; end
  class ToolResult < HarnessContentBlock; end
  class ReasoningContent < HarnessContentBlock; end
  class Unknown < HarnessContentBlock; end
end

#tool_result ⇒ Types::HarnessToolResultBlock

A tool execution result.



4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 4547

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

  class Text < HarnessContentBlock; end
  class ToolUse < HarnessContentBlock; end
  class ToolResult < HarnessContentBlock; end
  class ReasoningContent < HarnessContentBlock; end
  class Unknown < HarnessContentBlock; end
end

#tool_use ⇒ Types::HarnessToolUseBlock

A tool use request from the model.



4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 4547

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

  class Text < HarnessContentBlock; end
  class ToolUse < HarnessContentBlock; end
  class ToolResult < HarnessContentBlock; end
  class ReasoningContent < HarnessContentBlock; end
  class Unknown < HarnessContentBlock; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



4547
4548
4549
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 4547

def unknown
  @unknown
end