Skip to main content
In Collaborate Mode, all team members respond to the user query at once. This gives the team coordinator to review whether the team has reached a consensus on a particular topic and then synthesize the responses from all team members into a single response. This is especially useful when used with async await, because it allows the individual members to respond concurrently and the coordinator to synthesize the responses asynchronously.

How Collaborate Mode Works

In “collaborate” mode:
  1. The team receives a user query
  2. All team members get sent a query. When running synchronously, this happens one by one. When running asynchronously, this happens concurrently.
  3. Each team member produces an output
  4. The coordinator reviews the outputs and synthesizes them into a single response
1

Create a collaborate mode team

Create a file discussion_team.py
discussion_team.py
2

Run the team

Install libraries
Run the team

Defining Success Criteria

You can guide the collaborative team by specifying success criteria for the team coordinator to evaluate: