Sborole commited on
Commit
b19d137
·
verified ·
1 Parent(s): f3d4327

Update src/agent.py

Browse files
Files changed (1) hide show
  1. src/agent.py +9 -3
src/agent.py CHANGED
@@ -6,6 +6,9 @@ from tools.ReadImageTool import ReadImageTool
6
  from tools.ReadTextTool import ReadTextTool
7
  from tools.ReadVideoTool import ReadVideoTool
8
  from tools.WebSearchTool import WebSearchTool
 
 
 
9
  from src.utils import InputTokenRateLimiter
10
  import time
11
  import random
@@ -25,11 +28,14 @@ class BasicAgent():
25
  ReadImageTool(),
26
  ReadTextTool(),
27
  ReadVideoTool(),
28
- WebSearchTool()
 
 
 
29
  # TODO: MP3 interpretation
30
  ],
31
- max_steps=1,
32
- planning_interval=1,
33
  model=self.model
34
  )
35
  self.token_rate_limiter = InputTokenRateLimiter()
 
6
  from tools.ReadTextTool import ReadTextTool
7
  from tools.ReadVideoTool import ReadVideoTool
8
  from tools.WebSearchTool import WebSearchTool
9
+ from tools.YouTubeTool import YouTubeTool
10
+ from tools.PythonRunnerTool import PythonRunnerTool
11
+ from tools.WikipediaTool import WikipediaTool
12
  from src.utils import InputTokenRateLimiter
13
  import time
14
  import random
 
28
  ReadImageTool(),
29
  ReadTextTool(),
30
  ReadVideoTool(),
31
+ WebSearchTool(),
32
+ WikipediaTool(),
33
+ YouTubeTool(),
34
+ PythonRunnerTool()
35
  # TODO: MP3 interpretation
36
  ],
37
+ max_steps=3,
38
+ planning_interval=3,
39
  model=self.model
40
  )
41
  self.token_rate_limiter = InputTokenRateLimiter()