Class OrchestrationConfigsApi
The Prompt Registry simplifies the lifecycle management of prompt templates across design and runtime environments. It comes with an imperative and declarative interface. This API specification describes the imperative API for managing prompt templates and also allows the retrieval of declarative managed prompt templates. A prompt template consists of chat messages where placeholders can be defined together with default values. Additional information such as metadata tags can be added to the resource as well.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.services.openapi.apache.apiclient.BaseApi
apiClient, defaultHeaders -
Constructor Summary
ConstructorsConstructorDescriptionOrchestrationConfigsApi(com.sap.cloud.sdk.cloudplatform.connectivity.Destination httpDestination) Instantiates this API class to invoke operations on the Prompt Registry.OrchestrationConfigsApi(com.sap.cloud.sdk.services.openapi.apache.apiclient.ApiClient apiClient) Instantiates this API class to invoke operations on the Prompt Registry based on a givenApiClient. -
Method Summary
Modifier and TypeMethodDescriptioncreateUpdateOrchestrationConfig(OrchestrationConfigPostRequest orchestrationConfigPostRequest) Orchestration config createcreateUpdateOrchestrationConfig(OrchestrationConfigPostRequest orchestrationConfigPostRequest, String aiResourceGroup) Orchestration config createdeleteOrchestrationConfig(UUID orchestrationConfigId) Orchestration config deletedeleteOrchestrationConfig(UUID orchestrationConfigId, String aiResourceGroup) Orchestration config deletedeleteOrchestrationConfigHistory(String scenario, String version, String name) Orchestration config history deletedeleteOrchestrationConfigHistory(String scenario, String version, String name, String aiResourceGroup) Orchestration config history deletedeleteOrchestrationConfigsByScenario(String scenario) Orchestration config scenario deletedeleteOrchestrationConfigsByScenario(String scenario, String aiResourceGroup) Orchestration config scenario deletebyte[]exportOrchestrationConfig(UUID orchestrationConfigId) Orchestration config exportbyte[]exportOrchestrationConfig(UUID orchestrationConfigId, String aiResourceGroup) Orchestration config exportgetOrchestrationConfigByUuid(UUID orchestrationConfigId) Orchestration config getgetOrchestrationConfigByUuid(UUID orchestrationConfigId, String aiResourceGroup, Boolean resolveTemplateRef, Boolean resolveTemplateRef2) Orchestration config getOrchestration config createimportOrchestrationConfig(String aiResourceGroup, File _file) Orchestration config createlistOrchestrationConfigHistory(String scenario, String version, String name) Orchestration config historylistOrchestrationConfigHistory(String scenario, String version, String name, String aiResourceGroup, Boolean includeSpec, Boolean includeSpec2, Boolean resolveTemplateRef, Boolean resolveTemplateRef2, Integer $top, Integer $skip) Orchestration config historyOrchestration config listlistOrchestrationConfigs(String aiResourceGroup, String scenario, String name, String version, String retrieve, Boolean includeSpec, Boolean includeSpec2, Boolean resolveTemplateRef, Boolean resolveTemplateRef2, Integer $top, Integer $skip) Orchestration config listwithDefaultHeaders(Map<String, String> defaultHeaders) Creates a new API instance with additional default headers.
-
Constructor Details
-
OrchestrationConfigsApi
public OrchestrationConfigsApi(@Nonnull com.sap.cloud.sdk.cloudplatform.connectivity.Destination httpDestination) Instantiates this API class to invoke operations on the Prompt Registry.- Parameters:
httpDestination- The destination that API should be used with
-
OrchestrationConfigsApi
public OrchestrationConfigsApi(@Nonnull com.sap.cloud.sdk.services.openapi.apache.apiclient.ApiClient apiClient) Instantiates this API class to invoke operations on the Prompt Registry based on a givenApiClient.- Parameters:
apiClient- ApiClient to invoke the API on
-
-
Method Details
-
withDefaultHeaders
Creates a new API instance with additional default headers.- Parameters:
defaultHeaders- Additional headers to include in all requests- Returns:
- A new API instance with the combined headers
-
createUpdateOrchestrationConfig
@Nonnull public OrchestrationConfigPostResponse createUpdateOrchestrationConfig(@Nonnull OrchestrationConfigPostRequest orchestrationConfigPostRequest, @Nullable String aiResourceGroup) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config createCreate or update an imperatively managed orchestration config
200 - Successful response
400 - Bad Request
403 - Forbidden Error
0 - Common Error
- Parameters:
orchestrationConfigPostRequest- (required) The value for the parameter orchestrationConfigPostRequestaiResourceGroup- (optional) Specify a resource group id to use- Returns:
- OrchestrationConfigPostResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
createUpdateOrchestrationConfig
@Nonnull public OrchestrationConfigPostResponse createUpdateOrchestrationConfig(@Nonnull OrchestrationConfigPostRequest orchestrationConfigPostRequest) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config createCreate or update an imperatively managed orchestration config
200 - Successful response
400 - Bad Request
403 - Forbidden Error
0 - Common Error
- Parameters:
orchestrationConfigPostRequest- The value for the parameter orchestrationConfigPostRequest- Returns:
- OrchestrationConfigPostResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
deleteOrchestrationConfig
@Nonnull public OrchestrationConfigDeleteResponse deleteOrchestrationConfig(@Nonnull UUID orchestrationConfigId, @Nullable String aiResourceGroup) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config deleteDelete an imperatively managed orchestration config
200 - Successful response
403 - Forbidden Error
404 - Bad Request
0 - Common Error
- Parameters:
orchestrationConfigId- (required) UUID of the resource.aiResourceGroup- (optional) Specify a resource group id to use- Returns:
- OrchestrationConfigDeleteResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
deleteOrchestrationConfig
@Nonnull public OrchestrationConfigDeleteResponse deleteOrchestrationConfig(@Nonnull UUID orchestrationConfigId) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config deleteDelete an imperatively managed orchestration config
200 - Successful response
403 - Forbidden Error
404 - Bad Request
0 - Common Error
- Parameters:
orchestrationConfigId- UUID of the resource.- Returns:
- OrchestrationConfigDeleteResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
deleteOrchestrationConfigHistory
@Nonnull public OrchestrationConfigHistoryDeleteResponse deleteOrchestrationConfigHistory(@Nonnull String scenario, @Nonnull String version, @Nonnull String name, @Nullable String aiResourceGroup) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config history deleteDelete the version history of an imperatively managed orchestration config
200 - Successful response
403 - Forbidden Error
404 - Bad Request
0 - Common Error
- Parameters:
scenario- (required) Scenario field of the resource.version- (required) Version field of the resource.name- (required) Name field of the resource.aiResourceGroup- (optional) Specify a resource group id to use- Returns:
- OrchestrationConfigHistoryDeleteResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
deleteOrchestrationConfigHistory
@Nonnull public OrchestrationConfigHistoryDeleteResponse deleteOrchestrationConfigHistory(@Nonnull String scenario, @Nonnull String version, @Nonnull String name) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config history deleteDelete the version history of an imperatively managed orchestration config
200 - Successful response
403 - Forbidden Error
404 - Bad Request
0 - Common Error
- Parameters:
scenario- Scenario field of the resource.version- Version field of the resource.name- Name field of the resource.- Returns:
- OrchestrationConfigHistoryDeleteResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
deleteOrchestrationConfigsByScenario
@Nonnull public OrchestrationConfigScenarioDeleteResponse deleteOrchestrationConfigsByScenario(@Nonnull String scenario, @Nullable String aiResourceGroup) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config scenario deleteDelete all imperatively managed orchestration configs in a scenario
200 - Successful response
403 - Forbidden Error
404 - Bad Request
0 - Common Error
- Parameters:
scenario- (required) Scenario field of the resource.aiResourceGroup- (optional) Specify a resource group id to use- Returns:
- OrchestrationConfigScenarioDeleteResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
deleteOrchestrationConfigsByScenario
@Nonnull public OrchestrationConfigScenarioDeleteResponse deleteOrchestrationConfigsByScenario(@Nonnull String scenario) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config scenario deleteDelete all imperatively managed orchestration configs in a scenario
200 - Successful response
403 - Forbidden Error
404 - Bad Request
0 - Common Error
- Parameters:
scenario- Scenario field of the resource.- Returns:
- OrchestrationConfigScenarioDeleteResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
exportOrchestrationConfig
@Nonnull public byte[] exportOrchestrationConfig(@Nonnull UUID orchestrationConfigId, @Nullable String aiResourceGroup) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config exportDownload an orchestration config as a file
200 - Successful response
400 - Bad Request
0 - Common Error
- Parameters:
orchestrationConfigId- (required) UUID of the resource.aiResourceGroup- (optional) Specify a resource group id to use- Returns:
- byte[]
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
exportOrchestrationConfig
@Nonnull public byte[] exportOrchestrationConfig(@Nonnull UUID orchestrationConfigId) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config exportDownload an orchestration config as a file
200 - Successful response
400 - Bad Request
0 - Common Error
- Parameters:
orchestrationConfigId- UUID of the resource.- Returns:
- byte[]
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getOrchestrationConfigByUuid
@Nonnull public OrchestrationConfigGetResponse getOrchestrationConfigByUuid(@Nonnull UUID orchestrationConfigId, @Nullable String aiResourceGroup, @Nullable Boolean resolveTemplateRef, @Nullable Boolean resolveTemplateRef2) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config getRetrieve a orchestration config by its UUID
200 - Successful response
400 - Bad Request
403 - Forbidden Error
0 - Common Error
- Parameters:
orchestrationConfigId- (required) UUID of the resource.aiResourceGroup- (optional) Specify a resource group id to useresolveTemplateRef- (optional, default to false) DEPRECATED: Use resolveTemplateRef instead.resolveTemplateRef2- (optional) Whether a template reference should be resolved- Returns:
- OrchestrationConfigGetResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getOrchestrationConfigByUuid
@Nonnull public OrchestrationConfigGetResponse getOrchestrationConfigByUuid(@Nonnull UUID orchestrationConfigId) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config getRetrieve a orchestration config by its UUID
200 - Successful response
400 - Bad Request
403 - Forbidden Error
0 - Common Error
- Parameters:
orchestrationConfigId- UUID of the resource.- Returns:
- OrchestrationConfigGetResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
importOrchestrationConfig
@Nonnull public OrchestrationConfigPostResponse importOrchestrationConfig(@Nullable String aiResourceGroup, @Nullable File _file) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config createCreate an imperatively managed orchestration config from a file
200 - Successful response
400 - Bad Request
0 - Common Error
- Parameters:
aiResourceGroup- (optional) Specify a resource group id to use_file- (optional) The value for the parameter _file- Returns:
- OrchestrationConfigPostResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
importOrchestrationConfig
@Nonnull public OrchestrationConfigPostResponse importOrchestrationConfig() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionOrchestration config createCreate an imperatively managed orchestration config from a file
200 - Successful response
400 - Bad Request
0 - Common Error
- Returns:
- OrchestrationConfigPostResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
listOrchestrationConfigHistory
@Nonnull public OrchestrationConfigListResponse listOrchestrationConfigHistory(@Nonnull String scenario, @Nonnull String version, @Nonnull String name, @Nullable String aiResourceGroup, @Nullable Boolean includeSpec, @Nullable Boolean includeSpec2, @Nullable Boolean resolveTemplateRef, @Nullable Boolean resolveTemplateRef2, @Nullable Integer $top, @Nullable Integer $skip) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config historyObtain the history of edits of a particular imperatively managed orchestration config
200 - Successful response
400 - Bad Request
403 - Forbidden Error
413 - Payload Too Large — result set exceeds maximum allowed rows; use $top and $skip to paginate
0 - Common Error
- Parameters:
scenario- (required) Scenario field of the resource.version- (required) Version field of the resource.name- (required) Name field of the resource.aiResourceGroup- (optional) Specify a resource group id to useincludeSpec- (optional, default to false) DEPRECATED: Use includeSpec instead.includeSpec2- (optional) Whether include the spec section or not.resolveTemplateRef- (optional, default to false) DEPRECATED: Use resolveTemplateRef instead.resolveTemplateRef2- (optional) Whether a template reference should be resolved$top- (optional) Number of results to return (1–500). When omitted the full result set is returned (up to the server limit).$skip- (optional, default to 0) Number of results to skip before returning the page.- Returns:
- OrchestrationConfigListResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
listOrchestrationConfigHistory
@Nonnull public OrchestrationConfigListResponse listOrchestrationConfigHistory(@Nonnull String scenario, @Nonnull String version, @Nonnull String name) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config historyObtain the history of edits of a particular imperatively managed orchestration config
200 - Successful response
400 - Bad Request
403 - Forbidden Error
413 - Payload Too Large — result set exceeds maximum allowed rows; use $top and $skip to paginate
0 - Common Error
- Parameters:
scenario- Scenario field of the resource.version- Version field of the resource.name- Name field of the resource.- Returns:
- OrchestrationConfigListResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
listOrchestrationConfigs
@Nonnull public OrchestrationConfigListResponse listOrchestrationConfigs(@Nullable String aiResourceGroup, @Nullable String scenario, @Nullable String name, @Nullable String version, @Nullable String retrieve, @Nullable Boolean includeSpec, @Nullable Boolean includeSpec2, @Nullable Boolean resolveTemplateRef, @Nullable Boolean resolveTemplateRef2, @Nullable Integer $top, @Nullable Integer $skip) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Orchestration config listList imperatively and declaratively managed orchestration config
200 - Successful response
400 - Bad Request
403 - Forbidden Error
413 - Payload Too Large — result set exceeds maximum allowed rows; use $top and $skip to paginate
0 - Common Error
- Parameters:
aiResourceGroup- (optional) Specify a resource group id to usescenario- (optional) Scenario field of the resource.name- (optional) Name field of the resource.version- (optional) Version field of the resource.retrieve- (optional, default to both) Whether to retrieve 'imperative', 'declarative', or 'both'.includeSpec- (optional, default to false) DEPRECATED: Use includeSpec instead.includeSpec2- (optional) Whether the spec should be included in the response.resolveTemplateRef- (optional, default to false) DEPRECATED: Use resolveTemplateRef instead.resolveTemplateRef2- (optional) Whether a template reference should be resolved$top- (optional) Number of results to return (1–500). When omitted the full result set is returned (up to the server limit).$skip- (optional, default to 0) Number of results to skip before returning the page.- Returns:
- OrchestrationConfigListResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
listOrchestrationConfigs
@Nonnull public OrchestrationConfigListResponse listOrchestrationConfigs() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionOrchestration config listList imperatively and declaratively managed orchestration config
200 - Successful response
400 - Bad Request
403 - Forbidden Error
413 - Payload Too Large — result set exceeds maximum allowed rows; use $top and $skip to paginate
0 - Common Error
- Returns:
- OrchestrationConfigListResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-