@superatomai/sdk-node 0.0.67 → 0.0.68
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.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +3295 -3434
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3267 -3413
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2145,14 +2145,24 @@ declare abstract class BaseLLM {
|
|
|
2145
2145
|
* @param componentStreamCallback - Optional callback to stream primary KPI component as soon as it's identified
|
|
2146
2146
|
* @returns Object containing matched components, layout title/description, and follow-up actions
|
|
2147
2147
|
*/
|
|
2148
|
-
matchComponentsFromAnalysis(analysisContent: string, components: Component[], apiKey?: string, logCollector?: any, componentStreamCallback?: (component: Component) => void, deferredTools?: any[], executedTools?: any[], collections?: any, userId?: string
|
|
2148
|
+
matchComponentsFromAnalysis(analysisContent: string, components: Component[], userPrompt: string, apiKey?: string, logCollector?: any, componentStreamCallback?: (component: Component) => void, deferredTools?: any[], executedTools?: any[], collections?: any, userId?: string): Promise<{
|
|
2149
2149
|
components: Component[];
|
|
2150
2150
|
layoutTitle: string;
|
|
2151
2151
|
layoutDescription: string;
|
|
2152
2152
|
actions: Action[];
|
|
2153
2153
|
}>;
|
|
2154
|
+
/**
|
|
2155
|
+
* Validate a single component's query with retry logic
|
|
2156
|
+
* @param component - The component to validate
|
|
2157
|
+
* @param collections - Collections object containing database execute function
|
|
2158
|
+
* @param apiKey - Optional API key for LLM calls
|
|
2159
|
+
* @param logCollector - Optional log collector for logging
|
|
2160
|
+
* @returns Object with validated component (or null if failed) and query result
|
|
2161
|
+
*/
|
|
2162
|
+
private validateSingleComponentQuery;
|
|
2154
2163
|
/**
|
|
2155
2164
|
* Validate component queries against the database and retry with LLM fixes if they fail
|
|
2165
|
+
* Uses parallel execution for faster validation
|
|
2156
2166
|
* @param components - Array of components with potential queries
|
|
2157
2167
|
* @param collections - Collections object containing database execute function
|
|
2158
2168
|
* @param apiKey - Optional API key for LLM calls
|
package/dist/index.d.ts
CHANGED
|
@@ -2145,14 +2145,24 @@ declare abstract class BaseLLM {
|
|
|
2145
2145
|
* @param componentStreamCallback - Optional callback to stream primary KPI component as soon as it's identified
|
|
2146
2146
|
* @returns Object containing matched components, layout title/description, and follow-up actions
|
|
2147
2147
|
*/
|
|
2148
|
-
matchComponentsFromAnalysis(analysisContent: string, components: Component[], apiKey?: string, logCollector?: any, componentStreamCallback?: (component: Component) => void, deferredTools?: any[], executedTools?: any[], collections?: any, userId?: string
|
|
2148
|
+
matchComponentsFromAnalysis(analysisContent: string, components: Component[], userPrompt: string, apiKey?: string, logCollector?: any, componentStreamCallback?: (component: Component) => void, deferredTools?: any[], executedTools?: any[], collections?: any, userId?: string): Promise<{
|
|
2149
2149
|
components: Component[];
|
|
2150
2150
|
layoutTitle: string;
|
|
2151
2151
|
layoutDescription: string;
|
|
2152
2152
|
actions: Action[];
|
|
2153
2153
|
}>;
|
|
2154
|
+
/**
|
|
2155
|
+
* Validate a single component's query with retry logic
|
|
2156
|
+
* @param component - The component to validate
|
|
2157
|
+
* @param collections - Collections object containing database execute function
|
|
2158
|
+
* @param apiKey - Optional API key for LLM calls
|
|
2159
|
+
* @param logCollector - Optional log collector for logging
|
|
2160
|
+
* @returns Object with validated component (or null if failed) and query result
|
|
2161
|
+
*/
|
|
2162
|
+
private validateSingleComponentQuery;
|
|
2154
2163
|
/**
|
|
2155
2164
|
* Validate component queries against the database and retry with LLM fixes if they fail
|
|
2165
|
+
* Uses parallel execution for faster validation
|
|
2156
2166
|
* @param components - Array of components with potential queries
|
|
2157
2167
|
* @param collections - Collections object containing database execute function
|
|
2158
2168
|
* @param apiKey - Optional API key for LLM calls
|