pub fn append_message( storage_root: &Path, id: &str, role: Role, content: &str, ) -> Result<u64, ChatError>