1. Start with a Plain LangGraph Graph
Createagent.py:
2. Configure aion.yaml
3. Optional: Add Control Plane Credentials to .env
.env only when running outside Aion-hosted deployments or when testing
local control plane connectivity. For more information, see
Environment Variables.
4. Start Services
5. Optional: Validate Endpoints
6. Test Interactively
7. Optional: Add aion-authoring-langgraph for Deeper Integration
Aion Server integration with LangGraph is designed to work without any
framework-specific Aion authoring dependency. A plain LangGraph graph can run
behind Aion as long as the server-side adapter is installed.
Add aion-authoring-langgraph only if you want deeper Aion-aware protocol integration
in your graph code, such as request-scoped runtime context, fluent messaging
helpers, custom stream events, and structured response authoring.
8. Choose an Authoring Mode
There are three useful ways to write LangGraph agents behind Aion:- Plain LangGraph
Use
state.messagesand let Aion infer the reply from normal LangGraph output. - Hybrid A2A
Read
a2a_inboxand seta2a_outboxwhen you want direct protocol control. - SDK-aware LangGraph
Use the
aion-authoring-langgraphruntime context and fluent helpers such asthread.reply(...),thread.post(...), andthread.history(...).
9. Introduce Aion Runtime Context When Needed
Theaion-authoring-langgraph authoring surface is designed to live in
LangGraph’s invocation-scoped runtime context instead of forcing transport
metadata into your graph state:
state.messages while Aion-specific routing, history, and outbound buffering
stay request-scoped.
10. Understand Message Mapping
Once the graph is running, Aion will:- accept inbound A2A requests from clients or distributions
- map conversational text into
state.messages - optionally expose request-scoped Aion context through LangGraph runtime context and hybrid A2A surfaces
- use the SDK response buffer first, then
a2a_outbox, then framework-native fallback to determine the outbound reply - return the final A2A response to the caller or distribution