Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 + [
|