ToolCallStarted class final
Opens a tool call within message messageId.
Followed by zero or more ToolCallDeltas carrying the argument JSON, then a ToolCallReady once the arguments are complete.
- Inheritance
-
- Object
- AiStreamEvent
- ToolCallStarted
Constructors
- ToolCallStarted({required String messageId, required String toolCallId, required String toolName})
-
Creates a tool-call-started event.
const
-
ToolCallStarted.fromJson(Map<
String, Object?> json) -
Reconstructs a ToolCallStarted from
json.factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- messageId → String
-
The message the call belongs to.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toolCallId → String
-
The id correlating this call with its result.
final
- toolName → String
-
The name of the tool being invoked.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Serializes this event, including its
typediscriminator.override -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override