Interface: LearnFromCorrectionRequest
@kortexya/reasoninglayer / LearnFromCorrectionRequest
Interface: LearnFromCorrectionRequest
Section titled “Interface: LearnFromCorrectionRequest”Defined in: src/types/cognitive.ts:1006
Request to learn from a user correction with an explicit pattern.
Remarks
Section titled “Remarks”Unlike provideFeedback which accepts natural language corrections,
this endpoint accepts a structured correction pattern directly as
Psi-term features.
Properties
Section titled “Properties”agentId
Section titled “agentId”agentId:
string
Defined in: src/types/cognitive.ts:1008
Agent ID (UUID).
correctPattern
Section titled “correctPattern”correctPattern:
Record<string,JsonValue>
Defined in: src/types/cognitive.ts:1014
The correct answer pattern (as Psi-term features, raw JSON values).
correctSort?
Section titled “correctSort?”
optionalcorrectSort?:string|null
Defined in: src/types/cognitive.ts:1016
Optional: The sort of the correct answer.
resultId
Section titled “resultId”resultId:
string
Defined in: src/types/cognitive.ts:1012
The result that was incorrect (UUID).
tenantId
Section titled “tenantId”tenantId:
string
Defined in: src/types/cognitive.ts:1010
Tenant ID (UUID).