Spaces:
Runtime error
Runtime error
mtalec
commited on
Commit
Β·
ad46931
1
Parent(s):
7f951c8
fix tool names
Browse files
app.py
CHANGED
|
@@ -1,9 +1,8 @@
|
|
| 1 |
from smolagents import CodeAgent, HfApiModel
|
| 2 |
-
from tools.mood_to_need import
|
| 3 |
-
from tools.need_to_destination import
|
| 4 |
-
from tools.
|
| 5 |
-
from tools.
|
| 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 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 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,
|