Skip to main content
Open In Colab Open on GitHub AG2 offers conversable agents powered by LLM, tool or human, which can be used to perform tasks collectively via automated chat. This framework allows tool use and human participation through multi-agent conversation. Please find documentation about this feature here. In this notebook, we demonstrate how to get multiple GPTAssistantAgent converse through group chat.

Requirements

AG2 requires Python>=3.9. To run this notebook example, please install:
Install autogen:
For more information, please refer to the installation guide.

Set your API Endpoint

The LLMConfig.from_json method loads a list of configurations from an environment variable or a json file.
Learn more about configuring LLMs for agents here.

Define GPTAssistantAgent and GroupChat

Initiate Group Chat

Now all is set, we can initiate group chat.