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.