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
-- Returns the event's fields as `key=value`, `nil` for an absent one, as the context, so each
-- test shows what the translator put in the event.
local FIELDS = { "tool", "path", "agent", "agent_id", "prompt" }

return function(ev)
  local parts = {}
  for _, key in ipairs(FIELDS) do
    parts[#parts + 1] = key .. "=" .. tostring(ev[key])
  end
  return { context = table.concat(parts, " ") }
end