SQLRooms
@sqlrooms/ai / createQueryTool
Function: createQueryTool()
createQueryTool(
store,options?):Tool<{type:"query";sqlQuery:string;reasoning:string; },QueryToolOutput>
Parameters
| Parameter | Type |
|---|---|
store | StoreApi<AiSliceState & DuckDbSliceState> |
options? | QueryToolOptions |
Returns
Tool<{ type: "query"; sqlQuery: string; reasoning: string; }, QueryToolOutput>