ToolSearchToolResultBlock class

Tool search tool result block.

Inheritance
Annotations
  • @immutable

Constructors

ToolSearchToolResultBlock({required String toolUseId, required Map<String, dynamic> content})
Creates a ToolSearchToolResultBlock.
const
ToolSearchToolResultBlock.fromJson(Map<String, dynamic> json)
Creates a ToolSearchToolResultBlock from JSON.
factory

Properties

content Map<String, dynamic>
Tool result content payload.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolUseId String
The tool use ID this result corresponds to.
final

Methods

copyWith({String? toolUseId, Map<String, dynamic>? content}) ToolSearchToolResultBlock
Creates a copy with replaced values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override