feat: implement subagent tool gating and timeout mechanisms for enhanced security and performance

This commit is contained in:
asepharyana
2026-07-13 04:41:26 +07:00
parent d09e440e7e
commit 3b711bbf3b
7 changed files with 379 additions and 19 deletions
+11
View File
@@ -35,4 +35,15 @@ impl AgentDefinition {
self
}
/// Builder method: set the system prompt for this agent.
pub fn with_system_prompt(mut self, prompt: String) -> Self {
self.system_prompt = Some(prompt);
self
}
/// Builder method: set the allowed tool list for this agent.
pub fn with_allowed_tools(mut self, tools: Vec<String>) -> Self {
self.allowed_tools = Some(tools);
self
}
}