Use internal API for services/actions when using the pool

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
mudler
2025-03-28 16:12:42 +01:00
parent 2c273392cd
commit 05af5d9695
4 changed files with 37 additions and 3 deletions

View File

@@ -591,6 +591,7 @@ func (a *AgentPool) save() error {
}
return os.WriteFile(a.file, data, 0644)
}
func (a *AgentPool) GetAgent(name string) *Agent {
a.Lock()
defer a.Unlock()