Probably a silly question but, do we manually append user and assistant messages to the chat history, or does that happen automatically?