errchh
commited on
Commit
·
eb88a24
1
Parent(s):
9461725
fix nonetype error
Browse files
agent.py
CHANGED
@@ -188,12 +188,3 @@ def build_graph():
|
|
188 |
}
|
189 |
)
|
190 |
builder.add_edge("tools", "assistant")
|
191 |
-
|
192 |
-
|
193 |
-
if __name__ == "__main__":
|
194 |
-
question = "When was a picture of St. Thomas Aquinas first added to the Wikipedia page on the Principle of double effect?"
|
195 |
-
graph = build_graph()
|
196 |
-
messages = [HumanMessage(content=question)]
|
197 |
-
messages = graph.invoke({"messages": messages})
|
198 |
-
for m in messages["messages"]:
|
199 |
-
m.pretty_print()
|
|
|
188 |
}
|
189 |
)
|
190 |
builder.add_edge("tools", "assistant")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|