From fa006e9c13e44deb518fe153d571e30d80d39118 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 13 Jul 2026 11:06:39 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/agent.py b/agent.py index 4715520..99df678 100644 --- a/agent.py +++ b/agent.py @@ -767,6 +767,14 @@ def redact_secrets(text: str) -> str: return redacted +def _redact_match(match: re.Match[str]) -> str: + return (match.group(1) if match.lastindex else "") + "[REDACTED]" + + +def _jsonschema_error_path(error: Any) -> Any: + return error.path + + def redact_obj(value: Any) -> Any: if isinstance(value, dict): out: dict[str, Any] = {}