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.



4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 4582

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)


4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 4582

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.



4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 4582

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.



4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 4582

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



4582
4583
4584
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 4582

def unknown
  @unknown
end