Spaces:
Sleeping
Sleeping
Download api/agent/__init__.py from hodoly163/krishibondhu-api: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/hodoly163/krishibondhu-api/resolve/main/api/agent/__init__.py
- Command line
-
hf download hf://spaces/hodoly163/krishibondhu-api/api/agent/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/hodoly163/krishibondhu-api/resolve/main/api/agent/__init__.py
428 Bytes
| """KrishiBondhu agent — LangGraph-style decision loop (stdlib implementation). | |
| Nodes: intent -> retrieve -> advise -> verify. Each node appends to the | |
| trace; the loop is bounded (max 1 retrieve + 1 verify pass) to stay fast on | |
| small hosted LLMs. Framework disclosure: custom loop with LangGraph-compatible | |
| node/edge semantics; no heavyweight agent dependency shipped. | |
| """ | |
| from .loop import run_agent | |
| __all__ = ["run_agent"] | |