Skip to content

ToolCallJudgeConfig

Configuration for the deterministic tool-call judge.

const judge = ToolCallJudge({
ordered: true,
allowExtra: false,
});
  • ToolCallScorerConfig

optional allowExtras?: boolean

Allow actual output/tool calls to contain extra fields or calls.

ToolCallScorerConfig.allowExtras


optional debug?: boolean

Emit matcher debug details to the console.

ToolCallScorerConfig.debug


optional fuzzyOptions?: FuzzyMatchOptions

Options used when argument matching is fuzzy.

ToolCallScorerConfig.fuzzyOptions


optional ordered?: boolean

Require expected tools to appear in the configured order.

ToolCallScorerConfig.ordered


optional params?: MatchStrategy

Matching strategy for expected tool arguments.

ToolCallScorerConfig.params


optional requireAll?: boolean

Require every expected field or tool to match.

ToolCallScorerConfig.requireAll