Solve complex tasks with a chat nested as inner monologue.
critic_executor
agent
to chat with the critic
and execute some tool calls involved in the
chat. For example, a tool for detecting harmful content in the output of
the writer.
This workflow can be realized by a four-agent system shown below. The
system includes a user_proxy agent and a writer agent communicating with
each other, with a chat between the critic
and critic_executor
agent
nested within the user_proxy
agent to provide critique. Whenever the
user_proxy receives a message from the writer, it engages in a
conversation between critic
and critic_executor
to work out feedback
on the writer’s message. A summary of the nested conversation will be
passed to the user_proxy, which will then be passed to the writer as
feedback.