mmichiels13 commited on
Commit
9c91bee
·
verified ·
1 Parent(s): 567f306
Files changed (1) hide show
  1. test.py +17 -0
test.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # test_search.py
2
+ from smolagents import DuckDuckGoSearchTool
3
+
4
+ def test_search():
5
+ print("Testing DuckDuckGo search functionality...")
6
+
7
+ try:
8
+ search_tool = DuckDuckGoSearchTool()
9
+ result = search_tool("Python programming language")
10
+ print(f"Search successful! Found: {result[:150]}...")
11
+ return True
12
+ except Exception as e:
13
+ print(f"Search failed: {e}")
14
+ return False
15
+
16
+ if __name__ == "__main__":
17
+ test_search()