Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,6 +66,8 @@ def weather_tool(agent_input: str) -> str:
|
|
| 66 |
tool_1 = smolagents.Tool(name="FavoriteWeather", function=weather_tool)
|
| 67 |
|
| 68 |
# Example usage (you can use this to test the tool)
|
|
|
|
|
|
|
| 69 |
agent = smolagents.Agent(tools=[tool_1])
|
| 70 |
response = agent.run("sunny")
|
| 71 |
print(response) # Should print the response for "sunny" weather
|
|
|
|
| 66 |
tool_1 = smolagents.Tool(name="FavoriteWeather", function=weather_tool)
|
| 67 |
|
| 68 |
# Example usage (you can use this to test the tool)
|
| 69 |
+
from smolagents.agents import Agent # Importing Agent correctly
|
| 70 |
+
|
| 71 |
agent = smolagents.Agent(tools=[tool_1])
|
| 72 |
response = agent.run("sunny")
|
| 73 |
print(response) # Should print the response for "sunny" weather
|