From 4efe643db8f7a54c96abd891ba528747129b035f Mon Sep 17 00:00:00 2001 From: cinjoseph Date: Tue, 19 Nov 2024 21:48:44 +0800 Subject: [PATCH] fix the issue that lost prev observation memory in toolExpert bug (#2136) (#2137) --- dbgpt/agent/core/profile/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbgpt/agent/core/profile/base.py b/dbgpt/agent/core/profile/base.py index e2eafe946..1a03c5ce4 100644 --- a/dbgpt/agent/core/profile/base.py +++ b/dbgpt/agent/core/profile/base.py @@ -129,11 +129,13 @@ _DEFAULT_WRITE_MEMORY_TEMPLATE = """\ {% if question %}Question: {{ question }} {% endif %} {% if thought %}Thought: {{ thought }} {% endif %} {% if action %}Action: {{ action }} {% endif %} +{% if observation %}Observation: {{ observation }} {% endif %} """ _DEFAULT_WRITE_MEMORY_TEMPLATE_ZH = """\ {% if question %}问题: {{ question }} {% endif %} {% if thought %}思考答案: {{ thought }} {% endif %} {% if action %}行动结果: {{ action }} {% endif %} +{% if observation %}观察: {{ observation }} {% endif %} """