Rewrite Query • AI Agent SDK
rewrite_query: Rewrite a research query to be more specific and detailed.
rewrite_query
Method
</div>
This is a method of the DeepResearchAgent class in the deep_research_agent module.
Rewrite a research query to be more specific and detailed.
Signature
def rewrite_query(query: str, model: Optional[str]) -> strParameters
ParamField
strThe initial research query
ParamField
Optional[str]Model to use for rewriting
Returns
ResponseField
strRewritten, more detailed query
Uses
create
Source
View on GitHubpraisonaiagents/agent/deep_research_agent.py at line 1400