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
chore: files changed crates/openhuman-core/src/media/README.md
Steven Enamakeledb9a9e8a031
diff --git a/crates/openhuman-core/src/media/README.md b/crates/openhuman-core/src/media/README.mdindex f5624bdf28..3c829b9c15 100644--- a/crates/openhuman-core/src/media/README.md+++ b/crates/openhuman-core/src/media/README.md@@ -1,16 +1,22 @@# MediaFamily root for media-related agent tool contracts. Agent-tools-only: no-controller, store, or bus subscriber is tagged `DomainGroup::Media`.+controller, store, or bus subscriber is tagged `DomainGroup::Media`; the only+thing the group tags is the `media_*` tool names (`tool_group()` in+`crates/openhuman-core/src/tools/ops.rs`), which is what the runtime+`DomainSet::media` flag filters.## Members- [`generation`](generation/mod.rs) — the `media_generate_*` agent tools(image/video via GMI, proxied through the TinyHumans backend). Wired: builtby `build_media_tools()` and registered from- `crates/openhuman-core/src/tools/ops.rs`.-- [`image`](image/README.md) — image tool contracts scaffold. Currently- unwired (#2997); no tool registers these contracts yet.+ `crates/openhuman-core/src/tools/ops.rs` under `#[cfg(feature = "media")]`.+ The builder returns no tools when `integrations::build_client()` yields no+ `IntegrationClient` for the config.+- [`image`](image/README.md) — image tool contracts scaffold+ (`image_generation`, `view_image`). Currently unwired (#2997); nothing+ outside `media/image/` references its types.## Gate@@ -22,17 +28,19 @@ Both children are wholly gated behind the `media` feature`scripts/ci/product-features.txt`, per the feature-forwarding rule in`AGENTS.md`.-It is a **surface-only** gate: media generation is backend-proxied over the-shared `reqwest` client, and the `image` crate's types are shared with channel-upload, so no exclusive dependency is shed by disabling it.+It is a **surface-only** gate: media generation is backend-proxied through the+shared `IntegrationClient`/`reqwest`, and `image` is a dependency-free contract+layer, so disabling the feature sheds no exclusive dependency.## `generation`-The backend (`/agent-integrations/media-generation/*`) owns provider keys,-billing, and the standardized contract. The tools here submit a generation-request, block with progress until it completes, download the resulting media-into `generated-media/` under the agent's `action_dir`-(`download.rs::GENERATED_MEDIA_DIR`), and return local file paths.+The backend (`/agent-integrations/media-generation/{images,videos,models}` and+`.../requests/{requestId}`) owns provider keys, billing, and the standardized+response envelope (`types.rs`). The tools submit a request, poll+`requests/{id}` every `POLL_INTERVAL` (4 s) until a terminal status or the+per-modality wait budget elapses, download the resulting media into+`generated-media/` under the agent's `action_dir` (`GENERATED_MEDIA_DIR` in+`download.rs`), and return the local artifact paths.Exported tools (`tools.rs`):@@ -40,8 +48,10 @@ Exported tools (`tools.rs`):- `MediaGenerateVideoTool` — `name() == "media_generate_video"`- `MediaListModelsTool` — `name() == "media_list_models"`-Tests: `generation/download_tests.rs` (extension/path derivation),-`generation/tools_tests.rs` (tool schema/execution behavior).+Tests: `generation/download_tests.rs` (file-extension derivation from+content type, URL, then kind), `generation/tools_tests.rs` (tool schemas and+metadata, empty-prompt rejection without network, and submit/poll/download+flows against a `wiremock` server).## Related docs