@squidcloud/client
    Preparing search index...

    Interface AiKnowledgeBaseFileContextRequest

    Request structure for adding file-based context to an AI agent.

    interface AiKnowledgeBaseFileContextRequest {
        contextId?: string;
        discardOriginalFile?: boolean;
        extractImages?: boolean;
        imageExtractionModel?: AiChatModelSelection;
        imageMinSizePixels?: number;
        metadata?: AiContextMetadata;
        options?: AiKnowledgeBaseContextFileOptions;
        preferredExtractionMethod?: DocumentExtractionMethod;
        type: "file";
    }

    Hierarchy (View Summary)

    Index

    Properties

    contextId?: string

    The id of the context. Optional: when omitted, the server generates one and rejects the upload if another context in the knowledge base already holds identical content (content-level dedup). Provide an explicit id to address a specific context — that overwrites it unconditionally and allows duplicate content across different ids.

    discardOriginalFile?: boolean

    Whether Squid keeps or discards the original file.

    Keeping the original file allows reprocessing and the ability for the user to download it later.

    Defaults to false.

    extractImages?: boolean

    Whether to extract images from the file; defaults to false.

    imageExtractionModel?: AiChatModelSelection

    The AI model to use for extraction, if specified.

    imageMinSizePixels?: number

    The minimum size for extracted images, if applicable.

    Optional metadata associated with the context item.

    General options for how to process the file.

    preferredExtractionMethod?: DocumentExtractionMethod

    The preferred method for extracting data from the document.

    type: "file"

    Specifies the context type as 'file'.