a2a-source-edit: write agent.py

This commit is contained in:
a2a-cloud
2026-07-13 00:27:39 +00:00
parent c6fa8d7a99
commit 65b30c537e

View File

@@ -31,7 +31,6 @@ from a2a_pack import (
WorkspaceAccess,
WorkspaceMode,
)
from a2a_pack.mail import InboundEmailPayload
LEDGER_PATH = "outputs/support-refund-audit-ledger.json"
@@ -281,7 +280,7 @@ class ReceivesSupportEmailChecks1919313(A2AAgent[ReceivesSupportEmailChecks19193
async def receive_support_email(
self,
ctx: RunContext[NoAuth],
email: InboundEmailPayload,
email: dict[str, Any],
) -> dict[str, str] | None:
parsed = _extract_refund_request(email)
if not parsed.get("stripe_payment_intent_id"):