Class ExtendClient
- java.lang.Object
-
- ai.extend.ExtendClient
-
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<BatchWorkflowRunClient>batchWorkflowRunClientprotected ClientOptionsclientOptionsprotected java.util.function.Supplier<EditClient>editClientprotected java.util.function.Supplier<EvaluationSetClient>evaluationSetClientprotected java.util.function.Supplier<EvaluationSetItemClient>evaluationSetItemClientprotected java.util.function.Supplier<FileClient>fileClientprotected java.util.function.Supplier<ParserRunClient>parserRunClientprotected java.util.function.Supplier<ProcessorClient>processorClientprotected java.util.function.Supplier<ProcessorRunClient>processorRunClientprotected java.util.function.Supplier<ProcessorVersionClient>processorVersionClientprotected java.util.function.Supplier<WorkflowClient>workflowClientprotected java.util.function.Supplier<WorkflowRunClient>workflowRunClientprotected java.util.function.Supplier<WorkflowRunOutputClient>workflowRunOutputClient
-
Constructor Summary
Constructors Constructor Description ExtendClient(ClientOptions clientOptions)
-
Method Summary
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
workflowRunClient
protected final java.util.function.Supplier<WorkflowRunClient> workflowRunClient
-
batchWorkflowRunClient
protected final java.util.function.Supplier<BatchWorkflowRunClient> batchWorkflowRunClient
-
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
-
parserRunClient
protected final java.util.function.Supplier<ParserRunClient> parserRunClient
-
editClient
protected final java.util.function.Supplier<EditClient> editClient
-
fileClient
protected final java.util.function.Supplier<FileClient> fileClient
-
evaluationSetClient
protected final java.util.function.Supplier<EvaluationSetClient> evaluationSetClient
-
evaluationSetItemClient
protected final java.util.function.Supplier<EvaluationSetItemClient> evaluationSetItemClient
-
workflowRunOutputClient
protected final java.util.function.Supplier<WorkflowRunOutputClient> workflowRunOutputClient
-
batchProcessorRunClient
protected final java.util.function.Supplier<BatchProcessorRunClient> batchProcessorRunClient
-
workflowClient
protected final java.util.function.Supplier<WorkflowClient> workflowClient
-
-
Constructor Detail
-
ExtendClient
public ExtendClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawExtendClient withRawResponse()
Get responses with HTTP metadata like headers
-
parse
public ParserRun parse(ParseRequest request)
Parse files to get cleaned, chunked target content (e.g. markdown).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 ParserRun parse(ParseRequest request, RequestOptions requestOptions)
Parse files to get cleaned, chunked target content (e.g. markdown).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.
-
parseAsync
public ParserRunStatus parseAsync(ParseAsyncRequest request)
Parse files asynchronously to get cleaned, chunked target content (e.g. markdown).The Parse Async 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.
Parse files asynchronously and get a parser run ID that can be used to check status and retrieve results with the Get Parser Run endpoint.
This is useful for:
- Large files that may take longer to process
- Avoiding timeout issues with synchronous parsing.
For more details, see the Parse File guide.
-
parseAsync
public ParserRunStatus parseAsync(ParseAsyncRequest request, RequestOptions requestOptions)
Parse files asynchronously to get cleaned, chunked target content (e.g. markdown).The Parse Async 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.
Parse files asynchronously and get a parser run ID that can be used to check status and retrieve results with the Get Parser Run endpoint.
This is useful for:
- Large files that may take longer to process
- Avoiding timeout issues with synchronous parsing.
For more details, see the Parse File guide.
-
workflowRun
public WorkflowRunClient workflowRun()
-
batchWorkflowRun
public BatchWorkflowRunClient batchWorkflowRun()
-
processorRun
public ProcessorRunClient processorRun()
-
processor
public ProcessorClient processor()
-
processorVersion
public ProcessorVersionClient processorVersion()
-
parserRun
public ParserRunClient parserRun()
-
edit
public EditClient edit()
-
file
public FileClient file()
-
evaluationSet
public EvaluationSetClient evaluationSet()
-
evaluationSetItem
public EvaluationSetItemClient evaluationSetItem()
-
workflowRunOutput
public WorkflowRunOutputClient workflowRunOutput()
-
batchProcessorRun
public BatchProcessorRunClient batchProcessorRun()
-
workflow
public WorkflowClient workflow()
-
builder
public static ExtendClientBuilder builder()
-
-