From 38a8fc11d9d2edaadbf191b4f18f616803463cd2 Mon Sep 17 00:00:00 2001 From: Sween1y <89127229+Sween1y@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:54:31 +0800 Subject: [PATCH] Print the necessary resource for the action in error log (#2197) --- dbgpt/agent/core/base_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbgpt/agent/core/base_agent.py b/dbgpt/agent/core/base_agent.py index f1be80c71..123eb68f4 100644 --- a/dbgpt/agent/core/base_agent.py +++ b/dbgpt/agent/core/base_agent.py @@ -80,7 +80,7 @@ class ConversableAgent(Role, Agent): or not self.resource.get_resource_by_type(action.resource_need) ): raise ValueError( - f"{self.name}[{self.role}] Missing resources required for " + f"{self.name}[{self.role}] Missing resources[{action.resource_need}] required for " "runtime!" ) else: