Skip to content

Allow st.feedback to be instantiated with an initial value #9469

@andreasntr

Description

@andreasntr

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

When building AI chat interfaces, some people may want users to be able to log back into their profile and reopen old chats.

Currently, when initializing st.feedback widgets there is no way to restore the user past feedback for a given message, even though it exists in some database.

The request here is to add something like a value parameter, as we have for text_area and text_input, so that the feedback widget is initialized with the given value.

Why?

Restore feedbacks given by users in past chats

How?

Add something like a value parameter to the constructor of st.feedback

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.feedbackRelated to the `st.feedback` widgetgood first issueGood for newcomers to the codebasetype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions