Conversational Memory
Browse filesTurn on convo memory, also add back the general web search tool
app.py
CHANGED
|
@@ -35,10 +35,11 @@ crash_info_tool = load_crash_data()
|
|
| 35 |
|
| 36 |
# Create Alfred with all the tools
|
| 37 |
alfred = CodeAgent(
|
| 38 |
-
tools=[guest_info_tool, weather_info_tool, hub_stats_tool, crash_info_tool],
|
| 39 |
model=model,
|
| 40 |
add_base_tools=True, # Add any additional base tools
|
| 41 |
-
planning_interval=3 # Enable planning every 3 steps
|
|
|
|
| 42 |
)
|
| 43 |
|
| 44 |
if __name__ == "__main__":
|
|
|
|
| 35 |
|
| 36 |
# Create Alfred with all the tools
|
| 37 |
alfred = CodeAgent(
|
| 38 |
+
tools=[guest_info_tool, weather_info_tool, hub_stats_tool, search_tool, crash_info_tool],
|
| 39 |
model=model,
|
| 40 |
add_base_tools=True, # Add any additional base tools
|
| 41 |
+
planning_interval=3, # Enable planning every 3 steps
|
| 42 |
+
memory=True # Enable conversation memory
|
| 43 |
)
|
| 44 |
|
| 45 |
if __name__ == "__main__":
|