mirror of
https://github.com/trycua/computer.git
synced 2026-04-28 19:23:23 -05:00
Fix computer[all] docs
This commit is contained in:
@@ -77,13 +77,13 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from computer import Computer\n",
|
||||
"from computer import Computer, VMProviderType\n",
|
||||
"from agent import ComputerAgent, LLM, AgentLoop, LLMProvider"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -120,7 +120,7 @@
|
||||
"import logging\n",
|
||||
"from pathlib import Path\n",
|
||||
"\n",
|
||||
"computer = Computer(verbosity=logging.INFO)\n",
|
||||
"computer = Computer(verbosity=logging.INFO, provider_type=VMProviderType.LUME)\n",
|
||||
"\n",
|
||||
"# Create agent with Anthropic loop and provider\n",
|
||||
"agent = ComputerAgent(\n",
|
||||
@@ -241,7 +241,7 @@
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "cua313",
|
||||
"display_name": "cua312",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
@@ -255,7 +255,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.13.2"
|
||||
"version": "3.12.9"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"!pip install cua-computer"
|
||||
"!pip install \"cua-computer[all]\""
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"!pip install cua-computer"
|
||||
"!pip install \"cua-computer[all]\""
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -155,11 +155,11 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": 23,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from computer import Computer"
|
||||
"from computer import Computer, VMProviderType"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -187,7 +187,8 @@
|
||||
" display=\"1024x768\",\n",
|
||||
" memory=\"8GB\",\n",
|
||||
" cpu=\"4\",\n",
|
||||
" os_type=\"macos\"\n",
|
||||
" os_type=\"macos\",\n",
|
||||
" provider_type=VMProviderType.LUME,\n",
|
||||
") as computer:\n",
|
||||
" await computer.run()\n",
|
||||
" # ... do something with the computer interface"
|
||||
@@ -460,7 +461,7 @@
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "cua313",
|
||||
"display_name": "cua312",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
@@ -474,7 +475,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.13.2"
|
||||
"version": "3.12.9"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in New Issue
Block a user