-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
For combinine shinychat.
Now, agent can only invoke, like code below, not a good interactive experience.
library(shiny)
library(shinychat)
ui <- bslib::page_fillable(
chat_ui(
id = "chat",
messages = "**Hello!** How can I help you today?"
),
fillable_mobile = TRUE
)
server <- function(input, output, session) {
observeEvent(input$chat_user_input, {
stream <- r_assistant$invoke(input$chat_user_input)
chat_append("chat", stream)
})
}
shinyApp(ui, server)And LeadAgent is not async now, I can't capture intermediate state which I want to show users in shinychat.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request