Spaces:
Build error
Build error
Upload agent.py
Browse files
agent.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from smol_agent import SmolAgent
|
2 |
+
|
3 |
+
# Define a basic agent with commonly useful tools
|
4 |
+
tools = ["search", "calculator", "python", "code"]
|
5 |
+
agent = SmolAgent(tools=tools)
|
6 |
+
|
7 |
+
def run_agent(question):
|
8 |
+
return agent.run(question)
|