a2a-source-edit: write agent.py
This commit is contained in:
3
agent.py
3
agent.py
@@ -31,7 +31,6 @@ from a2a_pack import (
|
|||||||
WorkspaceAccess,
|
WorkspaceAccess,
|
||||||
WorkspaceMode,
|
WorkspaceMode,
|
||||||
)
|
)
|
||||||
from a2a_pack.mail import InboundEmailPayload
|
|
||||||
|
|
||||||
|
|
||||||
LEDGER_PATH = "outputs/support-refund-audit-ledger.json"
|
LEDGER_PATH = "outputs/support-refund-audit-ledger.json"
|
||||||
@@ -281,7 +280,7 @@ class ReceivesSupportEmailChecks1919313(A2AAgent[ReceivesSupportEmailChecks19193
|
|||||||
async def receive_support_email(
|
async def receive_support_email(
|
||||||
self,
|
self,
|
||||||
ctx: RunContext[NoAuth],
|
ctx: RunContext[NoAuth],
|
||||||
email: InboundEmailPayload,
|
email: dict[str, Any],
|
||||||
) -> dict[str, str] | None:
|
) -> dict[str, str] | None:
|
||||||
parsed = _extract_refund_request(email)
|
parsed = _extract_refund_request(email)
|
||||||
if not parsed.get("stripe_payment_intent_id"):
|
if not parsed.get("stripe_payment_intent_id"):
|
||||||
|
|||||||
Reference in New Issue
Block a user