diff --git a/pkg/agent/loop_run.go b/pkg/agent/loop_run.go index 03f6069a0..df8a9da4f 100644 --- a/pkg/agent/loop_run.go +++ b/pkg/agent/loop_run.go @@ -1193,7 +1193,12 @@ func (al *AgentLoop) executeToolCalls( } } - toolMeta := EventMeta{AgentID: agent.ID, TurnID: scope.turnID, SessionKey: opts.SessionKey, Iteration: iteration} + toolMeta := EventMeta{ + AgentID: agent.ID, + TurnID: scope.turnID, + SessionKey: opts.SessionKey, + Iteration: iteration, + } // Hook: BeforeTool — let hooks inspect/modify the tool call toolArgs := tc.Arguments