Skip to content

Interface: LearnFromCorrectionRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Cognitive / LearnFromCorrectionRequest

Interface: LearnFromCorrectionRequest

Defined in: src/types/cognitive.ts:760

Request to learn from a user correction with an explicit pattern.

Remarks

Unlike provideFeedback which accepts natural language corrections, this endpoint accepts a structured correction pattern directly as Psi-term features.

Properties

agentId

agentId: string

Defined in: src/types/cognitive.ts:762

Agent ID (UUID).


correctPattern

correctPattern: Record<string, JsonValue>

Defined in: src/types/cognitive.ts:768

The correct answer pattern (as Psi-term features, raw JSON values).


correctSort?

optional correctSort: string | null

Defined in: src/types/cognitive.ts:770

Optional: The sort of the correct answer.


resultId

resultId: string

Defined in: src/types/cognitive.ts:766

The result that was incorrect (UUID).


tenantId

tenantId: string

Defined in: src/types/cognitive.ts:764

Tenant ID (UUID).