Skip to content

Add message action buttons (copy, feedback, regenerate, share) #170

@JamesHWade

Description

@JamesHWade

Feature Request

Add optional action buttons to assistant messages for common interactions:

  • Copy: Copy message content to clipboard
  • Feedback: Thumbs up/down for rating responses
  • Regenerate: Request a new response
  • Share: Share the message

Usage

chat_ui("chat", message_actions = TRUE)
# or specific actions:
chat_ui("chat", message_actions = c("copy", "feedback"))
chat_ui("chat", message_actions=True)
# or specific actions:
chat_ui("chat", message_actions=["copy", "feedback"])

Events are exposed as Shiny inputs (R: input$ID_message_feedback, Python: @chat.on_message_feedback decorator).

Screenshot

Image

Draft PR

https://github.com/JamesHWade/shinychat/pull/new/feature/message-action-buttons

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions