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][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- param warehouse_id: str [Required]#
The ID of a Databricks SQL Warehouse to execute functions.
- param workspace_client: Any [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