detect_carrier
Identify the carrier from a tracking number format, with high confidence for UPS and DHL patterns and a fallback for ambiguous numbers.
Instructions
Guess the carrier from a tracking-number format (best effort).
Confident only for UPS ('1Z…') and DHL ('JJD…/JD…'). For ambiguous numeric numbers it returns the configured fallback carrier and confident=False.
Args: tracking_number: The number to classify.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tracking_number | Yes |