Skip to main content
Available for: Python and TypeScript.

Installation

Usage

Wrap any ConversableAgent (or subclass) with wrap_autogen_agent. The wrapper patches generate_reply to trace every agent response.

With guardrails

Pass guardrails=True to run pre/post content checks on each agent reply.
For fine-grained control:
Wrap each agent individually. wrap_autogen_agent patches only the agent it receives — other agents in the conversation are not automatically traced.