Commit
·
9b140cb
1
Parent(s):
64a50ad
fix nodes ReAct agent file input missing
Browse files- nodes_react_agent.py +1 -1
nodes_react_agent.py
CHANGED
@@ -86,7 +86,7 @@ class NodesReActAgent:
|
|
86 |
|
87 |
print(f"ReActAgent initialized with {provider} - {model}.")
|
88 |
|
89 |
-
def __call__(self, question: str, input_file: str) -> str:
|
90 |
input_msg = [HumanMessage(content=question)]
|
91 |
out = self.react_graph.invoke({"messages": input_msg, "input_file": input_file})
|
92 |
|
|
|
86 |
|
87 |
print(f"ReActAgent initialized with {provider} - {model}.")
|
88 |
|
89 |
+
def __call__(self, question: str, input_file: str = "") -> str:
|
90 |
input_msg = [HumanMessage(content=question)]
|
91 |
out = self.react_graph.invoke({"messages": input_msg, "input_file": input_file})
|
92 |
|