adding tools
Browse files
agent.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
from smolagents import (
|
| 2 |
-
CodeAgent, InferenceClientModel,
|
| 3 |
DuckDuckGoSearchTool
|
| 4 |
)
|
| 5 |
|
| 6 |
# Initialize the Hugging Face model
|
| 7 |
-
model = InferenceClientModel()
|
|
|
|
| 8 |
|
| 9 |
tools = [
|
| 10 |
DuckDuckGoSearchTool(),
|
|
|
|
| 1 |
from smolagents import (
|
| 2 |
+
CodeAgent, InferenceClientModel, HfApiModel,
|
| 3 |
DuckDuckGoSearchTool
|
| 4 |
)
|
| 5 |
|
| 6 |
# Initialize the Hugging Face model
|
| 7 |
+
# model = InferenceClientModel()
|
| 8 |
+
model = HfApiModel()
|
| 9 |
|
| 10 |
tools = [
|
| 11 |
DuckDuckGoSearchTool(),
|