langchain.js
    Preparing search index...

    Interface MergeDictsOptions

    Options for controlling merge behavior in _mergeDicts.

    interface MergeDictsOptions {
        ignoreKeys?: readonly string[];
    }
    Index

    Properties

    Properties

    ignoreKeys?: readonly string[]

    Keys to ignore during merging. When a key is in this list:

    • For numeric values: the original value is preserved (not summed)
    • For string values: the original value is preserved (not concatenated)

    Defaults to DEFAULT_MERGE_IGNORE_KEYS which includes 'index', 'created', 'timestamp'.

    // Extend defaults with custom keys
    { ignoreKeys: [...DEFAULT_MERGE_IGNORE_KEYS, 'role', 'customField'] }