Package ai.extend

Class AsyncExtendClient


  • public class AsyncExtendClient
    extends java.lang.Object
    • 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<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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.