This example will show
- How to set up a self-organizing conversation using the
DialogAgent
andagent_builder
- How to extract the discussion scenario and participant agents from the
agent_builder
's response - How to conduct a multi-round discussion among the participant agents
In this example, we demonstrate how to create a self-organizing conversation where the agent_builder
automatically sets up the agents participating in the discussion based on a given question. The agent_builder
provides the discussion scenario and the characteristics of the participant agents. The participant agents then engage in a multi-round discussion to solve the given question.
These models are tested in this example. For other models, some modifications may be needed.
dashscope_chat
withqwen-turbo
ollama_chat
withllama3_8b
gemini_chat
withmodels/gemini-1.0-pro-latest
Fill the next cell to meet the following requirements
- Set up the
model_configs
with the appropriate API keys and endpoints - Provide the path to the
agent_builder_instruct.txt
file in theload_txt
function - Set the desired
max_round
for the discussion - Provide the
query
or question for the discussion - [Optional] Adjust the
generate_args
such astemperature
for theopenai_chat
model