File size: 725 Bytes
2379054
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
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()