SAP AI SDK for JavaScript - v2.8.0
    Preparing search index...

    Function executeRequest

    • Executes a request to the AI Core service.

      Parameters

      • endpointOptions: EndpointOptions

        The options to call an endpoint.

      • data: any

        The input parameters for the request.

      • OptionalrequestConfig: CustomRequestConfig

        The request configuration.

      • Optionaldestination:
            | never
            | Without<HttpDestination> & DestinationFetchOptions & {
                serviceBindingTransformFn?: ServiceBindingTransformFunction;
            } & { destinationName: string; service?: undefined }
            | Without<
                DestinationFetchOptions & {
                    serviceBindingTransformFn?: ServiceBindingTransformFunction;
                } & { destinationName: string; service?: undefined },
            > & Destination & { url: string }

        The destination to use for the request.

        • never
        • Without<HttpDestination> & DestinationFetchOptions & {
              serviceBindingTransformFn?: ServiceBindingTransformFunction;
          } & { destinationName: string; service?: undefined }
          • OptionalserviceBindingTransformFn?: ServiceBindingTransformFunction

            Custom transformation function to control how a Destination is built from the given Service.

          • destinationName: string

            The name of the destination to retrieve from service bindings.

          • Optionalservice?: undefined
        • Without<
              DestinationFetchOptions & {
                  serviceBindingTransformFn?: ServiceBindingTransformFunction;
              } & { destinationName: string; service?: undefined },
          > & Destination & { url: string }

      Returns Promise<HttpResponse>

      The HttpResponse from the AI Core service.

      Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.