>>105759718
modern LLMs natively (in official APIs) can accept function definitions and when (by the context/asked by user/etc) needed, they can emit a "call" command with the function name and arguments, and you can process that call in your software to do actual shit
https://docs.sillytavern.app/for-contributors/function-calling/