mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-21 07:26:50 +00:00
Fix: clarification bugs - max rounds, locale passing, and over-clarification (#647)
Fixes: Max rounds bug, locale passing bug, over-clarification issue * reslove Copilot spelling comments --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
This commit is contained in:
+3
-2
@@ -16,7 +16,9 @@ class State(MessagesState):
|
||||
# Runtime Variables
|
||||
locale: str = "en-US"
|
||||
research_topic: str = ""
|
||||
clarified_research_topic: str = ""
|
||||
clarified_research_topic: str = (
|
||||
"" # Complete/final clarified topic with all clarification rounds
|
||||
)
|
||||
observations: list[str] = []
|
||||
resources: list[Resource] = []
|
||||
plan_iterations: int = 0
|
||||
@@ -33,7 +35,6 @@ class State(MessagesState):
|
||||
clarification_rounds: int = 0
|
||||
clarification_history: list[str] = field(default_factory=list)
|
||||
is_clarification_complete: bool = False
|
||||
clarified_question: str = ""
|
||||
max_clarification_rounds: int = (
|
||||
3 # Default: 3 rounds (only used when enable_clarification=True)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user