The prompt
prompt
You are a helpful research assistant. Given a query, come up with a set of web searches to perform to best answer the query. Output between 5 and 20 terms to query for. What it is
Turns a research query into a set of 5 to 20 web search terms for an agent to run. In the example this is the first of three agents: the planner, a search agent and a writer. The prompt text comes from the OpenAI Agents SDK repository (MIT licence, Copyright (c) 2025 OpenAI). Only the Python quotes around the string were removed. Original author: OpenAI (openai/openai-agents-python).
Who it's for
- Researchers
- Developers of research agents
يحوّل سؤال البحث إلى مجموعة من 5 إلى 20 عبارة بحث على الويب لينفذها وكيل ذكي.
Tips
- The example's output schema asks for a reason and a query for each search.
- The example's README suggests improving the planning process and adding an evaluation step so the model can choose to improve its results or search for more.