rtriangle commited on
Commit
021c3da
·
verified ·
1 Parent(s): 0801a19

Update list of tools

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,6 +32,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
32
 
33
 
34
  final_answer = FinalAnswerTool()
 
35
 
36
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
37
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -52,7 +53,7 @@ with open("prompts.yaml", 'r') as stream:
52
 
53
  agent = CodeAgent(
54
  model=model,
55
- tools=[final_answer, get_current_time_in_timezone, fahrenheit_to_celsius, DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
56
  max_steps=6,
57
  verbosity_level=1,
58
  grammar=None,
 
32
 
33
 
34
  final_answer = FinalAnswerTool()
35
+ search_tool = DuckDuckGoSearchTool()
36
 
37
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
38
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
53
 
54
  agent = CodeAgent(
55
  model=model,
56
+ tools=[final_answer, search_tool, fahrenheit_to_celsius], ## add your tools here (don't remove final answer)
57
  max_steps=6,
58
  verbosity_level=1,
59
  grammar=None,