a2a-source-edit: write agent.py
This commit is contained in:
4
agent.py
4
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)
|
||||
|
||||
Reference in New Issue
Block a user