Cab Listing
fetch-cabsFull Description
Search available cabs between source and destination. Supports optional filters (cab type, fuel type, seats, luggage, AC, price range) and sorting (cheapest, priciest, rating). Include filters when the user specifies preferences like 'CNG cab', 'cab for 4 passengers', 'cheapest option', or 'luxury cab', both in initial requests and follow-ups. IMPORTANT: Before calling this tool, you MUST first resolve both source and destination locations using the resolve-cab-location tool to get their place_ids. Do NOT call this tool without valid place_ids from resolve-cab-location. Always ask the user explicitly for: travel date and pickup time. Never use default or assumed values for date and time - the user must provide them. If the response has status 'no_cabs_found', apologize politely and share the message and suggestion. Never say 'server error' or show raw error codes to the user.
Parameters (5 required, 2 optional)
datestringTravel date in dd-MM-yyyy or yyyy-MM-dd format (e.g., '05-03-2026' or '2026-03-05'). User may say 'tomorrow', 'next Monday', 'March 10' - convert to required format. Must be explicitly provided by the user, never assumed or defaulted.
destination_place_idstringGoogle Place ID for drop-off location. MUST be obtained from the resolve-cab-location tool first.
promptstringUser given prompt. This is the prompt that the user gave to the chatbot. Do not change it or remove it.
source_place_idstringGoogle Place ID for pickup location. MUST be obtained from the resolve-cab-location tool first.
timestringPickup time in HH:MM (24-hour) or H:MM AM/PM format (e.g., '14:30' or '2:30 PM'). User may say '3pm', 'afternoon', 'morning 10' - convert to required format. Must be explicitly provided by the user, never assumed or defaulted.
filtersobjectOptional filters to narrow cab results. Only include filters that the user explicitly requested. Do not add filters that the user did not mention.
sorterstringSort order for results. 'cheapest' for lowest fare first. 'priciest' for highest fare first (use for 'luxury'/'premium' requests when cabType alone is insufficient). 'rating' for highest rated first.
cheapestpriciestrating