chats: Extract chat objects from a batch result

chatsR Documentation

Extract chat objects from a batch result

Description

Extract chat objects from a batch result

Usage

chats(x, ...)

Arguments

x

A batch object

...

Additional arguments

Value

A list of chat objects

Examples


# Create a chat processor
chat <- chat_sequential(chat_openai())

# Process a batch of prompts
batch <- chat$batch(list(
  "What is R?",
  "Explain base R versus tidyverse",
  "Explain vectors, lists, and data frames"
))

# Return the chat objects
batch$chats()


hellmer documentation built on June 8, 2025, 11:09 a.m.