BeforeToolCallContext class final
Context passed to BeforeToolCallHook.
Ported from pi's BeforeToolCallContext (minus args, which arrives with
schema validation in the tool registry).
Constructors
- BeforeToolCallContext({required AssistantMessage assistantMessage, required ToolCall toolCall, required Context context})
-
const
Properties
- assistantMessage → AssistantMessage
-
The assistant message that requested the tool call.
final
- context → Context
-
The loop's context at the time the tool call is prepared.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toolCall → ToolCall
-
The raw tool call block from AssistantMessage.content.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited