secure_agent() for the full trust stack.
Install
trust-adapters extra installs LangGraph along with the Trust Runtime dependencies. See Install Dome for every extra. For content Guards alone, pip install "vijil-dome[local]" next to your existing LangGraph install is enough.
Guard Graph Nodes
Create theDome instance once and scan at the graph boundaries. A scanning node can end the run early by routing to a terminal node:
async_guard_input() and async_guard_output() in asynchronous nodes.
Add the Full Trust Stack
secure_agent() accepts a StateGraph and returns a SecureGraph, which replaces graph.compile():
compile_kwargs through secure_agent() when your graph needs compile options such as a checkpoint saver.
Next Steps
Trust Runtime
Constraints, attestation, and audit events
Use Guardrails
Scan patterns for streaming and tool use