Agent Frameworks
How do you integrate Claude with AutoGen?
QUICK ANSWER
To use Claude in AutoGen, configure the LLM configuration dictionary with API key credentials and set 'api_type' to 'anthropic'.
Python Configuration
import autogen
config_list = [{
"model": "claude-3-5-sonnet-20241022",
"api_key": "your_api_key",
"api_type": "anthropic"
}]
assistant = autogen.AssistantAgent(
name="assistant",
llm_config={"config_list": config_list}
)
Verified against: Microsoft AutoGen v0.4.0