basic ai framework