[PR #952] Fix missing spaces in openai_research_agent Agent instructions #15479

Open
opened 2026-07-15 07:24:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Shubhamsaboo/awesome-llm-apps/pull/952
Author: @thejesh23
Created: 7/13/2026
Status: 🔄 Open

Base: mainHead: fix/openai-research-agent-instructions-spaces


📝 Commits (1)

  • 009d30b Fix missing spaces in research_agent instructions

📊 Changes

1 file changed (+5 additions, -5 deletions)

View changed files

📝 starter_ai_agents/openai_research_agent/research_agent.py (+5 -5)

📄 Description

Fixes #949.

What

The research_agent's instructions in starter_ai_agents/openai_research_agent/research_agent.py (lines 82–87) used multi-line Python implicit string concatenation but each line was missing its trailing space. The prompt actually shipped to the model contained fused words: term andproduce, less than 300words, or goodgrammar, capture theessence, the summaryitself.

Diff

-    instructions="You are a research assistant. Given a search term, you search the web for that term and"
-    "produce a concise summary of the results. The summary must 2-3 paragraphs and less than 300"
-    "words. Capture the main points. Write succintly, no need to have complete sentences or good"
-    "grammar. This will be consumed by someone synthesizing a report, so its vital you capture the"
-    "essence and ignore any fluff. Do not include any additional commentary other than the summary"
+    instructions="You are a research assistant. Given a search term, you search the web for that term and "
+    "produce a concise summary of the results. The summary must be 2-3 paragraphs and less than 300 "
+    "words. Capture the main points. Write succinctly, no need to have complete sentences or good "
+    "grammar. This will be consumed by someone synthesizing a report, so it's vital you capture the "
+    "essence and ignore any fluff. Do not include any additional commentary other than the summary "
     "itself.",

While touching those lines, I also fixed three small English typos in the same block: succintlysuccinctly, must 2-3 paragraphsmust be 2-3 paragraphs, its vitalit's vital. Happy to split those out if you'd prefer only the mechanical space fix.

Not touched

Other files in the repo have the same "implicit-concat with missing spaces" pattern too — not fixing those here to keep this PR scoped to a single template.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Shubhamsaboo/awesome-llm-apps/pull/952 **Author:** [@thejesh23](https://github.com/thejesh23) **Created:** 7/13/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/openai-research-agent-instructions-spaces` --- ### 📝 Commits (1) - [`009d30b`](https://github.com/Shubhamsaboo/awesome-llm-apps/commit/009d30b8b2433807b8473464c1b80d6fb6869046) Fix missing spaces in research_agent instructions ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `starter_ai_agents/openai_research_agent/research_agent.py` (+5 -5) </details> ### 📄 Description Fixes #949. ### What The `research_agent`'s `instructions` in `starter_ai_agents/openai_research_agent/research_agent.py` (lines 82–87) used multi-line Python implicit string concatenation but each line was missing its trailing space. The prompt actually shipped to the model contained fused words: `term andproduce`, `less than 300words`, `or goodgrammar`, `capture theessence`, `the summaryitself`. ### Diff ```diff - instructions="You are a research assistant. Given a search term, you search the web for that term and" - "produce a concise summary of the results. The summary must 2-3 paragraphs and less than 300" - "words. Capture the main points. Write succintly, no need to have complete sentences or good" - "grammar. This will be consumed by someone synthesizing a report, so its vital you capture the" - "essence and ignore any fluff. Do not include any additional commentary other than the summary" + instructions="You are a research assistant. Given a search term, you search the web for that term and " + "produce a concise summary of the results. The summary must be 2-3 paragraphs and less than 300 " + "words. Capture the main points. Write succinctly, no need to have complete sentences or good " + "grammar. This will be consumed by someone synthesizing a report, so it's vital you capture the " + "essence and ignore any fluff. Do not include any additional commentary other than the summary " "itself.", ``` While touching those lines, I also fixed three small English typos in the same block: `succintly` → `succinctly`, `must 2-3 paragraphs` → `must be 2-3 paragraphs`, `its vital` → `it's vital`. Happy to split those out if you'd prefer only the mechanical space fix. ### Not touched Other files in the repo have the same "implicit-concat with missing spaces" pattern too — not fixing those here to keep this PR scoped to a single template. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-07-15 07:24:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-llm-apps#15479