Philosophical Bits
What magical trick makes us intelligent? The trick is that there is no trick. The power of intelligence stems from our vast diversity, not from any single, perfect principle. β Marvin Minsky, The Society of Mind, p. 308 In this section, we will take a spite of the task-orientedRolyPlaying()
class. We design this in an instruction-following manner. The essence is that to solve a complex task, you can enable two communicative agents collabratively working together step by step to reach solutions. The main concepts include:
- Task: a task can be as simple as an idea, initialized by an inception prompt.
- AI User: the agent who is expected to provide instructions.
- AI Assistant: the agent who is expected to respond with solutions that fulfills the instructions.

Quick Start
πΉ Step 0: Preparations
Setting Up API Keys
Youβll need to set up your API keys for OpenAI.πΉ Step 1: Configure the Specifications for Critic Agents
πΉ Step 2: Get the Critic Agents
With the above arguments, we have:πΉ Step 3: Using Critic Agents for Task Solving
OurRolePlaying()
class provide a simple way for you to add the critic in the loop. Below we provide a basic pipeline.
AI User
and AI Assistant
will generate different options when responding (you can simply change the temperature
in model_config
to somewhat control the diversity). AI Critic
will respond with its option selection and reasoning; such additional context will be fed to the two other agents and help them form better subsequent responses.