LangGraph runtime health
Use a virtual environment and the matching CLI. From the repository root:
pip install -e './sdk/python[langgraph]' uvicorn
uvicorn app:app --app-dir examples/runtime-check --port 8080
In another terminal:
agenthealth check examples/runtime-check/agenthealth.yaml --format json
Expected: HEALTHY, exit 0. This dedicated graph performs no production work. The configuration explicitly opts into a single functional POST; removing it keeps passive metadata checks. The local example has no authentication and binds to loopback by default. Add application authentication before exposing it.
For separate direct/composite/path evidence, start with the existing
agent example, adding allowlisted peers callbacks
only when each performs the selected authorized peer exchange. HTTP peer success
and failure are exercised in runtime tests.
The guide covers consumer nodes,
deadlines, cancellation, Kubernetes and remaining framework scope.
Configuration files
agenthealth.yaml
version: v1
targets:
- name: direct-agent
type: agent
endpoint: http://127.0.0.1:8080/health
checks: [reachability, protocol, capability, functional]
agent:
required_capabilities: [health]
functional:
safe: true
text: health