Member Junction
    Preparing search index...

    Agent-backed reasoning provider. Registered under the 'Agent' ReasoningMode.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Builds the Nunjucks/template data context for the shared "Duplicate Resolution" instruction set. Both providers feed the prompt the exact same shape, so this lives on the base class. Keys match the seeded template's variable names verbatim.

      Parameters

      Returns Record<string, unknown>

    • Coerces a JSON string or object into a plain record, else null.

      Parameters

      • raw: unknown

      Returns Record<string, unknown>

    • Render a field value for the prompt: the trimmed value, or '(empty)' for null/blank.

      Parameters

      • value: string

      Returns string

    • Clamps confidence into [0,1], returning null when absent/invalid. null (not 0) so a missing confidence isn't mistaken for "confidently NOT a duplicate" downstream.

      Parameters

      • value: unknown

      Returns number

    • Returns the survivor id string, or null when absent/empty.

      Parameters

      • value: unknown

      Returns string