RolyPlaying()
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:
RolePlaying()
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.