Class: Aws::BedrockAgentCore::Types::HarnessToolResultContentBlock

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

Overview

Note:

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

A content block within a tool result.

Defined Under Namespace

Classes: Json, Text, Unknown

Constant Summary collapse

SENSITIVE =
[:text, :json]

Instance Attribute Summary collapse

Instance Attribute Details

#json ⇒ Hash, ...

JSON content.

Returns:

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


5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 5477

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

  class Text < HarnessToolResultContentBlock; end
  class Json < HarnessToolResultContentBlock; end
  class Unknown < HarnessToolResultContentBlock; end
end

#text ⇒ String

Text content.

Returns:

  • (String)


5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 5477

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

  class Text < HarnessToolResultContentBlock; end
  class Json < HarnessToolResultContentBlock; end
  class Unknown < HarnessToolResultContentBlock; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



5477
5478
5479
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 5477

def unknown
  @unknown
end