Skip to content

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

refactor(agent_runs): drop unused agent chat controller schema export

Steven Enamakel31b21ef4afb3
diff --git a/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs b/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs
index b4eb2c682a..893feb60d3 100644
--- a/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs
+++ b/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs
@@ -99,10 +99,6 @@ pub(crate) fn schemas(function: &str) -> ControllerSchema {
}
}
-pub(crate) fn all_controller_schemas() -> Vec<ControllerSchema> {
- vec![schemas("agent_chat"), schemas("agent_chat_simple")]
-}
-
pub(crate) fn all_registered_controllers() -> Vec<RegisteredController> {
vec![
RegisteredController {
diff --git a/crates/openhuman-core/src/agent_runs/agent_chat/envelope.rs b/crates/openhuman-core/src/agent_runs/agent_chat/envelope.rs
index 4deed08b9f..7e0e8fb183 100644
--- a/crates/openhuman-core/src/agent_runs/agent_chat/envelope.rs
+++ b/crates/openhuman-core/src/agent_runs/agent_chat/envelope.rs
@@ -10,7 +10,7 @@ pub struct AgentChatReply {
/// The reply text. When `hit_cap` is set this is the turn's checkpoint.
pub text: String,
/// The turn paused at its iteration cap (see
- /// [`OpenHumanSessionHost::last_turn_hit_cap`]).
+ /// [`OpenHumanSessionHost::last_turn_hit_cap`](crate::agent::OpenHumanSessionHost::last_turn_hit_cap).
pub hit_cap: bool,
}
diff --git a/crates/openhuman-core/src/agent_runs/agent_chat/mod.rs b/crates/openhuman-core/src/agent_runs/agent_chat/mod.rs
index 78b91e1a99..35e150ba55 100644
--- a/crates/openhuman-core/src/agent_runs/agent_chat/mod.rs
+++ b/crates/openhuman-core/src/agent_runs/agent_chat/mod.rs
@@ -13,6 +13,5 @@ pub use session_turn::{
};
pub(crate) use controllers::{
- all_controller_schemas as all_inference_agent_chat_controller_schemas,
all_registered_controllers as all_inference_agent_chat_registered_controllers,
};
diff --git a/crates/openhuman-core/src/agent_runs/mod.rs b/crates/openhuman-core/src/agent_runs/mod.rs
index 49261cd5ca..6b2aabfa68 100644
--- a/crates/openhuman-core/src/agent_runs/mod.rs
+++ b/crates/openhuman-core/src/agent_runs/mod.rs
@@ -11,9 +11,7 @@ mod subagent_finalize;
pub(crate) mod workflow_runs;
pub(crate) mod worktree_schemas;
-pub(crate) use agent_chat::{
- all_inference_agent_chat_controller_schemas, all_inference_agent_chat_registered_controllers,
-};
+pub(crate) use agent_chat::all_inference_agent_chat_registered_controllers;
pub(crate) use agent_teams::{
all_agent_team_controller_schemas, all_agent_team_registered_controllers,
};