Expand description
WhiteMagic tools — tool implementations + the wm meta-tool
Tools: memory.create, memory.read, memory.list, memory.delete,
memory.query, memory.search, memory.associate, memory.associations,
gnosis, tools.list, karma.report, dharma.status, and the wm meta-tool.
Re-exports§
pub use expansion::lkep::LkepError;pub use expansion::lkep::LkepExecTool;pub use expansion::lkep::decode_lkep;pub use expansion::lkep::parse_lkep_expression;pub use expansion::lkep::primary_arg_for_route;pub use expansion::lkep::resolve_arg;pub use expansion::lkep::resolve_route;
Modules§
- embedding_
router - Embedding-based NLU router for the
wmmeta-tool. - expansion
- Expansion tools — 77 tool implementations organized by category.
- nlu
- Embedding-based NLU router for the
wmmeta-tool. - profiles
- Tool surface profiles — curated release surfaces for the tool registry.
Structs§
- Dharma
Status Tool - Report Dharma gate state: homeostasis, health score, strict mode.
- Gnosis
Explain Tool - Explain governance decisions — why an action was allowed or blocked.
- Gnosis
History Tool - Historical governance data — harmony vector history and budget trends.
- Gnosis
Status Tool - Full governance transparency — homeostasis, resource rules, brain-wave.
- Gnosis
Tool - System introspection — returns basic system state.
- Harmony
History Tool - Report historical Harmony Vector samples.
- Harmony
Vector Tool - Report current Harmony Vector — real-time hardware state (Lakshmi).
- Karma
Report Tool - Report karma ledger status: total debt, recent entries, per-tool breakdown.
- Memory
Associate Tool - Create a cross-galaxy association between two memories.
- Memory
Associations Tool - Find associations for a memory (incoming or outgoing).
- Memory
Batch Create Tool - Batch-create multiple memories with a single Tantivy commit.
- Memory
Batch Delete Tool memory.batch_delete— bulk deletion by explicit id list.- Memory
Chat Tool - Conversational memory search with LRU caching and query classification.
- Memory
Create Tool - Create a memory in a galaxy.
- Memory
Delete Tool - Delete a memory by ID.
- Memory
List Tool - List memories from a galaxy (up to limit).
- Memory
Query Tool - Query memories with filters (tags, importance, temporal range).
- Memory
Read Tool - Read a memory by ID from a galaxy.
- Memory
Search Tool - BM25-only search. Not registered:
memory.searchisMemoryHybridRecallTool::as_search(BM25, hybrid when an embedder exists). - Memory
Vector Search Tool - Vector similarity search over memory embeddings.
- Tools
List Tool - List all registered tools.
- WmMeta
Tool - The fractal meta-tool — routes natural language or explicit route to tools.
Functions§
- decode_
glyph - Decode one glyph object {“r”: code, “a”: {code: v}} into {“route”: name, “args”: {name: v}}. Unknown keys pass through. Non-glyph input returns None (caller keeps the raw args).
- encode_
glyph - Encode {route, args} into glyph form — measurement/debug helper (mirror of the wire decode; used by the bench and tests).
- glyph_
mode_ from_ env WM_GLYPH=1enables glyph-wire decoding on the meta-tool seam.- register_
all - Register all base tools into a registry.
- register_
meta_ tools - Register tools.list and wm meta-tool after the base tools are registered.
- register_
meta_ tools_ with_ router - Register the meta-tools and return the embedding router alongside.
- required_
arg_ for - Public contract view of the meta-tool’s hardcoded required-arg table.