github-actions[bot] commited on
Commit
c4c48ee
ยท
1 Parent(s): 6c3142a

Sync with https://github.com/mozilla-ai/surf-spot-finder

Browse files
Files changed (1) hide show
  1. constants.py +8 -1
constants.py CHANGED
@@ -1,10 +1,13 @@
 
 
1
  from any_agent.evaluation import EvaluationCase
2
  from surf_spot_finder.tools import (
3
  get_area_lat_lon,
4
  get_wave_forecast,
5
  get_wind_forecast,
6
  )
7
- from any_agent.tools.web_browsing import search_web, visit_webpage
 
8
 
9
  MODEL_OPTIONS = [
10
  # "huggingface/novita/deepseek-ai/DeepSeek-V3",
@@ -65,3 +68,7 @@ DEFAULT_TOOLS = [
65
  search_web,
66
  visit_webpage,
67
  ]
 
 
 
 
 
1
+ import os
2
+
3
  from any_agent.evaluation import EvaluationCase
4
  from surf_spot_finder.tools import (
5
  get_area_lat_lon,
6
  get_wave_forecast,
7
  get_wind_forecast,
8
  )
9
+ from any_agent.logging import logger
10
+ from any_agent.tools.web_browsing import search_web, visit_webpage, search_tavily
11
 
12
  MODEL_OPTIONS = [
13
  # "huggingface/novita/deepseek-ai/DeepSeek-V3",
 
68
  search_web,
69
  visit_webpage,
70
  ]
71
+ if os.getenv("TAVILY_API_KEY"):
72
+ DEFAULT_TOOLS.append(search_tavily)
73
+ else:
74
+ logger.warning("TAVILY_API_KEY not set, skipping Tavily search tool")