Car Comparison
car_comparisonFull Description
Use this when the user wants to compare two or more cars side by side.
Call this for prompts like:
- "Compare Creta vs Seltos"
- "Which is better, Swift or Baleno?"
- "Compare XUV700 AX7 and Scorpio N Z8"
- "Show me differences between Honda City and Verna"
Provide a list of 2 or more cars. Each car must include:
- make: brand name, such as Hyundai or Maruti
- model: model name, such as Creta or Swift
- version_name: optional variant name, such as SX(O) 1.5 Diesel AT
Behavior:
- If every car includes version_name, compare at the variant level.
- If any car does not include version_name, compare at the model level.
Returns a structured side-by-side comparison covering price, specs, transmission, fuel type, body style, features, ratings, and other key differences relevant to the user’s query.
Do not use this for a single-car lookup or for broad recommendation requests without explicit comparison targets.
Args: cars: Required list of 2 or more car objects, each with:
- make: Vehicle make/brand (e.g. Hyundai, Maruti).
- model: Vehicle model name (e.g. Creta, Swift).
- version_name: Optional; if present for all cars, comparison is version-level.
user_query: The raw user query used for context and logging.
Parameters (1 required, 1 optional)
carsarrayuser_querystring