Spaces:
Runtime error
Runtime error
ernani commited on
Commit ·
857e8c6
1
Parent(s): 4ec250f
updating tools
Browse files
app.py
CHANGED
|
@@ -21,8 +21,6 @@ llm = HuggingFaceEndpoint(
|
|
| 21 |
)
|
| 22 |
|
| 23 |
chat = ChatHuggingFace(llm=llm, verbose=True)
|
| 24 |
-
tools = [guest_info_tool, weather_info_tool, hub_stats_tool, search_tool, memory_management_tool]
|
| 25 |
-
chat_with_tools = chat.bind_tools(tools)
|
| 26 |
|
| 27 |
# Initialize the memory store
|
| 28 |
memory_management_tool = MemoryManagementTool()
|
|
@@ -39,6 +37,10 @@ hub_stats_tool = HubStatsTool()
|
|
| 39 |
# Load the guest dataset and initialize the guest info tool
|
| 40 |
guest_info_tool = load_guest_dataset()
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
# Generate the AgentState and Agent graph
|
| 44 |
class AgentState(TypedDict):
|
|
|
|
| 21 |
)
|
| 22 |
|
| 23 |
chat = ChatHuggingFace(llm=llm, verbose=True)
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# Initialize the memory store
|
| 26 |
memory_management_tool = MemoryManagementTool()
|
|
|
|
| 37 |
# Load the guest dataset and initialize the guest info tool
|
| 38 |
guest_info_tool = load_guest_dataset()
|
| 39 |
|
| 40 |
+
# adding tools
|
| 41 |
+
|
| 42 |
+
tools = [guest_info_tool, weather_info_tool, hub_stats_tool, search_tool, memory_management_tool]
|
| 43 |
+
chat_with_tools = chat.bind_tools(tools)
|
| 44 |
|
| 45 |
# Generate the AgentState and Agent graph
|
| 46 |
class AgentState(TypedDict):
|