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
+4 -1
View File
@@ -199,7 +199,10 @@ impl LlmClient {
};
let url = format!("{}/chat/completions", self.base_url);
let max_retries = 10;
// Fewer retries on streaming because `run_agent_turn` has a
// non-streaming fallback that also retries. Combined total is
// capped implicitly by the per-turn timeout and step limits.
let max_retries = 3;
let mut attempt = 0;
let mut started = false;