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

    Class RptClientExperimental

    Representation of an RPT client to make predictions. This class is experimental and may change at any time without prior notice.

    Index

    Constructors

    • Experimental

      Creates an instance of the RPT client.

      Parameters

      • OptionalmodelDeployment: ModelDeployment<SapRptModel>

        This configuration is used to retrieve a deployment. Depending on the configuration use either the given deployment ID or the model name to retrieve matching deployments. If model and deployment ID are given, the model is verified against the deployment.

      • 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 RptClient

    Methods

    • Experimental

      Predict based on Parquet file data. Parquet is a binary tabular data format with typed columns.

      Parameters

      • payload: ParquetPayload

        Parquet data and prediction configuration to base prediction on.

      • OptionalrequestConfig: Omit<RptRequestOptions, "compress">

        Custom request configuration.

      Returns Promise<PredictResponsePayload>

      Prediction response.

    • Experimental

      Predict based on prediction data with data schema inferred. Prefer using predictWithSchema when the data schema is known.

      Parameters

      Returns Promise<PredictResponsePayload>

      Prediction response.

    • Experimental

      Predict based on data schema and prediction data. Prefer using this method when the data schema is known.

      Type Parameters

      • const T extends DataSchema

      Parameters

      • dataSchema: T

        Prediction data follows this schema. When using TypeScript, the data schema type is used to infer the types of the prediction data. In that case, the data schema must be provided as a constant (as const).

      • predictionData: PredictionData<T>

        Data to base prediction on.

      • OptionalrequestConfig: RptRequestOptions

        Custom request configuration.

      Returns Promise<PredictResponsePayload>

      Prediction response.

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