ToolCallJudge
ToolCallJudge(
config?):Judge<ToolCallJudgeOptions>
Creates a deterministic judge that checks expected tool calls.
Parameters
Section titled “Parameters”config?
Section titled “config?”ToolCallJudgeConfig = {}
Matching behavior shared by every assessment from this judge.
Returns
Section titled “Returns”Example
Section titled “Example”describeEval("refund agent", { harness: refundHarness, judges: [ToolCallJudge({ ordered: true })],}, (it) => { it("creates a refund after lookup", async ({ run }) => { await run("Refund invoice inv_123", { metadata: { expectedTools: ["lookupInvoice", "createRefund"], }, }); });});