WardrikLua

Lua 5.3 for agents. The run_lua tool runs code an agent writes in a sealed sandbox and returns the value: arithmetic, reshaping data, loops, or the current time.

def deps do
  [
    {:wardrik_lua, "~> 0.1.0-rc.2"}
  ]
end

Usage

WardrikCore.start_agent(
  agent_id: "agt_triage",
  model: "anthropic:claude-haiku-4-5",
  capabilities: [{WardrikLua, limits: [timeout_ms: :timer.seconds(5)]}]
)

With Wardrik, offer it by name, then list run_lua in a definition's tools:

config :my_app, MyApp.AgentRuntime, capabilities: [run_lua: WardrikLua]

The sandbox

License

Apache-2.0