fixup silly mistake

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
mudler
2025-03-25 17:25:59 +01:00
parent abd6d1bbf7
commit ca3420c791

View File

@@ -621,8 +621,6 @@ func (a *Agent) consumeJob(job *types.Job, role string) {
a.nextActionParams = &followingParams a.nextActionParams = &followingParams
a.consumeJob(job, role) a.consumeJob(job, role)
return return
} else if followingAction.Definition().Name.Is(action.PlanActionName) {
xlog.Debug("Following action is a plan action, skipping", "agent", a.Character.Name)
} else if followingAction == nil { } else if followingAction == nil {
xlog.Info("Not following another action", "agent", a.Character.Name) xlog.Info("Not following another action", "agent", a.Character.Name)
@@ -641,6 +639,8 @@ func (a *Agent) consumeJob(job *types.Job, role string) {
job.Result.Finish(nil) job.Result.Finish(nil)
return return
} }
} else if followingAction.Definition().Name.Is(action.PlanActionName) {
xlog.Debug("Following action is a plan action, skipping", "agent", a.Character.Name)
} }
} }