Skip to content

Interface: ConversationAnswerFeedbackRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ConversationAnswerFeedbackRequest

Interface: ConversationAnswerFeedbackRequest

Section titled “Interface: ConversationAnswerFeedbackRequest”

Defined in: src/types/conversation.ts:995

Body of POST /api/v1/conversation/{id}/feedback.

One rating per turn: rating the same turn again replaces the earlier rating in full. correction and comment are each at most 10,000 bytes (UTF-8). The engine refuses an unknown key with 422. Serialized to snake_case on the wire (turn_id).

// `turnId` is the `turnId` of a `sendMessage` response.
const request: ConversationAnswerFeedbackRequest = {
turnId,
rating: -1,
correction: 'Alice has two keys, not one.',
};

optional comment?: string

Defined in: src/types/conversation.ts:997

A remark on the answer (at most 10,000 bytes).


optional correction?: string

Defined in: src/types/conversation.ts:999

What the answer should have been (at most 10,000 bytes).


rating: AnswerRating

Defined in: src/types/conversation.ts:1001

The rating.


turnId: string

Defined in: src/types/conversation.ts:1006

The assistant turn to rate: turnId of a sendMessage response, or the id of an assistant turn from getTurns.