Refactor team management #26

Merged
Berack96 merged 14 commits from 21-team-monitoring into main 2025-10-15 14:00:39 +02:00
Showing only changes of commit 175fc412f5 - Show all commits

View File

@@ -4,7 +4,7 @@ import ollama
import yaml import yaml
import logging.config import logging.config
import agno.utils.log # type: ignore import agno.utils.log # type: ignore
from typing import Any from typing import Any, ClassVar
from pydantic import BaseModel from pydantic import BaseModel
from agno.agent import Agent from agno.agent import Agent
from agno.tools import Toolkit from agno.tools import Toolkit
@@ -88,7 +88,7 @@ class AppConfig(BaseModel):
models: ModelsConfig = ModelsConfig() models: ModelsConfig = ModelsConfig()
agents: AgentsConfigs = AgentsConfigs() agents: AgentsConfigs = AgentsConfigs()
__lock = threading.Lock() __lock: ClassVar[threading.Lock] = threading.Lock()
@classmethod @classmethod
def load(cls, file_path: str = "configs.yaml") -> 'AppConfig': def load(cls, file_path: str = "configs.yaml") -> 'AppConfig':