From 4e375e39fcc4fd1ad9caef5460d07d907e51d92c Mon Sep 17 00:00:00 2001 From: DavdGao Date: Tue, 30 Apr 2024 16:01:18 +0800 Subject: [PATCH] fix the bug in parser --- src/agentscope/parsers/code_block_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agentscope/parsers/code_block_parser.py b/src/agentscope/parsers/code_block_parser.py index 2621406cf..df6341123 100644 --- a/src/agentscope/parsers/code_block_parser.py +++ b/src/agentscope/parsers/code_block_parser.py @@ -13,7 +13,7 @@ class MarkdownCodeBlockParser(ParserBase): tag_begin: str = "```{language_name}" """The beginning tag.""" - content_hint: str = "${your_{language_name}_CODE}" + content_hint: str = "${{your_{language_name}_code}}" """The hint of the content.""" tag_end: str = "```" @@ -22,7 +22,7 @@ class MarkdownCodeBlockParser(ParserBase): format_instruction: str = ( "You should generate {language_name} code in a {language_name} fenced " "code block as follows: \n```{language_name}\n" - "${your_{language_name}_CODE}\n```" + "${{your_{language_name}_code}}\n```" ) """The instruction for the format of the code block."""