docs(hooks): clarify BeforeToolCallEvent args non-nil contract
This commit is contained in:
parent
658fb0376f
commit
c9ca0835ae
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ type MessageSendingEvent struct {
|
||||||
// Handlers can modify Args, or set Cancel to block execution.
|
// Handlers can modify Args, or set Cancel to block execution.
|
||||||
type BeforeToolCallEvent struct {
|
type BeforeToolCallEvent struct {
|
||||||
ToolName string
|
ToolName string
|
||||||
Args map[string]any // Modifiable
|
Args map[string]any // Modifiable; guaranteed non-nil when triggered via AgentLoop.
|
||||||
Channel string
|
Channel string
|
||||||
ChatID string
|
ChatID string
|
||||||
Cancel bool
|
Cancel bool
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue