Skip to content

Interface: GenerateNegativesRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / GenerateNegativesRequest

Defined in: src/types/synthetic.ts:192

Request to generate enhanced negative examples for target sorts.

optional enableConstraintViolation?: boolean

Defined in: src/types/synthetic.ts:199

Whether to violate each declared feature constraint — enum, range, pattern, maximum cardinality — one negative per constraint, each naming the constraint in NegativeExampleDto.violatedConstraint (default: true).


optional enableCrossSortConfusion?: boolean

Defined in: src/types/synthetic.ts:201

Whether to use cross-sort confusion strategy (default: true).


optional enableFeaturePerturbation?: boolean

Defined in: src/types/synthetic.ts:203

Whether to use feature perturbation strategy (default: true).


optional enableSortIncompatibility?: boolean

Defined in: src/types/synthetic.ts:205

Whether to use sort incompatibility strategy (default: true).


optional maxPerSort?: number | null

Defined in: src/types/synthetic.ts:207

Maximum negatives per sort (default: 5).


optional seed?: number | null

Defined in: src/types/synthetic.ts:209

Random seed for reproducibility (default: 42).


targetSorts: string[]

Defined in: src/types/synthetic.ts:211

Target sort IDs to generate negatives for.