ai interface for lua packages