Skip to content

A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.

Shell

Preserve value coercion in few-shot structural encoding

Rudy Celekli5d3417f5d4d4
diff --git a/engineering/engineering-prompt-engineer.md b/engineering/engineering-prompt-engineer.md
index 6d754a4b..841f65a7 100644
--- a/engineering/engineering-prompt-engineer.md
+++ b/engineering/engineering-prompt-engineer.md
@@ -108,8 +108,8 @@ def build_few_shot_block(examples: list[dict]) -> str:
for i, ex in enumerate(examples, 1):
lines.append(f"<example id='{i}'>")
# Literal XML/tag-like examples must remain text, never new delimiters.
- lines.append(f"Input: {escape(ex['input'])}")
- lines.append(f"Output: {escape(ex['output'])}")
+ lines.append(f"Input: {escape(str(ex['input']))}")
+ lines.append(f"Output: {escape(str(ex['output']))}")
lines.append("</example>\n")
return "\n".join(lines)
```