A local HTTP server would be a nice way to dockerize and prototype an interface. My rough design would be:
- A simple Python-based webserver to avoid new dependencies for now. Put it in a new directory under
src/.
- Webserver launches the
chat CLI and communicates with it via coprocess commands (see assistant_coprocess example).
- Webserver serves the client HTML + JS + CSS and also exposes a JSON or websocket endpoint for the interactive chat.
A local HTTP server would be a nice way to dockerize and prototype an interface. My rough design would be:
src/.chatCLI and communicates with it via coprocess commands (see assistant_coprocess example).