Spaces:
Sleeping
Sleeping
Update src/agent.py
Browse files- src/agent.py +11 -1
src/agent.py
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
from src.settings import Settings
|
| 2 |
from smolagents import LiteLLMModel, ToolCallingAgent
|
| 3 |
-
from
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
from src.utils import InputTokenRateLimiter
|
| 5 |
import time
|
| 6 |
import random
|
|
@@ -16,6 +21,11 @@ class BasicAgent():
|
|
| 16 |
self.agent = ToolCallingAgent(
|
| 17 |
tools=[
|
| 18 |
FinalAnswerTool(),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# TODO: MP3 interpretation
|
| 20 |
],
|
| 21 |
max_steps=10,
|
|
|
|
| 1 |
from src.settings import Settings
|
| 2 |
from smolagents import LiteLLMModel, ToolCallingAgent
|
| 3 |
+
from tools.FinalAnswerTool import FinalAnswerTool
|
| 4 |
+
from tools.ReadAudioTool import ReadAudioTool
|
| 5 |
+
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
|
|
|
|
| 21 |
self.agent = ToolCallingAgent(
|
| 22 |
tools=[
|
| 23 |
FinalAnswerTool(),
|
| 24 |
+
ReadAudioTool(),
|
| 25 |
+
ReadImageTool(),
|
| 26 |
+
ReadTextTool(),
|
| 27 |
+
ReadVideoTool(),
|
| 28 |
+
WebSearchTool())
|
| 29 |
# TODO: MP3 interpretation
|
| 30 |
],
|
| 31 |
max_steps=10,
|