naman1102 commited on
Commit
729b871
·
1 Parent(s): ad94802

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -73,7 +73,7 @@ def plan_node(state: AgentState) -> AgentState:
73
  try:
74
  parsed = json.loads(llm_out)
75
  if isinstance(parsed, dict):
76
- partial: AgentState = {"messages": new_msgs}
77
  allowed_keys = {
78
  "final_answer",
79
  "wiki_query",
 
73
  try:
74
  parsed = json.loads(llm_out)
75
  if isinstance(parsed, dict):
76
+ partial: AgentState = {"messages": new_msgs, "tool_counter": state.get("tool_counter", 0)}
77
  allowed_keys = {
78
  "final_answer",
79
  "wiki_query",