mirror of
https://github.com/hoshikawa2/first_contas.git
synced 2026-07-09 10:14:20 +00:00
73 lines
2.0 KiB
Python
73 lines
2.0 KiB
Python
"""Compatibility facade for legacy workflow action imports.
|
|
|
|
The action implementations live in workflow-specific packages under
|
|
``agente_contas_tim.workflows.actions``. This module keeps the previous
|
|
``tim_actions`` import path stable for tests and any external callers.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from types import ModuleType
|
|
|
|
from agente_contas_tim.integrations import agent_framework_bridge
|
|
from agente_contas_tim.workflows.actions.common import (
|
|
actions as _common_actions,
|
|
helpers as _common_helpers,
|
|
)
|
|
from agente_contas_tim.workflows.actions.contestacao import (
|
|
actions as _contestacao_actions,
|
|
helpers as _contestacao_helpers,
|
|
)
|
|
from agente_contas_tim.workflows.actions.invoice_explanation import (
|
|
actions as _invoice_explanation_actions,
|
|
helpers as _invoice_explanation_helpers,
|
|
)
|
|
from agente_contas_tim.workflows.actions.pro_rata import (
|
|
actions as _pro_rata_actions,
|
|
helpers as _pro_rata_helpers,
|
|
)
|
|
from agente_contas_tim.workflows.actions.rag import (
|
|
actions as _rag_actions,
|
|
helpers as _rag_helpers,
|
|
)
|
|
from agente_contas_tim.workflows.actions.vas_avulso import (
|
|
actions as _vas_avulso_actions,
|
|
helpers as _vas_avulso_helpers,
|
|
)
|
|
from agente_contas_tim.workflows.actions.vas_estrategico import (
|
|
actions as _vas_estrategico_actions,
|
|
helpers as _vas_estrategico_helpers,
|
|
)
|
|
|
|
_EXPORT_MODULES: tuple[ModuleType, ...] = (
|
|
_common_helpers,
|
|
_contestacao_helpers,
|
|
_invoice_explanation_helpers,
|
|
_pro_rata_helpers,
|
|
_rag_helpers,
|
|
_vas_avulso_helpers,
|
|
_vas_estrategico_helpers,
|
|
_common_actions,
|
|
_contestacao_actions,
|
|
_invoice_explanation_actions,
|
|
_pro_rata_actions,
|
|
_rag_actions,
|
|
_vas_avulso_actions,
|
|
_vas_estrategico_actions,
|
|
)
|
|
|
|
__all__ = ["agent_framework_bridge"]
|
|
|
|
|
|
def _export_from(module: ModuleType) -> None:
|
|
for name in getattr(module, "__all__", ()):
|
|
globals()[name] = getattr(module, name)
|
|
__all__.append(name)
|
|
|
|
|
|
for _module in _EXPORT_MODULES:
|
|
_export_from(_module)
|
|
|
|
|
|
del ModuleType, _EXPORT_MODULES, _export_from, _module
|