agent-block 0.20.0

Lua-first Agent Runtime built on AgentMesh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- Register a tool, call it, print the result.
tool.register("echo", {
    description = "Echo input back",
    input_schema = {
        type = "object",
        properties = {
            message = { type = "string" },
        },
    },
}, function(input)
    return "echoed: " .. input.message
end)

local result = tool.call("echo", { message = "ping" })
print(result)