DisplayConfigDict

class hana_ai.tools.hana_ml_tools.model_storage_tools.DisplayConfigDict(connection_context: ConnectionContext, return_direct: bool = False)

Tool to display the config_dict used at training time for a stored AutoML model.

For non-AutoML models (or AutoML models saved before config_dict was persisted into pal_meta), this returns None.

Parameters:
connection_contextConnectionContext

Connection context to the HANA database.

Returns:
str

A JSON-encoded representation of the config_dict — either a dict when a custom configuration was supplied, the string 'default' / 'light' when a template name was used, or None if the model is not an AutoML model.

Note

args_schema is used to define the schema of the inputs as follows:

Field

Description

name

Name of the AutoML model whose config_dict should be displayed.

version

Version of the model. By default, the last version is used.

name: str

The unique name of the tool that clearly communicates its purpose.

description: str

Used to tell the model how/when/why to use the tool.

You can provide few-shot examples as a part of the description.