From 97b10466d83d488ad2cb9e084159a445af74c845 Mon Sep 17 00:00:00 2001 From: t Date: Tue, 9 Jun 2026 00:00:56 -0600 Subject: event lifecycle --- examples/extensions/echo.lua | 2 +- examples/extensions/greet.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/extensions') 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) -- cgit v1.3