@@ -33,7 +33,7 @@ client = BrowserUse(
33
33
)
34
34
35
35
task = client.tasks.create(
36
- task = " x " ,
36
+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
37
37
)
38
38
print (task.id)
39
39
```
@@ -59,7 +59,7 @@ client = AsyncBrowserUse(
59
59
60
60
async def main () -> None :
61
61
task = await client.tasks.create(
62
- task = " x " ,
62
+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
63
63
)
64
64
print (task.id)
65
65
@@ -94,7 +94,7 @@ async def main() -> None:
94
94
http_client = DefaultAioHttpClient(),
95
95
) as client:
96
96
task = await client.tasks.create(
97
- task = " x " ,
97
+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
98
98
)
99
99
print (task.id)
100
100
@@ -144,7 +144,7 @@ client = BrowserUse()
144
144
145
145
try :
146
146
client.tasks.create(
147
- task = " x " ,
147
+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
148
148
)
149
149
except browser_use_sdk.APIConnectionError as e:
150
150
print (" The server could not be reached" )
@@ -189,7 +189,7 @@ client = BrowserUse(
189
189
190
190
# Or, configure per-request:
191
191
client.with_options(max_retries = 5 ).tasks.create(
192
- task = " x " ,
192
+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
193
193
)
194
194
```
195
195
@@ -214,7 +214,7 @@ client = BrowserUse(
214
214
215
215
# Override per-request:
216
216
client.with_options(timeout = 5.0 ).tasks.create(
217
- task = " x " ,
217
+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
218
218
)
219
219
```
220
220
@@ -257,7 +257,7 @@ from browser_use_sdk import BrowserUse
257
257
258
258
client = BrowserUse()
259
259
response = client.tasks.with_raw_response.create(
260
- task = " x " ,
260
+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
261
261
)
262
262
print (response.headers.get(' X-My-Header' ))
263
263
@@ -277,7 +277,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi
277
277
278
278
``` python
279
279
with client.tasks.with_streaming_response.create(
280
- task = " x " ,
280
+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
281
281
) as response:
282
282
print (response.headers.get(" X-My-Header" ))
283
283
0 commit comments