Skip to content

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

chore: I don't see an actual diff in your message — the "Diff:" section is empty, and the stat is

Steven Enamakel7a0edb9b6d59
diff --git a/crates/openhuman-tinyhumans/src/integrations/media/mod.rs b/crates/openhuman-tinyhumans/src/integrations/media/mod.rs
new file mode 100644
index 0000000000..d106228301
--- /dev/null
+++ b/crates/openhuman-tinyhumans/src/integrations/media/mod.rs
@@ -0,0 +1,37 @@
+//! Managed media generation: OpenRouter image and video generators reached
+//! through the TinyHumans backend's `/agent-integrations/openrouter` proxy.
+//!
+//! The core owns the `media_generate_*` tools and the [`MediaGenerators`] pair
+//! they run over (`openhuman_embed::__host::media::generation`); this module
+//! supplies the generators ([`provider`]) and registers a tool source that
+//! builds the tools over them ([`register`]).
+//!
+//! [`MediaGenerators`]: openhuman_embed::__host::media::generation::MediaGenerators
+
+pub mod provider;
+
+use std::sync::Arc;
+
+use openhuman_embed::__host::media::generation::media_tools_for_config;
+use openhuman_embed::__host::tool_sources::register_tool_source;
+
+pub use provider::{managed_generators, OPENROUTER_PROXY_PATH};
+
+/// The id the media tool source registers under.
+pub const TOOL_SOURCE_ID: &str = "tinyhumans-media";
+
+/// Registers the media tool source with the core. Idempotent.
+pub(crate) fn register() {
+ register_tool_source(TOOL_SOURCE_ID, |ctx| {
+ let Some(generators) = managed_generators(ctx.root_config) else {
+ log::debug!("[tinyhumans] media: no managed generators; media tools skipped");
+ return Vec::new();
+ };
+ media_tools_for_config(
+ generators,
+ ctx.root_config,
+ ctx.action_dir,
+ Arc::clone(&ctx.security.media_artifact_paths),
+ )
+ });
+}