Spaces:
Build error
Build error
Upload agent (1).py
Browse files- agent (1).py +8 -0
agent (1).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)
|