""" Agent package. Imports are lazy so a missing LLM stack does not break VBA or the UI. """ from core.bootstrap import ROOT # noqa: F401 __version__ = "1.0.0" def get_or_create_agent(session_state): try: from agent.harness_agent import get_or_create_agent as _factory return _factory(session_state) except Exception: class DummyAgent: def process_query(self, query): return "Agent unavailable. Engineering tools still work from the other tabs." def is_available(self): return False def clear_history(self): pass def get_history(self): return [] return DummyAgent()