Skip to content

Commit 54fb057

Browse files
feat(api): manual updates
1 parent e13b877 commit 54fb057

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-2c88c6d890406ff8a5f1bca692264fb9af4bc4fe64df0986e06d3386fc6d6fcb.yml
3-
openapi_spec_hash: dc6ea17f8152708dc0a390c7f86b1a5d
4-
config_hash: a17b6052ac65237b7b8e145f4f692d3c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-e52e8d3513159931200e5d4bd32cfdc475fe6e7db6b8015c394f5625b5a3ce1f.yml
3+
openapi_spec_hash: fa597eb985cd1c3ba03acf68d6416857
4+
config_hash: b138dc33d4d0880499266048be517958

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ client = Stagehand()
170170

171171
try:
172172
client.sessions.start(
173-
browserbase_api_key="<your API key here>",
174-
browserbase_project_id="<your project ID here>",
173+
browserbase_api_key="BROWSERBASE_API_KEY",
174+
browserbase_project_id="BROWSERBASE_PROJECT_ID",
175175
)
176176
except stagehand.APIConnectionError as e:
177177
print("The server could not be reached")
@@ -216,8 +216,8 @@ client = Stagehand(
216216

217217
# Or, configure per-request:
218218
client.with_options(max_retries=5).sessions.start(
219-
browserbase_api_key="<your API key here>",
220-
browserbase_project_id="<your project ID here>",
219+
browserbase_api_key="BROWSERBASE_API_KEY",
220+
browserbase_project_id="BROWSERBASE_PROJECT_ID",
221221
)
222222
```
223223

@@ -242,8 +242,8 @@ client = Stagehand(
242242

243243
# Override per-request:
244244
client.with_options(timeout=5.0).sessions.start(
245-
browserbase_api_key="<your API key here>",
246-
browserbase_project_id="<your project ID here>",
245+
browserbase_api_key="BROWSERBASE_API_KEY",
246+
browserbase_project_id="BROWSERBASE_PROJECT_ID",
247247
)
248248
```
249249

@@ -286,8 +286,8 @@ from stagehand import Stagehand
286286

287287
client = Stagehand()
288288
response = client.sessions.with_raw_response.start(
289-
browserbase_api_key="<your API key here>",
290-
browserbase_project_id="<your project ID here>",
289+
browserbase_api_key="BROWSERBASE_API_KEY",
290+
browserbase_project_id="BROWSERBASE_PROJECT_ID",
291291
)
292292
print(response.headers.get('X-My-Header'))
293293

@@ -307,8 +307,8 @@ To stream the response body, use `.with_streaming_response` instead, which requi
307307

308308
```python
309309
with client.sessions.with_streaming_response.start(
310-
browserbase_api_key="<your API key here>",
311-
browserbase_project_id="<your project ID here>",
310+
browserbase_api_key="BROWSERBASE_API_KEY",
311+
browserbase_project_id="BROWSERBASE_PROJECT_ID",
312312
) as response:
313313
print(response.headers.get("X-My-Header"))
314314

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Optional
3+
from typing import Optional
44

55
from .._models import BaseModel
66

@@ -10,6 +10,3 @@
1010
class SessionExecuteAgentResponse(BaseModel):
1111
message: Optional[str] = None
1212
"""Final message from the agent"""
13-
14-
steps: Optional[List[object]] = None
15-
"""Steps taken by the agent"""

0 commit comments

Comments
 (0)