Skip to content

Interface: NegativeExampleDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / NegativeExampleDto

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

A generated negative training example with provenance.

explanation: string

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

Human-readable explanation of why this is negative.


optional features?: Record<string, unknown>

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

The negative’s features, verbatim as the engine sent them (keys are the user’s feature names).


rejectionReason: string

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

The rejection reason category.


optional sort?: string

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

The negative’s sort, by name — present once the engine reports the record itself, so a caller can dry-run it against the write checks.


sortId: string

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

The sort this negative was generated against.


strategy: string

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

The strategy used to generate this negative.


termId: string

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

The term ID of the negative example.


optional violatedConstraint?: ViolatedConstraintDto

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

The declared constraint this negative violates — present on a negative of strategy ConstraintViolation, absent otherwise.


optional worldMode?: string

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

The world mode of the sort this negative targets: open (an undeclared feature is admitted, so no negative rests on one) or closed.