FeedbackOptions

PropTypeDescription
enabledboolean

Enable feedback functionality, shows a thumbs up/down button after a prompt was submitted. Default: false.

votesboolean

Enable votes. Default: true.

csatboolean

Enable thread CSAT. Default: true.

headingstring

Heading above the form Default: "Was this response helpful?".

headingCSATstring

Heading above the CSAT picker Default: "How helpful was this?".

onFeedbackSubmit( feedback: PromptFeedback, messages: ChatViewMessage[], messageId?: string, ) => void

Called when feedback is submitted

PromptFeedback

1interface PromptFeedback {
2  vote: '1' | '-1';
3}