so my idea is to check for is_string() to add the addPrePromptMessage(), and whatever else that is not a string (or an array) will be logged as a warning, i think i'd rather had this behavior, can you change the pr accordingly?