followups=True to automatically generate followup prompt suggestions after each response. The agent makes a second model call to produce short, action-oriented prompts based on the conversation.
Options
| Parameter | Type | Default | Description |
|---|---|---|---|
followups | bool | False | Enable followup suggestion generation |
num_followups | int | 3 | Number of suggestions to generate (minimum 1) |
followup_model | Model | Agent’s model | Separate model for generating followups. Use a smaller model to reduce cost. |
Streaming
Followup suggestions are available via events when streaming. TheFollowupsCompleted event carries the suggestions after the main response finishes.
followup_suggestions_streaming.py
Using a separate model
Usefollowup_model to offload followup generation to a cheaper model.