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] = {}