// AGENT FRAMEWORK · AUTOGEN
AutoGen
Pattern A · full governance
Point AutoGen's OpenAIChatCompletionClient at the gateway with base_url. Every agent turn routes through Agentics.
Pattern A — routed through the gateway. Your call travels through Agentics via a base-URL swap, so it is governed (routing, budgets, guardrails) inline and the Proof Ledger writes one verifiable receipt server-side. The receipt hash comes back in the
x-agentics-receipt response header.
Install
shell
pip install autogen-agentchat autogen-ext[openai]Point the framework's OpenAI client at the gateway
The option is base_url on OpenAIChatCompletionClient (autogen-ext).
Python
from autogen_ext.models.openai import OpenAIChatCompletionClient
model_client = OpenAIChatCompletionClient(
model="@anthropic/claude-opus-4-8",
base_url="https://agentics.you/api/v1", # the only change
api_key="ak_…", # AGENTICS_API_KEY
)
# pass model_client=model_client to your AssistantAgent(...)Run one call → see the receipt
Run your normal invocation, then read the receipt for that call off the ledger:
shell
# after your run, the last call's receipt hash:
agentics log tail --limit 1
# → shows x-agentics-receipt: <receipt_hash> (verify it at /trust)Every call the framework makes is now routed, governed, and receipted server-side.