Package ai.extend

Class ExtendClient


  • public class ExtendClient
    extends java.lang.Object
    • Field Detail

      • 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.