Class RawSplitRunsClient
- java.lang.Object
-
- ai.extend.resources.splitruns.RawSplitRunsClient
-
public class RawSplitRunsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawSplitRunsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendClientBaseHttpResponse<SplitRun>cancel(java.lang.String id)Cancel an in-progress split run.ExtendClientBaseHttpResponse<SplitRun>cancel(java.lang.String id, RequestOptions requestOptions)Cancel an in-progress split run.ExtendClientBaseHttpResponse<SplitRun>cancel(java.lang.String id, SplitRunsCancelRequest request)Cancel an in-progress split run.ExtendClientBaseHttpResponse<SplitRun>cancel(java.lang.String id, SplitRunsCancelRequest request, RequestOptions requestOptions)Cancel an in-progress split run.ExtendClientBaseHttpResponse<SplitRun>create(SplitRunsCreateRequest request)Split a document into multiple parts using an existing splitter or an inline configuration.ExtendClientBaseHttpResponse<SplitRun>create(SplitRunsCreateRequest request, RequestOptions requestOptions)Split a document into multiple parts using an existing splitter or an inline configuration.ExtendClientBaseHttpResponse<BatchRun>createBatch(SplitRunsCreateBatchRequest request)Submit up to 1,000 files for splitting in a single request.ExtendClientBaseHttpResponse<BatchRun>createBatch(SplitRunsCreateBatchRequest request, RequestOptions requestOptions)Submit up to 1,000 files for splitting in a single request.ExtendClientBaseHttpResponse<SplitRunsDeleteResponse>delete(java.lang.String id)Delete a split run and all associated data from Extend.ExtendClientBaseHttpResponse<SplitRunsDeleteResponse>delete(java.lang.String id, RequestOptions requestOptions)Delete a split run and all associated data from Extend.ExtendClientBaseHttpResponse<SplitRunsDeleteResponse>delete(java.lang.String id, SplitRunsDeleteRequest request)Delete a split run and all associated data from Extend.ExtendClientBaseHttpResponse<SplitRunsDeleteResponse>delete(java.lang.String id, SplitRunsDeleteRequest request, RequestOptions requestOptions)Delete a split run and all associated data from Extend.ExtendClientBaseHttpResponse<SplitRunsListResponse>list()List all split runs.ExtendClientBaseHttpResponse<SplitRunsListResponse>list(RequestOptions requestOptions)List all split runs.ExtendClientBaseHttpResponse<SplitRunsListResponse>list(SplitRunsListRequest request)List all split runs.ExtendClientBaseHttpResponse<SplitRunsListResponse>list(SplitRunsListRequest request, RequestOptions requestOptions)List all split runs.ExtendClientBaseHttpResponse<SplitRun>retrieve(java.lang.String id)Retrieve details about a specific split run, including its status and outputs.ExtendClientBaseHttpResponse<SplitRun>retrieve(java.lang.String id, RequestOptions requestOptions)Retrieve details about a specific split run, including its status and outputs.ExtendClientBaseHttpResponse<SplitRun>retrieve(java.lang.String id, SplitRunsRetrieveRequest request)Retrieve details about a specific split run, including its status and outputs.ExtendClientBaseHttpResponse<SplitRun>retrieve(java.lang.String id, SplitRunsRetrieveRequest request, RequestOptions requestOptions)Retrieve details about a specific split run, including its status and outputs.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawSplitRunsClient
public RawSplitRunsClient(ClientOptions clientOptions)
-
-
Method Detail
-
list
public ExtendClientBaseHttpResponse<SplitRunsListResponse> list()
List all split runs.Returns a summary of each run. Use
GET /split_runs/{id}to retrieve the full object includingoutputandconfig.
-
list
public ExtendClientBaseHttpResponse<SplitRunsListResponse> list(RequestOptions requestOptions)
List all split runs.Returns a summary of each run. Use
GET /split_runs/{id}to retrieve the full object includingoutputandconfig.
-
list
public ExtendClientBaseHttpResponse<SplitRunsListResponse> list(SplitRunsListRequest request)
List all split runs.Returns a summary of each run. Use
GET /split_runs/{id}to retrieve the full object includingoutputandconfig.
-
list
public ExtendClientBaseHttpResponse<SplitRunsListResponse> list(SplitRunsListRequest request, RequestOptions requestOptions)
List all split runs.Returns a summary of each run. Use
GET /split_runs/{id}to retrieve the full object includingoutputandconfig.
-
create
public ExtendClientBaseHttpResponse<SplitRun> create(SplitRunsCreateRequest request)
Split a document into multiple parts using an existing splitter or an inline configuration.The request returns immediately with a
PROCESSINGstatus. Use webhooks or poll the Get Split Run endpoint for results.
-
create
public ExtendClientBaseHttpResponse<SplitRun> create(SplitRunsCreateRequest request, RequestOptions requestOptions)
Split a document into multiple parts using an existing splitter or an inline configuration.The request returns immediately with a
PROCESSINGstatus. Use webhooks or poll the Get Split Run endpoint for results.
-
retrieve
public ExtendClientBaseHttpResponse<SplitRun> retrieve(java.lang.String id)
Retrieve details about a specific split run, including its status and outputs.A common use case for this endpoint is to poll for the status and final output of a split run when using the Create Split Run endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
-
retrieve
public ExtendClientBaseHttpResponse<SplitRun> retrieve(java.lang.String id, RequestOptions requestOptions)
Retrieve details about a specific split run, including its status and outputs.A common use case for this endpoint is to poll for the status and final output of a split run when using the Create Split Run endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
-
retrieve
public ExtendClientBaseHttpResponse<SplitRun> retrieve(java.lang.String id, SplitRunsRetrieveRequest request)
Retrieve details about a specific split run, including its status and outputs.A common use case for this endpoint is to poll for the status and final output of a split run when using the Create Split Run endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
-
retrieve
public ExtendClientBaseHttpResponse<SplitRun> retrieve(java.lang.String id, SplitRunsRetrieveRequest request, RequestOptions requestOptions)
Retrieve details about a specific split run, including its status and outputs.A common use case for this endpoint is to poll for the status and final output of a split run when using the Create Split Run endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
-
delete
public ExtendClientBaseHttpResponse<SplitRunsDeleteResponse> delete(java.lang.String id)
Delete a split run and all associated data from Extend. This operation is permanent and cannot be undone.This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.
-
delete
public ExtendClientBaseHttpResponse<SplitRunsDeleteResponse> delete(java.lang.String id, RequestOptions requestOptions)
Delete a split run and all associated data from Extend. This operation is permanent and cannot be undone.This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.
-
delete
public ExtendClientBaseHttpResponse<SplitRunsDeleteResponse> delete(java.lang.String id, SplitRunsDeleteRequest request)
Delete a split run and all associated data from Extend. This operation is permanent and cannot be undone.This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.
-
delete
public ExtendClientBaseHttpResponse<SplitRunsDeleteResponse> delete(java.lang.String id, SplitRunsDeleteRequest request, RequestOptions requestOptions)
Delete a split run and all associated data from Extend. This operation is permanent and cannot be undone.This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.
-
cancel
public ExtendClientBaseHttpResponse<SplitRun> cancel(java.lang.String id)
Cancel an in-progress split run.Note: Only split runs with a status of
"PROCESSING"can be cancelled. Splitter runs that have already completed, failed, or been cancelled cannot be cancelled again.
-
cancel
public ExtendClientBaseHttpResponse<SplitRun> cancel(java.lang.String id, RequestOptions requestOptions)
Cancel an in-progress split run.Note: Only split runs with a status of
"PROCESSING"can be cancelled. Splitter runs that have already completed, failed, or been cancelled cannot be cancelled again.
-
cancel
public ExtendClientBaseHttpResponse<SplitRun> cancel(java.lang.String id, SplitRunsCancelRequest request)
Cancel an in-progress split run.Note: Only split runs with a status of
"PROCESSING"can be cancelled. Splitter runs that have already completed, failed, or been cancelled cannot be cancelled again.
-
cancel
public ExtendClientBaseHttpResponse<SplitRun> cancel(java.lang.String id, SplitRunsCancelRequest request, RequestOptions requestOptions)
Cancel an in-progress split run.Note: Only split runs with a status of
"PROCESSING"can be cancelled. Splitter runs that have already completed, failed, or been cancelled cannot be cancelled again.
-
createBatch
public ExtendClientBaseHttpResponse<BatchRun> createBatch(SplitRunsCreateBatchRequest request)
Submit up to 1,000 files for splitting in a single request. Each file is processed as an independent split run using the same splitter and configuration.Unlike the single Split File (Async) endpoint, this batch endpoint accepts an
inputsarray and immediately returns aBatchRunobject containing a batchidand aPENDINGstatus. The individual runs are then queued and processed asynchronously.Monitoring results:
- Webhooks (recommended): Subscribe to
batch_processor_run.processedandbatch_processor_run.failedevents. The webhook payload indicates the batch has finished — fetch individual run results usingGET /split_runs?batchId={id}. - Polling: Call
GET /batch_runs/{id}to check the overall batch status, and useGET /split_runsfiltered bybatchIdto retrieve individual run results.
Notes:
- A processor reference (
splitter.id) is required — inlineconfigis not supported for batch requests. inputsmust contain between 1 and 1,000 items.- All inputs in a batch use the same splitter version and override config.
- Raw text input (
FileFromText) is not supported for split runs. Use a URL or file ID.
- Webhooks (recommended): Subscribe to
-
createBatch
public ExtendClientBaseHttpResponse<BatchRun> createBatch(SplitRunsCreateBatchRequest request, RequestOptions requestOptions)
Submit up to 1,000 files for splitting in a single request. Each file is processed as an independent split run using the same splitter and configuration.Unlike the single Split File (Async) endpoint, this batch endpoint accepts an
inputsarray and immediately returns aBatchRunobject containing a batchidand aPENDINGstatus. The individual runs are then queued and processed asynchronously.Monitoring results:
- Webhooks (recommended): Subscribe to
batch_processor_run.processedandbatch_processor_run.failedevents. The webhook payload indicates the batch has finished — fetch individual run results usingGET /split_runs?batchId={id}. - Polling: Call
GET /batch_runs/{id}to check the overall batch status, and useGET /split_runsfiltered bybatchIdto retrieve individual run results.
Notes:
- A processor reference (
splitter.id) is required — inlineconfigis not supported for batch requests. inputsmust contain between 1 and 1,000 items.- All inputs in a batch use the same splitter version and override config.
- Raw text input (
FileFromText) is not supported for split runs. Use a URL or file ID.
- Webhooks (recommended): Subscribe to
-
-