Download agent/__init__.py from Surajnitp/flowmarg: direct link, hf CLI and curl.
- Browser
- Download file 725 Bytes
-
https://huggingface.co/spaces/Surajnitp/flowmarg/resolve/main/agent/__init__.py
- Command line
-
hf download hf://spaces/Surajnitp/flowmarg/agent/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Surajnitp/flowmarg/resolve/main/agent/__init__.py
725 Bytes
| """ | |
| 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() | |