@ktemia/langchain 0.0.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,519 @@
1
+ import * as _langchain_core_tools from '@langchain/core/tools';
2
+ import { BaseToolkit, StructuredToolInterface } from '@langchain/core/tools';
3
+ import { z } from 'zod';
4
+ import { KtemiaOptions, Ktemia } from 'ktemia';
5
+ export { Ktemia, KtemiaError } from 'ktemia';
6
+
7
+ declare const VERSION = "0.1.1";
8
+ interface KtemiaToolOptions extends KtemiaOptions {
9
+ /** Reuse an existing client instead of creating one from the options above. */
10
+ client?: Ktemia;
11
+ }
12
+ declare const lookupSchema: z.ZodObject<{
13
+ kind: z.ZodEnum<{
14
+ airport: "airport";
15
+ airline: "airline";
16
+ hotelLocation: "hotelLocation";
17
+ carLocation: "carLocation";
18
+ }>;
19
+ query: z.ZodString;
20
+ type: z.ZodOptional<z.ZodEnum<{
21
+ airport: "airport";
22
+ city: "city";
23
+ all: "all";
24
+ }>>;
25
+ country: z.ZodOptional<z.ZodString>;
26
+ locale: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ declare const flightSchema: z.ZodObject<{
29
+ nextToken: z.ZodOptional<z.ZodString>;
30
+ origin: z.ZodOptional<z.ZodString>;
31
+ destination: z.ZodOptional<z.ZodString>;
32
+ departureDate: z.ZodOptional<z.ZodString>;
33
+ returnDate: z.ZodOptional<z.ZodString>;
34
+ legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ origin: z.ZodString;
36
+ destination: z.ZodString;
37
+ date: z.ZodString;
38
+ }, z.core.$strip>>>;
39
+ cabin: z.ZodOptional<z.ZodEnum<{
40
+ economy: "economy";
41
+ premiumEconomy: "premiumEconomy";
42
+ business: "business";
43
+ first: "first";
44
+ }>>;
45
+ passengers: z.ZodOptional<z.ZodObject<{
46
+ adults: z.ZodOptional<z.ZodNumber>;
47
+ children: z.ZodOptional<z.ZodNumber>;
48
+ infantsOnLap: z.ZodOptional<z.ZodNumber>;
49
+ }, z.core.$strip>>;
50
+ maxStops: z.ZodOptional<z.ZodNumber>;
51
+ airlines: z.ZodOptional<z.ZodArray<z.ZodString>>;
52
+ alliances: z.ZodOptional<z.ZodArray<z.ZodEnum<{
53
+ oneworld: "oneworld";
54
+ skyteam: "skyteam";
55
+ starAlliance: "starAlliance";
56
+ }>>>;
57
+ maxPrice: z.ZodOptional<z.ZodNumber>;
58
+ sortBy: z.ZodOptional<z.ZodEnum<{
59
+ bestValue: "bestValue";
60
+ price: "price";
61
+ duration: "duration";
62
+ departure: "departure";
63
+ arrival: "arrival";
64
+ }>>;
65
+ sortOrder: z.ZodOptional<z.ZodEnum<{
66
+ asc: "asc";
67
+ desc: "desc";
68
+ }>>;
69
+ country: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>;
71
+ declare const hotelSchema: z.ZodObject<{
72
+ nextToken: z.ZodOptional<z.ZodString>;
73
+ location: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
74
+ checkin: z.ZodOptional<z.ZodString>;
75
+ checkout: z.ZodOptional<z.ZodString>;
76
+ adults: z.ZodOptional<z.ZodNumber>;
77
+ rooms: z.ZodOptional<z.ZodNumber>;
78
+ childAges: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
79
+ minStars: z.ZodOptional<z.ZodNumber>;
80
+ minRating: z.ZodOptional<z.ZodNumber>;
81
+ maxPrice: z.ZodOptional<z.ZodNumber>;
82
+ freeCancellation: z.ZodOptional<z.ZodBoolean>;
83
+ amenities: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
+ providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
+ sortBy: z.ZodOptional<z.ZodEnum<{
86
+ bestValue: "bestValue";
87
+ price: "price";
88
+ rating: "rating";
89
+ stars: "stars";
90
+ distance: "distance";
91
+ }>>;
92
+ sortOrder: z.ZodOptional<z.ZodEnum<{
93
+ asc: "asc";
94
+ desc: "desc";
95
+ }>>;
96
+ country: z.ZodOptional<z.ZodString>;
97
+ }, z.core.$strip>;
98
+ declare const carSchema: z.ZodObject<{
99
+ nextToken: z.ZodOptional<z.ZodString>;
100
+ pickupLocation: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
101
+ dropoffLocation: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
102
+ pickupDate: z.ZodOptional<z.ZodString>;
103
+ dropoffDate: z.ZodOptional<z.ZodString>;
104
+ pickupTime: z.ZodOptional<z.ZodString>;
105
+ dropoffTime: z.ZodOptional<z.ZodString>;
106
+ driverAge: z.ZodOptional<z.ZodNumber>;
107
+ carClass: z.ZodOptional<z.ZodEnum<{
108
+ small: "small";
109
+ medium: "medium";
110
+ large: "large";
111
+ suv: "suv";
112
+ van: "van";
113
+ pickup: "pickup";
114
+ luxury: "luxury";
115
+ convertible: "convertible";
116
+ }>>;
117
+ transmission: z.ZodOptional<z.ZodEnum<{
118
+ automatic: "automatic";
119
+ manual: "manual";
120
+ }>>;
121
+ maxPrice: z.ZodOptional<z.ZodNumber>;
122
+ providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
+ agencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
124
+ sortBy: z.ZodOptional<z.ZodEnum<{
125
+ bestValue: "bestValue";
126
+ price: "price";
127
+ rating: "rating";
128
+ distance: "distance";
129
+ }>>;
130
+ sortOrder: z.ZodOptional<z.ZodEnum<{
131
+ asc: "asc";
132
+ desc: "desc";
133
+ }>>;
134
+ priceMode: z.ZodOptional<z.ZodEnum<{
135
+ total: "total";
136
+ perDay: "perDay";
137
+ }>>;
138
+ country: z.ZodOptional<z.ZodString>;
139
+ }, z.core.$strip>;
140
+ declare const detailsSchema: z.ZodObject<{
141
+ vertical: z.ZodEnum<{
142
+ flights: "flights";
143
+ hotels: "hotels";
144
+ cars: "cars";
145
+ }>;
146
+ token: z.ZodString;
147
+ resultId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
148
+ }, z.core.$strip>;
149
+ declare const reviewsSchema: z.ZodObject<{
150
+ hotelId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
151
+ sortBy: z.ZodOptional<z.ZodEnum<{
152
+ recent: "recent";
153
+ oldest: "oldest";
154
+ highestScore: "highestScore";
155
+ lowestScore: "lowestScore";
156
+ }>>;
157
+ travelerTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
158
+ business: "business";
159
+ families: "families";
160
+ couples: "couples";
161
+ solo: "solo";
162
+ friends: "friends";
163
+ }>>>;
164
+ months: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
165
+ sources: z.ZodOptional<z.ZodArray<z.ZodEnum<{
166
+ booking: "booking";
167
+ agoda: "agoda";
168
+ priceline: "priceline";
169
+ }>>>;
170
+ search: z.ZodOptional<z.ZodString>;
171
+ page: z.ZodOptional<z.ZodNumber>;
172
+ }, z.core.$strip>;
173
+ type LookupInput = z.infer<typeof lookupSchema>;
174
+ type SearchFlightsInput = z.infer<typeof flightSchema>;
175
+ type SearchHotelsInput = z.infer<typeof hotelSchema>;
176
+ type SearchCarsInput = z.infer<typeof carSchema>;
177
+ type GetDetailsInput = z.infer<typeof detailsSchema>;
178
+ type HotelReviewsInput = z.infer<typeof reviewsSchema>;
179
+ /** Plan, rate limits, and remaining monthly quota. Free: never counts against the quota. */
180
+ declare function keyStatus(options?: KtemiaToolOptions): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{}, z.core.$strip>, Record<string, never>, Record<string, never>, string, unknown, "ktemia_key_status">;
181
+ /** Resolves place and airline names to the codes and location ids searches need. */
182
+ declare function lookup(options?: KtemiaToolOptions): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
183
+ kind: z.ZodEnum<{
184
+ airport: "airport";
185
+ airline: "airline";
186
+ hotelLocation: "hotelLocation";
187
+ carLocation: "carLocation";
188
+ }>;
189
+ query: z.ZodString;
190
+ type: z.ZodOptional<z.ZodEnum<{
191
+ airport: "airport";
192
+ city: "city";
193
+ all: "all";
194
+ }>>;
195
+ country: z.ZodOptional<z.ZodString>;
196
+ locale: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strip>, {
198
+ kind: "airport" | "airline" | "hotelLocation" | "carLocation";
199
+ query: string;
200
+ type?: "airport" | "city" | "all" | undefined;
201
+ country?: string | undefined;
202
+ locale?: string | undefined;
203
+ }, {
204
+ kind: "airport" | "airline" | "hotelLocation" | "carLocation";
205
+ query: string;
206
+ type?: "airport" | "city" | "all" | undefined;
207
+ country?: string | undefined;
208
+ locale?: string | undefined;
209
+ }, string, unknown, "ktemia_lookup">;
210
+ /** Searches flights. Pass nextToken alone to read the next page. */
211
+ declare function searchFlights(options?: KtemiaToolOptions): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
212
+ nextToken: z.ZodOptional<z.ZodString>;
213
+ origin: z.ZodOptional<z.ZodString>;
214
+ destination: z.ZodOptional<z.ZodString>;
215
+ departureDate: z.ZodOptional<z.ZodString>;
216
+ returnDate: z.ZodOptional<z.ZodString>;
217
+ legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
218
+ origin: z.ZodString;
219
+ destination: z.ZodString;
220
+ date: z.ZodString;
221
+ }, z.core.$strip>>>;
222
+ cabin: z.ZodOptional<z.ZodEnum<{
223
+ economy: "economy";
224
+ premiumEconomy: "premiumEconomy";
225
+ business: "business";
226
+ first: "first";
227
+ }>>;
228
+ passengers: z.ZodOptional<z.ZodObject<{
229
+ adults: z.ZodOptional<z.ZodNumber>;
230
+ children: z.ZodOptional<z.ZodNumber>;
231
+ infantsOnLap: z.ZodOptional<z.ZodNumber>;
232
+ }, z.core.$strip>>;
233
+ maxStops: z.ZodOptional<z.ZodNumber>;
234
+ airlines: z.ZodOptional<z.ZodArray<z.ZodString>>;
235
+ alliances: z.ZodOptional<z.ZodArray<z.ZodEnum<{
236
+ oneworld: "oneworld";
237
+ skyteam: "skyteam";
238
+ starAlliance: "starAlliance";
239
+ }>>>;
240
+ maxPrice: z.ZodOptional<z.ZodNumber>;
241
+ sortBy: z.ZodOptional<z.ZodEnum<{
242
+ bestValue: "bestValue";
243
+ price: "price";
244
+ duration: "duration";
245
+ departure: "departure";
246
+ arrival: "arrival";
247
+ }>>;
248
+ sortOrder: z.ZodOptional<z.ZodEnum<{
249
+ asc: "asc";
250
+ desc: "desc";
251
+ }>>;
252
+ country: z.ZodOptional<z.ZodString>;
253
+ }, z.core.$strip>, {
254
+ nextToken?: string | undefined;
255
+ origin?: string | undefined;
256
+ destination?: string | undefined;
257
+ departureDate?: string | undefined;
258
+ returnDate?: string | undefined;
259
+ legs?: {
260
+ origin: string;
261
+ destination: string;
262
+ date: string;
263
+ }[] | undefined;
264
+ cabin?: "economy" | "premiumEconomy" | "business" | "first" | undefined;
265
+ passengers?: {
266
+ adults?: number | undefined;
267
+ children?: number | undefined;
268
+ infantsOnLap?: number | undefined;
269
+ } | undefined;
270
+ maxStops?: number | undefined;
271
+ airlines?: string[] | undefined;
272
+ alliances?: ("oneworld" | "skyteam" | "starAlliance")[] | undefined;
273
+ maxPrice?: number | undefined;
274
+ sortBy?: "bestValue" | "price" | "duration" | "departure" | "arrival" | undefined;
275
+ sortOrder?: "asc" | "desc" | undefined;
276
+ country?: string | undefined;
277
+ }, {
278
+ nextToken?: string | undefined;
279
+ origin?: string | undefined;
280
+ destination?: string | undefined;
281
+ departureDate?: string | undefined;
282
+ returnDate?: string | undefined;
283
+ legs?: {
284
+ origin: string;
285
+ destination: string;
286
+ date: string;
287
+ }[] | undefined;
288
+ cabin?: "economy" | "premiumEconomy" | "business" | "first" | undefined;
289
+ passengers?: {
290
+ adults?: number | undefined;
291
+ children?: number | undefined;
292
+ infantsOnLap?: number | undefined;
293
+ } | undefined;
294
+ maxStops?: number | undefined;
295
+ airlines?: string[] | undefined;
296
+ alliances?: ("oneworld" | "skyteam" | "starAlliance")[] | undefined;
297
+ maxPrice?: number | undefined;
298
+ sortBy?: "bestValue" | "price" | "duration" | "departure" | "arrival" | undefined;
299
+ sortOrder?: "asc" | "desc" | undefined;
300
+ country?: string | undefined;
301
+ }, string, unknown, "ktemia_search_flights">;
302
+ /** Searches hotels by locationId. Pass nextToken alone to read the next page. */
303
+ declare function searchHotels(options?: KtemiaToolOptions): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
304
+ nextToken: z.ZodOptional<z.ZodString>;
305
+ location: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
306
+ checkin: z.ZodOptional<z.ZodString>;
307
+ checkout: z.ZodOptional<z.ZodString>;
308
+ adults: z.ZodOptional<z.ZodNumber>;
309
+ rooms: z.ZodOptional<z.ZodNumber>;
310
+ childAges: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
311
+ minStars: z.ZodOptional<z.ZodNumber>;
312
+ minRating: z.ZodOptional<z.ZodNumber>;
313
+ maxPrice: z.ZodOptional<z.ZodNumber>;
314
+ freeCancellation: z.ZodOptional<z.ZodBoolean>;
315
+ amenities: z.ZodOptional<z.ZodArray<z.ZodString>>;
316
+ providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
317
+ sortBy: z.ZodOptional<z.ZodEnum<{
318
+ bestValue: "bestValue";
319
+ price: "price";
320
+ rating: "rating";
321
+ stars: "stars";
322
+ distance: "distance";
323
+ }>>;
324
+ sortOrder: z.ZodOptional<z.ZodEnum<{
325
+ asc: "asc";
326
+ desc: "desc";
327
+ }>>;
328
+ country: z.ZodOptional<z.ZodString>;
329
+ }, z.core.$strip>, {
330
+ nextToken?: string | undefined;
331
+ location?: string | number | undefined;
332
+ checkin?: string | undefined;
333
+ checkout?: string | undefined;
334
+ adults?: number | undefined;
335
+ rooms?: number | undefined;
336
+ childAges?: number[] | undefined;
337
+ minStars?: number | undefined;
338
+ minRating?: number | undefined;
339
+ maxPrice?: number | undefined;
340
+ freeCancellation?: boolean | undefined;
341
+ amenities?: string[] | undefined;
342
+ providers?: string[] | undefined;
343
+ sortBy?: "bestValue" | "price" | "rating" | "stars" | "distance" | undefined;
344
+ sortOrder?: "asc" | "desc" | undefined;
345
+ country?: string | undefined;
346
+ }, {
347
+ nextToken?: string | undefined;
348
+ location?: string | number | undefined;
349
+ checkin?: string | undefined;
350
+ checkout?: string | undefined;
351
+ adults?: number | undefined;
352
+ rooms?: number | undefined;
353
+ childAges?: number[] | undefined;
354
+ minStars?: number | undefined;
355
+ minRating?: number | undefined;
356
+ maxPrice?: number | undefined;
357
+ freeCancellation?: boolean | undefined;
358
+ amenities?: string[] | undefined;
359
+ providers?: string[] | undefined;
360
+ sortBy?: "bestValue" | "price" | "rating" | "stars" | "distance" | undefined;
361
+ sortOrder?: "asc" | "desc" | undefined;
362
+ country?: string | undefined;
363
+ }, string, unknown, "ktemia_search_hotels">;
364
+ /** Searches rental cars by locationId. Pass nextToken alone to read the next page. */
365
+ declare function searchCars(options?: KtemiaToolOptions): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
366
+ nextToken: z.ZodOptional<z.ZodString>;
367
+ pickupLocation: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
368
+ dropoffLocation: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
369
+ pickupDate: z.ZodOptional<z.ZodString>;
370
+ dropoffDate: z.ZodOptional<z.ZodString>;
371
+ pickupTime: z.ZodOptional<z.ZodString>;
372
+ dropoffTime: z.ZodOptional<z.ZodString>;
373
+ driverAge: z.ZodOptional<z.ZodNumber>;
374
+ carClass: z.ZodOptional<z.ZodEnum<{
375
+ small: "small";
376
+ medium: "medium";
377
+ large: "large";
378
+ suv: "suv";
379
+ van: "van";
380
+ pickup: "pickup";
381
+ luxury: "luxury";
382
+ convertible: "convertible";
383
+ }>>;
384
+ transmission: z.ZodOptional<z.ZodEnum<{
385
+ automatic: "automatic";
386
+ manual: "manual";
387
+ }>>;
388
+ maxPrice: z.ZodOptional<z.ZodNumber>;
389
+ providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
390
+ agencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
391
+ sortBy: z.ZodOptional<z.ZodEnum<{
392
+ bestValue: "bestValue";
393
+ price: "price";
394
+ rating: "rating";
395
+ distance: "distance";
396
+ }>>;
397
+ sortOrder: z.ZodOptional<z.ZodEnum<{
398
+ asc: "asc";
399
+ desc: "desc";
400
+ }>>;
401
+ priceMode: z.ZodOptional<z.ZodEnum<{
402
+ total: "total";
403
+ perDay: "perDay";
404
+ }>>;
405
+ country: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$strip>, {
407
+ nextToken?: string | undefined;
408
+ pickupLocation?: string | number | undefined;
409
+ dropoffLocation?: string | number | undefined;
410
+ pickupDate?: string | undefined;
411
+ dropoffDate?: string | undefined;
412
+ pickupTime?: string | undefined;
413
+ dropoffTime?: string | undefined;
414
+ driverAge?: number | undefined;
415
+ carClass?: "small" | "medium" | "large" | "suv" | "van" | "pickup" | "luxury" | "convertible" | undefined;
416
+ transmission?: "automatic" | "manual" | undefined;
417
+ maxPrice?: number | undefined;
418
+ providers?: string[] | undefined;
419
+ agencies?: string[] | undefined;
420
+ sortBy?: "bestValue" | "price" | "rating" | "distance" | undefined;
421
+ sortOrder?: "asc" | "desc" | undefined;
422
+ priceMode?: "total" | "perDay" | undefined;
423
+ country?: string | undefined;
424
+ }, {
425
+ nextToken?: string | undefined;
426
+ pickupLocation?: string | number | undefined;
427
+ dropoffLocation?: string | number | undefined;
428
+ pickupDate?: string | undefined;
429
+ dropoffDate?: string | undefined;
430
+ pickupTime?: string | undefined;
431
+ dropoffTime?: string | undefined;
432
+ driverAge?: number | undefined;
433
+ carClass?: "small" | "medium" | "large" | "suv" | "van" | "pickup" | "luxury" | "convertible" | undefined;
434
+ transmission?: "automatic" | "manual" | undefined;
435
+ maxPrice?: number | undefined;
436
+ providers?: string[] | undefined;
437
+ agencies?: string[] | undefined;
438
+ sortBy?: "bestValue" | "price" | "rating" | "distance" | undefined;
439
+ sortOrder?: "asc" | "desc" | undefined;
440
+ priceMode?: "total" | "perDay" | undefined;
441
+ country?: string | undefined;
442
+ }, string, unknown, "ktemia_search_cars">;
443
+ /** Every price and booking link for one chosen result. */
444
+ declare function getDetails(options?: KtemiaToolOptions): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
445
+ vertical: z.ZodEnum<{
446
+ flights: "flights";
447
+ hotels: "hotels";
448
+ cars: "cars";
449
+ }>;
450
+ token: z.ZodString;
451
+ resultId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
452
+ }, z.core.$strip>, {
453
+ vertical: "flights" | "hotels" | "cars";
454
+ token: string;
455
+ resultId: string | number;
456
+ }, {
457
+ vertical: "flights" | "hotels" | "cars";
458
+ token: string;
459
+ resultId: string | number;
460
+ }, string, unknown, "ktemia_get_details">;
461
+ /** Guest reviews for one hotel, with filters and numbered pages. */
462
+ declare function hotelReviews(options?: KtemiaToolOptions): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
463
+ hotelId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
464
+ sortBy: z.ZodOptional<z.ZodEnum<{
465
+ recent: "recent";
466
+ oldest: "oldest";
467
+ highestScore: "highestScore";
468
+ lowestScore: "lowestScore";
469
+ }>>;
470
+ travelerTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
471
+ business: "business";
472
+ families: "families";
473
+ couples: "couples";
474
+ solo: "solo";
475
+ friends: "friends";
476
+ }>>>;
477
+ months: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
478
+ sources: z.ZodOptional<z.ZodArray<z.ZodEnum<{
479
+ booking: "booking";
480
+ agoda: "agoda";
481
+ priceline: "priceline";
482
+ }>>>;
483
+ search: z.ZodOptional<z.ZodString>;
484
+ page: z.ZodOptional<z.ZodNumber>;
485
+ }, z.core.$strip>, {
486
+ hotelId: string | number;
487
+ sortBy?: "recent" | "oldest" | "highestScore" | "lowestScore" | undefined;
488
+ travelerTypes?: ("business" | "families" | "couples" | "solo" | "friends")[] | undefined;
489
+ months?: number[] | undefined;
490
+ sources?: ("booking" | "agoda" | "priceline")[] | undefined;
491
+ search?: string | undefined;
492
+ page?: number | undefined;
493
+ }, {
494
+ hotelId: string | number;
495
+ sortBy?: "recent" | "oldest" | "highestScore" | "lowestScore" | undefined;
496
+ travelerTypes?: ("business" | "families" | "couples" | "solo" | "friends")[] | undefined;
497
+ months?: number[] | undefined;
498
+ sources?: ("booking" | "agoda" | "priceline")[] | undefined;
499
+ search?: string | undefined;
500
+ page?: number | undefined;
501
+ }, string, unknown, "ktemia_get_hotel_reviews">;
502
+ /**
503
+ * All seven Ktemia tools, sharing one client.
504
+ *
505
+ * ```ts
506
+ * import { createAgent } from "langchain";
507
+ * import { ktemiaTools } from "@ktemia/langchain";
508
+ *
509
+ * const agent = createAgent({ model: "openai:gpt-5-mini", tools: ktemiaTools() });
510
+ * ```
511
+ */
512
+ declare function ktemiaTools(options?: KtemiaToolOptions): StructuredToolInterface[];
513
+ /** The seven Ktemia tools as a LangChain toolkit. Same tools as {@link ktemiaTools}. */
514
+ declare class KtemiaToolkit extends BaseToolkit {
515
+ tools: StructuredToolInterface[];
516
+ constructor(options?: KtemiaToolOptions);
517
+ }
518
+
519
+ export { type GetDetailsInput, type HotelReviewsInput, type KtemiaToolOptions, KtemiaToolkit, type LookupInput, type SearchCarsInput, type SearchFlightsInput, type SearchHotelsInput, VERSION, getDetails, hotelReviews, keyStatus, ktemiaTools, lookup, searchCars, searchFlights, searchHotels };