SilviuMatei commited on
Commit
ef26eb0
·
verified ·
1 Parent(s): c417a23

Update tools/getDeviceInfo.py

Browse files
Files changed (1) hide show
  1. tools/getDeviceInfo.py +11 -0
tools/getDeviceInfo.py CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  class VisitWebpageTool(Tool):
2
  name = "visit_webpage"
3
  description = "Visits a webpage at the given URL, reads its content as a markdown string, and extracts device information."
 
1
+ from typing import Any, Optional
2
+ from smolagents.tools import Tool
3
+ import requests
4
+ import markdownify
5
+ import smolagents
6
+ import playwright.sync_api as playwright
7
+ import re
8
+ import yaml
9
+ from smolagents import CodeAgent, HfApiModel
10
+ from tools.final_answer import FinalAnswerTool
11
+
12
  class VisitWebpageTool(Tool):
13
  name = "visit_webpage"
14
  description = "Visits a webpage at the given URL, reads its content as a markdown string, and extracts device information."