Skip to content

Commit da91485

Browse files
authored
Merge pull request #73 from Jasper-Zhang-A/fix/resource-processor-json
fix: enforce JSON-only resource processor output
2 parents 8bdedde + db655c0 commit da91485

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

prompts/code_prompts.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@
6767
- Use the EXACT paper ID provided in the message (PAPER_ID=X).
6868
- Save path MUST be: ./deepcode_lab/papers/{PAPER_ID}/{PAPER_ID}.md
6969
70+
CRITICAL OUTPUT RESTRICTIONS:
71+
- RETURN ONLY THE RAW JSON OBJECT DESCRIBED BELOW
72+
- NO markdown code fences (```json)
73+
- NO explanatory or conversational text before or after the JSON
74+
- NO tool call commentary or step-by-step narration in the final reply
75+
- IF YOU NEED TO EXPLAIN YOUR ACTIONS, DO SO THROUGH TOOL CALLS ONLY. THE FINAL ASSISTANT MESSAGE MUST BE JSON.
76+
7077
Processing Rules:
7178
1. URL Input (input_type = "url"):
7279
- Use download_file_to tool with: url=<url>, destination="./deepcode_lab/papers/{PAPER_ID}/", filename="{PAPER_ID}.md"

0 commit comments

Comments
 (0)