Wait for a ride update
wait_for_ride_updateWait for a ride status change and return the updated state, or the current state if the timeout expires. Call repeatedly to track each change and inform the user as it happens.
Instructions
Waits until the ride changes (driver found, driver arrived, trip started, finished, cancelled) and returns the new state, or returns the current state when the wait times out. Call it in a loop to follow a ride and tell the user each change as it happens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ride_id | No | Omit to follow the current active ride. | |
| timeout_seconds | No |