StructuredOutputJudgeConfig
Configuration for the deterministic structured-output judge.
Example
Section titled “Example”const judge = StructuredOutputJudge({ match: "fuzzy", fuzzyOptions: { caseInsensitive: true },});Extends
Section titled “Extends”StructuredOutputScorerConfig
Properties
Section titled “Properties”allowExtras?
Section titled “allowExtras?”
optionalallowExtras?:boolean
Allow actual output/tool calls to contain extra fields or calls.
Inherited from
Section titled “Inherited from”StructuredOutputScorerConfig.allowExtras
debug?
Section titled “debug?”
optionaldebug?:boolean
Emit matcher debug details to the console.
Inherited from
Section titled “Inherited from”StructuredOutputScorerConfig.debug
errorField?
Section titled “errorField?”
optionalerrorField?:string|null
Output field that indicates an error. Set to null to disable.
Inherited from
Section titled “Inherited from”StructuredOutputScorerConfig.errorField
fuzzyOptions?
Section titled “fuzzyOptions?”
optionalfuzzyOptions?:FuzzyMatchOptions
Options used when match is "fuzzy".
Inherited from
Section titled “Inherited from”StructuredOutputScorerConfig.fuzzyOptions
match?
Section titled “match?”
optionalmatch?:MatchStrategy
Field matching strategy used for expected structured output values.
Inherited from
Section titled “Inherited from”StructuredOutputScorerConfig.match
requireAll?
Section titled “requireAll?”
optionalrequireAll?:boolean
Require every expected field or tool to match.
Inherited from
Section titled “Inherited from”StructuredOutputScorerConfig.requireAll