Spaces:
Building
Building
Update service_config.jsonc
Browse files- service_config.jsonc +6 -6
service_config.jsonc
CHANGED
@@ -58,7 +58,7 @@
|
|
58 |
"type": "str",
|
59 |
"required": true,
|
60 |
"variable_name": "origin",
|
61 |
-
"extraction_prompt": "Extract the departure/origin city from phrases like '
|
62 |
},
|
63 |
{
|
64 |
"name": "destination",
|
@@ -66,15 +66,15 @@
|
|
66 |
"type": "str",
|
67 |
"required": true,
|
68 |
"variable_name": "destination",
|
69 |
-
"extraction_prompt": "Extract the destination/arrival city from phrases like '
|
70 |
},
|
71 |
{
|
72 |
"name": "flight_date",
|
73 |
"caption": "Uçuş tarihi",
|
74 |
-
"type": "
|
75 |
"required": true,
|
76 |
"variable_name": "flight_date",
|
77 |
-
"extraction_prompt": "Extract the flight date and convert to ISO format YYYY-MM-DD
|
78 |
},
|
79 |
{
|
80 |
"name": "passenger_count",
|
@@ -82,7 +82,7 @@
|
|
82 |
"type": "int",
|
83 |
"required": true,
|
84 |
"variable_name": "passenger_count",
|
85 |
-
"extraction_prompt": "Extract the number of passengers. Handle expressions like: 'iki kişi' → 2, 'üç kişiyiz' → 3, 'eşimle' → 2, 'ailemle' → assume 4, 'tek kişi' → 1, '2 yetişkin 1 çocuk' → 3. If not specified, DO NOT assume, mark as missing."
|
86 |
}
|
87 |
],
|
88 |
"action": "book_flight_api",
|
@@ -113,7 +113,7 @@
|
|
113 |
{
|
114 |
"name": "flight_date",
|
115 |
"caption": "Uçuş tarihi",
|
116 |
-
"type": "
|
117 |
"required": false,
|
118 |
"variable_name": "flight_date",
|
119 |
"extraction_prompt": "Extract the flight date if mentioned and convert to YYYY-MM-DD format. This is optional - if not mentioned, mark as missing."
|
|
|
58 |
"type": "str",
|
59 |
"required": true,
|
60 |
"variable_name": "origin",
|
61 |
+
"extraction_prompt": "Extract the departure/origin city from Turkish phrases. Look for patterns like 'X'dan/X'den/X'tan/X'ten' or 'X'dan kalkış' or 'kalkış yeri X'. Remove all Turkish suffixes (-dan, -den, -tan, -ten, 'dan, 'den, 'tan, 'ten). Return only the plain city name. Examples: 'İstanbul'dan' → 'İstanbul', 'Ankara'dan' → 'Ankara', 'İzmir'den' → 'İzmir'."
|
62 |
},
|
63 |
{
|
64 |
"name": "destination",
|
|
|
66 |
"type": "str",
|
67 |
"required": true,
|
68 |
"variable_name": "destination",
|
69 |
+
"extraction_prompt": "Extract the destination/arrival city from Turkish phrases. Look for patterns like 'X'ya/X'ye/X'a/X'e' or 'X'ya varış' or 'varış yeri X'. Remove all Turkish suffixes (-ya, -ye, -a, -e, 'ya, 'ye, 'a, 'e). Return only the plain city name. Examples: 'Ankara'ya' → 'Ankara', 'Paris'e' → 'Paris', 'İzmir'e' → 'İzmir'."
|
70 |
},
|
71 |
{
|
72 |
"name": "flight_date",
|
73 |
"caption": "Uçuş tarihi",
|
74 |
+
"type": "date",
|
75 |
"required": true,
|
76 |
"variable_name": "flight_date",
|
77 |
+
"extraction_prompt": "Extract the flight date from Turkish text and convert to ISO format YYYY-MM-DD"
|
78 |
},
|
79 |
{
|
80 |
"name": "passenger_count",
|
|
|
82 |
"type": "int",
|
83 |
"required": true,
|
84 |
"variable_name": "passenger_count",
|
85 |
+
"extraction_prompt": "Extract the number of passengers from Turkish text. Handle expressions like: 'iki kişi' → 2, 'üç kişiyiz' → 3, 'dört kişilik' → 4, 'eşimle' → 2, 'eşim ve çocuklarımla' → assume 4, 'ailemle' → assume 4, 'tek kişi' → 1, '2 yetişkin 1 çocuk' → 3, 'ben ve arkadaşım' → 2. If not specified, DO NOT assume, mark as missing."
|
86 |
}
|
87 |
],
|
88 |
"action": "book_flight_api",
|
|
|
113 |
{
|
114 |
"name": "flight_date",
|
115 |
"caption": "Uçuş tarihi",
|
116 |
+
"type": "date",
|
117 |
"required": false,
|
118 |
"variable_name": "flight_date",
|
119 |
"extraction_prompt": "Extract the flight date if mentioned and convert to YYYY-MM-DD format. This is optional - if not mentioned, mark as missing."
|