← Vetro Attest · Free Art. 12/14 checker · Free EU AI Act tools
Audit log for AutoGen and AG2 agents
AutoGen popularised multi-agent conversations: agents exchange messages, call models and execute tools, sometimes including generated code. The same design continues in AG2. For an audit this is the hardest shape there is: many actors, long runs and actions that are decided mid-conversation.
What to record
- Every message between agents, with sender and recipient.
- Every model call, with model, parameters and token usage.
- Every tool or code execution, with inputs, outputs and errors.
- Termination: why the conversation stopped (goal reached, max turns, human interrupt).
Code execution deserves special attention: it is where an agent acts on the world most directly, and where an inline policy (allowed commands, no network, no writes outside a directory) pays off most.
Capturing it
- OpenTelemetry. Recent AutoGen versions can emit OpenTelemetry traces from the runtime. For older versions and for AG2, instrument the underlying model client with an OpenTelemetry GenAI instrumentation. Export as OTLP JSON.
- At the call site. Wrap the model client and the tool or code executor so every call is appended to a hash-chained, signed ledger, with policies checked before execution. This is the stronger form of evidence because it is produced where the action happens.
Either way, turn off sampling for evidence and keep a copy outside the tool your team administers.
Human in the loop
AutoGen's human proxy pattern is a natural fit for Article 14 human oversight. Record the approval request and the human answer as events in the same log, so the oversight is provable and not just designed.
Check your own logs
Paste a Vetro ledger or an OpenTelemetry GenAI trace export into the free checker: it verifies integrity and shows which record-keeping obligations your evidence covers, in your browser. When you need something to hand to an auditor or a customer, the countersigned EU AI Act report costs 29 USD, one-off: an ed25519 counter-signature over your evidence plus a mapping to the articles, including an explicit list of what the log cannot show.
See a sample ledger verified in one click, check your own logs free or get the countersigned EU AI Act report.