Learn R Programming

llmflow (version 3.0.2)

extract_chat_history: Extract chat history from ellmer chat object

Description

Extract chat history from ellmer chat object

Usage

extract_chat_history(
  chat_obj,
  include_tokens = TRUE,
  include_time = TRUE,
  tz = "Asia/Shanghai"
)

Value

A data frame with chat history

Arguments

chat_obj

An ellmer chat object

include_tokens

Whether to include token information

include_time

Whether to include timestamp information

tz

Time zone for timestamps (default "Asia/Shanghai" for CST)