fix: fix sub agent timeout

This commit is contained in:
hetaoBackend
2026-02-08 21:09:18 +08:00
parent 5d4cecbb84
commit 17365e40d5
3 changed files with 15 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ class SubagentConfig:
disallowed_tools: Optional list of tool names to deny.
model: Model to use - 'inherit' uses parent's model.
max_turns: Maximum number of agent turns before stopping.
timeout_seconds: Maximum execution time in seconds (default: 300 = 5 minutes).
timeout_seconds: Maximum execution time in seconds (default: 900 = 15 minutes).
"""
name: str
@@ -25,4 +25,4 @@ class SubagentConfig:
disallowed_tools: list[str] | None = field(default_factory=lambda: ["task"])
model: str = "inherit"
max_turns: int = 50
timeout_seconds: int = 300
timeout_seconds: int = 900