Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -283,10 +283,7 @@ class BasicAgent:
|
|
283 |
print(f"Agent received question: {question[:50]}{'...' if len(question) > 50 else ''}")
|
284 |
|
285 |
# Ensure proper HumanMessage in history
|
286 |
-
state =
|
287 |
-
"question": question,
|
288 |
-
"history": [HumanMessage(content=question)]
|
289 |
-
}
|
290 |
|
291 |
final_state = self.workflow.invoke(state)
|
292 |
|
|
|
283 |
print(f"Agent received question: {question[:50]}{'...' if len(question) > 50 else ''}")
|
284 |
|
285 |
# Ensure proper HumanMessage in history
|
286 |
+
state = init_state(question)
|
|
|
|
|
|
|
287 |
|
288 |
final_state = self.workflow.invoke(state)
|
289 |
|