Skip to content

Commit 1b1500d

Browse files
committed
fix: escape curly braces in reflection prompt for LangChain
The JSON examples in REFLECT_ON_ROADMAP_SYSTEM_PROMPT were being interpreted as template variables by LangChain's ChatPromptTemplate. Double curly braces escape them as literal text.
1 parent 25acda5 commit 1b1500d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

review_roadmap/agent/prompts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@
6262
## Response Format
6363
If the roadmap passes review, respond with EXACTLY this JSON:
6464
```json
65-
{"passed": true, "notes": "Self-review: [brief note on quality]"}
65+
{{"passed": true, "notes": "Self-review: [brief note on quality]"}}
6666
```
6767
6868
If issues need fixing, respond with EXACTLY this JSON:
6969
```json
70-
{"passed": false, "feedback": "[specific issues to fix, be concise]"}
70+
{{"passed": false, "feedback": "[specific issues to fix, be concise]"}}
7171
```
7272
7373
Be rigorous but not pedantic. Only fail roadmaps with genuine issues that would confuse or mislead a reviewer.

0 commit comments

Comments
 (0)