get_all_conversation_ids {PacketLLM} | R Documentation |
Gets a list of IDs of all existing conversations
Description
Retrieves the unique identifiers for all conversations currently stored in the manager.
Usage
get_all_conversation_ids()
Value
Character vector. A vector containing the unique IDs of all currently
stored conversations. Returns an empty character vector (character(0)
)
if no conversations exist.
Examples
# Setup
reset_history_manager()
initial_ids <- get_all_conversation_ids() # Should be character(0)
# MODIFIED LINE (was too long)
print(paste("IDs initially:", paste(initial_ids, collapse=",")))
# Create conversations
conv_all_id1 <- create_new_conversation()
conv_all_id2 <- create_new_conversation()
# Get all IDs
all_ids <- get_all_conversation_ids()
print(paste("IDs after creation:", paste(all_ids, collapse=",")))
print(paste("Number of conversations:", length(all_ids))) # 2
# Delete one and check again
delete_conversation(conv_all_id1)
ids_after_del <- get_all_conversation_ids() # Only ID2
print(paste("IDs after deletion:", paste(ids_after_del, collapse=",")))
# Clean up
reset_history_manager()
[Package PacketLLM version 0.1.0 Index]