optionEdge commited on
Commit
78683dc
·
verified ·
1 Parent(s): d749d4b

Update BasicAgent.py

Browse files
Files changed (1) hide show
  1. BasicAgent.py +14 -4
BasicAgent.py CHANGED
@@ -1,6 +1,16 @@
1
- import smolagents
2
- from smolagents import CodeAgent, HfApiModel, InferenceClientModel, WebSearchTool, PythonInterpreterTool, FinalAnswerTool, DuckDuckGoSearchTool, GoogleSearchTool, VistWebpagetool
3
- import numpy, math, xlrd, os
 
 
 
 
 
 
 
 
 
 
4
 
5
  #model_id = "Qwen/Qwen2.5-Coder-32B-Instruct"
6
  #model_id = 'meta-llama/Llama-3.3-70B-Instruct'
@@ -30,7 +40,7 @@ class newAgent:
30
  #↓ Replace .run with whatever method actually returns the answer string.
31
  return answer
32
 
33
- newAgent.run
34
 
35
  #agent.run(
36
  # "At what temperature and for how long should I bake French baguettes made with type 65 flour?",
 
1
+ import smolagents, numpy, math, xlrd, os
2
+ from smolagents import (
3
+ CodeAgent,
4
+ HfApiModel,
5
+ InferenceClientModel,
6
+ WebSearchTool,
7
+ PythonInterpreterTool,
8
+ FinalAnswerTool,
9
+ DuckDuckGoSearchTool,
10
+ GoogleSearchTool,
11
+ VistWebpagetool
12
+
13
+ )
14
 
15
  #model_id = "Qwen/Qwen2.5-Coder-32B-Instruct"
16
  #model_id = 'meta-llama/Llama-3.3-70B-Instruct'
 
40
  #↓ Replace .run with whatever method actually returns the answer string.
41
  return answer
42
 
43
+ #answer = self.run
44
 
45
  #agent.run(
46
  # "At what temperature and for how long should I bake French baguettes made with type 65 flour?",