@superatomai/sdk-node 0.0.53 → 0.0.54
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/README.md +942 -942
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -70,7 +70,7 @@ declare class Logger {
|
|
|
70
70
|
/**
|
|
71
71
|
* Log LLM method prompts with clear labeling
|
|
72
72
|
*/
|
|
73
|
-
logLLMPrompt(methodName: string, promptType: 'system' | 'user', content: string): void;
|
|
73
|
+
logLLMPrompt(methodName: string, promptType: 'system' | 'user', content: string | object | any[]): void;
|
|
74
74
|
}
|
|
75
75
|
declare const logger: Logger;
|
|
76
76
|
|
package/dist/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ declare class Logger {
|
|
|
70
70
|
/**
|
|
71
71
|
* Log LLM method prompts with clear labeling
|
|
72
72
|
*/
|
|
73
|
-
logLLMPrompt(methodName: string, promptType: 'system' | 'user', content: string): void;
|
|
73
|
+
logLLMPrompt(methodName: string, promptType: 'system' | 'user', content: string | object | any[]): void;
|
|
74
74
|
}
|
|
75
75
|
declare const logger: Logger;
|
|
76
76
|
|
package/dist/index.js
CHANGED
|
@@ -153,7 +153,22 @@ ${"#".repeat(80)}
|
|
|
153
153
|
${"#".repeat(80)}
|
|
154
154
|
`;
|
|
155
155
|
LOGSTREAM.write(header);
|
|
156
|
-
|
|
156
|
+
let contentStr;
|
|
157
|
+
if (typeof content === "string") {
|
|
158
|
+
contentStr = content;
|
|
159
|
+
} else if (Array.isArray(content)) {
|
|
160
|
+
contentStr = content.map((item) => {
|
|
161
|
+
if (typeof item === "string") return item;
|
|
162
|
+
if (item.text) return item.text;
|
|
163
|
+
if (item.content) return typeof item.content === "string" ? item.content : JSON.stringify(item.content, null, 2);
|
|
164
|
+
return JSON.stringify(item, null, 2);
|
|
165
|
+
}).join("\n\n");
|
|
166
|
+
} else if (typeof content === "object") {
|
|
167
|
+
contentStr = JSON.stringify(content, null, 2);
|
|
168
|
+
} else {
|
|
169
|
+
contentStr = String(content);
|
|
170
|
+
}
|
|
171
|
+
LOGSTREAM.write(contentStr);
|
|
157
172
|
LOGSTREAM.write(`
|
|
158
173
|
${"#".repeat(80)}
|
|
159
174
|
|
|
@@ -7025,6 +7040,8 @@ ${errorMsg}
|
|
|
7025
7040
|
executionReason: t.executionReason || "",
|
|
7026
7041
|
requiredFields: t.requiredFields || [],
|
|
7027
7042
|
userProvidedData: t.userProvidedData || null,
|
|
7043
|
+
// CRITICAL: Include outputSchema from real tool for component config generation
|
|
7044
|
+
outputSchema: realTool?.outputSchema,
|
|
7028
7045
|
fn: (() => {
|
|
7029
7046
|
if (realTool) {
|
|
7030
7047
|
logger.info(`[${this.getProviderName()}] Using real tool implementation for ${t.type}`);
|