LangGraph Integration (Adapter Pattern)
This document provides a minimal integration pattern for LangGraph-style agent flows with Aionis.
Flow Mapping
recall_textbefore planning (retrieve compact context).tools/selectduring planning (apply active/shadow rules).- execute tool / agent step.
write+tools/feedbackafter step completion (persist outcome).
Runtime Requirements
- Aionis API reachable (
AIONIS_BASE_URLorhttp://localhost:${PORT}). - If auth is enabled:
API_KEY(orPERF_API_KEY) forMEMORY_AUTH_MODE=api_key.AUTH_BEARER(orPERF_AUTH_BEARER) forMEMORY_AUTH_MODE=jwt.
- Python runtime with local SDK source available in this repo.
Smoke Command
bash
cd /Users/lucio/Desktop/Aionis
set -a; source .env; set +a
bash examples/langgraph_adapter_smoke.shExpected output (JSON):
ok: trueproject: "langgraph_style"steps.recall_text/steps.tools_select/steps.write/steps.tools_feedbackpresent
Reference Script
/Users/lucio/Desktop/Aionis/examples/langgraph_adapter_smoke.sh/Users/lucio/Desktop/Aionis/src/dev/langgraph-adapter-smoke.py