SQLRooms

@sqlrooms/ai / createQueryTool

Function: createQueryTool()

createQueryTool(store, options?): Tool<{ type: "query"; sqlQuery: string; reasoning: string; }, QueryToolOutput>

Parameters

ParameterType
storeStoreApi<AiSliceState & DuckDbSliceState>
options?QueryToolOptions

Returns

Tool<{ type: "query"; sqlQuery: string; reasoning: string; }, QueryToolOutput>