ToolPart class
A tool interaction part of a message.
Constructors
-
ToolPart.call({required String id, required String name, required Map<
String, dynamic> ? arguments}) -
Creates a tool call part.
const
- ToolPart.result({required String id, required String name, required dynamic result})
-
Creates a tool result part.
const
Properties
-
arguments
→ Map<
String, dynamic> ? -
The arguments for a tool call (null for results).
final
- argumentsRaw → String
-
The arguments as a JSON string.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
The unique identifier for this tool interaction.
final
- kind → ToolPartKind
-
The kind of tool interaction.
final
- name → String
-
The name of the tool.
final
- result → dynamic
-
The result of a tool execution (null for calls).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the part to a JSON-compatible map.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override