dd-trace
    Preparing search index...

    Interface FeedbackOptions

    interface FeedbackOptions {
        assessment?: "pass" | "fail";
        feedbackJoinKey?: string;
        label: string;
        metricType: "boolean" | "categorical" | "score" | "json" | "text";
        mlApp?: string;
        reasoning?: string;
        sessionId?: string;
        span?: ExportedLLMObsSpan;
        spanId?: string;
        submitter: FeedbackSubmitter;
        tags?: { [key: string]: string | null | undefined };
        timestampMs?: number;
        traceId?: string;
        value: string | number | boolean | { [key: string]: any };
    }
    Index
    assessment?: "pass" | "fail"

    Whether the feedback passed or failed. Valid values are pass and fail.

    feedbackJoinKey?: string

    A customer-defined key to attach the feedback to.

    label: string

    The name of the feedback metric

    metricType: "boolean" | "categorical" | "score" | "json" | "text"

    The type of feedback metric, one of 'categorical', 'score', 'boolean', 'json' or 'text'

    mlApp?: string

    The name of the ML application

    reasoning?: string

    Reasoning for the feedback.

    sessionId?: string

    The ID of the session to attach the feedback to.

    The 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.

    spanId?: string

    The ID of the span to attach the feedback to.

    Who submitted the feedback.

    tags?: { [key: string]: string | null | undefined }

    An object of string key-value pairs to tag the feedback with. A null or undefined value is sent as the string "null" or "undefined".

    timestampMs?: number

    The timestamp in milliseconds when the feedback was generated.

    traceId?: string

    The ID of the trace to attach the feedback to.

    value: string | number | boolean | { [key: string]: any }

    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.