The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(tinyhumans): add README files for backend, hosted, and integrations modules
Steven Enamakel6e91f0072299
diff --git a/crates/openhuman-tinyhumans/src/backend/README.md b/crates/openhuman-tinyhumans/src/backend/README.mdindex fb48deb373..e96cc5c8bb 100644--- a/crates/openhuman-tinyhumans/src/backend/README.md+++ b/crates/openhuman-tinyhumans/src/backend/README.md@@ -2,20 +2,21 @@Everything host-specific about reaching the TinyHumans backend: where it is,how requests are attributed, and which product they are attributed to. The-core holds none of this. It asks the installed `BackendTransport`-(`SdkBackendTransport` in [`../transport/`](../transport/README.md)) through-the core's `backend::{base_url, inference_base_url, product_identity,-attribution_headers}`, and the transport answers from the three files here.+core holds none of this and has no backend module. This crate's config+enricher ([`../client/enricher.rs`](../client/enricher.rs), registered with+`config::register_enricher`) publishes the answers on `Config.resolved_endpoints`+for the core to read, and `SdkBackendTransport`+(in [`../transport/`](../transport/README.md)) answers from the three files here.## How it works```text- core asks SdkBackendTransport answers from+ asked for answered from------------------------------- ------------------------------------- backend::base_url(ControlPlane) -> url::effective_backend_api_url- backend::inference_base_url -> url::effective_api_url- backend::attribution_headers -> headers::attribution_headers- backend::product_identity -> product::product_identity+ control-plane base URL -> url::effective_backend_api_url+ inference base URL -> url::effective_api_url+ attribution headers -> headers::attribution_headers+ product identity -> product::product_identity(client construction) -> headers::build_backend_client```@@ -89,7 +90,7 @@ does not strip a custom header when following a cross-origin redirect.OpenHuman and other products (OpenCompany, for example) share one login andreach the backend through this crate. The `x-sdk-name` header tells thebackend which product a call came from. The identity is process-wide because-the core builds backend requests at many call sites that no embedding product+this crate builds backend requests at many call sites that no embedding productowns, so a host sets it once at startup with `set_product_identity`, beforeany backend traffic. A process that never sets it sends`DEFAULT_PRODUCT_IDENTITY` (`"openhuman"`).@@ -123,8 +124,7 @@ process.## Boundaries-- The core owns the questions (`backend::base_url` and friends in- [`crates/openhuman-core/src/backend/mod.rs`](../../../openhuman-core/src/backend/mod.rs)) and the URL utilities this file+- The core owns only the generic URL utilities this filere-exports (`openhuman_embed::__host::util::url`). It owns the app-environmentreading too (`config::app_env`).- Do not put the `x-sdk-name` header on third-party endpoints, MCP servers,diff --git a/crates/openhuman-tinyhumans/src/hosted/README.md b/crates/openhuman-tinyhumans/src/hosted/README.mdindex 1f20697fc2..27c4a45611 100644--- a/crates/openhuman-tinyhumans/src/hosted/README.md+++ b/crates/openhuman-tinyhumans/src/hosted/README.md@@ -145,11 +145,11 @@ contracts.has no typed method, a domain uses the SDK's raw request primitive(`billing`, and `oauth`'s `POST /auth/integrations/{id}/client-key`).`team`'s `POST /teams` and `DELETE /teams/{id}` are not in the SDK's route- registry at all, so they stay on the core's `BackendClient::authed_json`+ registry at all, so they stay on this crate's `BackendClient::authed_json`until the SDK carries them.- These domains do not go through `BackendTransport::send_json`; they build a- typed `TinyHumansClient` directly. They still depend on a transport being- installed, for the gate and for its HTTP client.+ typed `TinyHumansClient` directly. They still depend on this crate's shared transport, for the gate and for its+ HTTP client.## Gotchasdiff --git a/crates/openhuman-tinyhumans/src/integrations/README.md b/crates/openhuman-tinyhumans/src/integrations/README.mdindex 306de3cd7b..2fcc726300 100644--- a/crates/openhuman-tinyhumans/src/integrations/README.md+++ b/crates/openhuman-tinyhumans/src/integrations/README.md@@ -100,7 +100,7 @@ method accepts both a bare payload and a `success: false` envelope.### Errors-`map_transport_error` in [`client/errors.rs`](./client/errors.rs) turns a `BackendTransportError`+`map_transport_error` in [`client/errors.rs`](./client/errors.rs) turns a `crate::transport::BackendTransportError`into an `anyhow::Error` and routes it through`core::observability::report_error_or_expected` so expected failures stay outof Sentry: