Davit6174 commited on
Commit
325c680
·
verified ·
1 Parent(s): 4921933

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ class LangGraphAgent:
105
  tool_fn = self.tools.get(tool_name)
106
  if tool_fn:
107
  try:
108
- tool_output = tool_fn(tool_input)
109
  scratchpad = f"{raw_response}\nObservation: {tool_output}"
110
  follow_up = self.model(content, scratchpad)
111
  return {"messages": messages + [
 
105
  tool_fn = self.tools.get(tool_name)
106
  if tool_fn:
107
  try:
108
+ tool_output = tool_fn.invoke(tool_input)
109
  scratchpad = f"{raw_response}\nObservation: {tool_output}"
110
  follow_up = self.model(content, scratchpad)
111
  return {"messages": messages + [