feat: allow the agent to perform things concurrently

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
mudler
2025-04-22 12:06:20 +02:00
parent 9e52438877
commit 7fcd5b86b9
4 changed files with 57 additions and 15 deletions

View File

@@ -466,6 +466,10 @@ func (a *AgentPool) startAgentWithConfig(name string, config *AgentConfig) error
opts = append(opts, WithLoopDetectionSteps(config.LoopDetectionSteps))
}
if config.ParallelJobs > 0 {
opts = append(opts, WithParallelJobs(config.ParallelJobs))
}
xlog.Info("Starting agent", "name", name, "config", config)
agent, err := New(opts...)