Class: Aws::BedrockAgentCore::Types::HarnessToolResultBlockDelta

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

Overview

Note:

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

A delta update to a tool result content block.

Defined Under Namespace

Classes: Json, Text, Unknown

Constant Summary collapse

SENSITIVE =
[:text, :json]

Instance Attribute Summary collapse

Instance Attribute Details

#json ⇒ Hash, ...

A JSON tool result delta.

Returns:

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


5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 5431

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

  class Text < HarnessToolResultBlockDelta; end
  class Json < HarnessToolResultBlockDelta; end
  class Unknown < HarnessToolResultBlockDelta; end
end

#text ⇒ String

A text tool result delta.

Returns:

  • (String)


5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 5431

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

  class Text < HarnessToolResultBlockDelta; end
  class Json < HarnessToolResultBlockDelta; end
  class Unknown < HarnessToolResultBlockDelta; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



5431
5432
5433
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 5431

def unknown
  @unknown
end