Edictum
Demo

Adapters + Hot Reload

Run and validate all 8 adapter integrations, including SSE hot reload from Edictum Console.

AI Assistance

Right page if: you want runnable commands for all 8 adapter demo implementations or need to validate SSE hot reload from Edictum Console. Wrong page if: you need the adapter API reference -- see https://docs.edictum.ai/docs/adapters/overview to find your framework. For SSE event schemas, see https://docs.edictum.ai/docs/console/reference/sse-events. Gotcha: the hot reload test requires a running console at localhost:8000 and an EDICTUM_API_KEY in .env. It verifies behavior changes without restarting agents across two deploy/redeploy cycles.

This page maps directly to the adapter reference implementation in edictum-demo:

Adapter matrix

FrameworkDemo fileAdapter API
LangChain + LangGraphadapters/demo_langchain.pyadapter.as_tool_wrapper()
OpenAI Agents SDKadapters/demo_openai_agents.pyadapter.as_guardrails()
Agnoadapters/demo_agno.pyadapter.as_tool_hook()
Semantic Kerneladapters/demo_semantic_kernel.pyadapter.register(kernel)
CrewAIadapters/demo_crewai.pyadapter.register()
Google ADKadapters/demo_google_adk.pyadapter.as_plugin() / adapter.as_agent_callbacks()
Claude Agent SDKadapters/demo_claude_agent_sdk.pyadapter.to_hook_callables()
Nanobotexternal runtimeGovernedToolRegistry

Run single adapter demos

cd edictum-demo

python adapters/demo_langchain.py
python adapters/demo_openai_agents.py
python adapters/demo_agno.py
python adapters/demo_semantic_kernel.py
python adapters/demo_crewai.py
python adapters/demo_google_adk.py
./adapters/claude-agent-sdk/run.sh

Useful flags:

python adapters/demo_langchain.py --role admin
python adapters/demo_langchain.py --mode observe
python adapters/demo_langchain.py --quick
python adapters/demo_langchain.py --console

Validate hot reload via SSE

Prerequisites:

  • A running console at http://localhost:8000
  • EDICTUM_API_KEY in .env under your local edictum-demo clone

Run:

cd edictum-demo
python adapters/test_hot_reload.py
python adapters/test_hot_reload.py --agents 5 --timeout 30

The test verifies:

  1. Baseline contract behavior.
  2. policy_version changes after deploying V2.
  3. Behavior changes without restarting agents.
  4. Re-deploy back to V1 and behavior is restored.
  5. Second reload detected (V1 re-deployed).

Full adapter regression run

cd edictum-demo
./adapters/run_all.sh
./adapters/run_all.sh --full
./adapters/run_all.sh --console
./adapters/run_all.sh --with-docker

See also:

Last updated on

On this page