create_hana_sql_toolkit

hana_ai.agents.hana_sql_agent.create_hana_sql_toolkit(llm: any, connection_context: ConnectionContext, *, schema: str | None = None, include_tables: Sequence[str] | None = None)

Create a HANA SQL toolkit.

Uses the SQL agent's single-statement, read-only object checks. A restricted HANA account is still required. This is separate from HANAMLToolkit and does not restrict that toolkit's model-training, storage or deletion tools.

Parameters:
llm: any

The language model to use.

connection_context: ConnectionContext

The connection context to use.

schema: str, optional

The only schema the toolkit may query.

include_tables: Sequence[str], optional

Explicit table allowlist. At least one of schema or include_tables is required.

The SQL toolkit uses the same read-only checks and object scope as the SQL agent. See create_hana_sql_agent for supported SELECT syntax and deployment requirements. It is separate from HANAMLToolkit and does not change the permissions or behavior of model-training/storage tools.