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

python
def rewrite_query(query: str, model: Optional[str]) -> str

Parameters

ParamField str

The initial research query

ParamField Optional[str]

Model to use for rewriting

Returns

ResponseField str

Rewritten, more detailed query

Uses

  • create

Source

View on GitHub

praisonaiagents/agent/deep_research_agent.py at line 1400