Documentation / autogen
Framework GuidePython

Microsoft AutoGen

Secure multi-agent conversations and tool execution handoffs in AutoGen workflows.

1. Installation

bash
pip install suprawall pyautogen

2. Securing the Conversation

Wrap your AutoGen UserProxyAgent to monitor and intercept tools before they are executed in the local environment.

python
import autogen
from suprawall import Client, secure_agent
import os

# 1. Initialize SupraWall with Deny-by-default
sw = Client(api_key=os.environ.get("SUPRAWALL_API_KEY"), default_policy="DENY")

# 2. Setup your AutoGen agents
assistant = autogen.AssistantAgent("assistant", llm_config=...)
user_proxy = autogen.UserProxyAgent("user_proxy", ...)

# 🛡️ Secure the user proxy
# Every tool call attempted by user_proxy is now gated by SupraWall.
secured_proxy = secure_agent(user_proxy, client=sw)

# 3. Execute conversation
secured_proxy.initiate_chat(assistant, message="Analyze data.")

Multi-Agent Security Features

Handoff Analysis

Monitors tool calls as they pass between agents.

Docker Sandbox Support

Integrates with AutoGen's Docker-based tool execution.

Intent Verification

Cross-checks LLM intent against the active security policy.

Live Handoff Logs

Real-time visibility into agent-to-agent tool requests.