assign_vehicle
Assign an own-fleet vehicle to a shipment by validating capacity and maintenance status; returns warnings and alternative suggestions for conflicts.
Instructions
Assign an own-fleet vehicle to a shipment. Checks capacity and maintenance status; idempotent.
Args:
shipment_id: Shipment ID such as "SHP-1007".
vehicle_id: Vehicle ID such as "TRK-105".
Returns:
{"status": "ok", "warnings": [...], "vehicle": {...}} - warnings flag soft issues (vehicle in another
city, driver near the 10h limit, low fuel, cold-chain mismatch). Errors suggest alternative vehicles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vehicle_id | Yes | ||
| shipment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||