Skip to content

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

chore: files changed src/openhuman/agent/harness/session/types.rs

Steven Enamakel2d99e722b0cd
diff --git a/src/openhuman/agent/harness/session/types.rs b/src/openhuman/agent/harness/session/types.rs
index 8bfc05bcef..7478caf078 100644
--- a/src/openhuman/agent/harness/session/types.rs
+++ b/src/openhuman/agent/harness/session/types.rs
@@ -115,17 +115,17 @@ pub struct Agent {
pub(super) synthesized_tools: Arc<Vec<Box<dyn Tool>>>,
/// Full tool specs: [`Self::tools`]' specs first, then the synthesised
/// half, which [`Agent::refresh_delegation_tools`] swaps in place.
- pub(super) tool_specs: Arc<Vec<ToolSpec>>,
+ pub(super) tool_specs: Arc<Vec<Arc<ToolSpec>>>,
/// The specs of [`Self::tools`] alone, index for index. Sub-agents receive
/// these via [`ParentExecutionContext::all_tool_specs`] beside
/// [`Self::tools`], so a child's spec list can never name a synthesised
/// delegate it holds no instance for (#4452). Fixed for the life of the
/// agent, like the registry it describes.
- pub(super) durable_tool_specs: Arc<Vec<ToolSpec>>,
+ pub(super) durable_tool_specs: Arc<Vec<Arc<ToolSpec>>>,
/// Tool specs filtered by the visible-tool allowlist and session
/// permission policy. These are the specs actually sent to the
/// provider in the main agent's chat requests.
- pub(super) visible_tool_specs: Arc<Vec<ToolSpec>>,
+ pub(super) visible_tool_specs: Arc<Vec<Arc<ToolSpec>>>,
/// When non-empty, only these tool names are visible in the main
/// agent's prompt and callable by the main agent. Sub-agents intersect
/// their per-definition scopes with the effective parent-visible set.