v2
latestOpenAPI 3.1.02026-07-2670186350.6 KBspans
Submit Span Feedback
Submit human feedback for a span.
This endpoint allows you to provide feedback (thumbs up/down) on a span's output. The feedback is stored on the associated generation and can trigger auto-save to the function's dataset based on the observer's configuration.
- score=1.0: Positive feedback (thumbs up)
- score=0.0: Negative feedback (thumbs down)
- Intermediate values (e.g., 0.5) are supported for nuanced feedback
post/spans/{span_id}/feedback
Path parameters
span_idstring uuid required
The ID of the span to provide feedback on
The ID of the span to provide feedback on
Request body
Example request
{
"score": 1,
"comment": "Great output, exactly what I needed"
}Response
Successful Response