@archastro/sdk
    Preparing search index...

    Interface Extraction

    An extraction job: yields text from a document or website into a destination namespace, without committing knowledge to an agent.

    interface Extraction {
        agent?: string;
        byte_count?: number;
        created_at?: string;
        destination?: Record<string, unknown>;
        failure_reason?:
            | "fetch_failed"
            | "unsupported_content"
            | "extraction_failed"
            | "timeout"
            | "internal_error";
        file?: string;
        id: string;
        kind?: "document"
        | "link"
        | "site";
        org?: string;
        output_count?: number;
        outputs?: ExtractionOutput[];
        state?: "done" | "pending" | "failed" | "running";
        updated_at?: string;
        url?: string;
    }
    Index

    Properties

    agent?: string

    Owning agent (agt_...); null when not agent-scoped.

    byte_count?: number

    Total bytes across produced storage files (a derived aggregate).

    created_at?: string

    When the extraction was created (ISO 8601).

    destination?: Record<string, unknown>

    Where outputs were written: { kind, path_prefix }.

    failure_reason?:
        | "fetch_failed"
        | "unsupported_content"
        | "extraction_failed"
        | "timeout"
        | "internal_error"

    Failure category when state is failed; null otherwise.

    file?: string

    Source file (fil_...) for document extraction; null for link/site.

    id: string

    Extraction ID (ext_...).

    kind?: "document" | "link" | "site"

    What is being extracted.

    org?: string

    Owning organization (org_...).

    output_count?: number

    Number of produced output files (a derived aggregate).

    outputs?: ExtractionOutput[]

    Produced output files; populated only when the association is preloaded.

    state?: "done" | "pending" | "failed" | "running"

    Lifecycle state of the extraction job.

    updated_at?: string

    When the extraction was last updated (ISO 8601).

    url?: string

    Source URL for link/site extraction; null for document.