naman1102 commited on
Commit
9a2521c
·
1 Parent(s): 77f790c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -43,6 +43,7 @@ def tool_node(state: AgentState, agent_output)-> AgentState:
43
  Wrap ToolNode so it matches (state, agent_output) → next_state.
44
  `agent_output` is expected to be a dict like {"tool": "...", ...}.
45
  """
 
46
  # Let the ToolNode run with that dict (ToolNode.run(dict) returns a string)
47
  tool_result: str = tool_node.run(agent_output)
48
  # Now you might want the LLM to reason over tool_result, but for simplicity...
 
43
  Wrap ToolNode so it matches (state, agent_output) → next_state.
44
  `agent_output` is expected to be a dict like {"tool": "...", ...}.
45
  """
46
+ print(f"ToolNode received agent_output: {agent_output}")
47
  # Let the ToolNode run with that dict (ToolNode.run(dict) returns a string)
48
  tool_result: str = tool_node.run(agent_output)
49
  # Now you might want the LLM to reason over tool_result, but for simplicity...