ciyidogan commited on
Commit
b482671
·
verified ·
1 Parent(s): c40bd8f

Upload 2 files

Browse files
Files changed (2) hide show
  1. flare-tasarim.docx +0 -0
  2. service_config.jsonc +15 -19
flare-tasarim.docx CHANGED
Binary files a/flare-tasarim.docx and b/flare-tasarim.docx differ
 
service_config.jsonc CHANGED
@@ -22,7 +22,9 @@
22
  // =====================================================
23
  "projects": [
24
  {
 
25
  "name": "coronos_assistant", // Virtual agent adı
 
26
  "enabled": true, // Kullanımda olma durumu
27
  "last_version_number": 1, // Projelerin version_number için versiyon counter. Artarak ilerler.
28
 
@@ -33,7 +35,8 @@
33
  // -------------------------------------------------
34
  "versions": [
35
  {
36
- "version_number": 1, // Proje versiyonu
 
37
  "published": true, // Versiyonun yayınlanma durumu.
38
 
39
  // === Virtual agent'ın yapabileceği işleri tarifler =========
@@ -72,7 +75,7 @@
72
  {
73
  "name": "currency",
74
  "caption": "Döviz cinsi", // Eksik parametreyi tamamlarken kullanıcıya söylenebilecek parametre adı
75
- "type": "string",
76
  "required": true,
77
  "extraction_prompt": "Extract the currency code (USD, EUR, TRY) from the user message.", // Parametre extraction için kullanılacak system prompt
78
  "validation_regex": "^(USD|EUR|TRY)$", // kullanıcıdan alınan parametre değerini validate etmek için kullanılacak regex. Opsiyonel.
@@ -101,10 +104,11 @@
101
  ],
102
 
103
  // =====================================================
104
- // API DEFINITIONS (dict by name)
105
  // =====================================================
106
- "apis": {
107
- "currency_api": {
 
108
  "url": "https://mock.api/currency",
109
  "method": "POST",
110
 
@@ -122,32 +126,24 @@
122
  // Timeout & retry
123
  "timeout_seconds": 5,
124
  "retry": {
125
- "max_attempts": 3,
126
  "backoff_seconds": 2,
127
  "strategy": "static" // "static" | "exponential"
128
  },
129
 
130
  // Auth (optional)
131
  "auth": {
132
- "enabled": true,
133
  "token_endpoint": "https://mock.api/auth",
134
- "body_template": {
135
- "client_id": "...",
136
- "client_secret": "..."
137
- },
138
  "response_token_path": "token", // json-path style. Ex: xx.yy.z
139
  "token_refresh_endpoint": "", // opsiyonel
140
  "token_refresh_body": {} // token_refresh_endpoint varsa zorunlu, yoksa opsiyonel.
141
  },
142
-
143
- // Proxy (optional)
144
- "proxy": {
145
- "enabled": false,
146
- "url": "http://proxy.local:8080" // enabled: true ise zorunlu, değilse opsiyonel
147
- },
148
 
149
  // API response → human-friendly answer
150
  "response_prompt": "Aşağıdaki JSON döviz kuru bilgilerini içeriyor. Kullanıcıya anlaşılır bir Türkçe özet hazırla:\n\n{{api_response}}"
151
- }
152
- }
153
  }
 
22
  // =====================================================
23
  "projects": [
24
  {
25
+ "id": 1,
26
  "name": "coronos_assistant", // Virtual agent adı
27
+ "caption": "Coronos Sanal Asistan",
28
  "enabled": true, // Kullanımda olma durumu
29
  "last_version_number": 1, // Projelerin version_number için versiyon counter. Artarak ilerler.
30
 
 
35
  // -------------------------------------------------
36
  "versions": [
37
  {
38
+ "id": 1, // Proje versiyonu
39
+ "caption": "v1",
40
  "published": true, // Versiyonun yayınlanma durumu.
41
 
42
  // === Virtual agent'ın yapabileceği işleri tarifler =========
 
75
  {
76
  "name": "currency",
77
  "caption": "Döviz cinsi", // Eksik parametreyi tamamlarken kullanıcıya söylenebilecek parametre adı
78
+ "type": "str", // "str" | "int" | "float"
79
  "required": true,
80
  "extraction_prompt": "Extract the currency code (USD, EUR, TRY) from the user message.", // Parametre extraction için kullanılacak system prompt
81
  "validation_regex": "^(USD|EUR|TRY)$", // kullanıcıdan alınan parametre değerini validate etmek için kullanılacak regex. Opsiyonel.
 
104
  ],
105
 
106
  // =====================================================
107
+ // API DEFINITIONS (dict by name): Intent’lerde action olarak kullanılacak api tanımları
108
  // =====================================================
109
+ "apis":
110
+ [{
111
+ "name": "currency_api",
112
  "url": "https://mock.api/currency",
113
  "method": "POST",
114
 
 
126
  // Timeout & retry
127
  "timeout_seconds": 5,
128
  "retry": {
129
+ "retry_count": 3,
130
  "backoff_seconds": 2,
131
  "strategy": "static" // "static" | "exponential"
132
  },
133
 
134
  // Auth (optional)
135
  "auth": {
136
+ "enabled": false,
137
  "token_endpoint": "https://mock.api/auth",
138
+ "token_request_body": {},
 
 
 
139
  "response_token_path": "token", // json-path style. Ex: xx.yy.z
140
  "token_refresh_endpoint": "", // opsiyonel
141
  "token_refresh_body": {} // token_refresh_endpoint varsa zorunlu, yoksa opsiyonel.
142
  },
143
+
144
+ "proxy": "", // Proxy (optional)
 
 
 
 
145
 
146
  // API response → human-friendly answer
147
  "response_prompt": "Aşağıdaki JSON döviz kuru bilgilerini içeriyor. Kullanıcıya anlaşılır bir Türkçe özet hazırla:\n\n{{api_response}}"
148
+ }]
 
149
  }