followups=True on a Team to generate followup prompt suggestions when the main response has content. Followup generation makes a second model call and works with all team modes.
1
Create a Python file
team_followup_suggestions.py
2
Set up your virtual environment
3
Install dependencies
4
Export your OpenAI API key
5
Run Team
Options
If the followup model call fails, the team response still completes and
response.followups can be None.
Streaming
Followup suggestions are available via events when streaming.team_followup_streaming.py