Skip to content

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

docs(readme): add module readmes for tinyagents and embedding host

Steven Enamakel640d4720a6a7
diff --git a/crates/openhuman-core/src/agent/tinyagents/README.md b/crates/openhuman-core/src/agent/tinyagents/README.md
index cdfe04c183..c24e3ae7ff 100644
--- a/crates/openhuman-core/src/agent/tinyagents/README.md
+++ b/crates/openhuman-core/src/agent/tinyagents/README.md
@@ -47,7 +47,7 @@ The adapter seam between OpenHuman and the vendored [`tinyagents`](../../../../.
| [`steering_forwarder.rs`](./steering_forwarder.rs) | Host adapter over `tinyagents_harness::run_queue::SteeringForwarderGuard` (forwards `RunQueue` steer/collect messages into the harness `SteeringHandle`; abort-on-drop so drop-based cancellation always deregisters it, issue #4456): `QueuedMessage for QueuedTurn`, the `RunQueue*` domain-event sink and the steering-registry cleanup hook. |
| [`stop_hooks.rs`](./stop_hooks.rs) | Host accounting and halt-summary projection for the TinyAgents stop-hook middleware; budget and goal policies remain in OpenHuman. |
| `summarize.rs` | `ModelSummarizer` / `FaultTolerantCachingSummarizer` plus a context-window-aware `SummarizationPolicy` driving the crate's `ContextCompressionMiddleware`. |
-| [`embeddings.rs`](./embeddings.rs) | `ProviderEmbeddingModel`: adapts `crate::inference::embedding_host::EmbeddingProvider` onto the crate's `EmbeddingModel` trait. |
+| [`embeddings.rs`](./embeddings.rs) | `ProviderEmbeddingModel`: cost-recording binding over the host-built `tinyinference_embeddings::EmbeddingModel`. |
| [`todos.rs`](./todos.rs) | `todos_store` / `scratch_todos_store` (the crate `Store` behind per-thread agent todos, `tinyagents_graph::todos`). |
| [`config.rs`](./config.rs) | Maps OpenHuman's `Config` (including model pins) onto `tinyagents_harness::config` structs. |
| `*_tests.rs` | Sibling test suites for each file/part group above. |
diff --git a/crates/openhuman-core/src/inference/embedding_host/README.md b/crates/openhuman-core/src/inference/embedding_host/README.md
index 7379cb22de..79fd05abdf 100644
--- a/crates/openhuman-core/src/inference/embedding_host/README.md
+++ b/crates/openhuman-core/src/inference/embedding_host/README.md
@@ -27,7 +27,6 @@ Declared in [`mod.rs`](./mod.rs) and resolved by [`factory.rs`](./factory.rs):
| File | Role |
| --- | --- |
| `mod.rs` | Module docs and re-exports. Declares the provider list above. |
-| [`provider_trait.rs`](./provider_trait.rs) | Re-exports `EmbeddingProvider` and `format_embedding_signature` from `tinymemory_api::host`, and defines `TinyInferenceEmbeddingProvider`, the adapter from a TinyInference `EmbeddingModel` to the memory host's trait. |
| `factory.rs` | OpenHuman's binding onto TinyInference's embedding factory: `create_embedding_provider_with_credentials`, `create_embedding_provider_with_config`, and `default_embedding_provider_with_config` (falls back to a `Noop` model if the configured provider fails to build). |
| [`cloud_adapter.rs`](./cloud_adapter.rs) | `OpenHumanCloudEmbeddingModel`: the managed-provider transport, with OpenHuman's own bearer-token and egress-guard wiring around the crate-owned `CloudEmbeddingModel`. |
| [`rpc.rs`](./rpc.rs) + `rpc/` (`api_keys.rs`, `embed.rs`, `settings.rs`) | The `embeddings` RPC handlers: get/update settings, set/clear API key, embed text, test a connection. |
diff --git a/crates/openhuman-core/src/inference/embedding_host/mod_tests.rs b/crates/openhuman-core/src/inference/embedding_host/mod_tests.rs
index 1916ae740e..d62eec2a09 100644
--- a/crates/openhuman-core/src/inference/embedding_host/mod_tests.rs
+++ b/crates/openhuman-core/src/inference/embedding_host/mod_tests.rs
@@ -5,6 +5,7 @@
//! `embeddings` module.
use super::*;
+use tinyinference_embeddings::EmbeddingModel;
// ── create_embedding_provider_with_credentials ───────────