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
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -261,6 +261,21 @@ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typ
261
261
262
262
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`.
263
263
264
+
## Nested params
265
+
266
+
Nested parameters are dictionaries, typed using `TypedDict`, for example:
267
+
268
+
```python
269
+
from landingai_ade import LandingAIADE
270
+
271
+
client = LandingAIADE()
272
+
273
+
response = client.parse(
274
+
custom_prompts={},
275
+
)
276
+
print(response.custom_prompts)
277
+
```
278
+
264
279
## File uploads
265
280
266
281
Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
0 commit comments