jassi004 commited on
Commit
1d76826
·
verified ·
1 Parent(s): fcc2f3e

Upload agent (1).py

Browse files
Files changed (1) hide show
  1. 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)