Remediate a postal address
remediate_addressRemediates postal addresses to ISO 20022 compliance by returning corrected address, findings, and patch operations with confidence scores.
Instructions
Propose the compliant form of an address, with explained changes.
Returns the findings, the before/after addresses, and the patch
operations (each carrying the finding it resolves, the source token,
and a confidence score).
Args:
address: The postal address to remediate.
policy_id: The policy to remediate for (defaults to cbpr-2026).
as_of: The assessment date (YYYY-MM-DD); defaults to today.
country_hint: Country to assume when the address has none.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | The assessment date as an ISO 8601 string (YYYY-MM-DD). Decides cliff wording; defaults to today. | |
| address | Yes | An ISO 20022 postal address as a JSON object using canonical field names, e.g. {'street_name': 'Downing St', 'building_number': '10', 'post_code': 'SW1A 2AA', 'town_name': 'London', 'country': 'GB'} or {'address_lines': ['10 Downing St', 'London SW1A 2AA'], 'country': 'GB'}. | |
| policy_id | No | The policy to assess against (see list_policies). Defaults to 'cbpr-2026' when omitted. | |
| country_hint | No | ISO 3166-1 alpha-2 hint. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||