Class: Aws::BedrockRuntime::Types::ToolResultBlockDelta

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

Overview

Note:

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

Contains incremental updates to tool results information during streaming responses. This allows clients to build up tool results data progressively as the response is generated.

Direct Known Subclasses

Json, Text, Unknown

Defined Under Namespace

Classes: Json, Text, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#jsonHash, ...

The JSON schema for the tool result content block. see JSON Schema Reference.

Returns:

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


4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4649

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

  class Text < ToolResultBlockDelta; end
  class Json < ToolResultBlockDelta; end
  class Unknown < ToolResultBlockDelta; end
end

#textString

The reasoning the model used to return the output.

Returns:

  • (String)


4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4649

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

  class Text < ToolResultBlockDelta; end
  class Json < ToolResultBlockDelta; end
  class Unknown < ToolResultBlockDelta; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



4649
4650
4651
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4649

def unknown
  @unknown
end