Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,7 +123,7 @@ play_chess_tool = Tool(
|
|
| 123 |
description="Sets a chess board."
|
| 124 |
)
|
| 125 |
|
| 126 |
-
tools = [get_file_path_tool]
|
| 127 |
chat_with_tools = chat.bind_tools(tools, parallel_tool_calls=False)
|
| 128 |
|
| 129 |
|
|
@@ -143,7 +143,7 @@ builder = StateGraph(AgentState)
|
|
| 143 |
|
| 144 |
# Define nodes: these do the work
|
| 145 |
builder.add_node("assistant", assistant)
|
| 146 |
-
builder.add_node("tools", ToolNode([get_file_path_tool
|
| 147 |
|
| 148 |
# Define edges: these determine how the control flow moves
|
| 149 |
builder.add_edge(START, "assistant")
|
|
|
|
| 123 |
description="Sets a chess board."
|
| 124 |
)
|
| 125 |
|
| 126 |
+
tools = [get_file_path_tool, get_content_tool, extract_text_tool, search_web_tool, play_chess_tool]
|
| 127 |
chat_with_tools = chat.bind_tools(tools, parallel_tool_calls=False)
|
| 128 |
|
| 129 |
|
|
|
|
| 143 |
|
| 144 |
# Define nodes: these do the work
|
| 145 |
builder.add_node("assistant", assistant)
|
| 146 |
+
builder.add_node("tools", ToolNode([get_file_path_tool]))
|
| 147 |
|
| 148 |
# Define edges: these determine how the control flow moves
|
| 149 |
builder.add_edge(START, "assistant")
|