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.
Assert the agent invoked a tool matching
namewhose INPUT satisfiesinputMatcher— a tool-ARGUMENT invariant (DeepEval-style). Asserts not just that a tool ran but with what args, e.g. anEditthat targeted the right file:assertToolUsedWith(r, "Edit", (i) => (i as { file_path?: string }) .file_path === "src/x.ts"). Needstranscript.