plugins/fixtures/echo-py/README.md 926 B 27 lines Raw

echo-py

A plugin in Python with the standard library only. It speaks the framed peer protocol directly: no SDK, no package from this repository, no compile step.

It serves one model, echo-py, with one capability, chat. A text part is echoed once on the text channel and the job ends completed.

The catalogue comes from target.toml and models/echo.toml. The core starts the plugin with --socket <path> and the plugin connects to that private filesystem socket.

Run it by hand after starting a core-side listener on a filesystem path:

./run --socket /run/inf3r/example/socket

Run the test:

uv run --no-project --python "$(command -v python3)" -- python3 -m unittest discover -s plugins/fixtures/echo-py -v

The test binds its own private filesystem socket, starts the plugin, plays the core side of the handshake, and sends one chat. It needs no network port and leaves no process behind.

view raw