agentstacks 1.2.0

Core library of agentstacks: packs, tool extensions, plans, and the executor that applies them.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Tests for event, the hook every conformance event runs.
--
--   cargo make lua

local hook = require("event")

return {
  event_returns_context = function()
    local result = hook({ event = "session.start" })
    assert(type(result) == "table", "the hook returns a table")
    assert(
      result.context == "conformance session.start",
      "the context names the event, got " .. tostring(result.context)
    )
  end,
}