Class RawExtendClientBase
- java.lang.Object
-
- ai.extend.RawExtendClientBase
-
- Direct Known Subclasses:
RawExtendClient
public class RawExtendClientBase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawExtendClientBase(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendClientBaseHttpResponse<ClassifyRun>classify(ClassifyRequest request)Classify a document synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<ClassifyRun>classify(ClassifyRequest request, RequestOptions requestOptions)Classify a document synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<FormDetectionRun>detectForm(DetectFormRequest request)Detect fields in a PDF form and wait for the generated edit schema before returning.ExtendClientBaseHttpResponse<FormDetectionRun>detectForm(DetectFormRequest request, RequestOptions requestOptions)Detect fields in a PDF form and wait for the generated edit schema before returning.ExtendClientBaseHttpResponse<EditRun>edit(EditRequest request)Edit a file synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<EditRun>edit(EditRequest request, RequestOptions requestOptions)Edit a file synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<ExtractRun>extract()Extract structured data from a file synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<ExtractRun>extract(RequestOptions requestOptions)Extract structured data from a file synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<ExtractRun>extract(ExtractRequest request)Extract structured data from a file synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<ExtractRun>extract(ExtractRequest request, RequestOptions requestOptions)Extract structured data from a file synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<ParseRun>parse(ParseRequest request)Parse a file synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<ParseRun>parse(ParseRequest request, RequestOptions requestOptions)Parse a file synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<SplitRun>split(SplitRequest request)Split a document synchronously, waiting for the result before returning.ExtendClientBaseHttpResponse<SplitRun>split(SplitRequest request, RequestOptions requestOptions)Split a document synchronously, waiting for the result before returning.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawExtendClientBase
public RawExtendClientBase(ClientOptions clientOptions)
-
-
Method Detail
-
parse
public ExtendClientBaseHttpResponse<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 ExtendClientBaseHttpResponse<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 ExtendClientBaseHttpResponse<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. See Editing Error Handling for HTTP errors and run failure reasons.
-
edit
public ExtendClientBaseHttpResponse<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. See Editing Error Handling for HTTP errors and run failure reasons.
-
detectForm
public ExtendClientBaseHttpResponse<FormDetectionRun> detectForm(DetectFormRequest request)
Detect fields in a PDF form and wait for the generated edit schema before returning. This endpoint has a 5-minute timeout.For production workloads, use
POST /form_detection_runsand pollGET /form_detection_runs/{id}instead. The response is a completedform_detection_run; itsoutput.schemacan be passed directly toPOST /editorPOST /edit_runs.
-
detectForm
public ExtendClientBaseHttpResponse<FormDetectionRun> detectForm(DetectFormRequest request, RequestOptions requestOptions)
Detect fields in a PDF form and wait for the generated edit schema before returning. This endpoint has a 5-minute timeout.For production workloads, use
POST /form_detection_runsand pollGET /form_detection_runs/{id}instead. The response is a completedform_detection_run; itsoutput.schemacan be passed directly toPOST /editorPOST /edit_runs.
-
extract
public ExtendClientBaseHttpResponse<ExtractRun> extract()
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.
Pass
filefor a single document, orpackageto extract from multiple files in a single run. Exactly one offileorpackagemust be provided.For more details, see the Extract File guide.
-
extract
public ExtendClientBaseHttpResponse<ExtractRun> extract(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.
Pass
filefor a single document, orpackageto extract from multiple files in a single run. Exactly one offileorpackagemust be provided.For more details, see the Extract File guide.
-
extract
public ExtendClientBaseHttpResponse<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.
Pass
filefor a single document, orpackageto extract from multiple files in a single run. Exactly one offileorpackagemust be provided.For more details, see the Extract File guide.
-
extract
public ExtendClientBaseHttpResponse<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.
Pass
filefor a single document, orpackageto extract from multiple files in a single run. Exactly one offileorpackagemust be provided.For more details, see the Extract File guide.
-
classify
public ExtendClientBaseHttpResponse<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 ExtendClientBaseHttpResponse<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 ExtendClientBaseHttpResponse<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 ExtendClientBaseHttpResponse<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.
-
-