diff options
| author | t <t@tjp.lol> | 2026-06-07 10:57:49 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-07 10:57:49 -0600 |
| commit | d36a51358efbc48de3d5b732727455efc60acae1 (patch) | |
| tree | 21d6218c1c8d4b7aad706d70f65449019edc6b87 /examples/tools/wc.lua | |
| parent | 032d27b18597ee3f10222963b53625208c84f571 (diff) | |
R1: move tool registry off Config onto Agent
The tool set is no longer part of the per-turn Config snapshot. Agent now
owns a ToolRegistry (created empty at init), populated via the new
Agent.registerTool / registerToolSource methods. openStream and
OpenStreamFn take the registry as an explicit parameter rather than reading
it from cfg.registry, so swapping provider/model between turns (setConfig)
no longer disturbs the tool set.
CLI migrated to register the Lua tool source onto the agent instead of a
locally-owned registry. Test harnesses updated to stage tools on the agent.
Diffstat (limited to 'examples/tools/wc.lua')
0 files changed, 0 insertions, 0 deletions
