Skip to main content
Section ID: DOC-API-MODEL-schema-1iroqctqt1#overview

MessageFeedback

One user's feedback on an assistant-generated message.

kind must select a listed feedback representation. Requiredness and allowed values are declared separately.

Type-reference view: API Schema 9frhv4euve, API Schema 9ftjkkjhfa. Request and response views describe this type; they do not declare an endpoint.

Meaning and usage​

Section ID: DOC-API-MODEL-schema-1iroqctqt1#meaning

See the definition above.

Usage profiles​

Section ID: DOC-API-MODEL-schema-1iroqctqt1#fields

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

Section ID: DOC-API-MODEL-schema-1iroqctqt1#request

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1iroqctqt1#request-field-kindkindstring (FEEDBACK_KIND_THUMB, FEEDBACK_KIND_SCALE) or integer (int32) (0, 1)Required in requestsRating representation used to interpret the feedback value.
Section ID: DOC-API-MODEL-schema-1iroqctqt1#request-field-thumbupthumbUpbooleanOptionalPositive when true and negative when false; used for THUMB feedback.
Section ID: DOC-API-MODEL-schema-1iroqctqt1#request-field-ratingratingstring (int64)OptionalNumeric quality rating for SCALE feedback; the scale endpoints mean poor and excellent. Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1iroqctqt1#request-field-reasonreasonstringOptionalOptional explanation for the rating. Maximum length: 1000.
Section ID: DOC-API-MODEL-schema-1iroqctqt1#request-field-ratedatratedAtstring (date-time)OptionalTimestamp when feedback was submitted (server-set)
Section ID: DOC-API-MODEL-schema-1iroqctqt1#request-field-ratedbyratedBystringOptionalIdentifier of the user who submitted this feedback. Set by the server from the authenticated user identity; never client-supplied. Each user has one feedback entry per message.

Values of kind​

Section ID: DOC-API-MODEL-schema-1iroqctqt1#request-values-kind

Value scale used to interpret recorded feedback.

ValueNo.FormMeaning
FEEDBACK_KIND_THUMB0CanonicalSee meaning below.
FEEDBACK_KIND_SCALE1CanonicalSee meaning below.

FEEDBACK_KIND_THUMB

Binary positive or negative feedback, represented by a thumbs-up or thumbs-down choice.

binary thumbs up / down

FEEDBACK_KIND_SCALE

Feedback expressed as an integer rating from 1 through 10.

1-10 integer scale

Request validation​

Section ID: DOC-API-MODEL-schema-1iroqctqt1#request-validation

These rules apply when this value is supplied in a request. Request validation does not guarantee that response fields are present or satisfy the same rules.

Applies toRuleRequirement
kindRequired valuetrue
kindDefined enum valuetrue
ratingAt most10
ratingAt least0
reasonMaximum length1000

In responses​

Section ID: DOC-API-MODEL-schema-1iroqctqt1#response

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1iroqctqt1#field-kindSection ID: DOC-API-MODEL-schema-1iroqctqt1#response-field-kindkindstring (FEEDBACK_KIND_THUMB, FEEDBACK_KIND_SCALE) or integer (int32)Required in requestsRating representation used to interpret the feedback value.
Section ID: DOC-API-MODEL-schema-1iroqctqt1#field-thumbupSection ID: DOC-API-MODEL-schema-1iroqctqt1#response-field-thumbupthumbUpbooleanOptionalPositive when true and negative when false; used for THUMB feedback.
Section ID: DOC-API-MODEL-schema-1iroqctqt1#field-ratingSection ID: DOC-API-MODEL-schema-1iroqctqt1#response-field-ratingratingstring (int64)OptionalNumeric quality rating for SCALE feedback; the scale endpoints mean poor and excellent. Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1iroqctqt1#field-reasonSection ID: DOC-API-MODEL-schema-1iroqctqt1#response-field-reasonreasonstringOptionalOptional explanation for the rating.
Section ID: DOC-API-MODEL-schema-1iroqctqt1#field-ratedatSection ID: DOC-API-MODEL-schema-1iroqctqt1#response-field-ratedatratedAtstring (date-time)OptionalTimestamp when feedback was submitted (server-set)
Section ID: DOC-API-MODEL-schema-1iroqctqt1#field-ratedbySection ID: DOC-API-MODEL-schema-1iroqctqt1#response-field-ratedbyratedBystringOptionalIdentifier of the user who submitted this feedback. Set by the server from the authenticated user identity; never client-supplied. Each user has one feedback entry per message.

Values of kind​

Section ID: DOC-API-MODEL-schema-1iroqctqt1#response-values-kind

Value scale used to interpret recorded feedback.

ValueNo.FormMeaning
FEEDBACK_KIND_THUMB0CanonicalSee meaning below.
FEEDBACK_KIND_SCALE1CanonicalSee meaning below.

FEEDBACK_KIND_THUMB

Binary positive or negative feedback, represented by a thumbs-up or thumbs-down choice.

binary thumbs up / down

FEEDBACK_KIND_SCALE

Feedback expressed as an integer rating from 1 through 10.

1-10 integer scale

Section ID: DOC-API-MODEL-schema-1iroqctqt1#validation

Request validation​

Section ID: DOC-API-MODEL-schema-1iroqctqt1#response-validation

These rules apply when this value is supplied in a request. Request validation does not guarantee that response fields are present or satisfy the same rules.

Applies toRuleRequirement
kindRequired valuetrue
kindDefined enum valuetrue
ratingAt most10
ratingAt least0
reasonMaximum length1000

Where used​

Section ID: DOC-API-MODEL-schema-1iroqctqt1#where-used

ReferenceRelationship
Withdraw your rating on a messagePOST /api/v1/llm/delete-message-rating
Get full conversation statePOST /api/v1/llm/conversation-state
Rate an assistant messagePOST /api/v1/llm/rate-message
Send a message and wait for the resultPOST /api/v1/llm/send-message-sync
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync
Append a message without generatingPOST /api/v1/llm/append-message
Send a message to a conversationPOST /api/v1/llm/send-message
ReceiveMessageRequestAPI JSON uses JSON field names (camelCase).
ClientToolDispatchAPI JSON uses JSON field names (camelCase).
Models containing this value
ModelRelationship
MessageNested in model
MessageNested in model

Download the public reference contract.

Document ID: DOC-API-MODEL-schema-1iroqctqt1