@@ -75,6 +75,8 @@ def async_(
7575 output_format : str ,
7676 csv_options : str | Omit = omit ,
7777 custom_instructions : str | Omit = omit ,
78+ file_base64 : str | Omit = omit ,
79+ file_url : str | Omit = omit ,
7880 include_metadata : str | Omit = omit ,
7981 json_options : str | Omit = omit ,
8082 prompt_mode : Literal ["append" , "replace" ] | Omit = omit ,
@@ -93,8 +95,7 @@ def async_(
9395 Recommended for large documents (>50 pages).
9496
9597 Args:
96- file: File to upload (PDF, Word, Excel, PowerPoint, images). Alternatively use
97- file_url or file_base64.
98+ file: File to upload (PDF, Word, Excel, PowerPoint, images)
9899
99100 output_format: Output format(s): `markdown`, `html`, `json`, `csv`. Comma-separate for multiple
100101 (e.g., `markdown,json`).
@@ -103,10 +104,13 @@ def async_(
103104
104105 custom_instructions: Custom extraction instructions (e.g., `Format dates as YYYY-MM-DD`)
105106
107+ file_base64: Base64-encoded file content
108+
109+ file_url: URL to download file from
110+
106111 include_metadata: Comma-separated metadata: `bounding_boxes`, `confidence_score`
107112
108- json_options: JSON extraction options. Values: `hierarchy_output`, `table-of-contents`, field
109- list `["field1", "field2"]`, or JSON schema `{...}`
113+ json_options: JSON extraction options.
110114
111115 prompt_mode: `append`: add to base prompt, `replace`: use only custom instructions
112116
@@ -130,6 +134,8 @@ def async_(
130134 "output_format" : output_format ,
131135 "csv_options" : csv_options ,
132136 "custom_instructions" : custom_instructions ,
137+ "file_base64" : file_base64 ,
138+ "file_url" : file_url ,
133139 "include_metadata" : include_metadata ,
134140 "json_options" : json_options ,
135141 "prompt_mode" : prompt_mode ,
@@ -225,14 +231,6 @@ def stream(
225231 Stream extraction results via Server-Sent Events (SSE) for real-time content
226232 delivery.
227233
228- **Event Types:**
229-
230- - `content`: Incremental content chunks (streaming mode)
231- - `complete`: Full content at once (batch mode)
232- - `done`: Final event with record_id and processing_time
233- - `error`: Error information
234- - `async_queued`: Large files queued for async processing
235-
236234 Provide exactly one of: `file`, `file_url`, or `file_base64`.
237235
238236 Args:
@@ -245,8 +243,7 @@ def stream(
245243
246244 custom_instructions: Custom extraction instructions
247245
248- enable_streaming: Enable real-time streaming. If false, returns complete content via SSE batch
249- mode.
246+ enable_streaming: Enable real-time streaming.
250247
251248 file_base64: Base64-encoded file content
252249
@@ -303,6 +300,8 @@ def sync(
303300 output_format : str ,
304301 csv_options : str | Omit = omit ,
305302 custom_instructions : str | Omit = omit ,
303+ file_base64 : str | Omit = omit ,
304+ file_url : str | Omit = omit ,
306305 include_metadata : str | Omit = omit ,
307306 json_options : str | Omit = omit ,
308307 prompt_mode : Literal ["append" , "replace" ] | Omit = omit ,
@@ -321,8 +320,7 @@ def sync(
321320 Provide exactly one of: `file`, `file_url`, or `file_base64`.
322321
323322 Args:
324- file: File to upload (PDF, Word, Excel, PowerPoint, images). Alternatively use
325- file_url or file_base64.
323+ file: File to upload (PDF, Word, Excel, PowerPoint, images)
326324
327325 output_format: Output format(s): `markdown`, `html`, `json`, `csv`. Comma-separate for multiple
328326 (e.g., `markdown,json`).
@@ -331,10 +329,13 @@ def sync(
331329
332330 custom_instructions: Custom extraction instructions (e.g., `Format dates as YYYY-MM-DD`)
333331
332+ file_base64: Base64-encoded file content
333+
334+ file_url: URL to download file from
335+
334336 include_metadata: Comma-separated metadata: `bounding_boxes`, `confidence_score`
335337
336- json_options: JSON extraction options. Values: `hierarchy_output`, `table-of-contents`, field
337- list `["field1", "field2"]`, or JSON schema `{...}`
338+ json_options: JSON extraction options.
338339
339340 prompt_mode: `append`: add to base prompt, `replace`: use only custom instructions
340341
@@ -358,6 +359,8 @@ def sync(
358359 "output_format" : output_format ,
359360 "csv_options" : csv_options ,
360361 "custom_instructions" : custom_instructions ,
362+ "file_base64" : file_base64 ,
363+ "file_url" : file_url ,
361364 "include_metadata" : include_metadata ,
362365 "json_options" : json_options ,
363366 "prompt_mode" : prompt_mode ,
@@ -402,6 +405,8 @@ async def async_(
402405 output_format : str ,
403406 csv_options : str | Omit = omit ,
404407 custom_instructions : str | Omit = omit ,
408+ file_base64 : str | Omit = omit ,
409+ file_url : str | Omit = omit ,
405410 include_metadata : str | Omit = omit ,
406411 json_options : str | Omit = omit ,
407412 prompt_mode : Literal ["append" , "replace" ] | Omit = omit ,
@@ -420,8 +425,7 @@ async def async_(
420425 Recommended for large documents (>50 pages).
421426
422427 Args:
423- file: File to upload (PDF, Word, Excel, PowerPoint, images). Alternatively use
424- file_url or file_base64.
428+ file: File to upload (PDF, Word, Excel, PowerPoint, images)
425429
426430 output_format: Output format(s): `markdown`, `html`, `json`, `csv`. Comma-separate for multiple
427431 (e.g., `markdown,json`).
@@ -430,10 +434,13 @@ async def async_(
430434
431435 custom_instructions: Custom extraction instructions (e.g., `Format dates as YYYY-MM-DD`)
432436
437+ file_base64: Base64-encoded file content
438+
439+ file_url: URL to download file from
440+
433441 include_metadata: Comma-separated metadata: `bounding_boxes`, `confidence_score`
434442
435- json_options: JSON extraction options. Values: `hierarchy_output`, `table-of-contents`, field
436- list `["field1", "field2"]`, or JSON schema `{...}`
443+ json_options: JSON extraction options.
437444
438445 prompt_mode: `append`: add to base prompt, `replace`: use only custom instructions
439446
@@ -457,6 +464,8 @@ async def async_(
457464 "output_format" : output_format ,
458465 "csv_options" : csv_options ,
459466 "custom_instructions" : custom_instructions ,
467+ "file_base64" : file_base64 ,
468+ "file_url" : file_url ,
460469 "include_metadata" : include_metadata ,
461470 "json_options" : json_options ,
462471 "prompt_mode" : prompt_mode ,
@@ -552,14 +561,6 @@ async def stream(
552561 Stream extraction results via Server-Sent Events (SSE) for real-time content
553562 delivery.
554563
555- **Event Types:**
556-
557- - `content`: Incremental content chunks (streaming mode)
558- - `complete`: Full content at once (batch mode)
559- - `done`: Final event with record_id and processing_time
560- - `error`: Error information
561- - `async_queued`: Large files queued for async processing
562-
563564 Provide exactly one of: `file`, `file_url`, or `file_base64`.
564565
565566 Args:
@@ -572,8 +573,7 @@ async def stream(
572573
573574 custom_instructions: Custom extraction instructions
574575
575- enable_streaming: Enable real-time streaming. If false, returns complete content via SSE batch
576- mode.
576+ enable_streaming: Enable real-time streaming.
577577
578578 file_base64: Base64-encoded file content
579579
@@ -630,6 +630,8 @@ async def sync(
630630 output_format : str ,
631631 csv_options : str | Omit = omit ,
632632 custom_instructions : str | Omit = omit ,
633+ file_base64 : str | Omit = omit ,
634+ file_url : str | Omit = omit ,
633635 include_metadata : str | Omit = omit ,
634636 json_options : str | Omit = omit ,
635637 prompt_mode : Literal ["append" , "replace" ] | Omit = omit ,
@@ -648,8 +650,7 @@ async def sync(
648650 Provide exactly one of: `file`, `file_url`, or `file_base64`.
649651
650652 Args:
651- file: File to upload (PDF, Word, Excel, PowerPoint, images). Alternatively use
652- file_url or file_base64.
653+ file: File to upload (PDF, Word, Excel, PowerPoint, images)
653654
654655 output_format: Output format(s): `markdown`, `html`, `json`, `csv`. Comma-separate for multiple
655656 (e.g., `markdown,json`).
@@ -658,10 +659,13 @@ async def sync(
658659
659660 custom_instructions: Custom extraction instructions (e.g., `Format dates as YYYY-MM-DD`)
660661
662+ file_base64: Base64-encoded file content
663+
664+ file_url: URL to download file from
665+
661666 include_metadata: Comma-separated metadata: `bounding_boxes`, `confidence_score`
662667
663- json_options: JSON extraction options. Values: `hierarchy_output`, `table-of-contents`, field
664- list `["field1", "field2"]`, or JSON schema `{...}`
668+ json_options: JSON extraction options.
665669
666670 prompt_mode: `append`: add to base prompt, `replace`: use only custom instructions
667671
@@ -685,6 +689,8 @@ async def sync(
685689 "output_format" : output_format ,
686690 "csv_options" : csv_options ,
687691 "custom_instructions" : custom_instructions ,
692+ "file_base64" : file_base64 ,
693+ "file_url" : file_url ,
688694 "include_metadata" : include_metadata ,
689695 "json_options" : json_options ,
690696 "prompt_mode" : prompt_mode ,
0 commit comments