Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Fix out-of-date agent SDK code in notebook

James Murdza141c9d3ad7f9
diff --git a/notebooks/agent_nb.ipynb b/notebooks/agent_nb.ipynb
index 66b6620346..8fc02b31f0 100644
--- a/notebooks/agent_nb.ipynb
+++ b/notebooks/agent_nb.ipynb
@@ -78,7 +78,7 @@
"outputs": [],
"source": [
"from computer import Computer, VMProviderType\n",
- "from agent import ComputerAgent, LLM, AgentLoop, LLMProvider"
+ "from agent import ComputerAgent"
]
},
{
@@ -184,8 +184,8 @@
"\n",
"# Create agent\n",
"agent = ComputerAgent(\n",
+ " model=\"openai/computer-use-preview\",\n",
" tools=[computer],\n",
- " model=\"computer-use-preview\",\n",
" trajectory_dir=str(Path(\"trajectories\")),\n",
" only_n_most_recent_images=3,\n",
" verbosity=logging.INFO\n",
@@ -331,7 +331,7 @@
"source": [
"import logging\n",
"from pathlib import Path\n",
- "from agent import ComputerAgent, LLM, AgentLoop\n",
+ "from agent import ComputerAgent\n",
"\n",
"computer = Computer(verbosity=logging.INFO)\n",
"\n",