@@ -21,7 +21,7 @@ def search_hotels(
2121 guests : Annotated [int , Field (description = "Number of guests." )] = 2 ,
2222) -> str :
2323 """Search for available hotels based on location and dates.
24-
24+
2525 Returns:
2626 JSON string containing search results with hotel details including name, rating,
2727 price, distance to landmarks, amenities, and availability.
@@ -88,7 +88,7 @@ def get_hotel_details(
8888 hotel_name : Annotated [str , Field (description = "Name of the hotel to get details for." )],
8989) -> str :
9090 """Get detailed information about a specific hotel.
91-
91+
9292 Returns:
9393 JSON string containing detailed hotel information including description,
9494 check-in/out times, cancellation policy, reviews, and nearby attractions.
@@ -167,7 +167,7 @@ def search_flights(
167167 passengers : Annotated [int , Field (description = "Number of passengers." )] = 1 ,
168168) -> str :
169169 """Search for available flights between two locations.
170-
170+
171171 Returns:
172172 JSON string containing flight search results with details including flight numbers,
173173 airlines, departure/arrival times, prices, durations, and baggage allowances.
@@ -289,7 +289,7 @@ def get_flight_details(
289289 flight_number : Annotated [str , Field (description = "Flight number (e.g., 'AF007' or 'DL264')." )],
290290) -> str :
291291 """Get detailed information about a specific flight.
292-
292+
293293 Returns:
294294 JSON string containing detailed flight information including airline, aircraft type,
295295 departure/arrival airports and times, gates, terminals, duration, and amenities.
@@ -331,7 +331,7 @@ def search_activities(
331331 category : Annotated [str | None , Field (description = "Activity category (e.g., 'Sightseeing', 'Culture', 'Culinary')." )] = None ,
332332) -> str :
333333 """Search for available activities and attractions at a destination.
334-
334+
335335 Returns:
336336 JSON string containing activity search results with details including name, category,
337337 duration, price, rating, description, availability, and booking requirements.
@@ -440,10 +440,7 @@ def search_activities(
440440 }
441441 ]
442442
443- if category :
444- activities = [act for act in all_activities if act ["category" ] == category ]
445- else :
446- activities = all_activities
443+ activities = [act for act in all_activities if act ["category" ] == category ] if category else all_activities
447444 else :
448445 activities = [
449446 {
@@ -473,7 +470,7 @@ def get_activity_details(
473470 activity_name : Annotated [str , Field (description = "Name of the activity to get details for." )],
474471) -> str :
475472 """Get detailed information about a specific activity.
476-
473+
477474 Returns:
478475 JSON string containing detailed activity information including description, duration,
479476 price, included items, meeting point, what to bring, cancellation policy, and reviews.
@@ -552,7 +549,7 @@ def confirm_booking(
552549 customer_info : Annotated [dict , Field (description = "Customer information including name and email." )],
553550) -> str :
554551 """Confirm a booking reservation.
555-
552+
556553 Returns:
557554 JSON string containing confirmation details including confirmation number,
558555 booking status, customer information, and next steps.
@@ -587,9 +584,9 @@ def check_hotel_availability(
587584 rooms : Annotated [int , Field (description = "Number of rooms needed." )] = 1 ,
588585) -> str :
589586 """Check availability for hotel rooms.
590-
587+
591588 Sample Date format: "December 15, 2025"
592-
589+
593590 Returns:
594591 JSON string containing availability status, available rooms count, price per night,
595592 and last checked timestamp.
@@ -621,9 +618,9 @@ def check_flight_availability(
621618 passengers : Annotated [int , Field (description = "Number of passengers." )] = 1 ,
622619) -> str :
623620 """Check availability for flight seats.
624-
621+
625622 Sample Date format: "December 15, 2025"
626-
623+
627624 Returns:
628625 JSON string containing availability status, available seats count, price per passenger,
629626 and last checked timestamp.
@@ -654,9 +651,9 @@ def check_activity_availability(
654651 participants : Annotated [int , Field (description = "Number of participants." )] = 1 ,
655652) -> str :
656653 """Check availability for activity bookings.
657-
654+
658655 Sample Date format: "December 16, 2025"
659-
656+
660657 Returns:
661658 JSON string containing availability status, available spots count, price per person,
662659 and last checked timestamp.
@@ -688,7 +685,7 @@ def process_payment(
688685 booking_reference : Annotated [str , Field (description = "Booking reference number for the payment." )],
689686) -> str :
690687 """Process payment for a booking.
691-
688+
692689 Returns:
693690 JSON string containing payment result with transaction ID, status, amount, currency,
694691 payment method details, and receipt URL.
@@ -718,7 +715,7 @@ def validate_payment_method(
718715 payment_method : Annotated [dict , Field (description = "Payment method to validate (type, number, expiry, cvv)." )],
719716) -> str :
720717 """Validate payment method details.
721-
718+
722719 Returns:
723720 JSON string containing validation result with is_valid flag, payment method type,
724721 validation messages, supported currencies, and processing fee information.
0 commit comments