Imagination: Embedding AI into Texmacs

Inspired by Copilot, is it possible to add features like auto-completion or auto-correction into Texmacs? Maybe it can be done by plugin?
I am majoring in mathematics. For an example of math, I will need to do a lot of simplification of an expression or an equation. If I have something like Copilot, it can auto-complete the calculation part more conveniently then I type it manually. With the help of Mathematica, which can be accessed through Copilot, I can easily do an integration or find a derivative easily.

Mogan STEM (based on GNU TeXmacs 2.1.4) will embed AI and available for everyone later.

Liii STEM (based on GNU TeXmacs 2.1.4) has embedded AI now (2025/07/03)!