FetchDataTool

class hana_ai.tools.hana_ml_tools.fetch_tools.FetchDataTool(connection_context: ConnectionContext, return_direct: bool = False)

This tool fetches data from a given table.

Parameters:
connection_contextConnectionContext

Connection context to the HANA database.

Returns:
pandas.DataFrame

The fetched data.

Note

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

Field

Description

table_name

The name of the table. If not provided, ask the user. Do not guess.

schema_name

The schema name of the table, it is optional

top_n

The number of rows to fetch, it is optional

last_n

The number of rows to fetch from the end of the table, it is optional

name: str

Name of the tool.

description: str

Description of the tool.

connection_context: ConnectionContext

Connection context to the HANA database.