SheikhIrtiza commited on
Commit
53388a9
·
verified ·
1 Parent(s): f2dcb5f

Update search_agent.py

Browse files
Files changed (1) hide show
  1. search_agent.py +8 -0
search_agent.py CHANGED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+
2
+ from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
3
+
4
+ agent = CodeAgent(
5
+ tools=[DuckDuckGoSearchTool()],
6
+ model=HfApiModel()
7
+ )
8
+ agent.run("What is the capital of France?")