Class OrchestrationConfigsApi

java.lang.Object
com.sap.cloud.sdk.services.openapi.apache.apiclient.BaseApi
com.sap.ai.sdk.prompt.registry.client.OrchestrationConfigsApi

public class OrchestrationConfigsApi extends com.sap.cloud.sdk.services.openapi.apache.apiclient.BaseApi
Prompt Registry in version 0.14.4.

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.

  • 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 given ApiClient.
      Parameters:
      apiClient - ApiClient to invoke the API on
  • Method Details

    • withDefaultHeaders

      public OrchestrationConfigsApi withDefaultHeaders(@Nonnull Map<String,String> defaultHeaders)
      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 create

      Create 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 orchestrationConfigPostRequest
      aiResourceGroup - (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 create

      Create 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 delete

      Delete 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 delete

      Delete 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 delete

      Delete 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 delete

      Delete 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 delete

      Delete 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 delete

      Delete 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 export

      Download 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 export

      Download 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 get

      Retrieve 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 use
      resolveTemplateRef - (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 get

      Retrieve 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 create

      Create 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.OpenApiRequestException
      Orchestration config create

      Create 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 history

      Obtain 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 use
      includeSpec - (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 history

      Obtain 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 list

      List 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 use
      scenario - (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.OpenApiRequestException
      Orchestration config list

      List 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