Migrate browser interface into computer SDK

This commit is contained in:
Dillon DuPont
2025-12-03 09:00:20 -08:00
parent 6fa66c18cc
commit 8f297eac3c
2 changed files with 31 additions and 1 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ async def test_browser_tool():
# Initialize the computer interface
# For local testing, use provider_type="docker"
# For provider_type="cloud", provide name and api_key
computer = Computer(provider_type="docker")
computer = Computer(provider_type="docker", os_type="linux", image="cua-xfce:dev")
await computer.run()
# Initialize the browser tool with the computer interface
browser = BrowserTool(interface=computer)