Follow Up • AI Agent SDK

follow_up: Ask a follow-up question based on a previous research interaction.

follow_up

Method

</div>

This is a method of the DeepResearchAgent class in the deep_research_agent module.

Ask a follow-up question based on a previous research interaction.

Only supported for Gemini provider.

Signature

python
def follow_up(query: str, previous_interaction_id: str, model: Optional[str]) -> DeepResearchResponse

Parameters

ParamField str

The follow-up question

ParamField str

ID from a previous research response

ParamField Optional[str]

Model to use (defaults to gemini-3-pro for follow-ups)

Returns

ResponseField DeepResearchResponse

DeepResearchResponse with the follow-up answer

Uses

  • NotImplementedError
  • create

Source

View on GitHub

praisonaiagents/agent/deep_research_agent.py at line 1324