Coverage for integrations / __init__.py: 100.0%

1 statements  

« prev     ^ index     » next       coverage.py v7.14.0, created at 2026-05-12 04:49 +0000

1""" 

2Integrations Package 

3 

4This package contains all external protocol integrations: 

5- MCP (Model Context Protocol) - Anthropic's protocol for connecting to external data sources 

6- Internal Agent Communication - In-process skill-based agent delegation 

7- Google A2A - Google's official Agent2Agent cross-platform communication protocol 

8""" 

9 

10# Install transformers `_LazyModule.__getattr__` recursion guard FIRST. 

11# Nunba's bg_import path enters HARTOS through `integrations.service_tools. 

12# model_catalog` (via Nunba's `models.catalog` re-export) BEFORE HIE has 

13# a chance to install its own guard at HIE:80-209. That path then loads 

14# `core.labeled_tool` → `from langchain_classic.agents import Tool` → 

15# transformers lazy `__getattr__` → infinite recursion, splash hangs. 

16# Importing the guard here gets it in place before any submodule of this 

17# package can pull in langchain / transformers. Idempotent — re-import 

18# is a no-op (sentinel on `_LazyModule._hartos_reentry_guarded`). 

19from core import _transformers_lazy_guard # noqa: F401