Skip to content

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

refactor(embed): point agent chat imports at agent_runs module

Steven Enamakel59f97ca740f7
diff --git a/crates/openhuman-embed/src/turn.rs b/crates/openhuman-embed/src/turn.rs
index 97b2b44b0d..4f821cc2a8 100644
--- a/crates/openhuman-embed/src/turn.rs
+++ b/crates/openhuman-embed/src/turn.rs
@@ -10,7 +10,7 @@
//! # Why the params are a struct rather than `json!`
//!
//! The controller behind this method deserializes
-//! [`AgentChatParams`](openhuman_core::inference::host_runtime::schemas) — which
+//! the `agent_runs::agent_chat` controller params — which
//! carries no `#[serde(rename_all)]`, so its wire names are the Rust field names
//! exactly as spelled. Every embedder that hand-writes that JSON is therefore
//! depending on an unmarked, unversioned naming coincidence: rename a field
@@ -605,7 +605,7 @@ async fn dispatch(
openhuman_core::core::runtime::DispatchCtx::new(std::sync::Arc::clone(&ctx));
let turn: futures_box::BoxFuture<'_, Result<AgentReply, CoreError>> =
Box::pin(async move {
- use openhuman_core::inference::host_runtime::ops::{
+ use openhuman_core::agent_runs::agent_chat::{
agent_chat_reply_for, AgentChatTarget,
};
let mut config = dispatch
@@ -651,7 +651,7 @@ async fn dispatch(
// allocation per turn is nothing next to the turn itself.
let turn: futures_box::BoxFuture<'_, Result<AgentReply, CoreError>> =
Box::pin(async move {
- use openhuman_core::inference::host_runtime::ops::{
+ use openhuman_core::agent_runs::agent_chat::{
agent_chat_for, AgentChatTarget,
};
let mut config = inner.config.clone();
diff --git a/crates/openhuman-embed/src/turn_types.rs b/crates/openhuman-embed/src/turn_types.rs
index f6bc451a15..84ef3843ec 100644
--- a/crates/openhuman-embed/src/turn_types.rs
+++ b/crates/openhuman-embed/src/turn_types.rs
@@ -55,7 +55,7 @@ pub(super) fn overlay_response_usage(
/// strictly less capable, so the facade uses the wider surface and lets
/// [`Route`] be `None` when the account's own route is what is wanted.
///
-/// `INFERENCE_AGENT_CHAT` is owned by the inference domain; referencing it
+/// `INFERENCE_AGENT_CHAT` is owned by the agent-runs domain; referencing it
/// keeps this facade's dispatch string in lockstep with the registered
/// controller rather than duplicating the wire name.
///