a2a-source-edit: write agent.py
This commit is contained in:
3
agent.py
3
agent.py
@@ -611,7 +611,8 @@ class CustomerIntegrationEngineer(A2AAgent[CustomerIntegrationEngineerConfig, No
|
|||||||
|
|
||||||
@a2a.tool(description="Prepare rollout, rollback, monitoring, and operator handoff documentation with approval-gated delivery planning", timeout_seconds=120, idempotent=True, max_retries=0, cost_class="deterministic")
|
@a2a.tool(description="Prepare rollout, rollback, monitoring, and operator handoff documentation with approval-gated delivery planning", timeout_seconds=120, idempotent=True, max_retries=0, cost_class="deterministic")
|
||||||
async def prepare_handoff(self, ctx: RunContext[NoAuth], request: PrepareHandoffRequest) -> PrepareHandoffResult:
|
async def prepare_handoff(self, ctx: RunContext[NoAuth], request: PrepareHandoffRequest) -> PrepareHandoffResult:
|
||||||
audit = [_audit("handoff_started", request.integration_id, {"dry_run": request.dry_run, "delivery_actions": len(request.delivery_actions)})]
|
dry_run = _effective_dry_run(self, request.dry_run)
|
||||||
|
audit = [_audit("handoff_started", request.integration_id, {"dry_run": dry_run, "delivery_actions": len(request.delivery_actions)})]
|
||||||
await _emit(ctx, audit[-1])
|
await _emit(ctx, audit[-1])
|
||||||
plan_material = {
|
plan_material = {
|
||||||
"integration_id": request.integration_id,
|
"integration_id": request.integration_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user