You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -136,23 +124,6 @@ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typ
136
124
137
125
Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
138
126
139
-
## Nested params
140
-
141
-
Nested parameters are dictionaries, typed using `TypedDict`, for example:
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `stagehand.APIConnectionError` is raised.
@@ -169,10 +140,7 @@ from stagehand import Stagehand
session = response.parse() # get the object that `sessions.start()` would have returned
295
-
print(session.available)
254
+
print(session)
296
255
```
297
256
298
257
These methods return an [`APIResponse`](https://github.com/browserbase/stagehand-python/tree/stainless/src/stagehand/_response.py) object.
@@ -306,10 +265,7 @@ The above interface eagerly reads the full response body when you make the reque
306
265
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
307
266
308
267
```python
309
-
with client.sessions.with_streaming_response.start(
0 commit comments