2222from ..types .split_run_job_response import SplitRunJobResponse
2323from ..types .shared_params .parse_options import ParseOptions
2424from ..types .shared_params .split_category import SplitCategory
25+ from ..types .shared_params .config_v3_async_config import ConfigV3AsyncConfig
2526
2627__all__ = ["SplitResource" , "AsyncSplitResource" ]
2728
@@ -109,18 +110,40 @@ def run(
109110 def run_job (
110111 self ,
111112 * ,
112- body : object ,
113+ input : split_run_job_params .Input ,
114+ split_description : Iterable [SplitCategory ],
115+ async_ : ConfigV3AsyncConfig | Omit = omit ,
116+ parsing : ParseOptions | Omit = omit ,
117+ settings : split_run_job_params .Settings | Omit = omit ,
118+ split_rules : str | Omit = omit ,
113119 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
114120 # The extra values given here take precedence over values defined on the client or passed to this method.
115121 extra_headers : Headers | None = None ,
116122 extra_query : Query | None = None ,
117123 extra_body : Body | None = None ,
118124 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
119125 ) -> SplitRunJobResponse :
120- """
121- Split Async
126+ """Split Async
122127
123128 Args:
129+ input: The URL of the document to be processed.
130+
131+ You can provide one of the
132+ following: 1. A publicly available URL 2. A presigned S3 URL 3. A reducto://
133+ prefixed URL obtained from the /upload endpoint after directly uploading a
134+ document 4. A jobid:// prefixed URL obtained from a previous /parse invocation
135+
136+ split_description: The configuration options for processing the document.
137+
138+ async_: The configuration options for asynchronous processing (default synchronous).
139+
140+ parsing: The configuration options for parsing the document. If you are passing in a
141+ jobid:// URL for the file, then this configuration will be ignored.
142+
143+ settings: The settings for split processing.
144+
145+ split_rules: The prompt that describes rules for splitting the document.
146+
124147 extra_headers: Send extra headers
125148
126149 extra_query: Add additional query parameters to the request
@@ -131,7 +154,17 @@ def run_job(
131154 """
132155 return self ._post (
133156 "/split_async" ,
134- body = maybe_transform (body , split_run_job_params .SplitRunJobParams ),
157+ body = maybe_transform (
158+ {
159+ "input" : input ,
160+ "split_description" : split_description ,
161+ "async_" : async_ ,
162+ "parsing" : parsing ,
163+ "settings" : settings ,
164+ "split_rules" : split_rules ,
165+ },
166+ split_run_job_params .SplitRunJobParams ,
167+ ),
135168 options = make_request_options (
136169 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
137170 ),
@@ -222,18 +255,40 @@ async def run(
222255 async def run_job (
223256 self ,
224257 * ,
225- body : object ,
258+ input : split_run_job_params .Input ,
259+ split_description : Iterable [SplitCategory ],
260+ async_ : ConfigV3AsyncConfig | Omit = omit ,
261+ parsing : ParseOptions | Omit = omit ,
262+ settings : split_run_job_params .Settings | Omit = omit ,
263+ split_rules : str | Omit = omit ,
226264 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
227265 # The extra values given here take precedence over values defined on the client or passed to this method.
228266 extra_headers : Headers | None = None ,
229267 extra_query : Query | None = None ,
230268 extra_body : Body | None = None ,
231269 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
232270 ) -> SplitRunJobResponse :
233- """
234- Split Async
271+ """Split Async
235272
236273 Args:
274+ input: The URL of the document to be processed.
275+
276+ You can provide one of the
277+ following: 1. A publicly available URL 2. A presigned S3 URL 3. A reducto://
278+ prefixed URL obtained from the /upload endpoint after directly uploading a
279+ document 4. A jobid:// prefixed URL obtained from a previous /parse invocation
280+
281+ split_description: The configuration options for processing the document.
282+
283+ async_: The configuration options for asynchronous processing (default synchronous).
284+
285+ parsing: The configuration options for parsing the document. If you are passing in a
286+ jobid:// URL for the file, then this configuration will be ignored.
287+
288+ settings: The settings for split processing.
289+
290+ split_rules: The prompt that describes rules for splitting the document.
291+
237292 extra_headers: Send extra headers
238293
239294 extra_query: Add additional query parameters to the request
@@ -244,7 +299,17 @@ async def run_job(
244299 """
245300 return await self ._post (
246301 "/split_async" ,
247- body = await async_maybe_transform (body , split_run_job_params .SplitRunJobParams ),
302+ body = await async_maybe_transform (
303+ {
304+ "input" : input ,
305+ "split_description" : split_description ,
306+ "async_" : async_ ,
307+ "parsing" : parsing ,
308+ "settings" : settings ,
309+ "split_rules" : split_rules ,
310+ },
311+ split_run_job_params .SplitRunJobParams ,
312+ ),
248313 options = make_request_options (
249314 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
250315 ),
0 commit comments