@@ -47,6 +47,7 @@ import {
47
47
guid ,
48
48
isArmResourceId ,
49
49
optional ,
50
+ BaseCognitiveServiceService ,
50
51
} from '@microsoft/logic-apps-shared' ;
51
52
import type { ContentType , IHostService , IWorkflowService } from '@microsoft/logic-apps-shared' ;
52
53
import type { AllCustomCodeFiles , CustomCodeFileNameMapping , Workflow } from '@microsoft/logic-apps-designer' ;
@@ -70,6 +71,7 @@ import type { QueryClient } from '@tanstack/react-query';
70
71
import { useDispatch , useSelector } from 'react-redux' ;
71
72
import { useHostingPlan } from '../../state/workflowLoadingSelectors' ;
72
73
import CodeViewEditor from './CodeView' ;
74
+ import { CustomConnectionParameterEditorService } from './Services/customConnectionParameterEditorService' ;
73
75
74
76
const apiVersion = '2020-06-01' ;
75
77
const httpClient = new HttpClient ( ) ;
@@ -249,7 +251,24 @@ const DesignerEditor = () => {
249
251
Default_Agent : {
250
252
type : 'Agent' ,
251
253
limit : { } ,
252
- inputs : { } ,
254
+ inputs : {
255
+ parameters : {
256
+ deploymentId : '' ,
257
+ messages : '' ,
258
+ agentModelType : 'AzureOpenAI' ,
259
+ agentModelSettings : {
260
+ agentHistoryReductionSettings : {
261
+ agentHistoryReductionType : 'maximumTokenCountReduction' ,
262
+ maximumTokenCount : 128000 ,
263
+ } ,
264
+ } ,
265
+ } ,
266
+ modelConfigurations : {
267
+ model1 : {
268
+ referenceName : '' ,
269
+ } ,
270
+ } ,
271
+ } ,
253
272
tools : { } ,
254
273
runAfter : { } ,
255
274
} ,
@@ -264,7 +283,24 @@ const DesignerEditor = () => {
264
283
Default_Agent : {
265
284
type : 'Agent' ,
266
285
limit : { } ,
267
- inputs : { } ,
286
+ inputs : {
287
+ parameters : {
288
+ deploymentId : '' ,
289
+ messages : '' ,
290
+ agentModelType : 'AzureOpenAI' ,
291
+ agentModelSettings : {
292
+ agentHistoryReductionSettings : {
293
+ agentHistoryReductionType : 'maximumTokenCountReduction' ,
294
+ maximumTokenCount : 128000 ,
295
+ } ,
296
+ } ,
297
+ } ,
298
+ modelConfigurations : {
299
+ model1 : {
300
+ referenceName : '' ,
301
+ } ,
302
+ } ,
303
+ } ,
268
304
tools : { } ,
269
305
runAfter : { } ,
270
306
} ,
@@ -887,6 +923,14 @@ const getDesignerServices = (
887
923
httpClient,
888
924
} ) ;
889
925
926
+ const cognitiveServiceService = new BaseCognitiveServiceService ( {
927
+ apiVersion : '2023-10-01-preview' ,
928
+ baseUrl : armUrl ,
929
+ httpClient,
930
+ } ) ;
931
+
932
+ const connectionParameterEditorService = new CustomConnectionParameterEditorService ( ) ;
933
+
890
934
return {
891
935
appService,
892
936
connectionService,
@@ -904,6 +948,8 @@ const getDesignerServices = (
904
948
hostService,
905
949
chatbotService,
906
950
customCodeService,
951
+ cognitiveServiceService,
952
+ connectionParameterEditorService,
907
953
userPreferenceService : new BaseUserPreferenceService ( ) ,
908
954
experimentationService : new BaseExperimentationService ( ) ,
909
955
} ;
0 commit comments