From 9135e3fe570322789935342cc2f19fe2ac66ea28 Mon Sep 17 00:00:00 2001 From: mudler Date: Sat, 12 Apr 2025 14:43:29 +0200 Subject: [PATCH] this is not necessary anymore Signed-off-by: mudler --- core/agent/agent.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/core/agent/agent.go b/core/agent/agent.go index 69e0ee6..39b9fa3 100644 --- a/core/agent/agent.go +++ b/core/agent/agent.go @@ -689,26 +689,6 @@ func (a *Agent) consumeJob(job *types.Job, role string) { job.SetNextAction(&followingAction, &followingParams, reasoning) a.consumeJob(job, role) return - } else if followingAction == nil { - xlog.Info("Not following another action", "agent", a.Character.Name) - - if !a.options.forceReasoning { - xlog.Info("Finish conversation with reasoning", "reasoning", reasoning, "agent", a.Character.Name) - - msg := openai.ChatCompletionMessage{ - Role: "assistant", - Content: reasoning, - } - - conv = append(conv, msg) - job.Result.SetResponse(msg.Content) - job.Result.Conversation = conv - job.Result.AddFinalizer(func(conv []openai.ChatCompletionMessage) { - a.saveCurrentConversation(conv) - }) - job.Result.Finish(nil) - return - } } a.reply(job, role, conv, actionParams, chosenAction, reasoning)