vigiles API reference
    Preparing search index...

    Function requestContains

    • Did ANY request the model received contain needle — searching the system prompt and every message across all requests? The predicate that proves injected context reached the model: a SessionStart hook's additionalContext or a slash command's expansion. Harness tier only — the eval tier drives the real API, so its modelRequests (and this) is empty. Behind assertRequestContains.

      Parameters

      • trace: Trace
      • needle: string | RegExp

      Returns boolean