Last chance! 50% off unlimited learning
Sale ends in
powered by
This function sets up a new chatlog object for a conversation.
set_chatlog( initial_role = "system", initial_content = "You are a helpful assistant.", chatlog_id = NULL )
A new chatlog object
A character string representing the role issueing the initial content (per default: "system")
A character string representing the initial message from the system
A character string representing the ID of this conversation. Per default, this will be set automatically.
chat <- set_chatlog("Welcome to our chat!") is_chatlog(chat) chat
Run the code above in your browser using DataLab