@@ -33,7 +33,7 @@ client = BrowserUse(
3333)
3434
3535task = client.tasks.create(
36- task = " x " ,
36+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
3737)
3838print (task.id)
3939```
@@ -59,7 +59,7 @@ client = AsyncBrowserUse(
5959
6060async def main () -> None :
6161 task = await client.tasks.create(
62- task = " x " ,
62+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
6363 )
6464 print (task.id)
6565
@@ -94,7 +94,7 @@ async def main() -> None:
9494 http_client = DefaultAioHttpClient(),
9595 ) as client:
9696 task = await client.tasks.create(
97- task = " x " ,
97+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
9898 )
9999 print (task.id)
100100
@@ -144,7 +144,7 @@ client = BrowserUse()
144144
145145try :
146146 client.tasks.create(
147- task = " x " ,
147+ task = " Search for the top 10 Hacker News posts and return the title and url. " ,
148148 )
149149except browser_use_sdk.APIConnectionError as e:
150150 print (" The server could not be reached" )
@@ -189,7 +189,7 @@ client = BrowserUse(
189189
190190# Or, configure per-request:
191191client.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. " ,
193193)
194194```
195195
@@ -214,7 +214,7 @@ client = BrowserUse(
214214
215215# Override per-request:
216216client.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. " ,
218218)
219219```
220220
@@ -257,7 +257,7 @@ from browser_use_sdk import BrowserUse
257257
258258client = BrowserUse()
259259response = 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. " ,
261261)
262262print (response.headers.get(' X-My-Header' ))
263263
@@ -277,7 +277,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi
277277
278278``` python
279279with 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. " ,
281281) as response:
282282 print (response.headers.get(" X-My-Header" ))
283283
0 commit comments