sperera commited on
Commit
e045999
·
verified ·
1 Parent(s): a21baa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,7 +52,7 @@ def get_current_weather(city: str) -> str:
52
  return f"The current temperature in {city} is {temp}°C."
53
 
54
  final_answer = FinalAnswerTool()
55
-
56
  # --- UNIVERSALLY ROUTED MODEL CONFIGURATION ---
57
  model = InferenceClientModel(
58
  max_tokens=2096,
@@ -65,7 +65,7 @@ model = InferenceClientModel(
65
  # Initialize your agent with the updated model
66
  agent = CodeAgent(
67
  model=model,
68
- tools=[final_answer, get_current_time_in_timezone],
69
  max_steps=6,
70
  verbosity_level=1,
71
  planning_interval=None,
 
52
  return f"The current temperature in {city} is {temp}°C."
53
 
54
  final_answer = FinalAnswerTool()
55
+ search_tool = DuckDuckGoSearchTool()
56
  # --- UNIVERSALLY ROUTED MODEL CONFIGURATION ---
57
  model = InferenceClientModel(
58
  max_tokens=2096,
 
65
  # Initialize your agent with the updated model
66
  agent = CodeAgent(
67
  model=model,
68
+ tools=[final_answer, get_current_time_in_timezone, search_tool, get_current_weather],
69
  max_steps=6,
70
  verbosity_level=1,
71
  planning_interval=None,