Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(tokenjuice): update README wiring section to reflect current module and tool registration

Steven Enamakel8592e67fc018
diff --git a/crates/openhuman-core/src/inference/tokenjuice/README.md b/crates/openhuman-core/src/inference/tokenjuice/README.md
index 37efc9b953..9f90c2bd7d 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/README.md
+++ b/crates/openhuman-core/src/inference/tokenjuice/README.md
@@ -33,14 +33,18 @@ engine behavior stays behind the loadable module boundary.
## Wiring
-- `mod.rs::proxy` loads the module via `crate::modules::ensure_loaded(config,
- "tinyjuice")` and looks it up with `crate::modules::registry::find("tinyjuice")`
- before calling through `crate::modules::host::runtime()`.
+- `mod.rs::proxy` (behind the `modules` feature) loads the module via
+ `crate::modules::ensure_loaded(config, "tinyjuice")`, looks it up with
+ `crate::modules::registry::find("tinyjuice")`, and calls through
+ `crate::modules::host::runtime()`; without the feature `proxy` errors and the
+ pass-through fallback applies.
- Controllers are registered from `crate::inference::tokenjuice::all_tokenjuice_registered_controllers()`,
called by `core/all.rs`.
-- `crate::tools::mod` re-exports `TokenjuiceRetrieveTool`; its registered tool
- name is `RETRIEVE_TOOL_NAME` (`"tinyjuice_retrieve"`), not
- `"tokenjuice_retrieve"` — confirm against `tools/ops.rs`'s tool-name table
- before assuming otherwise.
+- `tools/ops.rs` registers `crate::inference::tokenjuice::TokenjuiceRetrieveTool::new()`
+ in the agent tool catalog (it is not re-exported through `tools/mod.rs`) and
+ treats every `RECOVERY_TOOL_NAMES` entry as a recovery tool. The registered
+ tool name is `RETRIEVE_TOOL_NAME` (`"tinyjuice_retrieve"`);
+ `"tokenjuice_retrieve"` and `LEGACY_RETRIEVE_TOOL_NAME`
+ (`"retrieve_tool_output"`) are recognized aliases only.
- Contract crate: `tinyjuice-bus` (`vendor/tinyjuice/crates/tinyjuice-bus`,
path dependency in `crates/openhuman-core/Cargo.toml`).