Do note @Cheese and @Apple that within Wappler we supply the AI models with extensive knowledge of the used App Connect and Server Connect frameworks working and syntax when calling them in their system prompt.
So the AI model can then translate the generic knowledge they have to Wappler specific solutions and use the App Connect expressions syntax and available components for the frontend as well generate or edit Server Connect actions with the available actions and syntax.
Also project specific organization is passed so the AI model knows what server type is running and where to place the files.
We also provide tool functions from the Wappler AI Manager to the AI models to call back on Wappler and let it do work as well supply more info about database structure, execute generated migrations, read and write project files or open and edit actions or pages. That is the used agent mode.
Also the AI code generation, specifically for generating server actions is being fully validated by Wappler before applying and errors are passed directly to the AI model so it can correct them directly. This is the great AI agentia conversation that you see when you start a task in the AI manager.
We also smartly pass the amount of knowledge and information in the system prompt, to handle the limited context size of some of the AI models.
The AI manager for example uses general knowledge about the current project in Wappler and App Connect and Server Connect and delegates the specific editing actions to the html editor for editing html/ejs/php pages which receives the full app Connect knowledge, while the server Connect editor receives the server Connect action knowledge only.
This satisfies the common AI models that currently have like 128 kb tokens context size. Also GitHub copilot limits its AI models to 128kb tokens while many of them like Claude already have 200kb context size and the new ones like Gemini Pro go even to 1MB context size.
So it is a great advantage to use the built-in AI integration in Wappler instead of the generic external AI editors.
And of course we are continuously improve the Wappler AI knowledge that is passed to the AI models based in n the community feedback, so make sure you report any issues found with the code generation or need for improvements.