create_feedback
Create feedback for a trace or request by providing a trace ID and value. The feedback is linked immediately and returns the created feedback IDs and status.
Instructions
Create feedback for a trace or request. Writes a new feedback record linked by trace_id, returns the created feedback IDs and status, and takes effect immediately; use update_feedback when correcting an existing record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_id | Yes | The trace ID to associate the feedback with. This links feedback to a specific request/generation. | |
| value | Yes | Feedback value/rating. Common patterns: 1 for positive (thumbs up), 0 for negative (thumbs down), or use a scale like 1-5. | |
| weight | No | Optional weighting factor for the feedback. Use to give more importance to certain feedback. | |
| metadata | No | Optional custom metadata for categorization and analysis (e.g., feedback_source, category, user_segment). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |