diff --git a/src/agents/coder/coder.py b/src/agents/coder/coder.py index 3e021d61..a396d7df 100644 --- a/src/agents/coder/coder.py +++ b/src/agents/coder/coder.py @@ -52,7 +52,7 @@ def validate_response(self, response: str) -> Union[List[Dict[str, str]], bool]: if line.startswith("File: "): if current_file and current_code: result.append({"file": current_file, "code": "\n".join(current_code)}) - current_file = line.split(":")[1].strip() + current_file = line.split(":")[1].replace("`", "").strip() current_code = [] code_block = False elif line.startswith("```"):