Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,9 +27,7 @@ class BasicAgent:
|
|
27 |
print(f"Agent received question: {question}")
|
28 |
|
29 |
# The user_question argument for AgentState is the question.
|
30 |
-
|
31 |
-
init_state.add(SystemMessage(content=SYSTEM_PROMPT))
|
32 |
-
init_state.add(HumanMessage(content=question))
|
33 |
|
34 |
# IMPORTANT: invoke() returns a **new** state instance (or an AddableValuesDict),
|
35 |
# not the object we pass in. Use the returned value to fetch final_answer.
|
|
|
27 |
print(f"Agent received question: {question}")
|
28 |
|
29 |
# The user_question argument for AgentState is the question.
|
30 |
+
|
|
|
|
|
31 |
|
32 |
# IMPORTANT: invoke() returns a **new** state instance (or an AddableValuesDict),
|
33 |
# not the object we pass in. Use the returned value to fetch final_answer.
|