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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user