ToolEvent class abstract base

Base for every tool lifecycle event.

Implementers

Constructors

ToolEvent({required String id, required DateTime timestamp, required String toolName, required String callId, String? runId, String? source, String? traceId, String? spanId})
Creates a tool event.
const

Properties

callId → String
Identifier correlating this event with the model's request.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique, sortable identifier for this event.
finalinherited
runId → String?
Identifier of the run this event belongs to.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String?
Component that published the event, such as agent:researcher.
finalinherited
spanId → String?
Span this event was emitted within, when tracing is active.
finalinherited
timestamp → DateTime
When the event occurred, in UTC.
finalinherited
toolName → String
Name of the tool involved.
final
traceId → String?
Trace this event was emitted within, when tracing is active.
finalinherited
type → String
Stable, dotted type name, such as llm.response.completed.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
payload() → JsonMap
Event-specific payload, excluding the envelope fields.
inherited
toJson() → JsonMap
Serialises the complete event, envelope included.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited