Scripting
Overview
It is possible to embed an interpreter for scripting languages like CPython and Lua inside a compiled Swift based program.
This makes it possible to support script based acess to the functions provided by the Swift based host application. This is an excellent way to enable workflow automation.
ML Agent based scripting is possible from a Swift app with MCPs (Model Context Protocol) interfaces that typically work using stdio/http, as well as OpenAI compatible REST endpoints that allow for interactive sessions.
Topics
- Lua
- Python
- ML Agents
- MCPs
- OpenAI Compatible REST Endpoints