lock variable fix #28

Merged
Berack96 merged 1 commits from fix-lock into main 2025-10-12 23:47:56 +02:00
Showing only changes of commit e0b7b22df0 - 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':