AG2 is an open-source AgentOS that enables the rapid development of production-ready AI agents and multi-agent systems in a matter of minutes rather than months. Previously known as AutoGen, it offers a Python framework for constructing, managing, and scaling AI agents that can effectively collaborate through a shared context while utilizing tools, executing workflows, and accommodating both autonomous and human-in-the-loop processes. This platform is specifically tailored for developers focused on creating systems rather than just prompts, featuring user-friendly syntax, integrated conversation patterns, and a versatile infrastructure for multi-agent automation. In AG2, agents can enhance their functionalities through various tools, enabling them to connect with external systems, retrieve real-time information, run code, conduct web searches, process documents, and tackle intricate tasks that exceed a model's inherent knowledge. The framework is compatible with a wide range of large language model (LLM) providers and local models, such as OpenAI-compatible endpoints, Anthropic Claude, Gemini via Vertex AI, DeepSeek, and LM Studio, making it a flexible choice for developers. By streamlining the development process, AG2 significantly accelerates the innovation of AI solutions across various applications.