add AI.h: construct a function list