The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(toolpacks): add owner field to ToolPack for selective packing
Steven Enamakelb4943fc4920e
diff --git a/src/openhuman/tools/toolpacks/types.rs b/src/openhuman/tools/toolpacks/types.rsindex 6712b01752..efccab5f1e 100644--- a/src/openhuman/tools/toolpacks/types.rs+++ b/src/openhuman/tools/toolpacks/types.rs@@ -17,10 +17,28 @@ pub struct ToolPack {/// Tool names this pack owns. A name listed here is removed from the/// agent's advertised surface and reachable only through `use_skill`.pub tools: &'static [&'static str],+ /// Agent ids for which this pack is **not** applied.+ ///+ /// Withholding is a bet that the tools are idle in most turns. That bet is+ /// wrong for the specialist a family was delegated to: `settings_agent`+ /// exists precisely to run `config_*` / `health_*` / `service_*`, so+ /// packing them would put a `load_skill` round trip in front of the first+ /// call of every one of its turns and buy nothing — its whole belt is the+ /// pack.+ ///+ /// The earlier packs did not need this because they held only synthesised+ /// `delegate_*` tools, which exist on the orchestrator alone. Packs over+ /// raw tools do, and an owner list is the narrowest way to say so.+ pub owners: &'static [&'static str],}impl ToolPack {pub fn owns(&self, tool: &str) -> bool {self.tools.contains(&tool)}++ /// Whether `agent_id` is the specialist this pack's family belongs to.+ pub fn is_owner(&self, agent_id: &str) -> bool {+ self.owners.contains(&agent_id)+ }}