# Class RptClient`Experimental`

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

- Defined in packages/rpt/dist/client.d.ts:10

##### Index

### Constructors

constructor

### Methods

predictParquet
predictWithoutSchema
predictWithSchema

## Constructors

### constructor

- new RptClient(
  modelDeployment?: ModelDeployment<SapRptModel>,
  destination?:
  | never
  | Without<HttpDestination> & DestinationFetchOptions & {
  serviceBindingTransformFn?: ServiceBindingTransformFunction;
  } & { destinationName: string; service?: undefined }
  | Without<
  DestinationFetchOptions & {
  serviceBindingTransformFn?: ServiceBindingTransformFunction;
  } & { destinationName: string; service?: undefined },
  > & Destination & { url: string },
  ): RptClient
  `Experimental`

  Creates an instance of the RPT client.

  #### Parameters

  - `Optional` modelDeployment: 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.

  - `Optional` destination:
    | 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 }

      - ##### `Optional` serviceBindingTransformFn?: 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.

      - ##### `Optional` service?: undefined

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

  #### Returns RptClient

  - Defined in packages/rpt/dist/client.d.ts:18

## Methods

### predictParquet

- predictParquet(
  payload: ParquetPayload,
  requestConfig?: Omit<RptRequestOptions, "compress">,
  ): Promise<PredictResponsePayload>
  `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.

  - `Optional` requestConfig: Omit<RptRequestOptions, "compress">

    Custom request configuration.

  #### Returns Promise<PredictResponsePayload>

  Prediction response.

  - Defined in packages/rpt/dist/client.d.ts:43

### predictWithoutSchema

- predictWithoutSchema(
  predictionData: PredictionData<DataSchema>,
  requestConfig?: RptRequestOptions,
  ): Promise<PredictResponsePayload>
  `Experimental`

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

  #### Parameters

  - predictionData: PredictionData<DataSchema>

    Data to base prediction on.

  - `Optional` requestConfig: RptRequestOptions

    Custom request configuration.

  #### Returns Promise<PredictResponsePayload>

  Prediction response.

  - Defined in packages/rpt/dist/client.d.ts:35

### predictWithSchema

- predictWithSchema<const T extends DataSchema>(
  dataSchema: T,
  predictionData: PredictionData<T>,
  requestConfig?: RptRequestOptions,
  ): Promise<PredictResponsePayload>
  `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.

  - `Optional` requestConfig: RptRequestOptions

    Custom request configuration.

  #### Returns Promise<PredictResponsePayload>

  Prediction response.

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

  - Defined in packages/rpt/dist/client.d.ts:27