builder: require durable workspace execution
Some checks failed
build / build (push) Failing after 2s
Some checks failed
build / build (push) Failing after 2s
This commit is contained in:
11
agent.py
11
agent.py
@@ -35,6 +35,7 @@ class BuilderConfig(BaseModel):
|
||||
|
||||
|
||||
_URL_RE = re.compile(r"https?://[a-zA-Z0-9._-]+\.[a-zA-Z]{2,}[\w/?#%&=.-]*")
|
||||
DEEPAGENTS_RECURSION_LIMIT = 500
|
||||
|
||||
|
||||
class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
|
||||
@@ -130,11 +131,11 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
|
||||
async for event in graph.astream_events(
|
||||
{"messages": [{"role": "user", "content": user_msg}]},
|
||||
version="v2",
|
||||
# Default langgraph cap is 25 steps; one deepagents
|
||||
# build (list → write*3 → test → deploy) easily uses
|
||||
# 12-18, and any retry pushes it past the limit. Give
|
||||
# the loop headroom without letting it run away.
|
||||
config={"recursion_limit": 80},
|
||||
# Agent builds can legitimately run many tool/subagent turns:
|
||||
# scaffold, write skills/files, test, fix, retest, deploy, and
|
||||
# verify the live card. Keep this aligned with generated child
|
||||
# agents so complex DeepAgents workflows have the same budget.
|
||||
config={"recursion_limit": DEEPAGENTS_RECURSION_LIMIT},
|
||||
):
|
||||
kind = event.get("event")
|
||||
tname = event.get("name") or ""
|
||||
|
||||
Reference in New Issue
Block a user