@querypanel/node-sdk 1.0.58 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -708,6 +708,18 @@ interface AskOptions {
|
|
|
708
708
|
* Optional OpenAI model id for v2 SQL generation. Omit to use server default.
|
|
709
709
|
*/
|
|
710
710
|
model?: string;
|
|
711
|
+
/**
|
|
712
|
+
* Optional additional system prompt text for the v2 pipeline.
|
|
713
|
+
*
|
|
714
|
+
* This is appended to the backend's SQL generator/reflection system prompts
|
|
715
|
+
* (it does not change tenant isolation mechanics; it only guides the LLM).
|
|
716
|
+
*
|
|
717
|
+
* Use this for tenant-specific policies (e.g. retention windows) that must
|
|
718
|
+
* be enforced on every query.
|
|
719
|
+
*
|
|
720
|
+
* Only sent when `pipeline: "v2"`.
|
|
721
|
+
*/
|
|
722
|
+
systemPrompt?: string;
|
|
711
723
|
}
|
|
712
724
|
/**
|
|
713
725
|
* Intent analysis result from the v2 pipeline.
|
package/dist/index.d.ts
CHANGED
|
@@ -708,6 +708,18 @@ interface AskOptions {
|
|
|
708
708
|
* Optional OpenAI model id for v2 SQL generation. Omit to use server default.
|
|
709
709
|
*/
|
|
710
710
|
model?: string;
|
|
711
|
+
/**
|
|
712
|
+
* Optional additional system prompt text for the v2 pipeline.
|
|
713
|
+
*
|
|
714
|
+
* This is appended to the backend's SQL generator/reflection system prompts
|
|
715
|
+
* (it does not change tenant isolation mechanics; it only guides the LLM).
|
|
716
|
+
*
|
|
717
|
+
* Use this for tenant-specific policies (e.g. retention windows) that must
|
|
718
|
+
* be enforced on every query.
|
|
719
|
+
*
|
|
720
|
+
* Only sent when `pipeline: "v2"`.
|
|
721
|
+
*/
|
|
722
|
+
systemPrompt?: string;
|
|
711
723
|
}
|
|
712
724
|
/**
|
|
713
725
|
* Intent analysis result from the v2 pipeline.
|
package/dist/index.js
CHANGED
|
@@ -1722,7 +1722,8 @@ async function ask(client, queryEngine, question, options, signal) {
|
|
|
1722
1722
|
...tenantSettings ? { tenant_settings: tenantSettings } : {},
|
|
1723
1723
|
...databaseName ? { database: databaseName } : {},
|
|
1724
1724
|
...metadata?.dialect ? { dialect: metadata.dialect } : {},
|
|
1725
|
-
...options.model?.trim() ? { model: options.model.trim() } : {}
|
|
1725
|
+
...options.model?.trim() ? { model: options.model.trim() } : {},
|
|
1726
|
+
...options.pipeline === "v2" && options.systemPrompt?.trim() ? { system_prompt: options.systemPrompt.trim() } : {}
|
|
1726
1727
|
},
|
|
1727
1728
|
tenantId,
|
|
1728
1729
|
options.userId,
|