Skip to content

Commit bc7922f

Browse files
monikakusterivicac
authored andcommitted
2906 fix tests
1 parent 132135b commit bc7922f

File tree

13 files changed

+2319
-228
lines changed

13 files changed

+2319
-228
lines changed

server/libs/modules/components/ai/agent/src/test/resources/definition/ai-agent_v1.json

Lines changed: 193 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,203 @@
1616
"perform" : { },
1717
"processErrorResponse" : null,
1818
"properties" : [ {
19+
"advancedOption" : null,
20+
"controlType" : "SELECT",
21+
"defaultValue" : "SIMPLE",
22+
"description" : "Format of providing the prompt to the model.",
23+
"displayCondition" : null,
24+
"exampleValue" : null,
25+
"expressionEnabled" : null,
26+
"hidden" : null,
27+
"label" : "Format",
28+
"languageId" : null,
29+
"maxLength" : null,
30+
"metadata" : { },
31+
"minLength" : null,
32+
"name" : "format",
33+
"options" : [ {
34+
"description" : "User prompt and optional system prompt.",
35+
"label" : "Simple",
36+
"value" : "SIMPLE"
37+
}, {
38+
"description" : "Full control over the messages sent to the model.",
39+
"label" : "Advanced",
40+
"value" : "ADVANCED"
41+
} ],
42+
"optionsDataSource" : null,
43+
"placeholder" : null,
44+
"regex" : null,
45+
"required" : true,
46+
"type" : "STRING"
47+
}, {
48+
"advancedOption" : null,
49+
"controlType" : "TEXT_AREA",
50+
"defaultValue" : null,
51+
"description" : "User prompt to the model.",
52+
"displayCondition" : "format == 'SIMPLE'",
53+
"exampleValue" : null,
54+
"expressionEnabled" : null,
55+
"hidden" : null,
56+
"label" : "Prompt",
57+
"languageId" : null,
58+
"maxLength" : null,
59+
"metadata" : { },
60+
"minLength" : null,
61+
"name" : "userPrompt",
62+
"options" : null,
63+
"optionsDataSource" : null,
64+
"placeholder" : null,
65+
"regex" : null,
66+
"required" : true,
67+
"type" : "STRING"
68+
}, {
69+
"advancedOption" : null,
70+
"controlType" : "TEXT_AREA",
71+
"defaultValue" : null,
72+
"description" : "System prompt to the model.",
73+
"displayCondition" : "format == 'SIMPLE'",
74+
"exampleValue" : null,
75+
"expressionEnabled" : null,
76+
"hidden" : null,
77+
"label" : "System Prompt",
78+
"languageId" : null,
79+
"maxLength" : null,
80+
"metadata" : { },
81+
"minLength" : null,
82+
"name" : "systemPrompt",
83+
"options" : null,
84+
"optionsDataSource" : null,
85+
"placeholder" : null,
86+
"regex" : null,
87+
"required" : false,
88+
"type" : "STRING"
89+
}, {
90+
"advancedOption" : null,
91+
"controlType" : "ARRAY_BUILDER",
92+
"defaultValue" : null,
93+
"description" : "Only text and image files are supported. Also, only certain models supports images. Please check the documentation.",
94+
"displayCondition" : "format == 'SIMPLE'",
95+
"exampleValue" : null,
96+
"expressionEnabled" : null,
97+
"hidden" : null,
98+
"items" : [ {
99+
"advancedOption" : null,
100+
"controlType" : "FILE_ENTRY",
101+
"defaultValue" : null,
102+
"description" : null,
103+
"displayCondition" : null,
104+
"exampleValue" : null,
105+
"expressionEnabled" : null,
106+
"hidden" : null,
107+
"label" : null,
108+
"metadata" : { },
109+
"name" : null,
110+
"placeholder" : null,
111+
"properties" : [ {
112+
"advancedOption" : null,
113+
"controlType" : "TEXT",
114+
"defaultValue" : null,
115+
"description" : null,
116+
"displayCondition" : null,
117+
"exampleValue" : null,
118+
"expressionEnabled" : null,
119+
"hidden" : null,
120+
"label" : null,
121+
"languageId" : null,
122+
"maxLength" : null,
123+
"metadata" : { },
124+
"minLength" : null,
125+
"name" : "extension",
126+
"options" : null,
127+
"optionsDataSource" : null,
128+
"placeholder" : null,
129+
"regex" : null,
130+
"required" : true,
131+
"type" : "STRING"
132+
}, {
133+
"advancedOption" : null,
134+
"controlType" : "TEXT",
135+
"defaultValue" : null,
136+
"description" : null,
137+
"displayCondition" : null,
138+
"exampleValue" : null,
139+
"expressionEnabled" : null,
140+
"hidden" : null,
141+
"label" : null,
142+
"languageId" : null,
143+
"maxLength" : null,
144+
"metadata" : { },
145+
"minLength" : null,
146+
"name" : "mimeType",
147+
"options" : null,
148+
"optionsDataSource" : null,
149+
"placeholder" : null,
150+
"regex" : null,
151+
"required" : true,
152+
"type" : "STRING"
153+
}, {
154+
"advancedOption" : null,
155+
"controlType" : "TEXT",
156+
"defaultValue" : null,
157+
"description" : null,
158+
"displayCondition" : null,
159+
"exampleValue" : null,
160+
"expressionEnabled" : null,
161+
"hidden" : null,
162+
"label" : null,
163+
"languageId" : null,
164+
"maxLength" : null,
165+
"metadata" : { },
166+
"minLength" : null,
167+
"name" : "name",
168+
"options" : null,
169+
"optionsDataSource" : null,
170+
"placeholder" : null,
171+
"regex" : null,
172+
"required" : true,
173+
"type" : "STRING"
174+
}, {
175+
"advancedOption" : null,
176+
"controlType" : "TEXT",
177+
"defaultValue" : null,
178+
"description" : null,
179+
"displayCondition" : null,
180+
"exampleValue" : null,
181+
"expressionEnabled" : null,
182+
"hidden" : null,
183+
"label" : null,
184+
"languageId" : null,
185+
"maxLength" : null,
186+
"metadata" : { },
187+
"minLength" : null,
188+
"name" : "url",
189+
"options" : null,
190+
"optionsDataSource" : null,
191+
"placeholder" : null,
192+
"regex" : null,
193+
"required" : true,
194+
"type" : "STRING"
195+
} ],
196+
"required" : null,
197+
"type" : "FILE_ENTRY"
198+
} ],
199+
"label" : "Attachments",
200+
"maxItems" : null,
201+
"metadata" : { },
202+
"minItems" : null,
203+
"multipleValues" : null,
204+
"name" : "attachments",
205+
"options" : null,
206+
"optionsDataSource" : null,
207+
"placeholder" : null,
208+
"required" : false,
209+
"type" : "ARRAY"
210+
}, {
19211
"advancedOption" : null,
20212
"controlType" : "ARRAY_BUILDER",
21213
"defaultValue" : null,
22214
"description" : "A list of messages comprising the conversation so far.",
23-
"displayCondition" : null,
215+
"displayCondition" : "format == 'ADVANCED'",
24216
"exampleValue" : null,
25217
"expressionEnabled" : null,
26218
"hidden" : null,

0 commit comments

Comments
 (0)