weaviate-client
    Preparing search index...

    Type Alias Context<TMedia>

    type Context<TMedia> = {
        agentMaker?: (secure: boolean) => Agent | undefined;
        toBase64FromMedia: ToBase64FromMedia<TMedia>;
        transportsMaker: TransportsMaker;
    }

    Type Parameters

    • TMedia
    Index

    Properties

    agentMaker?: (secure: boolean) => Agent | undefined

    Creates the HTTP(S) keep-alive agent for the REST/GraphQL connection. Supplied by the Node shim (@weaviate/node); omitted by the browser shim (@weaviate/web) so no Node http/https builtins are pulled into the browser bundle. When undefined, fetch runs without a custom agent.

    toBase64FromMedia: ToBase64FromMedia<TMedia>
    transportsMaker: TransportsMaker