docs(hooks): clarify BeforeToolCallEvent args non-nil contract

This commit is contained in:
xj 2026-02-22 02:21:18 -08:00
parent 658fb0376f
commit c9ca0835ae

View file

@ -37,7 +37,7 @@ type MessageSendingEvent struct {
// Handlers can modify Args, or set Cancel to block execution.
type BeforeToolCallEvent struct {
ToolName string
Args map[string]any // Modifiable
Args map[string]any // Modifiable; guaranteed non-nil when triggered via AgentLoop.
Channel string
ChatID string
Cancel bool