优化执行结果输出格式,调整输出内容的分段结构与标记样式

This commit is contained in:
yinpeng
2024-12-16 16:55:54 +08:00
parent 5450cbc3f1
commit 6136d3ac83

View File

@@ -298,4 +298,4 @@ class ChatService:
"""格式化执行结果输出"""
outcome = result_data.get("outcome", "")
output = result_data.get("output", "").strip()
return f"""\n【执行结果】\n> outcome: {outcome}\n> output:\n```plaintext\n{output}\n```\n"""
return f"""\n【执行结果】\n> outcome: {outcome}\n\n【输出结果】\n```plaintext\n{output}\n```\n"""