Added clearConsole() function to ai API