Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/reference/agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ await agent.execute({

```python Python
# For Computer Use Agent (CUA) models
agent = stagehand.agent({
agent = stagehand.agent(
model="computer-use-preview",
instructions="You are a helpful assistant that can use a web browser.",
options={
"apiKey": os.getenv("OPENAI_API_KEY"),
},
})
)

# You can define additional options like max_steps and auto_screenshot
result = await agent.execute({
instruction="Sign me up for a library card",
max_steps=20
"instruction": "Sign me up for a library card",
"max_steps": 20
})

```
Expand Down