FeedbackOptions

PropTypeDescription
enabledboolean = falseEnable feedback functionality, shows a thumbs up/down button after a prompt was submitted.
votesboolean = trueEnable votes.
csatboolean = trueEnable thread CSAT.
headingstring = "Was this response helpful?"Heading above the form
headingCSATstring = "How helpful was this?"Heading above the CSAT picker
onFeedbackSubmit( feedback: PromptFeedback, messages: ChatViewMessage[], promptId?: string, ) => voidCalled when feedback is submitted

PromptFeedback

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