langchain.js
    Preparing search index...

    Interface ClientConfig

    interface ClientConfig {
        anonymizer?: (values: KVMap) => KVMap | Promise<KVMap>;
        apiKey?: string;
        apiUrl?: string;
        autoBatchTracing?: boolean;
        batchSizeBytesLimit?: number;
        batchSizeLimit?: number;
        blockOnRootRunFinalization?: boolean;
        callerOptions?: AsyncCallerParams;
        debug?: boolean;
        fetchImplementation?: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        fetchOptions?: RequestInit;
        hideInputs?: boolean
        | ((inputs: KVMap) => KVMap | Promise<KVMap>);
        hideOutputs?: boolean | ((outputs: KVMap) => KVMap | Promise<KVMap>);
        manualFlushMode?: boolean;
        timeout_ms?: number;
        traceBatchConcurrency?: number;
        tracingSamplingRate?: number;
        webUrl?: string;
        workspaceId?: string;
    }
    Index

    Properties

    anonymizer?: (values: KVMap) => KVMap | Promise<KVMap>
    apiKey?: string
    apiUrl?: string
    autoBatchTracing?: boolean
    batchSizeBytesLimit?: number

    Maximum size of a batch of runs in bytes.

    batchSizeLimit?: number

    Maximum number of operations to batch in a single request.

    blockOnRootRunFinalization?: boolean
    callerOptions?: AsyncCallerParams
    debug?: boolean

    Enable debug mode for the client. If set, all sent HTTP requests will be logged.

    fetchImplementation?: {
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    Custom fetch implementation. Useful for testing.

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | Request | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | Request | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    fetchOptions?: RequestInit
    hideInputs?: boolean | ((inputs: KVMap) => KVMap | Promise<KVMap>)
    hideOutputs?: boolean | ((outputs: KVMap) => KVMap | Promise<KVMap>)
    manualFlushMode?: boolean

    Whether to require manual .flush() calls before sending traces. Useful if encountering network rate limits at trace high volumes.

    timeout_ms?: number
    traceBatchConcurrency?: number
    tracingSamplingRate?: number
    webUrl?: string
    workspaceId?: string

    The workspace ID. Required for org-scoped API keys.