Examples
Example: Embedded Only
Embedded-only deployment with no external services.
Example: Embedded Only
Overview
Governance with zero external services — embed_gateway() + @harness. The canonical air-gap and CI example.
Why It Matters
Demonstrates that AgentTrust works without PostgreSQL, Redis, or cloud connectivity.
Prerequisites
pip install "agentrust-sdk[embedded]"Step-by-Step Guide
python examples/embedded_only.pyfrom agentrust_sdk import harness, embed_gateway
embed_gateway()
@harness
def agent(user, input): return {"ok": True}