"""Templates, Skills, and Knowledge Base module for DataBridge AI.

Prefer importing from ``databridge.templates`` when possible.
"""

try:
    from databridge.templates import (
        FinancialTemplate,
        TemplateHierarchy,
        MappingHint,
        TemplateMetadata,
        SkillDefinition,
        ClientKnowledge,
        CustomPrompt,
        TemplateService,
    )
except ImportError:
    from .types import (
        FinancialTemplate,
        TemplateHierarchy,
        MappingHint,
        TemplateMetadata,
        SkillDefinition,
        ClientKnowledge,
        CustomPrompt,
    )
    from .service import TemplateService

__all__ = [
    "FinancialTemplate",
    "TemplateHierarchy",
    "MappingHint",
    "TemplateMetadata",
    "SkillDefinition",
    "ClientKnowledge",
    "CustomPrompt",
    "TemplateService",
]
