From 3371ec475ce18e8caca06f20c65a999882f56b8f Mon Sep 17 00:00:00 2001 From: cinjoseph Date: Tue, 19 Nov 2024 19:16:10 +0800 Subject: [PATCH] fix the issue that lost prev observation memory in toolExpert bug (#2136) --- 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 @@ {% 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 %} """