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 operator example

James Murdza02e5e62591cb
diff --git a/notebooks/blog/build-your-own-operator-on-macos-2.ipynb b/notebooks/blog/build-your-own-operator-on-macos-2.ipynb
index ba039bfefd..db4a887207 100644
--- a/notebooks/blog/build-your-own-operator-on-macos-2.ipynb
+++ b/notebooks/blog/build-your-own-operator-on-macos-2.ipynb
@@ -78,7 +78,7 @@
"outputs": [],
"source": [
"from computer import Computer\n",
- "from agent import ComputerAgent, LLM, AgentLoop, LLMProvider"
+ "from agent import ComputerAgent"
]
},
{
@@ -129,7 +129,7 @@
"outputs": [],
"source": [
"agent = ComputerAgent(\n",
- " computer=[computer],\n",
+ " tools=[computer],\n",
" model=\"openai/computer-use-preview\",\n",
" save_trajectory=True,\n",
" only_n_most_recent_images=3,\n",
@@ -170,7 +170,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.11.11"
+ "version": "3.12.11"
}
},
"nbformat": 4,