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 "%>%"
genai.model %>%
chat.history.print()
# Method 2: use the reference operator "$"
genai.model$chat.history.print(from = 3)
# Method 3: use the function chat.history.print() directly
chat.history.print(genai.object = genai.model,
from = 3,
to = 5)
}
Run the code above in your browser using DataLab