UCFunctionToolkit#
- class langchain_community.tools.databricks.tool.UCFunctionToolkit[source]#
Bases:
BaseToolkit
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param warehouse_id: str [Required]#
The ID of a Databricks SQL Warehouse to execute functions.
- param workspace_client: WorkspaceClient [Optional]#
Databricks workspace client.
- include(*function_names: str, **kwargs: Any) Self [source]#
Includes UC functions to the toolkit.
- Parameters:
functions β A list of UC function names in the format βcatalog_name.schema_name.function_nameβ or βcatalog_name.schema_name.*β. If the function name ends with β.*β, all functions in the schema will be added.
kwargs (Any) β Extra arguments to pass to StructuredTool, e.g., return_direct.
function_names (str) β
- Return type:
Self
Examples using UCFunctionToolkit