Interface: ConversationAnswerFeedbackRequest
@kortexya/reasoninglayer / ConversationAnswerFeedbackRequest
Interface: ConversationAnswerFeedbackRequest
Section titled “Interface: ConversationAnswerFeedbackRequest”Defined in: src/types/conversation.ts:995
Body of POST /api/v1/conversation/{id}/feedback.
Remarks
Section titled “Remarks”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).
Example
Section titled “Example”// `turnId` is the `turnId` of a `sendMessage` response.const request: ConversationAnswerFeedbackRequest = { turnId, rating: -1, correction: 'Alice has two keys, not one.',};Properties
Section titled “Properties”comment?
Section titled “comment?”
optionalcomment?:string
Defined in: src/types/conversation.ts:997
A remark on the answer (at most 10,000 bytes).
correction?
Section titled “correction?”
optionalcorrection?:string
Defined in: src/types/conversation.ts:999
What the answer should have been (at most 10,000 bytes).
rating
Section titled “rating”rating:
AnswerRating
Defined in: src/types/conversation.ts:1001
The rating.
turnId
Section titled “turnId”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.