Skip to main content
Loading navigation
Back to prompt library

AutoGen Agent Configuration

Linked challenge: AutoGen & Braintrust Trade Finance Audit Agent

Prompt source

implementation10 lines4 sectionsNo variables0 checklist items
import autogen
from braintrust import Eval

# Configure AutoGen GroupChat for Trade Finance Review
config_list = [{'model': 'gpt-4o', 'api_key': 'YOUR_KEY'}]
llm_config = {'config_list': config_list, 'temperature': 0}

# Implement Document Reviewer and Compliance Auditor agents
reviewer = autogen.AssistantAgent(name='DocReviewer', llm_config=llm_config)
auditor = autogen.AssistantAgent(name='ComplianceAuditor', llm_config=llm_config)
user_proxy = autogen.UserProxyAgent(name='UserProxy', human_input_mode='NEVER')

# Build the group chat workflow here