From d3f2126614db9d4b1fe6ca1b77360e5a99ac7d79 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 28 Feb 2025 22:10:28 +0100 Subject: [PATCH] Debug --- core/agent/agent.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/agent/agent.go b/core/agent/agent.go index 0654de1..1141c58 100644 --- a/core/agent/agent.go +++ b/core/agent/agent.go @@ -121,7 +121,7 @@ func (a *Agent) ConversationChannel() chan openai.ChatCompletionMessage { // Ask is a pre-emptive, blocking call that returns the response as soon as it's ready. // It discards any other computation. func (a *Agent) Ask(opts ...JobOption) *JobResult { - xlog.Debug("Agent is being asked", "agent", a.Character.Name) + xlog.Debug("Agent Ask()", "agent", a.Character.Name) defer func() { xlog.Debug("Agent has finished being asked", "agent", a.Character.Name) }() @@ -134,9 +134,7 @@ func (a *Agent) Ask(opts ...JobOption) *JobResult { WithResultCallback(a.options.resultCallback), )..., ) - xlog.Debug("Job created", "agent", a.Character.Name, "job", j) a.jobQueue <- j - xlog.Debug("Waiting result", "agent", a.Character.Name, "job", j) return j.Result.WaitResult() }