@@ -371,27 +371,28 @@ In this step, we will create an orchestration configuration using the core modul
371371• Add the following code to your project to create an orchestration configuration:
372372
373373``` java
374- // Define a list of parameters you need for orchestration
375- var parameterList = List . of(
376- AiParameterArgumentBinding . create()
377- .key(" modelFilterList" ). value(" null" ),
378- AiParameterArgumentBinding . create()
379- .key(" modelFilterListType" ). value(" allow" )
380- );
374+ // Define the resource group, change this to your resource group name
375+ private static final String RESOURCE_GROUP = " default" ;
376+
377+ // Define parameter and input artifact bindings you may need for orchestration
378+ final var modelFilterList =
379+ AiParameterArgumentBinding . create(). key(" modelFilterList" ). value(" null" );
380+ final var modelFilterListType =
381+ AiParameterArgumentBinding . create(). key(" modelFilterListType" ). value(" allow" );
381382
382383// Create a configuration data object for your configuration
383- var configData = AiConfigurationBaseData . create()
384- .name(" orchestration-config" ) // Choose a meaningful name
385- .executableId(" orchestration" ) // Orchestration executable ID
386- .scenarioId(" orchestration" ) // Orchestration scenario ID
387- .addParameterBindingsItem(( AiParameterArgumentBinding ) parameterList) // Parameter list created with previous statement
388- .addInputArtifactBindingsItem(( AiArtifactArgumentBinding ) List . of()); // Input bindings not required, can be modified
389-
390- // Create the configuration, use the correct resource group
391- var configResponse = new ConfigurationApi (). create(" default " , configData );
392-
393- // Print configuration response message
394- System . out. println(configResponse . getMessage());
384+ final var configurationData = AiConfigurationBaseData . create()
385+ .name(" orchestration-config" ) // Choose a meaningful name
386+ .executableId(" orchestration" ) // Orchestration executable ID
387+ .scenarioId(" orchestration" ) // Orchestration scenario ID
388+ .addParameterBindingsItem(modelFilterList)
389+ .addParameterBindingsItem(modelFilterListType);
390+
391+ // Create the configuration with your individual resource group
392+ final var configuration = new ConfigurationApi (). create(RESOURCE_GROUP , configurationData );
393+
394+ // Print the configuration response message
395+ System . out. println(configuration . getMessage());
395396```
396397• If not done automaticaly by your IDE, add the following imports:
397398
0 commit comments