@sqlrooms/ai / createDefaultAiTools
Function: createDefaultAiTools()
Call Signature
createDefaultAiTools(
store,options):object
Default tools available to the AI assistant for data analysis. Includes:
- query: Executes SQL queries against DuckDB
- list_commands / execute_command: Bridge to room command registry
Pass commands: false to opt out of the command tools (e.g. in rooms without a command registry).
Parameters
| Parameter | Type |
|---|---|
store | StoreApi<BaseRoomStoreState & AiSliceState & DuckDbSliceState> |
options | DefaultToolsOptions & object |
Returns
object
| Name | Type |
|---|---|
query | QueryTool |
Call Signature
createDefaultAiTools(
store,options?):object&DefaultCommandTools
Default tools available to the AI assistant for data analysis. Includes:
- query: Executes SQL queries against DuckDB
- list_commands / execute_command: Bridge to room command registry
Pass commands: false to opt out of the command tools (e.g. in rooms without a command registry).
Parameters
| Parameter | Type |
|---|---|
store | StoreApi<BaseRoomStoreState & AiSliceState & DuckDbSliceState> |
options? | DefaultToolsOptions |
Returns
object & DefaultCommandTools
