tools.tool_update_dashboard
tool_update_dashboard(data_source, update_fn)Create a tool that modifies the data presented in the dashboard based on the SQL query.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| data_source | DataSource | The data source to query against | required |
| update_fn | Callable[[UpdateDashboardData], None] |
Callback function to call with UpdateDashboardData when update succeeds | required |
Returns
| Name | Type | Description |
|---|---|---|
Tool |
A tool that can be registered with chatlas |