diff --git a/openagent_eval/synthesis/adversarial.py b/openagent_eval/synthesis/adversarial.py index 3b7491a..c139518 100644 --- a/openagent_eval/synthesis/adversarial.py +++ b/openagent_eval/synthesis/adversarial.py @@ -213,7 +213,7 @@ async def generate( details={"supported_types": [t.value for t in TestCaseType]}, ) - prompt = prompt_template.format(count=count, context=context.strip()) + prompt = prompt_template.format(count=count, context=context.strip().replace("{", "{{").replace("}", "}}")) try: raw_response = await self._llm.generate(prompt) diff --git a/openagent_eval/synthesis/question_gen.py b/openagent_eval/synthesis/question_gen.py index 8b629ff..9b65d9f 100644 --- a/openagent_eval/synthesis/question_gen.py +++ b/openagent_eval/synthesis/question_gen.py @@ -102,7 +102,7 @@ async def generate( prompt = _QUESTION_GENERATION_PROMPT.format( count=count, - context=context.strip(), + context=context.strip().replace("{", "{{").replace("}", "}}"), ) try: