[Official AutoGen migration guide (v0.2 to v0.4)]: v0.4 is a from-the-ground-up rewrite with breaking changes. Old tutorials showing ConversableAgent, config_list, or initiate_chat are pre-rewrite and wont work with current packages. The API is layered now: Core API as the event-driven actor foundation, AgentChat API built on top as the v0.2 replacement. And if you want the old line, install autogen-agentchat~=0.2, because the pyautogen PyPI package hasnt been published by Microsoft since 0.2.34.

Context: Official AutoGen migration guide (v0.2 to v0.4): v0.4 is a from-the-ground-up rewrite with breaking changes, so old tutorials showing ConversableAgent, config_list, or initiate_chat are pre-rewrite and will not work with current packages. The v0.4 API is layered: the Core API is the event-driven actor foundation and the AgentChat API is built on top of it as the v0.2 replacement. The v0.2 line is still maintained in the 0.2 branch, but install it as autogen-agentchat~=0.2, because the pyautogen PyPI package is no longer published by Microsoft since version 0.2.34.