fix: ensure tool name is correctly assigned in LLM iteration(missing tool call name in debug mode logs) (#454)

* fix: ensure tool name is correctly assigned in LLM iteration

* fix: ensure tool name is correctly included in assistant message
This commit is contained in:
tpkeeper
2026-02-19 19:06:09 +08:00
committed by GitHub
parent 32c5c4b3a4
commit 12f0c4a6cf
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -602,6 +602,7 @@ func (al *AgentLoop) runLLMIteration(ctx context.Context, agent *AgentInstance,
Name: tc.Name,
Arguments: string(argumentsJSON),
},
Name: tc.Name,
})
}
messages = append(messages, assistantMsg)
+1
View File
@@ -109,6 +109,7 @@ func RunToolLoop(ctx context.Context, config ToolLoopConfig, messages []provider
Name: tc.Name,
Arguments: string(argumentsJSON),
},
Name: tc.Name,
})
}
messages = append(messages, assistantMsg)