pub fn encode_create_entity( buf: &mut Vec<u8>, name: &str, entity_type: &str, observations: &[String], ) -> Result<()>