mtalec commited on
Commit
ad46931
Β·
1 Parent(s): 7f951c8

fix tool names

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -1,9 +1,8 @@
1
  from smolagents import CodeAgent, HfApiModel
2
- from tools.mood_to_need import mood_to_need
3
- from tools.need_to_destination import need_to_destination
4
- from tools.get_weather import get_weather
5
- from tools.get_flights import get_flights
6
- from tools.final_wrap import final_wrap
7
  from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
  import yaml
@@ -23,12 +22,11 @@ with open("prompts.yaml", "r") as f:
23
  agent = CodeAgent(
24
  model=model,
25
  tools=[
26
- mood_to_need, # Step 1: Mood β†’ Need
27
- need_to_destination, # Step 2: Need β†’ Destination
28
- get_weather, # Step 3: Weather for destination
29
- get_flights, # Step 4: Destination β†’ Flights
30
- final_wrap, # Step 5: Claude wrap
31
- FinalAnswerTool() # Required final output
32
  ],
33
  max_steps=6,
34
  verbosity_level=1,
 
1
  from smolagents import CodeAgent, HfApiModel
2
+ from tools.mood_to_need import MoodToNeedTool
3
+ from tools.need_to_destination import NeedToDestinationTool
4
+ from tools.weather_tool import WeatherTool
5
+ from tools.find_flight import FlightsFinderTool
 
6
  from tools.final_answer import FinalAnswerTool
7
  from Gradio_UI import GradioUI
8
  import yaml
 
22
  agent = CodeAgent(
23
  model=model,
24
  tools=[
25
+ MoodToNeedTool(), # Step 1: Mood β†’ Need
26
+ NeedToDestinationTool(), # Step 2: Need β†’ Destination
27
+ WeatherTool(), # Step 3: Weather for destination
28
+ FlightsFinderTool(), # Step 4: Destination β†’ Flights # Step 5: Claude wrap
29
+ FinalAnswerTool() # Required final output
 
30
  ],
31
  max_steps=6,
32
  verbosity_level=1,