Learn R Programming

GenAI (version 0.2.0)

chat.history.export: Chat History Export

Description

This function exports the chat history along with a generative AI object as a list.

Usage

chat.history.export(genai.object)

Value

If successful, the chat history list will be returned.

Arguments

genai.object

A generative AI object containing necessary and correct information.

Details

Providing accurate and valid information for each argument is crucial for successful chat generation by the generative AI model. If any parameter is incorrect, the function responds with an error message based on the API feedback. To view all supported generative AI models, use the function available.models.

See Also

Examples

Run this code
if (FALSE) {
# Assuming there is a GenAI object named 'genai.model' supporting this
# function, please refer to the "Live Demo in Colab" above for real
# examples. The following examples are just some basic guidelines.

# Method 1 (recommended): use the pipe operator "%>%"
exported.history = genai.model %>%
  chat.history.export()

# Method 2: use the reference operator "$"
exported.history = genai.model$chat.history.export()

# Method 3: use the function chat.history.export() directly
exported.history = chat.history.export(genai.object = genai.model)
}

Run the code above in your browser using DataLab