Extract chat objects from a process result
chats.Rd
Extract chat objects from a process result
Examples
if (FALSE) { # ellmer::has_credentials("openai")
# Create a chat processor
chat <- chat_sequential(chat_openai())
# Process a batch of prompts
process_result <- chat$process(list(
"What is R?",
"Explain base R versus tidyverse",
"Explain vectors, lists, and data frames"
))
# Return the chat objects
process_result$chats()
}