Spaces:
Paused
Paused
Update service_config.json
Browse files- service_config.json +112 -72
service_config.json
CHANGED
@@ -2,91 +2,131 @@
|
|
2 |
"config": {
|
3 |
"work_mode": "hfcloud",
|
4 |
"cloud_token": "",
|
5 |
-
"system_prompt": "
|
6 |
-
"llm_inference_service_url": "https://ucsturkey-spark.hf.space"
|
7 |
-
"apis": {
|
8 |
-
"currency_api": {
|
9 |
-
"url": "https://c2b5-176-88-34-20.ngrok-free.app/doviz",
|
10 |
-
"method": "POST",
|
11 |
-
"headers": [
|
12 |
-
{ "key": "Authorization", "value": "Bearer {auth_tokens.currency_api.token}" }
|
13 |
-
],
|
14 |
-
"body": {
|
15 |
-
"currency": "{variables.currency}"
|
16 |
-
},
|
17 |
-
"timeout": 5,
|
18 |
-
"retry_count": 1,
|
19 |
-
"auth": {
|
20 |
-
"auth_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/auth",
|
21 |
-
"auth_body": { "username": "user", "password": "pass" },
|
22 |
-
"auth_token_path": "token",
|
23 |
-
"auth_refresh_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/refresh",
|
24 |
-
"refresh_body": { "refresh_token": "{auth_tokens.currency_api.token}" }
|
25 |
-
}
|
26 |
-
},
|
27 |
-
"traffic_api": {
|
28 |
-
"url": "https://c2b5-176-88-34-20.ngrok-free.app/yol",
|
29 |
-
"method": "POST",
|
30 |
-
"headers": [
|
31 |
-
{ "key": "Authorization", "value": "Bearer {auth_tokens.traffic_api.token}" }
|
32 |
-
],
|
33 |
-
"body": {
|
34 |
-
"from_location": "{variables.from_location}",
|
35 |
-
"to_location": "{variables.to_location}"
|
36 |
-
},
|
37 |
-
"timeout": 5,
|
38 |
-
"retry_count": 1,
|
39 |
-
"auth": {
|
40 |
-
"auth_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/auth",
|
41 |
-
"auth_body": { "username": "user", "password": "pass" },
|
42 |
-
"auth_token_path": "token",
|
43 |
-
"auth_refresh_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/refresh",
|
44 |
-
"refresh_body": { "refresh_token": "{auth_tokens.traffic_api.token}" }
|
45 |
-
}
|
46 |
-
},
|
47 |
-
"weather_api": {
|
48 |
-
"url": "https://c2b5-176-88-34-20.ngrok-free.app/hava",
|
49 |
-
"method": "POST",
|
50 |
-
"headers": [
|
51 |
-
{ "key": "Authorization", "value": "Bearer {auth_tokens.weather_api.token}" }
|
52 |
-
],
|
53 |
-
"body": {
|
54 |
-
"city": "{variables.city}"
|
55 |
-
},
|
56 |
-
"timeout": 5,
|
57 |
-
"retry_count": 1,
|
58 |
-
"auth": {
|
59 |
-
"auth_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/auth",
|
60 |
-
"auth_body": { "username": "user", "password": "pass" },
|
61 |
-
"auth_token_path": "token",
|
62 |
-
"auth_refresh_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/refresh",
|
63 |
-
"refresh_body": { "refresh_token": "{auth_tokens.weather_api.token}" }
|
64 |
-
}
|
65 |
-
}
|
66 |
-
}
|
67 |
},
|
68 |
"projects": {
|
69 |
"project1": {
|
70 |
"intents": [
|
71 |
{
|
72 |
-
"name": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
"action": "currency_api",
|
74 |
-
"fallback_timeout_message": "
|
75 |
-
"fallback_error_message": "
|
|
|
76 |
},
|
77 |
{
|
78 |
-
"name": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
"action": "traffic_api",
|
80 |
-
"fallback_timeout_message": "
|
81 |
-
"fallback_error_message": "
|
|
|
82 |
},
|
83 |
{
|
84 |
-
"name": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
"action": "weather_api",
|
86 |
-
"fallback_timeout_message": "
|
87 |
-
"fallback_error_message": "
|
|
|
88 |
}
|
89 |
]
|
90 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
92 |
-
}
|
|
|
2 |
"config": {
|
3 |
"work_mode": "hfcloud",
|
4 |
"cloud_token": "",
|
5 |
+
"system_prompt": "Welcome to Cronos Jet. I am Ceren, your virtual assistant. I can help you with ticketing, reservations, flight changes, cancellations, and general support. If you ask about something else, I will kindly guide you back to these topics.",
|
6 |
+
"llm_inference_service_url": "https://ucsturkey-spark.hf.space"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
},
|
8 |
"projects": {
|
9 |
"project1": {
|
10 |
"intents": [
|
11 |
{
|
12 |
+
"name": "currency-rate-intent",
|
13 |
+
"examples": [
|
14 |
+
"What is the dollar rate?",
|
15 |
+
"How much is the euro?",
|
16 |
+
"How many TL is 1 dollar?",
|
17 |
+
"Dollar to TL exchange",
|
18 |
+
"Today's euro value"
|
19 |
+
],
|
20 |
+
"parameters": [
|
21 |
+
{
|
22 |
+
"name": "currency",
|
23 |
+
"type": "string",
|
24 |
+
"regex": "^(USD|EUR|TRY)$",
|
25 |
+
"validation_message": "Please provide a valid currency: USD, EUR, or TRY.",
|
26 |
+
"extraction_prompt": "Identify the currency mentioned in this sentence. Expected values: USD, EUR, or TRY."
|
27 |
+
}
|
28 |
+
],
|
29 |
"action": "currency_api",
|
30 |
+
"fallback_timeout_message": "Sorry, the currency service is currently unavailable. Please try again later.",
|
31 |
+
"fallback_error_message": "An error occurred; the currency information could not be retrieved.",
|
32 |
+
"humanization_prompt": "Summarize the currency exchange response in a natural and user-friendly way."
|
33 |
},
|
34 |
{
|
35 |
+
"name": "traffic-status-intent",
|
36 |
+
"examples": [
|
37 |
+
"What is the road status from Ankara to Istanbul?",
|
38 |
+
"Is the Izmir route clear?",
|
39 |
+
"How is the Bolu Mountain pass?",
|
40 |
+
"Is there traffic on the Istanbul road?"
|
41 |
+
],
|
42 |
+
"parameters": [
|
43 |
+
{
|
44 |
+
"name": "from_location",
|
45 |
+
"type": "string",
|
46 |
+
"extraction_prompt": "Identify the departure location (city or region) in this sentence."
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"name": "to_location",
|
50 |
+
"type": "string",
|
51 |
+
"extraction_prompt": "Identify the destination location (city or region) in this sentence."
|
52 |
+
}
|
53 |
+
],
|
54 |
"action": "traffic_api",
|
55 |
+
"fallback_timeout_message": "Sorry, the traffic service is currently not responding.",
|
56 |
+
"fallback_error_message": "An error occurred while retrieving traffic information.",
|
57 |
+
"humanization_prompt": "Summarize the traffic status clearly and concisely."
|
58 |
},
|
59 |
{
|
60 |
+
"name": "weather-status-intent",
|
61 |
+
"examples": [
|
62 |
+
"What is the weather like in Izmir?",
|
63 |
+
"Is it raining in Ankara today?",
|
64 |
+
"What's the weather forecast for Istanbul?",
|
65 |
+
"Will it be sunny in Antalya tomorrow?"
|
66 |
+
],
|
67 |
+
"parameters": [
|
68 |
+
{
|
69 |
+
"name": "city",
|
70 |
+
"type": "string",
|
71 |
+
"extraction_prompt": "Identify the city name mentioned in this sentence."
|
72 |
+
}
|
73 |
+
],
|
74 |
"action": "weather_api",
|
75 |
+
"fallback_timeout_message": "Sorry, the weather service is currently unreachable.",
|
76 |
+
"fallback_error_message": "An error occurred while retrieving weather information.",
|
77 |
+
"humanization_prompt": "Express the weather response in a natural, conversational way."
|
78 |
}
|
79 |
]
|
80 |
}
|
81 |
+
},
|
82 |
+
"apis": {
|
83 |
+
"currency_api": {
|
84 |
+
"url": "https://c2b5-176-88-34-20.ngrok-free.app/doviz",
|
85 |
+
"method": "POST",
|
86 |
+
"headers": [{ "key": "Authorization", "value": "Bearer {auth_tokens.currency_api.token}" }],
|
87 |
+
"body": { "currency": "{variables.currency}" },
|
88 |
+
"timeout": 5,
|
89 |
+
"retry_count": 1,
|
90 |
+
"auth": {
|
91 |
+
"auth_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/auth",
|
92 |
+
"auth_body": { "username": "user", "password": "pass" },
|
93 |
+
"auth_token_path": "token",
|
94 |
+
"auth_refresh_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/refresh",
|
95 |
+
"refresh_body": { "refresh_token": "{auth_tokens.currency_api.token}" }
|
96 |
+
}
|
97 |
+
},
|
98 |
+
"traffic_api": {
|
99 |
+
"url": "https://c2b5-176-88-34-20.ngrok-free.app/yol",
|
100 |
+
"method": "POST",
|
101 |
+
"headers": [{ "key": "Authorization", "value": "Bearer {auth_tokens.traffic_api.token}" }],
|
102 |
+
"body": {
|
103 |
+
"from_location": "{variables.from_location}",
|
104 |
+
"to_location": "{variables.to_location}"
|
105 |
+
},
|
106 |
+
"timeout": 5,
|
107 |
+
"retry_count": 1,
|
108 |
+
"auth": {
|
109 |
+
"auth_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/auth",
|
110 |
+
"auth_body": { "username": "user", "password": "pass" },
|
111 |
+
"auth_token_path": "token",
|
112 |
+
"auth_refresh_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/refresh",
|
113 |
+
"refresh_body": { "refresh_token": "{auth_tokens.traffic_api.token}" }
|
114 |
+
}
|
115 |
+
},
|
116 |
+
"weather_api": {
|
117 |
+
"url": "https://c2b5-176-88-34-20.ngrok-free.app/hava",
|
118 |
+
"method": "POST",
|
119 |
+
"headers": [{ "key": "Authorization", "value": "Bearer {auth_tokens.weather_api.token}" }],
|
120 |
+
"body": { "city": "{variables.city}" },
|
121 |
+
"timeout": 5,
|
122 |
+
"retry_count": 1,
|
123 |
+
"auth": {
|
124 |
+
"auth_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/auth",
|
125 |
+
"auth_body": { "username": "user", "password": "pass" },
|
126 |
+
"auth_token_path": "token",
|
127 |
+
"auth_refresh_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/refresh",
|
128 |
+
"refresh_body": { "refresh_token": "{auth_tokens.weather_api.token}" }
|
129 |
+
}
|
130 |
+
}
|
131 |
}
|
132 |
+
}
|