CAPArtifactsTool
- class hana_ai.tools.hana_ml_tools.cap_artifacts_tools.CAPArtifactsTool(connection_context: ConnectionContext, return_direct: bool = False)
This tool generates CAP artifacts for a given model.
- Parameters:
- connection_contextConnectionContext
Connection context to the HANA database.
- Returns:
- str
The directory to the generated CAP artifacts.
Note
args_schema is used to define the schema of the inputs as follows:
Field
Description
name
The name of the model in model storage. If not provided, ask the user. Do not guess.
version
The version of the model in model storage. If not provided, ask the user. Do not guess.
project_name
The name of the project for CAP project. If not provided, ask the user. Do not guess.
output_dir
The output directory for CAP project. If not provided, ask the user. Do not guess.
namespace
The namespace for CAP project, it is optional.
cds_gen
Whether to generate CDS files for CAP project, it is optional.
tudf
Whether to generate table UDF for CAP project, it is optional.
archive
Whether to archive the generated artifacts, it is optional.
cons_fit_proc_name
The name of the consumption layer fit procedure defined in the CAP artifacts, it is optional.
cons_predict_proc_name
The name of the consumption layer predict procedure defined in the CAP artifacts, it is optional.
cons_score_proc_name
The name of the consumption layer score procedure defined in the CAP artifacts, it is optional.
apply_func_name
The name of the apply function for prediction defined in the CAP artifacts, it is optional.
new_model_name
The new model name defined in the CAP artifacts, it is optional.
- name: str
Name of the tool.
- description: str
Description of the tool.
- connection_context: ConnectionContext
Connection context to the HANA database.