Skip to content

Interface: LearnFromCorrectionRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / LearnFromCorrectionRequest

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

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

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

agentId: string

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

Agent ID (UUID).


correctPattern: Record<string, JsonValue>

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

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


optional correctSort?: string | null

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

Optional: The sort of the correct answer.


resultId: string

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

The result that was incorrect (UUID).


tenantId: string

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

Tenant ID (UUID).