Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -49,8 +49,9 @@ def build_agent():
|
|
| 49 |
Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
|
| 50 |
"""
|
| 51 |
return {
|
| 52 |
-
|
| 53 |
-
|
|
|
|
| 54 |
|
| 55 |
## The graph
|
| 56 |
builder = StateGraph(AgentState)
|
|
|
|
| 49 |
Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
|
| 50 |
"""
|
| 51 |
return {
|
| 52 |
+
"messages": [{"role": "system", "content": sys_msg}] + state["messages"],
|
| 53 |
+
"wiki_table": state.get("wiki_table")
|
| 54 |
+
}
|
| 55 |
|
| 56 |
## The graph
|
| 57 |
builder = StateGraph(AgentState)
|