fix: align agent-builder with longer pack timeouts
All checks were successful
build / build (push) Successful in 27s
All checks were successful
build / build (push) Successful in 27s
This commit is contained in:
@@ -38,7 +38,7 @@ class ToolContext:
|
||||
async def _wait_for_live_card(
|
||||
url: str | None,
|
||||
expected_version: str | None,
|
||||
timeout_s: float = 180.0,
|
||||
timeout_s: float = 900.0,
|
||||
) -> tuple[bool, dict[str, Any]]:
|
||||
"""Poll ``{url}/.well-known/agent-card`` until ``version`` matches
|
||||
``expected_version`` or ``timeout_s`` elapses. Returns
|
||||
@@ -435,7 +435,11 @@ def build_tools(ctx: ToolContext) -> list[Any]:
|
||||
# so the LLM can verify the input_schema actually matches the
|
||||
# code it wrote — catches the schema/code skew that causes
|
||||
# downstream 400s on call_agent.
|
||||
live, live_card = await _wait_for_live_card(url_, version_)
|
||||
live, live_card = await _wait_for_live_card(
|
||||
url_,
|
||||
version_,
|
||||
timeout_s=settings.deploy_wait_timeout_s,
|
||||
)
|
||||
out: dict[str, Any] = {
|
||||
"ok": live,
|
||||
"name": name_,
|
||||
|
||||
Reference in New Issue
Block a user