Skip to contents

This function lists the ids of every chatlog stored in the package's private chat environment, including the conversation of chat() (".__CURRENTCHAT__") and those of write_code() and edit_code(), whose ids start with a dot.

Usage

list_chatlogs()

Value

A sorted character vector of chatlog ids (character(0) if none is stored).

Examples

start_chat(chatlog_id = "demo")
#> Chatlog ID: demo
#>     role                      content
#> 1 system You are a helpful assistant.
list_chatlogs()
#> [1] "demo"  "demo2"