Spaces:
Sleeping
Sleeping
niikun
commited on
Commit
Β·
fcdebb0
1
Parent(s):
d4adad5
update tools
Browse files
app.py
CHANGED
|
@@ -46,14 +46,14 @@ class BasicAgent:
|
|
| 46 |
|
| 47 |
# γγΌγ«γγΌγη»ι²
|
| 48 |
tool_node = ToolNode(tools=tools)
|
| 49 |
-
graph_builder.add_node("
|
| 50 |
|
| 51 |
# ζ‘δ»Άδ»γγ¨γγΈοΌγγ£γγγγΌγβοΌεΏ
θ¦γͺγοΌγγΌγ«βγγ£γγγγΌγ
|
| 52 |
graph_builder.add_conditional_edges("chatbot", tools_condition)
|
| 53 |
# γΉγΏγΌγγγγγ£γγγΈ
|
| 54 |
graph_builder.add_edge(START, "chatbot")
|
| 55 |
# γγΌγ«γγΌγγγγγ£γγγγΌγγΈζ»γ
|
| 56 |
-
graph_builder.add_edge("
|
| 57 |
|
| 58 |
# γ°γ©γγγ³γ³γγ€γ«γγ¦δΏζ
|
| 59 |
self.graph = graph_builder.compile()
|
|
|
|
| 46 |
|
| 47 |
# γγΌγ«γγΌγη»ι²
|
| 48 |
tool_node = ToolNode(tools=tools)
|
| 49 |
+
graph_builder.add_node("tools", tool_node)
|
| 50 |
|
| 51 |
# ζ‘δ»Άδ»γγ¨γγΈοΌγγ£γγγγΌγβοΌεΏ
θ¦γͺγοΌγγΌγ«βγγ£γγγγΌγ
|
| 52 |
graph_builder.add_conditional_edges("chatbot", tools_condition)
|
| 53 |
# γΉγΏγΌγγγγγ£γγγΈ
|
| 54 |
graph_builder.add_edge(START, "chatbot")
|
| 55 |
# γγΌγ«γγΌγγγγγ£γγγγΌγγΈζ»γ
|
| 56 |
+
graph_builder.add_edge("tools", "chatbot")
|
| 57 |
|
| 58 |
# γ°γ©γγγ³γ³γγ€γ«γγ¦δΏζ
|
| 59 |
self.graph = graph_builder.compile()
|