diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/extensions/echo.lua | 2 | ||||
| -rw-r--r-- | examples/extensions/greet.lua | 2 | ||||
| -rw-r--r-- | examples/tools/wc.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/extensions/echo.lua b/examples/extensions/echo.lua index 53b1a3a..d384e5b 100644 --- a/examples/extensions/echo.lua +++ b/examples/extensions/echo.lua @@ -1,7 +1,7 @@ -- 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. -panto.register_tool { +panto.ext.register_tool { name = "echo", description = "Echo back the given message. Useful for testing whether tools work.", schema = { diff --git a/examples/extensions/greet.lua b/examples/extensions/greet.lua index 5ec406f..30a6f12 100644 --- a/examples/extensions/greet.lua +++ b/examples/extensions/greet.lua @@ -6,7 +6,7 @@ -- writing to stdout). `args` is the trimmed text after the command name; -- it is an empty string when none was given. The return value is ignored. -panto.register_command { +panto.ext.register_command { name = "greet", description = "Print a greeting. Optional args name who to greet.", handler = function(args) diff --git a/examples/tools/wc.lua b/examples/tools/wc.lua index 33e2326..f2bbcb4 100644 --- a/examples/tools/wc.lua +++ b/examples/tools/wc.lua @@ -1,5 +1,5 @@ -- Single-tool form: a Lua file under `tools/` returns one registration --- table, and panto registers it as if `panto.register_tool` had been +-- table, and panto registers it as if `panto.ext.register_tool` had been -- called on the value. Drop this file into one of: -- ${XDG_CONFIG_HOME:-$HOME/.config}/panto/tools/wc.lua (user-global) -- ./.panto/tools/wc.lua (project-local) |
