Enhance logging

This commit is contained in:
Ettore Di Giacinto
2025-02-28 22:38:05 +01:00
parent 43352376e3
commit 0b78956cc4
2 changed files with 15 additions and 7 deletions

View File

@@ -231,13 +231,8 @@ func (a *AgentPool) startAgentWithConfig(name string, config *AgentConfig) error
a.agentStatus[name].addResult(state)
a.Unlock()
xlog.Info(
"Agent executed an action",
"agent", name,
"reasoning", state.Reasoning,
"action", state.ActionCurrentState.Action.Definition().Name,
"params", state.ActionCurrentState.Params,
"result", state.Result,
xlog.Debug(
"Calling agent result callback",
)
text := fmt.Sprintf(`Reasoning: %s