Class ExtendClient
- java.lang.Object
-
- ai.extend.ExtendClient
-
- Direct Known Subclasses:
ExtendClientWrapper
public class ExtendClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Supplier<BatchProcessorRunClient>batchProcessorRunClientprotected java.util.function.Supplier<ClassifiersClient>classifiersClientprotected java.util.function.Supplier<ClassifierVersionsClient>classifierVersionsClientprotected java.util.function.Supplier<ClassifyRunsClient>classifyRunsClientprotected ClientOptionsclientOptionsprotected java.util.function.Supplier<EditRunsClient>editRunsClientprotected java.util.function.Supplier<EvaluationSetItemsClient>evaluationSetItemsClientprotected java.util.function.Supplier<EvaluationSetRunsClient>evaluationSetRunsClientprotected java.util.function.Supplier<EvaluationSetsClient>evaluationSetsClientprotected java.util.function.Supplier<ExtractorsClient>extractorsClientprotected java.util.function.Supplier<ExtractorVersionsClient>extractorVersionsClientprotected java.util.function.Supplier<ExtractRunsClient>extractRunsClientprotected java.util.function.Supplier<FilesClient>filesClientprotected java.util.function.Supplier<ParseRunsClient>parseRunsClientprotected java.util.function.Supplier<ProcessorClient>processorClientprotected java.util.function.Supplier<ProcessorRunClient>processorRunClientprotected java.util.function.Supplier<ProcessorVersionClient>processorVersionClientprotected java.util.function.Supplier<SplitRunsClient>splitRunsClientprotected java.util.function.Supplier<SplittersClient>splittersClientprotected java.util.function.Supplier<SplitterVersionsClient>splitterVersionsClientprotected java.util.function.Supplier<WebhookEndpointsClient>webhookEndpointsClientprotected java.util.function.Supplier<WebhookSubscriptionsClient>webhookSubscriptionsClientprotected java.util.function.Supplier<WorkflowRunsClient>workflowRunsClientprotected java.util.function.Supplier<WorkflowsClient>workflowsClient
-
Constructor Summary
Constructors Constructor Description ExtendClient(ClientOptions clientOptions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchProcessorRunClientbatchProcessorRun()static ExtendClientBuilderbuilder()ClassifiersClientclassifiers()ClassifierVersionsClientclassifierVersions()ClassifyRunclassify(ClassifyRequest request)Classify a document synchronously, waiting for the result before returning.ClassifyRunclassify(ClassifyRequest request, RequestOptions requestOptions)Classify a document synchronously, waiting for the result before returning.ClassifyRunsClientclassifyRuns()EditRunedit(EditRequest request)Edit a file synchronously, waiting for the result before returning.EditRunedit(EditRequest request, RequestOptions requestOptions)Edit a file synchronously, waiting for the result before returning.EditRunsClienteditRuns()EvaluationSetItemsClientevaluationSetItems()EvaluationSetRunsClientevaluationSetRuns()EvaluationSetsClientevaluationSets()ExtractRunextract(ExtractRequest request)Extract structured data from a file synchronously, waiting for the result before returning.ExtractRunextract(ExtractRequest request, RequestOptions requestOptions)Extract structured data from a file synchronously, waiting for the result before returning.ExtractorsClientextractors()ExtractorVersionsClientextractorVersions()ExtractRunsClientextractRuns()FilesClientfiles()ParseRunparse(ParseRequest request)Parse a file synchronously, waiting for the result before returning.ParseRunparse(ParseRequest request, RequestOptions requestOptions)Parse a file synchronously, waiting for the result before returning.ParseRunsClientparseRuns()ProcessorClientprocessor()ProcessorRunClientprocessorRun()ProcessorVersionClientprocessorVersion()SplitRunsplit(SplitRequest request)Split a document synchronously, waiting for the result before returning.SplitRunsplit(SplitRequest request, RequestOptions requestOptions)Split a document synchronously, waiting for the result before returning.SplitRunsClientsplitRuns()SplittersClientsplitters()SplitterVersionsClientsplitterVersions()WebhookEndpointsClientwebhookEndpoints()WebhookSubscriptionsClientwebhookSubscriptions()RawExtendClientwithRawResponse()Get responses with HTTP metadata like headersWorkflowRunsClientworkflowRuns()WorkflowsClientworkflows()
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
filesClient
protected final java.util.function.Supplier<FilesClient> filesClient
-
parseRunsClient
protected final java.util.function.Supplier<ParseRunsClient> parseRunsClient
-
editRunsClient
protected final java.util.function.Supplier<EditRunsClient> editRunsClient
-
extractRunsClient
protected final java.util.function.Supplier<ExtractRunsClient> extractRunsClient
-
extractorsClient
protected final java.util.function.Supplier<ExtractorsClient> extractorsClient
-
extractorVersionsClient
protected final java.util.function.Supplier<ExtractorVersionsClient> extractorVersionsClient
-
classifyRunsClient
protected final java.util.function.Supplier<ClassifyRunsClient> classifyRunsClient
-
classifiersClient
protected final java.util.function.Supplier<ClassifiersClient> classifiersClient
-
classifierVersionsClient
protected final java.util.function.Supplier<ClassifierVersionsClient> classifierVersionsClient
-
splitRunsClient
protected final java.util.function.Supplier<SplitRunsClient> splitRunsClient
-
splittersClient
protected final java.util.function.Supplier<SplittersClient> splittersClient
-
splitterVersionsClient
protected final java.util.function.Supplier<SplitterVersionsClient> splitterVersionsClient
-
workflowsClient
protected final java.util.function.Supplier<WorkflowsClient> workflowsClient
-
workflowRunsClient
protected final java.util.function.Supplier<WorkflowRunsClient> workflowRunsClient
-
processorRunClient
protected final java.util.function.Supplier<ProcessorRunClient> processorRunClient
-
processorClient
protected final java.util.function.Supplier<ProcessorClient> processorClient
-
processorVersionClient
protected final java.util.function.Supplier<ProcessorVersionClient> processorVersionClient
-
batchProcessorRunClient
protected final java.util.function.Supplier<BatchProcessorRunClient> batchProcessorRunClient
-
evaluationSetsClient
protected final java.util.function.Supplier<EvaluationSetsClient> evaluationSetsClient
-
evaluationSetItemsClient
protected final java.util.function.Supplier<EvaluationSetItemsClient> evaluationSetItemsClient
-
evaluationSetRunsClient
protected final java.util.function.Supplier<EvaluationSetRunsClient> evaluationSetRunsClient
-
webhookEndpointsClient
protected final java.util.function.Supplier<WebhookEndpointsClient> webhookEndpointsClient
-
webhookSubscriptionsClient
protected final java.util.function.Supplier<WebhookSubscriptionsClient> webhookSubscriptionsClient
-
-
Constructor Detail
-
ExtendClient
public ExtendClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawExtendClient withRawResponse()
Get responses with HTTP metadata like headers
-
parse
public 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 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 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 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 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 or an inline configuration.
For more details, see the Extract File guide.
-
extract
public 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 or an inline configuration.
For more details, see the Extract File guide.
-
classify
public 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 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 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 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 FilesClient files()
-
parseRuns
public ParseRunsClient parseRuns()
-
editRuns
public EditRunsClient editRuns()
-
extractRuns
public ExtractRunsClient extractRuns()
-
extractors
public ExtractorsClient extractors()
-
extractorVersions
public ExtractorVersionsClient extractorVersions()
-
classifyRuns
public ClassifyRunsClient classifyRuns()
-
classifiers
public ClassifiersClient classifiers()
-
classifierVersions
public ClassifierVersionsClient classifierVersions()
-
splitRuns
public SplitRunsClient splitRuns()
-
splitters
public SplittersClient splitters()
-
splitterVersions
public SplitterVersionsClient splitterVersions()
-
workflows
public WorkflowsClient workflows()
-
workflowRuns
public WorkflowRunsClient workflowRuns()
-
processorRun
public ProcessorRunClient processorRun()
-
processor
public ProcessorClient processor()
-
processorVersion
public ProcessorVersionClient processorVersion()
-
batchProcessorRun
public BatchProcessorRunClient batchProcessorRun()
-
evaluationSets
public EvaluationSetsClient evaluationSets()
-
evaluationSetItems
public EvaluationSetItemsClient evaluationSetItems()
-
evaluationSetRuns
public EvaluationSetRunsClient evaluationSetRuns()
-
webhookEndpoints
public WebhookEndpointsClient webhookEndpoints()
-
webhookSubscriptions
public WebhookSubscriptionsClient webhookSubscriptions()
-
builder
public static ExtendClientBuilder builder()
-
-