Skip to content

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

refactor(inference): drop agent_chat controllers from host runtime

Steven Enamakele2dfd3b045d1
diff --git a/crates/openhuman-core/src/inference/host_runtime/schemas.rs b/crates/openhuman-core/src/inference/host_runtime/schemas.rs
index 9421e23496..e52cba87c9 100644
--- a/crates/openhuman-core/src/inference/host_runtime/schemas.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/schemas.rs
@@ -72,8 +72,6 @@ struct LocalAiTtsParams {
pub fn all_controller_schemas() -> Vec<ControllerSchema> {
vec![
- schemas("agent_chat"),
- schemas("agent_chat_simple"),
schemas("transcribe"),
schemas("transcribe_bytes"),
schemas("tts"),
@@ -83,14 +81,6 @@ pub fn all_controller_schemas() -> Vec<ControllerSchema> {
pub fn all_registered_controllers() -> Vec<RegisteredController> {
vec![
- RegisteredController {
- schema: schemas("agent_chat"),
- handler: handle_agent_chat,
- },
- RegisteredController {
- schema: schemas("agent_chat_simple"),
- handler: handle_agent_chat_simple,
- },
RegisteredController {
schema: schemas("transcribe"),
handler: handle_local_ai_transcribe,
diff --git a/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs b/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs
index f594738f8e..ce096c1c12 100644
--- a/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs
@@ -50,17 +50,6 @@ fn registered_controllers_all_in_inference_namespace() {
}
}
-#[test]
-fn agent_chat_controllers_are_registered_by_agent_runs_only() {
- let functions: Vec<_> = all_registered_controllers()
- .into_iter()
- .map(|controller| controller.schema.function)
- .collect();
-
- assert!(!functions.contains(&"agent_chat"));
- assert!(!functions.contains(&"agent_chat_simple"));
-}
-
#[test]
fn field_builder_helpers_are_correct_shape() {
let r = required_string("k", "c");