Nothing
library(shinytest2)
test_that("chat_history_append() respects expected structure", {
example_history <- list(
list(role = "user", content = "hi")
)
expected_value <- list(
list(role = "user", content = "hi"),
list(role = "assistant", content = "assistant content")
)
chat_history_append(example_history, "assistant", "assistant content") %>%
expect_equal(expected_value)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.