actrone-memory
    Preparing search index...

    Function parseFacts

    • Parse a model's JSON response into validated facts, defensively. Tolerates a bare array or a { facts: [...] } envelope, skips malformed entries, clamps oversize content, bounds the count, and never throws (bad JSON → []).

      Parameters

      • raw: string

      Returns ExtractedFact[]