feat: Hookup accommodations actions to graph

This commit is contained in:
bracesproul
2025-03-05 11:39:08 -08:00
parent 98c21f4e6e
commit 837fe86970
7 changed files with 112 additions and 61 deletions

View File

@@ -61,6 +61,7 @@ export async function extraction(
numberOfGuests: z
.number()
.optional()
.default(2)
.describe("The number of guests for the trip"),
});
@@ -113,7 +114,10 @@ Extract only what is specified by the user. It is okay to leave fields blank if
const extractionDetailsWithDefaults: TripDetails = {
startDate,
endDate,
numberOfGuests: extractedDetails.numberOfGuests ?? 2,
numberOfGuests:
extractedDetails.numberOfGuests !== undefined
? extractedDetails.numberOfGuests
: 2,
location: extractedDetails.location,
};