Watch
1
0
Fork
You've already forked Seyyed_arc
0
forked from hesabix/arc
Seyyed_arc/hesabixAPI/app/services/ai/__init__.py
2026-05-28 12:45:38 +00:00

27 lines
812 B
Python
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""بستهٔ سرویس‌های AI — importهای سنگین به‌صورت lazy تا circular import نشود."""
from __future__ import annotations
from typing import TYPE_CHECKING
__all__ = ["registry", "AIFunction", "AIRole", "AIService"]
def __getattr__(name: str):
if name == "registry":
from app.services.ai.function_registry import registry
return registry
if name == "AIFunction":
from app.services.ai.function_registry import AIFunction
return AIFunction
if name == "AIRole":
from app.services.ai.function_registry import AIRole
return AIRole
if name == "AIService":
from app.services.ai.ai_service import AIService
return AIService
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")