Skip to main content
AG2 (formerly AutoGen) is an open-source framework for building and orchestrating AI agents. It focuses on enabling multiple agents to cooperate in solving complex tasks. The framework supports various language models from Toge, tool integrations, and both autonomous and human-in-the-loop workflows.

Installing Libraries

Set your Neosantara AI API key:

Example

Setup and configure AutoGen to use LLMs from Neosantara AI
Importantly, we have tweaked the system message so that the model doesn’t return the termination keyword, which we’ve changed to FINISH, with the code block.
Last modified on November 11, 2025