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
@Beta @Nonnull public PredictResponsePayload tableCompletion(@Nonnull PredictRequestPayload requestBody) Predict targets using SAP RPT model with structured data.Note: This method is marked as
Betabecause it uses generated API types in its public signature.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
@Beta @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.Note: This method is marked as
Betabecause it uses generated API types in its public signature.200 - Successful Prediction
400 - Bad Request - Invalid input data
413 - Payload Too Large
422 - Validation Error
500 - Internal Server Error
- Parameters:
parquetFile- Parquet filepredictionConfig- The prediction configuration- Returns:
- prediction response from the RPT model
- Since:
- 1.16.0
-