loopd: the memory block from memoryd, recall and memory as core tools

Implemented-By: OpenCode session (model recorded in docs/implementer-log.md)
This commit is contained in:
2026-09-25 16:41:44 -07:00
committed by kyle
parent e167fc871b
commit 15ee4b8e3d
14 changed files with 484 additions and 87 deletions
+21
View File
@@ -82,6 +82,27 @@ impl Registry {
])
}
/// The tool set for the M5a epoch: `clock`, `recall` and `memory` (core), then the four tools
/// `brokerd` decides on. `loopd serve` uses this one.
pub fn m5a() -> Registry {
let mut entries = Registry::m3a().entries;
entries.insert(
1,
Entry {
schema: crate::memory::recall_schema(),
core: true,
},
);
entries.insert(
2,
Entry {
schema: crate::memory::memory_schema(),
core: true,
},
);
Registry::new(entries)
}
/// The fixed tools array: core entries, then `find_tool`, then `call_tool`.
pub fn core_schemas(&self) -> Vec<ToolSchema> {
let mut schemas: Vec<ToolSchema> = self