Class RptClient
java.lang.Object
com.sap.ai.sdk.foundationmodels.rpt.RptClient
Client for interacting with SAP RPT foundation models.
- Since:
- 1.16.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic RptClientCreates a new RptClient for the specified foundation model.tableCompletion(PredictRequestPayload requestBody) Predict targets using SAP RPT model with structured data.tableCompletion(File parquetFile, PredictionConfig predictionConfig) Make in-context predictions for specified target columns based on provided table data Parquet file.
-
Method Details
-
forModel
@Nonnull public static RptClient forModel(@Nonnull RptModel foundationModel) throws DeploymentResolutionException Creates a new RptClient for the specified foundation model.- Parameters:
foundationModel- the foundation model to use.- Returns:
- a new instance of RptClient.
- Throws:
DeploymentResolutionException- if there is an error resolving the deployment.
-
tableCompletion
Predict targets using SAP RPT model with structured data.200 - Successful Prediction
400 - Bad Request - Invalid input data
413 - Payload Too Large
422 - Validation Error
500 - Internal Server Error
- Parameters:
requestBody- the prediction request.- Returns:
- prediction response from the RPT model.
-
tableCompletion
@Nonnull public PredictResponsePayload tableCompletion(@Nonnull File parquetFile, @Nonnull PredictionConfig predictionConfig) Make in-context predictions for specified target columns based on provided table data Parquet file.200 - Successful Prediction
400 - Bad Request - Invalid input data
413 - Payload Too Large
422 - Validation Error
500 - Internal Server Error
- Parameters:
parquetFile- Parquet file.predictionConfig- the prediction configuration.- Returns:
- prediction response from the RPT model.
- Since:
- 1.16.0
-