diff --git a/core/src/agentforge_core/registry/factory.py b/core/src/agentforge_core/registry/factory.py new file mode 100644 index 0000000..05792aa --- /dev/null +++ b/core/src/agentforge_core/registry/factory.py @@ -0,0 +1,17 @@ +"""Factories para AgentRegistry y PolicyStore basados en Settings.""" + +from __future__ import annotations + +from agentforge_core.config import Settings +from agentforge_core.registry.policy_store import FileSystemPolicyStore +from agentforge_core.registry.repository import FileSystemAgentRegistry + + +def build_agent_registry(settings: Settings) -> FileSystemAgentRegistry: + """Construye el registry de agentes apuntando a ``settings.agents_dir``.""" + return FileSystemAgentRegistry(settings.agents_dir) + + +def build_policy_store(settings: Settings) -> FileSystemPolicyStore: + """Construye el store de polĂ­ticas apuntando a ``settings.policies_dir``.""" + return FileSystemPolicyStore(settings.policies_dir)