agent-block 0.27.0

Lua-first Agent Runtime built on AgentMesh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- Register tools and print schema as JSON.
tool.register("greet", {
    description = "Greet a user",
    input_schema = {
        type = "object",
        properties = {
            name = { type = "string" },
        },
    },
}, function(input)
    return "Hello, " .. input.name
end)

local names = tool.list()
for _, name in ipairs(names) do
    print("tool: " .. name)
end