接口 FeedbackConfig

表示反馈的配置。这决定了 LangSmith 服务如何解释关联键的反馈值。

interface FeedbackConfig {
    type: "continuous" | "categorical" | "freeform";
    categories?: null | FeedbackCategory[];
    max?: null | number;
    min?: null | number;
}

属性

type: "continuous" | "categorical" | "freeform"

反馈的类型。

  • "continuous":具有连续数值的反馈。
  • "categorical":具有分类值的反馈(类别)
  • "freeform":具有自由文本值的反馈(备注)。
categories?: null | FeedbackCategory[]

分类反馈的类别。每个类别可以是字符串或具有附加属性的对象。

如果反馈是分类的,则这定义了服务器将接受的有效类别。不适用于连续或自由文本反馈类型。

max?: null | number

连续反馈的最大值。

min?: null | number

连续反馈的最小值。