Skip to main content
Open In Colab Open on GitHub This notebook illustrates how to add the image generation capability to a conversable agent.
Some extra dependencies are needed for this notebook, which can be installed via pip:
For more information, please refer to the installation guide.
First, let’s import all the required modules to run this example.
Let’s define our LLM configs.
Learn more about configuring LLMs for agents here.
Our system will consist of 2 main agents: 1. Image generator agent. 2. Critic agent. The image generator agent will carry a conversation with the critic, and generate images based on the critic’s requests.
We’ll define extract_img to help us extract the image generated by the image generator agent.
Start the conversation
Let’s display all the images that was generated by Dalle