fix: ensure tool name is correctly assigned in LLM iteration

This commit is contained in:
tpkeeper 2026-02-19 11:02:22 +08:00
parent e8afd31b28
commit 80d44c86c3

View file

@ -602,6 +602,7 @@ func (al *AgentLoop) runLLMIteration(ctx context.Context, agent *AgentInstance,
Name: tc.Name, Name: tc.Name,
Arguments: string(argumentsJSON), Arguments: string(argumentsJSON),
}, },
Name: tc.Name,
}) })
} }
messages = append(messages, assistantMsg) messages = append(messages, assistantMsg)