R/methods.R

Defines functions print.chatlog

#'@import methods

# function definition
print.chatlog <- function(x) {
  cat("Chatlog ID: ", x@chatlog_id, "\n")
  print(x@messages)
}

# Register the method
setMethod(f = "print", 
          signature = "chatlog", 
          definition = print.chatlog)

Try the TheOpenAIR package in your browser

Any scripts or data that you put into this service are public.

TheOpenAIR documentation built on April 27, 2023, 5:10 p.m.