Skip to content

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

fix(orchestration): remove unused spawn_async_subagent files

Steven Enamakelb896de4899d8
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
index 18f386410e..84c668b1db 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
@@ -173,10 +173,6 @@ impl Tool for SpawnAsyncSubagentTool {
"type": "string",
"description": "Optional exact model id for this spawn only."
},
- "toolkit": {
- "type": "string",
- "description": "Optional Composio toolkit slug (e.g. `gmail`). Narrows the Connected Integrations section of the sub-agent's prompt to that toolkit."
- },
"task_title": {
"type": "string",
"description": "Optional short title for the worker thread."
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_args.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_args.rs
index 22c5d5d7c2..0f37485775 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_args.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_args.rs
@@ -24,7 +24,6 @@ struct AsyncSpawnArgs {
prompt: String,
context: Option<String>,
model_override: Option<String>,
- toolkit_override: Option<String>,
task_title: String,
task_key: String,
force_fresh: bool,
@@ -52,11 +51,6 @@ fn decode_async_spawn_args(args: &serde_json::Value) -> AsyncSpawnArgs {
.and_then(|v| v.as_str())
.map(|s| s.trim().to_string())
.filter(|s| !s.is_empty());
- let toolkit_override = args
- .get("toolkit")
- .and_then(|v| v.as_str())
- .map(|s| s.trim().to_string())
- .filter(|s| !s.is_empty());
let task_title = args
.get("task_title")
.and_then(|v| v.as_str())
@@ -72,7 +66,6 @@ fn decode_async_spawn_args(args: &serde_json::Value) -> AsyncSpawnArgs {
prompt,
context,
model_override,
- toolkit_override,
task_title,
task_key,
force_fresh,
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
index 58aadcda12..abffab72c8 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
@@ -16,7 +16,6 @@ impl SpawnAsyncSubagentTool {
prompt,
context,
model_override,
- toolkit_override,
task_title,
task_key,
force_fresh,
@@ -148,7 +147,6 @@ impl SpawnAsyncSubagentTool {
parent_session: parent_session.clone(),
parent_thread_id: parent_thread_id.clone(),
agent_id: definition.id.clone(),
- toolkit: toolkit_override.clone(),
model: model_override.clone(),
sandbox_mode: format!("{:?}", definition.sandbox_mode),
action_root: subagent_sessions::action_root_key(effective_action_root.as_deref()),
@@ -421,8 +419,7 @@ impl SpawnAsyncSubagentTool {
crate::agent::turn_workspace::propagate(async move {
let options = SubagentRunOptions {
skill_filter_override: None,
- toolkit_override,
- context,
+ context,
model_override,
task_id: Some(background_task_id.clone()),
thread_id: Some(background_thread_id),