From f4e958a71c64eecb641b69640e889cddc2b5c62e Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 13 Jul 2026 03:16:07 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent.py b/agent.py index cd88133..32d254b 100644 --- a/agent.py +++ b/agent.py @@ -464,7 +464,9 @@ class CustomerIntegrationEngineer(A2AAgent[CustomerIntegrationEngineerConfig, No @a2a.tool(description="Generate a minimal workspace-contained connector scaffold with no deployment or repository mutation", timeout_seconds=120, idempotent=True, max_retries=0, cost_class="deterministic") async def generate_connector(self, ctx: RunContext[NoAuth], request: GenerateConnectorRequest) -> GenerateConnectorResult: - req = request.requirements.model_copy(update={"dry_run": request.dry_run or request.requirements.dry_run}) + req = request.requirements.model_copy( + update={"dry_run": _effective_dry_run(self, request.dry_run, request.requirements.dry_run)} + ) audit = [_audit("connector_generation_started", req.integration_id, {"language": request.connector_language, "dry_run": req.dry_run})] await _emit(ctx, audit[-1]) warnings = _requirements_warnings(req)