Class AsyncExtendClient
- java.lang.Object
-
- ai.extend.AsyncExtendClient
-
public class AsyncExtendClient extends java.lang.Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AsyncExtendClient(ClientOptions clientOptions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncBatchProcessorRunClientbatchProcessorRun()AsyncBatchRunsClientbatchRuns()static AsyncExtendClientBuilderbuilder()AsyncClassifiersClientclassifiers()AsyncClassifierVersionsClientclassifierVersions()java.util.concurrent.CompletableFuture<ClassifyRun>classify(ClassifyRequest request)Classify a document synchronously, waiting for the result before returning.java.util.concurrent.CompletableFuture<ClassifyRun>classify(ClassifyRequest request, RequestOptions requestOptions)Classify a document synchronously, waiting for the result before returning.AsyncClassifyRunsClientclassifyRuns()java.util.concurrent.CompletableFuture<EditRun>edit(EditRequest request)Edit a file synchronously, waiting for the result before returning.java.util.concurrent.CompletableFuture<EditRun>edit(EditRequest request, RequestOptions requestOptions)Edit a file synchronously, waiting for the result before returning.AsyncEditRunsClienteditRuns()AsyncEditSchemasClienteditSchemas()AsyncEditTemplatesClienteditTemplates()AsyncEvaluationSetItemsClientevaluationSetItems()AsyncEvaluationSetRunsClientevaluationSetRuns()AsyncEvaluationSetsClientevaluationSets()java.util.concurrent.CompletableFuture<ExtractRun>extract(ExtractRequest request)Extract structured data from a file synchronously, waiting for the result before returning.java.util.concurrent.CompletableFuture<ExtractRun>extract(ExtractRequest request, RequestOptions requestOptions)Extract structured data from a file synchronously, waiting for the result before returning.AsyncExtractorsClientextractors()AsyncExtractorVersionsClientextractorVersions()AsyncExtractRunsClientextractRuns()AsyncFilesClientfiles()java.util.concurrent.CompletableFuture<ParseRun>parse(ParseRequest request)Parse a file synchronously, waiting for the result before returning.java.util.concurrent.CompletableFuture<ParseRun>parse(ParseRequest request, RequestOptions requestOptions)Parse a file synchronously, waiting for the result before returning.AsyncParseRunsClientparseRuns()AsyncProcessorClientprocessor()AsyncProcessorRunClientprocessorRun()AsyncProcessorVersionClientprocessorVersion()java.util.concurrent.CompletableFuture<SplitRun>split(SplitRequest request)Split a document synchronously, waiting for the result before returning.java.util.concurrent.CompletableFuture<SplitRun>split(SplitRequest request, RequestOptions requestOptions)Split a document synchronously, waiting for the result before returning.AsyncSplitRunsClientsplitRuns()AsyncSplittersClientsplitters()AsyncSplitterVersionsClientsplitterVersions()AsyncWebhookEndpointsClientwebhookEndpoints()AsyncWebhookSubscriptionsClientwebhookSubscriptions()AsyncRawExtendClientwithRawResponse()Get responses with HTTP metadata like headersAsyncWorkflowRunsClientworkflowRuns()AsyncWorkflowsClientworkflows()AsyncWorkflowVersionsClientworkflowVersions()
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
filesClient
protected final java.util.function.Supplier<AsyncFilesClient> filesClient
-
parseRunsClient
protected final java.util.function.Supplier<AsyncParseRunsClient> parseRunsClient
-
editRunsClient
protected final java.util.function.Supplier<AsyncEditRunsClient> editRunsClient
-
editTemplatesClient
protected final java.util.function.Supplier<AsyncEditTemplatesClient> editTemplatesClient
-
editSchemasClient
protected final java.util.function.Supplier<AsyncEditSchemasClient> editSchemasClient
-
extractRunsClient
protected final java.util.function.Supplier<AsyncExtractRunsClient> extractRunsClient
-
extractorsClient
protected final java.util.function.Supplier<AsyncExtractorsClient> extractorsClient
-
extractorVersionsClient
protected final java.util.function.Supplier<AsyncExtractorVersionsClient> extractorVersionsClient
-
classifyRunsClient
protected final java.util.function.Supplier<AsyncClassifyRunsClient> classifyRunsClient
-
classifiersClient
protected final java.util.function.Supplier<AsyncClassifiersClient> classifiersClient
-
classifierVersionsClient
protected final java.util.function.Supplier<AsyncClassifierVersionsClient> classifierVersionsClient
-
splitRunsClient
protected final java.util.function.Supplier<AsyncSplitRunsClient> splitRunsClient
-
splittersClient
protected final java.util.function.Supplier<AsyncSplittersClient> splittersClient
-
splitterVersionsClient
protected final java.util.function.Supplier<AsyncSplitterVersionsClient> splitterVersionsClient
-
workflowsClient
protected final java.util.function.Supplier<AsyncWorkflowsClient> workflowsClient
-
workflowVersionsClient
protected final java.util.function.Supplier<AsyncWorkflowVersionsClient> workflowVersionsClient
-
workflowRunsClient
protected final java.util.function.Supplier<AsyncWorkflowRunsClient> workflowRunsClient
-
processorRunClient
protected final java.util.function.Supplier<AsyncProcessorRunClient> processorRunClient
-
processorClient
protected final java.util.function.Supplier<AsyncProcessorClient> processorClient
-
processorVersionClient
protected final java.util.function.Supplier<AsyncProcessorVersionClient> processorVersionClient
-
batchProcessorRunClient
protected final java.util.function.Supplier<AsyncBatchProcessorRunClient> batchProcessorRunClient
-
batchRunsClient
protected final java.util.function.Supplier<AsyncBatchRunsClient> batchRunsClient
-
evaluationSetsClient
protected final java.util.function.Supplier<AsyncEvaluationSetsClient> evaluationSetsClient
-
evaluationSetItemsClient
protected final java.util.function.Supplier<AsyncEvaluationSetItemsClient> evaluationSetItemsClient
-
evaluationSetRunsClient
protected final java.util.function.Supplier<AsyncEvaluationSetRunsClient> evaluationSetRunsClient
-
webhookEndpointsClient
protected final java.util.function.Supplier<AsyncWebhookEndpointsClient> webhookEndpointsClient
-
webhookSubscriptionsClient
protected final java.util.function.Supplier<AsyncWebhookSubscriptionsClient> webhookSubscriptionsClient
-
-
Constructor Detail
-
AsyncExtendClient
public AsyncExtendClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawExtendClient withRawResponse()
Get responses with HTTP metadata like headers
-
parse
public java.util.concurrent.CompletableFuture<ParseRun> parse(ParseRequest request)
Parse a file synchronously, waiting for the result before returning. This endpoint has a 5-minute timeout — if processing takes longer, the request will fail.Note: This endpoint is intended for onboarding and testing only. For production workloads, use
POST /parse_runswith polling or webhooks instead, as it provides better reliability for large files and avoids timeout issues.The Parse endpoint allows you to convert documents into structured, machine-readable formats with fine-grained control over the parsing process. This endpoint is ideal for extracting cleaned document content to be used as context for downstream processing, e.g. RAG pipelines, custom ingestion pipelines, embeddings classification, etc.
For more details, see the Parse File guide.
-
parse
public java.util.concurrent.CompletableFuture<ParseRun> parse(ParseRequest request, RequestOptions requestOptions)
Parse a file synchronously, waiting for the result before returning. This endpoint has a 5-minute timeout — if processing takes longer, the request will fail.Note: This endpoint is intended for onboarding and testing only. For production workloads, use
POST /parse_runswith polling or webhooks instead, as it provides better reliability for large files and avoids timeout issues.The Parse endpoint allows you to convert documents into structured, machine-readable formats with fine-grained control over the parsing process. This endpoint is ideal for extracting cleaned document content to be used as context for downstream processing, e.g. RAG pipelines, custom ingestion pipelines, embeddings classification, etc.
For more details, see the Parse File guide.
-
edit
public java.util.concurrent.CompletableFuture<EditRun> edit(EditRequest request)
Edit a file synchronously, waiting for the result before returning. This endpoint has a 5-minute timeout — if processing takes longer, the request will fail.Note: This endpoint is intended for onboarding and testing only. For production workloads, use
POST /edit_runswith polling or webhooks instead, as it provides better reliability for large files and avoids timeout issues.The Edit endpoint allows you to detect and fill form fields in PDF documents.
For more details, see the Edit File guide.
-
edit
public java.util.concurrent.CompletableFuture<EditRun> edit(EditRequest request, RequestOptions requestOptions)
Edit a file synchronously, waiting for the result before returning. This endpoint has a 5-minute timeout — if processing takes longer, the request will fail.Note: This endpoint is intended for onboarding and testing only. For production workloads, use
POST /edit_runswith polling or webhooks instead, as it provides better reliability for large files and avoids timeout issues.The Edit endpoint allows you to detect and fill form fields in PDF documents.
For more details, see the Edit File guide.
-
extract
public java.util.concurrent.CompletableFuture<ExtractRun> extract(ExtractRequest request)
Extract structured data from a file synchronously, waiting for the result before returning. This endpoint has a 5-minute timeout — if processing takes longer, the request will fail.Note: This endpoint is intended for onboarding and testing only. For production workloads, use
POST /extract_runswith polling or webhooks instead, as it provides better reliability for large files and avoids timeout issues.The Extract endpoint allows you to extract structured data from files using an existing extractor, an inline configuration, or no configuration at all. When neither is provided, Extend automatically infers a schema from the document before extraction — no extractor or schema is required.
For more details, see the Extract File guide.
-
extract
public java.util.concurrent.CompletableFuture<ExtractRun> extract(ExtractRequest request, RequestOptions requestOptions)
Extract structured data from a file synchronously, waiting for the result before returning. This endpoint has a 5-minute timeout — if processing takes longer, the request will fail.Note: This endpoint is intended for onboarding and testing only. For production workloads, use
POST /extract_runswith polling or webhooks instead, as it provides better reliability for large files and avoids timeout issues.The Extract endpoint allows you to extract structured data from files using an existing extractor, an inline configuration, or no configuration at all. When neither is provided, Extend automatically infers a schema from the document before extraction — no extractor or schema is required.
For more details, see the Extract File guide.
-
classify
public java.util.concurrent.CompletableFuture<ClassifyRun> classify(ClassifyRequest request)
Classify a document synchronously, waiting for the result before returning. This endpoint has a 5-minute timeout — if processing takes longer, the request will fail.Note: This endpoint is intended for onboarding and testing only. For production workloads, use
POST /classify_runswith polling or webhooks instead, as it provides better reliability for large files and avoids timeout issues.The Classify endpoint allows you to classify documents using an existing classifier or an inline configuration.
For more details, see the Classify File guide.
-
classify
public java.util.concurrent.CompletableFuture<ClassifyRun> classify(ClassifyRequest request, RequestOptions requestOptions)
Classify a document synchronously, waiting for the result before returning. This endpoint has a 5-minute timeout — if processing takes longer, the request will fail.Note: This endpoint is intended for onboarding and testing only. For production workloads, use
POST /classify_runswith polling or webhooks instead, as it provides better reliability for large files and avoids timeout issues.The Classify endpoint allows you to classify documents using an existing classifier or an inline configuration.
For more details, see the Classify File guide.
-
split
public java.util.concurrent.CompletableFuture<SplitRun> split(SplitRequest request)
Split a document synchronously, waiting for the result before returning. This endpoint has a 5-minute timeout — if processing takes longer, the request will fail.Note: This endpoint is intended for onboarding and testing only. For production workloads, use
POST /split_runswith polling or webhooks instead, as it provides better reliability for large files and avoids timeout issues.The Split endpoint allows you to split documents into multiple parts using an existing splitter or an inline configuration.
For more details, see the Split File guide.
-
split
public java.util.concurrent.CompletableFuture<SplitRun> split(SplitRequest request, RequestOptions requestOptions)
Split a document synchronously, waiting for the result before returning. This endpoint has a 5-minute timeout — if processing takes longer, the request will fail.Note: This endpoint is intended for onboarding and testing only. For production workloads, use
POST /split_runswith polling or webhooks instead, as it provides better reliability for large files and avoids timeout issues.The Split endpoint allows you to split documents into multiple parts using an existing splitter or an inline configuration.
For more details, see the Split File guide.
-
files
public AsyncFilesClient files()
-
parseRuns
public AsyncParseRunsClient parseRuns()
-
editRuns
public AsyncEditRunsClient editRuns()
-
editTemplates
public AsyncEditTemplatesClient editTemplates()
-
editSchemas
public AsyncEditSchemasClient editSchemas()
-
extractRuns
public AsyncExtractRunsClient extractRuns()
-
extractors
public AsyncExtractorsClient extractors()
-
extractorVersions
public AsyncExtractorVersionsClient extractorVersions()
-
classifyRuns
public AsyncClassifyRunsClient classifyRuns()
-
classifiers
public AsyncClassifiersClient classifiers()
-
classifierVersions
public AsyncClassifierVersionsClient classifierVersions()
-
splitRuns
public AsyncSplitRunsClient splitRuns()
-
splitters
public AsyncSplittersClient splitters()
-
splitterVersions
public AsyncSplitterVersionsClient splitterVersions()
-
workflows
public AsyncWorkflowsClient workflows()
-
workflowVersions
public AsyncWorkflowVersionsClient workflowVersions()
-
workflowRuns
public AsyncWorkflowRunsClient workflowRuns()
-
processorRun
public AsyncProcessorRunClient processorRun()
-
processor
public AsyncProcessorClient processor()
-
processorVersion
public AsyncProcessorVersionClient processorVersion()
-
batchProcessorRun
public AsyncBatchProcessorRunClient batchProcessorRun()
-
batchRuns
public AsyncBatchRunsClient batchRuns()
-
evaluationSets
public AsyncEvaluationSetsClient evaluationSets()
-
evaluationSetItems
public AsyncEvaluationSetItemsClient evaluationSetItems()
-
evaluationSetRuns
public AsyncEvaluationSetRunsClient evaluationSetRuns()
-
webhookEndpoints
public AsyncWebhookEndpointsClient webhookEndpoints()
-
webhookSubscriptions
public AsyncWebhookSubscriptionsClient webhookSubscriptions()
-
builder
public static AsyncExtendClientBuilder builder()
-
-