Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix: Remove redundant duration assignment in agent execution loop
wizardchena342a0aa14d8
diff --git a/internal/agent/engine.go b/internal/agent/engine.goindex c9eb61fea..5969917c9 100644--- a/internal/agent/engine.go+++ b/internal/agent/engine.go@@ -182,7 +182,6 @@ func (e *AgentEngine) executeLoop(Done: true,},})- step.Duration = time.Since(roundStart).Milliseconds()logger.Infof(ctx, "[Agent][Round-%d] Duration: %dms", state.CurrentRound+1, time.Since(roundStart).Milliseconds())break}@@ -333,7 +332,6 @@ func (e *AgentEngine) executeLoop(}}- step.Duration = time.Since(roundStart).Milliseconds()state.RoundSteps = append(state.RoundSteps, step)// 4. Observe: Add tool results to messages and write to contextmessages = e.appendToolResults(ctx, messages, step)