AI core implementation