Skip to content

ontocast.integrations

Adapters that expose OntoCast to other agent frameworks.

Kept out of ontocast/tool/, which holds the stateful tools the ToolBox owns and injects. These are outward-facing wrappers around those.

Nothing here is imported by the pipeline itself, so langchain_core.tools stays off the cold import path of import ontocast.

__getattr__(name)

Resolve the integration entry points on first access.

Source code in ontocast/integrations/__init__.py
def __getattr__(name: str) -> Any:
    """Resolve the integration entry points on first access."""
    target = _LAZY_EXPORTS.get(name)
    if target is None:
        raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
    import importlib

    module_name, attribute = target
    value = getattr(importlib.import_module(module_name), attribute)
    globals()[name] = value
    return value