Create feedback
portkey_create_feedbackWRITES a feedback record into the Portkey account, attached to a request/trace by trace_id. Use for logging a quality score (typically -10..10) with an optional weight (0..1) and metadata. Portkey: POST /feedback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Feedback score, typically -10..10. | |
| weight | No | Relative weight of this feedback, 0..1. | |
| metadata | No | Arbitrary metadata key/values. | |
| trace_id | Yes | The request/trace id to attach feedback to. |