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
feat(tinyhumans): add tinyhumans crate with channels, client, and inference modules
Steven Enamakel8a2145522a3b
diff --git a/crates/openhuman-tinyhumans/src/channels/mod.rs b/crates/openhuman-tinyhumans/src/channels/mod.rsnew file mode 100644index 0000000000..3146f5a87a--- /dev/null+++ b/crates/openhuman-tinyhumans/src/channels/mod.rs@@ -0,0 +1,14 @@+//! Hosted channel delivery and messaging.+//!+//! Empty for now: the code for this area moves here from `openhuman-core`'s+//! `backend/` and its consumers, and plugs back into the core through the+//! generic registries on `openhuman_embed::__host` (`channel_callback`). [`register`] is the+//! one place it does so; `crate::register::register_all` calls it from+//! `install()`.++use crate::install::InstallOptions;++/// Registers this area's hooks with the core. Idempotent.+pub(crate) fn register(_options: &InstallOptions) {+ log::trace!("[tinyhumans] channels: nothing to register yet");+}diff --git a/crates/openhuman-tinyhumans/src/client/mod.rs b/crates/openhuman-tinyhumans/src/client/mod.rsnew file mode 100644index 0000000000..0ed1114f79--- /dev/null+++ b/crates/openhuman-tinyhumans/src/client/mod.rs@@ -0,0 +1,14 @@+//! The authenticated hosted-backend client (`BackendClient`) and its error mapping.+//!+//! Empty for now: the code for this area moves here from `openhuman-core`'s+//! `backend/` and its consumers, and plugs back into the core through the+//! generic registries on `openhuman_embed::__host` (no registry; internal to this crate). [`register`] is the+//! one place it does so; `crate::register::register_all` calls it from+//! `install()`.++use crate::install::InstallOptions;++/// Registers this area's hooks with the core. Idempotent.+pub(crate) fn register(_options: &InstallOptions) {+ log::trace!("[tinyhumans] client: nothing to register yet");+}diff --git a/crates/openhuman-tinyhumans/src/inference/mod.rs b/crates/openhuman-tinyhumans/src/inference/mod.rsnew file mode 100644index 0000000000..6d4f7252ad--- /dev/null+++ b/crates/openhuman-tinyhumans/src/inference/mod.rs@@ -0,0 +1,14 @@+//! The managed inference provider: chat model, model catalog and cloud embeddings.+//!+//! Empty for now: the code for this area moves here from `openhuman-core`'s+//! `backend/` and its consumers, and plugs back into the core through the+//! generic registries on `openhuman_embed::__host` (`inference_registry`). [`register`] is the+//! one place it does so; `crate::register::register_all` calls it from+//! `install()`.++use crate::install::InstallOptions;++/// Registers this area's hooks with the core. Idempotent.+pub(crate) fn register(_options: &InstallOptions) {+ log::trace!("[tinyhumans] inference: nothing to register yet");+}diff --git a/crates/openhuman-tinyhumans/src/integrations/mod.rs b/crates/openhuman-tinyhumans/src/integrations/mod.rsnew file mode 100644index 0000000000..a1a30a58f2--- /dev/null+++ b/crates/openhuman-tinyhumans/src/integrations/mod.rs@@ -0,0 +1,14 @@+//! Hosted integrations: the integrations client, budget gate, file storage, media generation, web3 crypto client and the Composio backend route.+//!+//! Empty for now: the code for this area moves here from `openhuman-core`'s+//! `backend/` and its consumers, and plugs back into the core through the+//! generic registries on `openhuman_embed::__host` (`tool_sources`, `composio`). [`register`] is the+//! one place it does so; `crate::register::register_all` calls it from+//! `install()`.++use crate::install::InstallOptions;++/// Registers this area's hooks with the core. Idempotent.+pub(crate) fn register(_options: &InstallOptions) {+ log::trace!("[tinyhumans] integrations: nothing to register yet");+}diff --git a/crates/openhuman-tinyhumans/src/lib.rs b/crates/openhuman-tinyhumans/src/lib.rsindex 706280caa4..3788fa4c3d 100644--- a/crates/openhuman-tinyhumans/src/lib.rs+++ b/crates/openhuman-tinyhumans/src/lib.rs@@ -75,14 +75,21 @@ pub mod embed {pub use openhuman_embed::__host;pub mod backend;+pub(crate) mod channels;+pub(crate) mod client;pub mod hosted;+pub(crate) mod inference;mod install;+pub(crate) mod integrations;#[cfg(feature = "jev")]pub mod jev;pub mod jwt;+pub(crate) mod memory;+mod register;mod runtime;pub mod session;pub mod transport;+pub(crate) mod voice;pub use backend::{product_identity, set_product_identity, ProductIdentity};pub use hosted::extension as hosted_controllers;diff --git a/crates/openhuman-tinyhumans/src/memory/mod.rs b/crates/openhuman-tinyhumans/src/memory/mod.rsnew file mode 100644index 0000000000..fdd11f81a6--- /dev/null+++ b/crates/openhuman-tinyhumans/src/memory/mod.rs@@ -0,0 +1,14 @@+//! The hosted `tinyhumans` memory engine and its free-period check.+//!+//! Empty for now: the code for this area moves here from `openhuman-core`'s+//! `backend/` and its consumers, and plugs back into the core through the+//! generic registries on `openhuman_embed::__host` (`memory_engines`). [`register`] is the+//! one place it does so; `crate::register::register_all` calls it from+//! `install()`.++use crate::install::InstallOptions;++/// Registers this area's hooks with the core. Idempotent.+pub(crate) fn register(_options: &InstallOptions) {+ log::trace!("[tinyhumans] memory: nothing to register yet");+}diff --git a/crates/openhuman-tinyhumans/src/register.rs b/crates/openhuman-tinyhumans/src/register.rsnew file mode 100644index 0000000000..a90c4bdd57--- /dev/null+++ b/crates/openhuman-tinyhumans/src/register.rs@@ -0,0 +1,27 @@+//! The one place this crate plugs into the core's generic registries.+//!+//! [`register_all`] runs from [`install`](crate::install) (and so from+//! [`RuntimeBuilder::build`](crate::RuntimeBuilder::build), which installs+//! first). Each area adds exactly one line; an area registers through the+//! `openhuman_embed::__host` extension points and nothing else.+//!+//! Registration is idempotent: re-registering an id replaces it in place, so a+//! second `install` is harmless.++use crate::install::InstallOptions;+use crate::{channels, client, inference, integrations, memory, voice};++/// Registers every area's hooks with the core.+pub(crate) fn register_all(options: &InstallOptions) {+ log::debug!("[tinyhumans] register_all: registering core hooks");+ client::register(options);+ integrations::register(options);+ voice::register(options);+ inference::register(options);+ channels::register(options);+ memory::register(options);+}++#[cfg(test)]+#[path = "register_tests.rs"]+mod tests;diff --git a/crates/openhuman-tinyhumans/src/register_tests.rs b/crates/openhuman-tinyhumans/src/register_tests.rsnew file mode 100644index 0000000000..1a110ede65--- /dev/null+++ b/crates/openhuman-tinyhumans/src/register_tests.rs@@ -0,0 +1,8 @@+use super::*;++#[test]+fn register_all_is_idempotent() {+ let options = InstallOptions::default();+ register_all(&options);+ register_all(&options);+}diff --git a/crates/openhuman-tinyhumans/src/voice/mod.rs b/crates/openhuman-tinyhumans/src/voice/mod.rsnew file mode 100644index 0000000000..9d089550b8--- /dev/null+++ b/crates/openhuman-tinyhumans/src/voice/mod.rs@@ -0,0 +1,14 @@+//! Hosted speech: cloud transcription, reply speech, realtime voice agents and the hosted live providers.+//!+//! Empty for now: the code for this area moves here from `openhuman-core`'s+//! `backend/` and its consumers, and plugs back into the core through the+//! generic registries on `openhuman_embed::__host` (`voice_registry`). [`register`] is the+//! one place it does so; `crate::register::register_all` calls it from+//! `install()`.++use crate::install::InstallOptions;++/// Registers this area's hooks with the core. Idempotent.+pub(crate) fn register(_options: &InstallOptions) {+ log::trace!("[tinyhumans] voice: nothing to register yet");+}