Skip to main content

Crate wm_tools

Crate wm_tools 

Source
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 wm meta-tool.
expansion
Expansion tools — 77 tool implementations organized by category.
nlu
Embedding-based NLU router for the wm meta-tool.
profiles
Tool surface profiles — curated release surfaces for the tool registry.

Structs§

DharmaStatusTool
Report Dharma gate state: homeostasis, health score, strict mode.
GnosisExplainTool
Explain governance decisions — why an action was allowed or blocked.
GnosisHistoryTool
Historical governance data — harmony vector history and budget trends.
GnosisStatusTool
Full governance transparency — homeostasis, resource rules, brain-wave.
GnosisTool
System introspection — returns basic system state.
HarmonyHistoryTool
Report historical Harmony Vector samples.
HarmonyVectorTool
Report current Harmony Vector — real-time hardware state (Lakshmi).
KarmaReportTool
Report karma ledger status: total debt, recent entries, per-tool breakdown.
MemoryAssociateTool
Create a cross-galaxy association between two memories.
MemoryAssociationsTool
Find associations for a memory (incoming or outgoing).
MemoryBatchCreateTool
Batch-create multiple memories with a single Tantivy commit.
MemoryBatchDeleteTool
memory.batch_delete — bulk deletion by explicit id list.
MemoryChatTool
Conversational memory search with LRU caching and query classification.
MemoryCreateTool
Create a memory in a galaxy.
MemoryDeleteTool
Delete a memory by ID.
MemoryListTool
List memories from a galaxy (up to limit).
MemoryQueryTool
Query memories with filters (tags, importance, temporal range).
MemoryReadTool
Read a memory by ID from a galaxy.
MemorySearchTool
BM25-only search. Not registered: memory.search is MemoryHybridRecallTool::as_search (BM25, hybrid when an embedder exists).
MemoryVectorSearchTool
Vector similarity search over memory embeddings.
ToolsListTool
List all registered tools.
WmMetaTool
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=1 enables 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.