Self-Organizing Conversation Example
This example will show
- How to set up a self-organizing conversation using the
DialogAgentandagent_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
Background
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.
Tested Models
These models are tested in this example. For other models, some modifications may be needed.
dashscope_chatwithqwen-turboollama_chatwithllama3_8bgemini_chatwithmodels/gemini-1.0-pro-latest
Prerequisites
Fill the next cell to meet the following requirements
- Set up the
model_configswith the appropriate API keys and endpoints - Provide the path to the
agent_builder_instruct.txtfile in theload_txtfunction - Set the desired
max_roundfor the discussion - Provide the
queryor question for the discussion - [Optional] Adjust the
generate_argssuch astemperaturefor theopenai_chatmodel