Skip to main content

MessageFeedback

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

Usage profiles​

UsageFields and validation
In requestsView fields
In responsesView fields
In webhook payloadsView fields

In requests​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
kindstring (FEEDBACK_KIND_THUMB, FEEDBACK_KIND_SCALE) or integer (int32) (1, 2)Required in requestsRating representation used to interpret the feedback value.
thumbUpbooleanOptionalPositive when true and negative when false; used for THUMB feedback.
ratinginteger (int32)OptionalNumeric quality rating for SCALE feedback; the scale endpoints mean poor and excellent. Minimum: 0. Maximum: 10.
reasonstringOptionalOptional explanation for the rating. Maximum length: 1000.
ratedAtstring (date-time)OptionalTimestamp when feedback was submitted (server-set)
ratedBystringOptionalIdentifier 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​

Value scale used to interpret recorded feedback.

ValueNo.FormMeaning
FEEDBACK_KIND_THUMB1CanonicalBinary positive or negative feedback, represented by a thumbs-up or thumbs-down choice.
FEEDBACK_KIND_SCALE2CanonicalFeedback expressed as an integer rating from 1 through 10.

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
kindDefined enum valuetrue
kindDisallowed values0
ratingAt most10
ratingAt least0
reasonMaximum length1000

In responses​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
kindstring (FEEDBACK_KIND_THUMB, FEEDBACK_KIND_SCALE) or integer (int32)Required in requestsRating representation used to interpret the feedback value.
thumbUpbooleanOptionalPositive when true and negative when false; used for THUMB feedback.
ratinginteger (int32)OptionalNumeric quality rating for SCALE feedback; the scale endpoints mean poor and excellent. Minimum: -2147483648. Maximum: 2147483647.
reasonstringOptionalOptional explanation for the rating.
ratedAtstring (date-time)OptionalTimestamp when feedback was submitted (server-set)
ratedBystringOptionalIdentifier 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​

Value scale used to interpret recorded feedback.

ValueNo.FormMeaning
FEEDBACK_KIND_THUMB1CanonicalBinary positive or negative feedback, represented by a thumbs-up or thumbs-down choice.
FEEDBACK_KIND_SCALE2CanonicalFeedback expressed as an integer rating from 1 through 10.

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
kindDefined enum valuetrue
kindDisallowed values0
ratingAt most10
ratingAt least0
reasonMaximum length1000

In webhook payloads​

Webhook JSON uses protobuf field names (snake_case).

FieldTypePresenceMeaning
kindstring (FEEDBACK_KIND_THUMB, FEEDBACK_KIND_SCALE) or integer (int32)Required in requestsRating representation used to interpret the feedback value.
thumb_upbooleanOptionalPositive when true and negative when false; used for THUMB feedback.
ratinginteger (int32)OptionalNumeric quality rating for SCALE feedback; the scale endpoints mean poor and excellent. Minimum: -2147483648. Maximum: 2147483647.
reasonstringOptionalOptional explanation for the rating.
rated_atstring (date-time)OptionalTimestamp when feedback was submitted (server-set)
rated_bystringOptionalIdentifier 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​

Value scale used to interpret recorded feedback.

ValueNo.FormMeaning
FEEDBACK_KIND_THUMB1CanonicalBinary positive or negative feedback, represented by a thumbs-up or thumbs-down choice.
FEEDBACK_KIND_SCALE2CanonicalFeedback expressed as an integer rating from 1 through 10.

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
kindDefined enum valuetrue
kindDisallowed values0
ratingAt most10
ratingAt least0
reasonMaximum length1000

Where used​

ReferenceRelationship
Append a message without generatingPOST /api/v1/llm/append-message
Send a message to a conversationPOST /api/v1/llm/send-message
Send a message and wait for the resultPOST /api/v1/llm/send-message-sync
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
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync
llm.message_publishedWebhook JSON uses protobuf field names (snake_case).
MessageNested in model
MessageNested in model
MessageNested in model

Download the public reference contract.

Document: DOC-API-MODEL-message-feedback.