OptionalassessmentOptionalfeedbackA customer-defined key to attach the feedback to.
The name of the feedback metric
The type of feedback metric, one of 'categorical', 'score', 'boolean', 'json' or 'text'
OptionalmlThe name of the ML application
OptionalreasoningReasoning for the feedback.
OptionalsessionThe ID of the session to attach the feedback to.
OptionalspanThe span context of the span to attach the feedback to, as returned by llmobs.exportSpan().
Exactly one of span, spanId, traceId, sessionId or feedbackJoinKey must be provided.
OptionalspanThe ID of the span to attach the feedback to.
Who submitted the feedback.
OptionaltagsAn object of string key-value pairs to tag the feedback with.
A null or undefined value is sent as the string "null" or "undefined".
OptionaltimestampThe timestamp in milliseconds when the feedback was generated.
OptionaltraceThe ID of the trace to attach the feedback to.
The value of the feedback metric. Must be string for 'categorical' and 'text' metrics, number for 'score' metrics, boolean for 'boolean' metrics and a JSON object for 'json' metrics.
Whether the feedback passed or failed. Valid values are pass and fail.