Response Feedback
Оценка ответа и рубрика для асессоров. Pro · ИИ: чат и агенты › Чат
Установка
npx valyro-cli@latest login
npx valyro-cli@latest add response-feedback
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { ResponseFeedback } from 'valyro-ui-pro';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
variant | 'thumbs' | 'rubric' | 'thumbs' | thumbs for end users; rubric scores each criterion 1–scale for evaluators. |
rating | ResponseRating | null | Controlled rating; use with onRatingChange. | |
defaultRating | ResponseRating | null | Initial rating when uncontrolled. | |
onRatingChange | (rating: ResponseRating | null) => void | Called with the new rating when it changes. | |
reasons | Partial<Record<ResponseRating, string[]>> | Reason chips offered after a thumbs up or down. Default: defaultFeedbackReasons. | |
criteria | RubricCriterion[] | Rubric criteria. Default: accuracy, helpfulness, clarity, safety (defaultRubricCriteria). | |
scale | number | Highest rubric score. Default 5. | |
onSubmit | (feedback: ResponseFeedbackValue) => void | Called on Submit with the rating, picked reasons and comment (thumbs), or with each criterion's score, notes and average (rubric). A rubric only submits once every criterion is scored. | |
locale | string | BCP 47 locale for the average; defaults to the ThemeProvider's. | |
defaultOpen | boolean | thumbs: show the reasons and comment panel on the first render, for a rating / defaultRating already given. | |
labels | Partial<ResponseFeedbackLabels> | Overrides for the built-in English text; keys left out keep their defaults. |
Похожие компоненты
- AI Chat Window — Окно AI-чата
- Chat Message — Сообщения с потоковым выводом
- Message Branches — Версии сообщения и дерево веток диалога
- Streaming Text — Плавный вывод потока токенов
- Markdown Preview — Отображение Markdown
- Prompt Composer — Поле промпта с вложениями
- Inline Suggestion — Подсказка-автодополнение в поле ввода
- Model Selector — Выбор модели ИИ
- Model Comparison — Сравнение ответов нескольких моделей
- Prompt Library — Библиотека промптов с переменными
- Chain of Thought — Ход рассуждений модели
- Tool Call — Вызов инструмента с подтверждением
Назад: Markdown Preview · Далее: Prompt Composer · Весь раздел «ИИ: чат и агенты»