diff options
| author | t <t@tjp.lol> | 2026-06-10 09:46:00 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-10 09:55:05 -0600 |
| commit | 9bf1d800f2a24ed71221c64370c98ee8d907314b (patch) | |
| tree | d1b77ac9140e57ba523e97a4b815475ddba2c04e /examples/extensions/echo.lua | |
| parent | 938db5f476184b2d4f613e04cce60a5191581d7f (diff) | |
expose `panto` to extensions as a require()able module, not a global
Diffstat (limited to 'examples/extensions/echo.lua')
| -rw-r--r-- | examples/extensions/echo.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/extensions/echo.lua b/examples/extensions/echo.lua index d384e5b..2f2d4de 100644 --- a/examples/extensions/echo.lua +++ b/examples/extensions/echo.lua @@ -1,6 +1,8 @@ -- A trivial Lua tool that echoes back whatever the LLM asks it to. -- Useful for exercising the panto CLI's Lua extension path end-to-end. +local panto = require("panto") + panto.ext.register_tool { name = "echo", description = "Echo back the given message. Useful for testing whether tools work.", |
