get_conversation_data {PacketLLM}R Documentation

Gets the full conversation data object for the given ID

Description

Retrieves the complete data structure (a list) associated with a specific conversation ID, including its history, attachments, settings, etc.

Usage

get_conversation_data(id)

Arguments

id

Character string. The ID of the conversation.

Value

List or NULL. A list containing all stored data associated with the conversation specified by id. Returns NULL if the conversation does not exist.

Examples

# Setup
reset_history_manager()
conv_getdata_id <- create_new_conversation(title = "Data Test")
set_conversation_temperature(conv_getdata_id, 0.9)

# Get conversation data by ID
data_obj <- get_conversation_data(conv_getdata_id)
if (!is.null(data_obj)) {
  print("Conversation data object:")
  print(str(data_obj))
}

# Get data for non-existent ID
print("Data for non-existent:")
print(get_conversation_data("bad_id")) # NULL

# Clean up
reset_history_manager()

[Package PacketLLM version 0.1.0 Index]