@@ -86,6 +86,7 @@ export type Agent = ResourceBase & {
86
86
show_file_upload ?: boolean ;
87
87
88
88
ai_model_object_id : string ;
89
+ prompt_object_id : string ;
89
90
90
91
vectorization : {
91
92
dedicated_pipeline : boolean ;
@@ -106,14 +107,17 @@ export type Agent = ResourceBase & {
106
107
orchestration_settings : {
107
108
orchestrator : string ;
108
109
} ;
110
+
109
111
conversation_history_settings : {
110
112
enabled : boolean ;
111
113
max_history : number ;
112
114
} ;
115
+
113
116
gatekeeper_settings : {
114
117
use_system_setting : boolean ;
115
118
options : string [ ] ;
116
119
} ;
120
+
117
121
language_model : {
118
122
type : string ;
119
123
provider : string ;
@@ -125,7 +129,24 @@ export type Agent = ResourceBase & {
125
129
version : string ;
126
130
deployment : string ;
127
131
} ;
128
- prompt_object_id : string ;
132
+
133
+ text_rewrite_settings ?: {
134
+ user_prompt_rewrite_enabled : boolean ;
135
+ user_prompt_rewrite_settings : {
136
+ user_prompt_rewrite_ai_model_object_id : string ;
137
+ user_prompt_rewrite_prompt_object_id : string ;
138
+ user_prompts_window_size : number ;
139
+ } ;
140
+ } ;
141
+
142
+ cache_settings ?: {
143
+ semantic_cache_enabled : boolean ;
144
+ semantic_cache_settings : {
145
+ embedding_ai_model_object_id : string ;
146
+ embedding_dimensions : number ;
147
+ minimum_similarity_threshold : number ;
148
+ } ;
149
+ } ;
129
150
} ;
130
151
131
152
export type AgentAccessToken = ResourceBase & {
@@ -357,21 +378,7 @@ export type CreateAgentRequest = ResourceBase & {
357
378
show_file_upload ?: boolean ;
358
379
359
380
ai_model_object_id : string ;
360
-
361
- language_model : {
362
- type : string ;
363
- provider : string ;
364
- temperature : number ;
365
- use_chat : boolean ;
366
- api_endpoint : string ;
367
- api_key : string ;
368
- api_version : string ;
369
- version : string ;
370
- deployment : string ;
371
- } ;
372
-
373
- capabilities : string [ ] ;
374
- tools : AgentTool [ ] ;
381
+ prompt_object_id : string ;
375
382
376
383
vectorization : {
377
384
dedicated_pipeline : boolean ;
@@ -384,19 +391,54 @@ export type CreateAgentRequest = ResourceBase & {
384
391
trigger_cron_schedule : string ;
385
392
} ;
386
393
394
+ capabilities : string [ ] ;
395
+ tools : AgentTool [ ] ;
396
+ workflow : AgentWorkflow ;
397
+
387
398
sessions_enabled : boolean ;
388
399
orchestration_settings : {
389
400
orchestrator : string ;
390
401
} ;
402
+
391
403
conversation_history_settings : {
392
404
enabled : boolean ;
393
405
max_history : number ;
394
406
} ;
407
+
395
408
gatekeeper_settings : {
396
409
use_system_setting : boolean ;
397
410
options : string [ ] ;
398
411
} ;
399
- prompt_object_id : string ;
412
+
413
+ language_model : {
414
+ type : string ;
415
+ provider : string ;
416
+ temperature : number ;
417
+ use_chat : boolean ;
418
+ api_endpoint : string ;
419
+ api_key : string ;
420
+ api_version : string ;
421
+ version : string ;
422
+ deployment : string ;
423
+ } ;
424
+
425
+ text_rewrite_settings ?: {
426
+ user_prompt_rewrite_enabled : boolean ;
427
+ user_prompt_rewrite_settings : {
428
+ user_prompt_rewrite_ai_model_object_id : string ;
429
+ user_prompt_rewrite_prompt_object_id : string ;
430
+ user_prompts_window_size : number ;
431
+ } ;
432
+ } ;
433
+
434
+ cache_settings ?: {
435
+ semantic_cache_enabled : boolean ;
436
+ semantic_cache_settings : {
437
+ embedding_ai_model_object_id : string ;
438
+ embedding_dimensions : number ;
439
+ minimum_similarity_threshold : number ;
440
+ } ;
441
+ } ;
400
442
} ;
401
443
402
444
export type CreatePromptRequest = ResourceBase & {
0 commit comments