vigiles API reference
    Preparing search index...

    Function assertToolUsedWith

    • Assert the agent invoked a tool matching name whose INPUT satisfies inputMatcher — a tool-ARGUMENT invariant (DeepEval-style). Asserts not just that a tool ran but with what args, e.g. an Edit that targeted the right file: assertToolUsedWith(r, "Edit", (i) => (i as { file_path?: string }) .file_path === "src/x.ts"). Needs transcript.

      Parameters

      • trace: Trace
      • name: string | RegExp
      • inputMatcher: (input: unknown) => boolean
      • Optionalmessage: string

      Returns void