Skip to content

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

chore: files changed crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs

Steven Enamakel12d842c1c6bd
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs
index b65d80b1b3..e87af0faf6 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs
@@ -4,8 +4,12 @@ use crate::config::Config;
/// The agent `channel` is bound to in `config.agent.channel_agents`, if any.
pub(crate) fn bound_agent_id<'a>(config: &'a Config, channel: &str) -> Option<&'a str> {
- let _ = (config, channel);
- None
+ config
+ .agent
+ .channel_agents
+ .get(channel)
+ .map(|id| id.trim())
+ .filter(|id| !id.is_empty())
}
#[cfg(test)]