From 091f437bc5419cfe253be3ff7b6b398a9fb9671f Mon Sep 17 00:00:00 2001 From: DanielWalnut <45447813+hetaoBackend@users.noreply.github.com> Date: Fri, 9 May 2025 14:22:07 +0800 Subject: [PATCH] feat: add necessary log when no tool calls (#16) --- src/graph/nodes.py | 6 ++++++ web/src/app/settings/tabs/about.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/graph/nodes.py b/src/graph/nodes.py index 412b362..a87bf56 100644 --- a/src/graph/nodes.py +++ b/src/graph/nodes.py @@ -225,6 +225,12 @@ def coordinator_node( break except Exception as e: logger.error(f"Error processing tool calls: {e}") + else: + logger.warning( + "Coordinator response contains no tool calls. Terminating workflow execution." + ) + logger.debug(f"Coordinator response: {response}") + return Command( update={"locale": locale}, goto=goto, diff --git a/web/src/app/settings/tabs/about.md b/web/src/app/settings/tabs/about.md index c965530..42ee3a2 100644 --- a/web/src/app/settings/tabs/about.md +++ b/web/src/app/settings/tabs/about.md @@ -39,7 +39,7 @@ These outstanding projects form the backbone of DeerFlow and exemplify the trans ### Special Thanks Finally, we want to express our heartfelt gratitude to the core authors of `DeerFlow`: -- **[DanielWalnut](https://github.com/hetaoBackend/)** +- **[Daniel Walnut](https://github.com/hetaoBackend/)** - **[Henry Li](https://github.com/magiccube/)** Without their vision, passion and dedication, `DeerFlow` would not be what it is today.