minor updates

This commit is contained in:
Jiaqing Liang
2026-01-29 15:38:44 +08:00
parent 32a5af2608
commit 2ae60d4d0b

View File

@@ -51,7 +51,7 @@ def agent_runner_loop(client, system_prompt, user_input, handler, tools_schema,
if '</summary>```' in response.content: response.content = response.content.replace('</summary>```', '</summary> \n```') if '</summary>```' in response.content: response.content = response.content.replace('</summary>```', '</summary> \n```')
showcontent = response.content showcontent = response.content
if '</file_content>' in showcontent: if '</file_content>' in showcontent:
showcontent = re.sub(r'<file_content>\s*(.*?)\s*</file_content>', r'\n````<file_content>\n\1\n</file_content>````', showcontent, flags=re.DOTALL) showcontent = re.sub(r'<file_content>\s*(.*?)\s*</file_content>', r'\n```` <file_content>\n\1\n</file_content> ````', showcontent, flags=re.DOTALL)
yield showcontent + '\n\n' yield showcontent + '\n\n'
if not response.tool_calls: if not response.tool_calls: