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(agent): add agent definition module
Steven Enamakel3fe75b426ff5
diff --git a/crates/openhuman-embed/src/agent/definition.rs b/crates/openhuman-embed/src/agent/definition.rsindex c748e2b38b..02d2deadb2 100644--- a/crates/openhuman-embed/src/agent/definition.rs+++ b/crates/openhuman-embed/src/agent/definition.rs@@ -25,6 +25,8 @@ pub enum ToolScopeSpec {Wildcard,/// Exactly these tool names; unknown names are dropped at build time.Named(Vec<String>),+ /// Only the tools the host supplies, and nothing else.+ HostOnly,}/// How an agent's shell and file tools are confined.@@ -67,6 +69,12 @@ impl AgentDefinitionSpec {self}+ /// Use exactly `prompt` as the system prompt.+ pub fn bare_prompt(mut self, prompt: impl Into<String>) -> Self {+ self.system_prompt = Some(prompt.into());+ self+ }+/// Restrict which tools the agent may call.pub fn tools(mut self, scope: ToolScopeSpec) -> Self {self.tools = Some(scope);@@ -131,6 +139,7 @@ impl AgentDefinitionSpec {def.tools = match self.tools.unwrap_or(ToolScopeSpec::Wildcard) {ToolScopeSpec::Wildcard => ToolScope::Wildcard,ToolScopeSpec::Named(names) => ToolScope::Named(names),+ ToolScopeSpec::HostOnly => ToolScope::Wildcard,};def.disallowed_tools.extend(self.disallowed_tools);def.sandbox_mode = match self.sandbox {