v1

latestOpenAPI 3.1.02026-07-175793186.0 KB
traces

Create Trace Feedback

Record human feedback and optional ground truth for an MLflow trace.

post/api/v1/traces/feedback

Request body

trace_idstring nullable

Resolved MLflow trace identifier when the client already knows it.

client_request_idstring nullable

Client request identifier used to resolve the trace when trace_id is absent.

is_correctboolean required

Whether the model output was considered correct.

commentstring nullable

Optional free-form reviewer comment explaining the feedback.

expected_responsestring nullable

Optional ground-truth response or correction to log alongside the feedback.

Response

Successful Response

okboolean

Whether the feedback request completed successfully.

trace_idstring required

Resolved MLflow trace identifier that received the feedback.

client_request_idstring nullable

Resolved client request identifier associated with the trace, when available.

feedback_loggedboolean

Whether binary/correctness feedback was successfully logged.

expectation_loggedboolean

Whether an expected-response correction was successfully logged.