Update rag_langgraph.py
Browse files- rag_langgraph.py +1 -7
rag_langgraph.py
CHANGED
@@ -130,10 +130,4 @@ def run_multi_agent(topic, word_count):
|
|
130 |
HumanMessage(content=topic)
|
131 |
]
|
132 |
})
|
133 |
-
|
134 |
-
print(result['messages'][1].content)
|
135 |
-
print("##########")
|
136 |
-
print(result['messages'][2].content)
|
137 |
-
print("##########")
|
138 |
-
print(result['messages'][3].content)
|
139 |
-
return result['messages'][result['messages'].len() - 1].content
|
|
|
130 |
HumanMessage(content=topic)
|
131 |
]
|
132 |
})
|
133 |
+
return result['messages'][-1].content
|
|
|
|
|
|
|
|
|
|
|
|