Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Clarify Deep Research handoff for research briefs (#15724)

Lee Jackson41443a4fee69
diff --git a/studio/backend/core/inference/tools.py b/studio/backend/core/inference/tools.py
index 0e0c4361833..2b0d064fad7 100644
--- a/studio/backend/core/inference/tools.py
+++ b/studio/backend/core/inference/tools.py
@@ -12279,19 +12279,21 @@ DEEP_RESEARCH_TOOL = {
"function": {
"name": "deep_research",
"description": (
- "Start Deep Research on the user's question: a multi-step web investigation that "
- "gathers current sources and writes a cited report, replacing your reply. The user "
- "turned this on because they want researched answers, so call it for any question "
- "about the world -- facts, events, laws, products, papers, prices, comparisons, "
- "anything that may have changed since your training -- even when you think you know "
- "the answer. Do not answer such questions from memory.\n"
- "Do not call it for a message with no question in it, such as a hello or a thanks, or "
- "for a request to write or transform text the user supplied.\n"
- "If the topic is too vague to research well, do not call this yet: ask one short "
- "clarifying question, then call it once the user has narrowed it down.\n"
- "The question you pass is what gets researched, so make it specific and "
- "self-contained: fold in what the conversation established rather than repeating "
- "the user's words."
+ "Hand off the user's factual question or research request to Deep Research. This "
+ "workflow gathers current sources and writes a cited report that replaces your "
+ "reply. Call it before drafting an answer, outline, or report, even when you think "
+ "you know the answer. Do not use it only to look up individual details while "
+ "writing the report yourself.\n"
+ "Research requests include commands to investigate, compare, or write a report, "
+ "including detailed briefs in pasted text or attachments. They do not need to be "
+ "phrased as questions. A supplied research brief is not merely text to rewrite.\n"
+ "Do not call it for a hello, thanks, or a remark about you, or for a request only "
+ "to rewrite or transform supplied text without outside research. If the topic is "
+ "too vague to research well, ask one short clarifying question first.\n"
+ "Call once with a concise, self-contained question covering the whole request, "
+ "including its main topics and requested outputs. Summarize the brief in a few "
+ "sentences rather than copying it or answering it. Include relevant context from "
+ "the conversation so the research workflow can complete the report."
),
"parameters": {
"type": "object",
@@ -12299,8 +12301,9 @@ DEEP_RESEARCH_TOOL = {
"question": {
"type": "string",
"description": (
- "The specific, self-contained question to research. Not the user's raw "
- "message unless it already reads as one."
+ "A concise, self-contained research brief in a few sentences: include the "
+ "main topics and requested outputs, not just one detail to look up. "
+ "Do not copy the full prompt or write the report in this argument."
),
},
},
diff --git a/studio/backend/routes/inference.py b/studio/backend/routes/inference.py
index 34a340cdfb1..ed5f9dddc54 100644
--- a/studio/backend/routes/inference.py
+++ b/studio/backend/routes/inference.py
@@ -5615,13 +5615,18 @@ def _full_access_tip(code_tools: list[str]) -> str:
# Avoid the word 'greetings': small models then greet instead of researching.
_TOOL_RESEARCH_TIP = (
- "Deep Research is turned on for this conversation. For any question about the world "
- "-- facts, events, laws, products, papers, prices, comparisons, anything that may have "
- "changed since your training -- call deep_research instead of answering from memory, "
- "even when you think you know the answer: the user asked for a researched, cited "
- "report and your knowledge has a cutoff. If a message has no question in it, such as a "
- "hello, a thanks, or a remark about you, reply normally. If a topic is too vague to "
- "research well, ask one short clarifying question first."
+ "Deep Research is turned on for this conversation. For factual questions or requests "
+ "to investigate a topic, compare information, or write a research report, call "
+ "deep_research before drafting an answer, outline, or report, even if you know the "
+ "answer. A research request may be a command or a brief in pasted text or an "
+ "attachment; it does not need to be phrased as a question. Hand off the whole request "
+ "in one concise, self-contained research question covering its main topics and requested "
+ "outputs. Summarize the brief in a few sentences rather than copying it or answering it. "
+ "The research workflow gathers sources and "
+ "writes the report; do not use it only to fill gaps in an answer you write from memory. "
+ "Reply normally to a hello, thanks, or a remark about you, and to requests only to "
+ "rewrite or transform supplied text without outside research. If the topic is too "
+ "vague to research well, ask one short clarifying question first."
)
_TOOL_ARTIFACT_TIP = (