Skip to content

Commit dc2b234

Browse files
committed
Drop env var from the README example
1 parent 193db86 commit dc2b234

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ General Agents Python API client is available as a python package on PyPI:
1414

1515
```bash
1616
pip install generalagents
17-
18-
# or with uv
19-
uv add generalagents
2017
```
2118

2219
# Usage
@@ -25,19 +22,17 @@ This client includes both an interface for calling the agent, and a simple compu
2522
loop:
2623

2724
```python
28-
import os
29-
3025
from generalagents import Agent
3126
from generalagents.macos import Computer
3227

33-
agent = Agent(model="ace-small", api_key=os.getenv('GENERALAGENTS_API_KEY'))
28+
agent = Agent(model="ace-small", api_key='your-api-key-here')
3429
computer = Computer()
3530

3631
instruction = "Star the generalagents-python github repository"
3732
session = agent.start(instruction)
3833
observation = computer.observe()
3934

40-
for _ in range(50): # max actions
35+
for _ in range(25): # max actions
4136
action = session.plan(observation)
4237
if action.kind == "stop":
4338
break

0 commit comments

Comments
 (0)