Prerequisites
- An existing task (see Send a message)
- An access token or client credentials
- A context ID and task ID
Submit feedback
Rating scales
Labels
Labels provide structured observations about the result. Positive and negative labels can be combined to represent mixed feedback: Positive labels:correct, complete, helpful, wellPresented, efficient
Negative labels: incorrect, missingInformation, irrelevant, misunderstoodRequest, unsupportedClaim, unsafeOrInappropriate, poorlyPresented, tooVerbose
Neutral: other (requires a reason)
A maximum of five labels may be submitted per feedback entry. Duplicate labels are rejected. The
other label requires a reason field.Targeting a specific message
By default, feedback applies to the task as a whole. To target a specific message in the task’s history, include thetarget field with the message ID:
Metadata
Include provenance and correlation information using themetadata field:
List feedback
feedbacks array:
Feedback is scoped to the authenticated user. The response contains only the caller’s feedback, not all feedback for the task.
Delete feedback
Delete all feedback you submitted for a task. The DELETE endpoint targets the task as a whole — there is no per-entry feedback ID in the path:Use cases
- Thumbs UI: Collect binary feedback after each task response
- Case review: Use labels like
correct,incorrect,missingInformationfor structured review - Automated evaluation: Submit feedback programmatically with metadata for tracking
Next steps
- Learn how to work with contexts to find task IDs
- Read about the task lifecycle for task states
- Learn how to export traces for debugging