@jeliq/app-sdk-llm 1.1.24 → 1.2.2
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/lib/commonjs/controllers/genJSON.js +2 -22
- package/lib/commonjs/controllers/genJSON.js.map +1 -1
- package/lib/commonjs/controllers/genStructuredOutputs.js +46 -0
- package/lib/commonjs/controllers/genStructuredOutputs.js.map +1 -0
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/templates/ShouldMustTemplate.js +86 -71
- package/lib/commonjs/templates/ShouldMustTemplate.js.map +1 -1
- package/lib/commonjs/types.js +128 -0
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/createGetLLM.js +97 -79
- package/lib/commonjs/utils/createGetLLM.js.map +1 -1
- package/lib/module/controllers/genJSON.js +2 -22
- package/lib/module/controllers/genJSON.js.map +1 -1
- package/lib/module/controllers/genStructuredOutputs.js +39 -0
- package/lib/module/controllers/genStructuredOutputs.js.map +1 -0
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/templates/ShouldMustTemplate.js +86 -71
- package/lib/module/templates/ShouldMustTemplate.js.map +1 -1
- package/lib/module/types.js +127 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/createGetLLM.js +97 -79
- package/lib/module/utils/createGetLLM.js.map +1 -1
- package/lib/typescript/src/controllers/genJSON.d.ts.map +1 -1
- package/lib/typescript/src/controllers/genStructuredOutputs.d.ts +23 -0
- package/lib/typescript/src/controllers/genStructuredOutputs.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/templates/ShouldMustTemplate.d.ts +9 -5
- package/lib/typescript/src/templates/ShouldMustTemplate.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +53 -18
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/createGetLLM.d.ts +2 -2
- package/lib/typescript/src/utils/createGetLLM.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -4,29 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = genJSON;
|
|
7
|
-
var
|
|
8
|
-
var _ShouldMustTemplate = _interopRequireDefault(require("../templates/ShouldMustTemplate"));
|
|
9
|
-
var _retryWithBackoff = require("../utils/retryWithBackoff");
|
|
7
|
+
var _genStructuredOutputs = _interopRequireDefault(require("./genStructuredOutputs"));
|
|
10
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
9
|
async function genJSON(context, taskName, template, args, options) {
|
|
12
|
-
|
|
13
|
-
throw new Error("getLLM is not set");
|
|
14
|
-
}
|
|
15
|
-
const outputParser = _output_parsers.StructuredOutputParser.fromZodSchema(template.outputSchema);
|
|
16
|
-
const promptTemplate = await (0, _ShouldMustTemplate.default)(Object.keys(template.inputDef).map(key => ({
|
|
17
|
-
name: key,
|
|
18
|
-
type: template.inputDef[key].type,
|
|
19
|
-
description: template.inputDef[key].description
|
|
20
|
-
})), outputParser, template.summary, template.shouldSection, template.mustSection, template.example, template.partialVars);
|
|
21
|
-
const parser = outputParser;
|
|
22
|
-
if (!parser) {
|
|
23
|
-
throw new Error("outputParser is not set");
|
|
24
|
-
}
|
|
25
|
-
const llm = context.getLLM(taskName, await promptTemplate.format(args));
|
|
26
|
-
const fixParser = _output_parsers.OutputFixingParser.fromLLM(llm, parser).withRetry({
|
|
27
|
-
stopAfterAttempt: 5
|
|
28
|
-
});
|
|
29
|
-
const chain = promptTemplate.pipe(llm).pipe(fixParser);
|
|
30
|
-
return await (0, _retryWithBackoff.retryWithBackoff)(() => chain.invoke(args), (options === null || options === void 0 ? void 0 : options.maxRetries) ?? 5, options === null || options === void 0 ? void 0 : options.initialDelayMs, options === null || options === void 0 ? void 0 : options.maxDelayMs);
|
|
10
|
+
return (0, _genStructuredOutputs.default)(context, taskName, template, args);
|
|
31
11
|
}
|
|
32
12
|
//# sourceMappingURL=genJSON.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_genStructuredOutputs","_interopRequireDefault","require","e","__esModule","default","genJSON","context","taskName","template","args","options","genStructuredOutputs"],"sourceRoot":"../../../src","sources":["controllers/genJSON.ts"],"mappings":";;;;;;AAGA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0D,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAI3C,eAAeG,OAAOA,CACjCC,OAA4B,EAC5BC,QAAgB,EAChBC,QASC,EACDC,IAAkD,EAClDC,OAIC,EACc;EACf,OAAO,IAAAC,6BAAoB,EACvBL,OAAO,EACPC,QAAQ,EACRC,QAAQ,EACRC,IACJ,CAAC;AACL","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = genStructuredOutputs;
|
|
7
|
+
var _ai = require("ai");
|
|
8
|
+
var _ShouldMustTemplate = _interopRequireDefault(require("../templates/ShouldMustTemplate"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
async function genStructuredOutputs(context, taskName, template, args, options) {
|
|
11
|
+
if (!context) {
|
|
12
|
+
throw new Error("context is not set");
|
|
13
|
+
}
|
|
14
|
+
if (!(context !== null && context !== void 0 && context.getLLM)) {
|
|
15
|
+
throw new Error("getLLM is not set");
|
|
16
|
+
}
|
|
17
|
+
const promptTemplate = await (0, _ShouldMustTemplate.default)(Object.keys(template.inputDef).map(key => ({
|
|
18
|
+
name: key,
|
|
19
|
+
type: template.inputDef[key].type,
|
|
20
|
+
description: template.inputDef[key].description
|
|
21
|
+
})), template.summary, template.shouldSection, template.mustSection, template.example, template.partialVars);
|
|
22
|
+
const promptArgs = Object.entries(args).reduce((acc, [key, value]) => {
|
|
23
|
+
acc[key] = value ?? "";
|
|
24
|
+
return acc;
|
|
25
|
+
}, {});
|
|
26
|
+
const messages = await promptTemplate.formatMessages(promptArgs);
|
|
27
|
+
const model = context.getLLM(taskName, undefined, {
|
|
28
|
+
model: options === null || options === void 0 ? void 0 : options.model,
|
|
29
|
+
temperature: options === null || options === void 0 ? void 0 : options.temperature,
|
|
30
|
+
reasoningEffort: options === null || options === void 0 ? void 0 : options.reasoningEffort,
|
|
31
|
+
timeout: options === null || options === void 0 ? void 0 : options.timeout
|
|
32
|
+
});
|
|
33
|
+
const {
|
|
34
|
+
output
|
|
35
|
+
} = await (0, _ai.generateText)({
|
|
36
|
+
model,
|
|
37
|
+
messages,
|
|
38
|
+
temperature: options === null || options === void 0 ? void 0 : options.temperature,
|
|
39
|
+
maxRetries: options === null || options === void 0 ? void 0 : options.maxRetries,
|
|
40
|
+
output: _ai.Output.object({
|
|
41
|
+
schema: template.outputSchema
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
return output;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=genStructuredOutputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ai","require","_ShouldMustTemplate","_interopRequireDefault","e","__esModule","default","genStructuredOutputs","context","taskName","template","args","options","Error","getLLM","promptTemplate","createShouldMustTemplateAI","Object","keys","inputDef","map","key","name","type","description","summary","shouldSection","mustSection","example","partialVars","promptArgs","entries","reduce","acc","value","messages","formatMessages","model","undefined","temperature","reasoningEffort","timeout","output","generateText","maxRetries","AIOutput","object","schema","outputSchema"],"sourceRoot":"../../../src","sources":["controllers/genStructuredOutputs.ts"],"mappings":";;;;;;AACA,IAAAA,GAAA,GAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAC,sBAAA,C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GAAG7B,OAAO,CAACM,MAAM,CACxBL,QAAQ,EACR6B,SAAS,EACT;IACID,KAAK,EAAEzB,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEyB,KAAK;IACrBE,WAAW,EAAE3B,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE2B,WAAW;IACjCC,eAAe,EAAE5B,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE4B,eAAe;IACzCC,OAAO,EAAE7B,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE6B;EACtB,CACJ,CAAC;EAED,MAAM;IAAEC;EAAO,CAAC,GAAG,MAAM,IAAAC,gBAAY,EAAC;IAClCN,KAAK;IACLF,QAAQ;IACRI,WAAW,EAAE3B,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE2B,WAAW;IACjCK,UAAU,EAAEhC,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEgC,UAAU;IAC/BF,MAAM,EAAEG,UAAQ,CAACC,MAAM,CAAC;MACpBC,MAAM,EAAErC,QAAQ,CAACsC;IACrB,CAAC;EACL,CAAC,CAAC;EAEF,OAAON,MAAM;AACjB","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -21,8 +21,15 @@ Object.defineProperty(exports, "genJSON", {
|
|
|
21
21
|
return _genJSON.default;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "genStructuredOutputs", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _genStructuredOutputs.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
var _ShouldMustTemplate = _interopRequireDefault(require("./templates/ShouldMustTemplate"));
|
|
25
31
|
var _createGetLLM = _interopRequireDefault(require("./utils/createGetLLM"));
|
|
26
32
|
var _genJSON = _interopRequireDefault(require("./controllers/genJSON"));
|
|
33
|
+
var _genStructuredOutputs = _interopRequireDefault(require("./controllers/genStructuredOutputs"));
|
|
27
34
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
28
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_ShouldMustTemplate","_interopRequireDefault","require","_createGetLLM","_genJSON","e","__esModule","default"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_ShouldMustTemplate","_interopRequireDefault","require","_createGetLLM","_genJSON","_genStructuredOutputs","e","__esModule","default"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,qBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAsE,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -4,12 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = createShouldMustTemplate;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
function getVariableRegex() {
|
|
8
|
+
try {
|
|
9
|
+
return new RegExp("{([\\p{L}\\p{N}_]+)}", "gu");
|
|
10
|
+
} catch {
|
|
11
|
+
return /{([0-9A-Za-z_\u00C0-\u02FF\u0370-\u03FF\u0400-\u04FF\u0590-\u05FF\u0600-\u06FF\u0900-\u097F\u0E00-\u0E7F\u3040-\u30FF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF]+)}/g;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
9
14
|
function extractVariables(content) {
|
|
10
|
-
const variableRegex =
|
|
15
|
+
const variableRegex = getVariableRegex();
|
|
11
16
|
const variables = [];
|
|
12
|
-
let match;
|
|
17
|
+
let match = null;
|
|
13
18
|
while ((match = variableRegex.exec(content)) !== null) {
|
|
14
19
|
if (!variables.includes(match[1])) {
|
|
15
20
|
variables.push(match[1]);
|
|
@@ -17,94 +22,104 @@ function extractVariables(content) {
|
|
|
17
22
|
}
|
|
18
23
|
return variables;
|
|
19
24
|
}
|
|
20
|
-
async function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
async function resolvePartialVars(partialVars) {
|
|
26
|
+
if (!partialVars) return {};
|
|
27
|
+
const entries = await Promise.all(Object.entries(partialVars).map(async ([key, value]) => {
|
|
28
|
+
if (typeof value === "function") {
|
|
29
|
+
const result = value();
|
|
30
|
+
return [key, typeof result === "string" ? result : await result];
|
|
31
|
+
}
|
|
32
|
+
return [key, value];
|
|
33
|
+
}));
|
|
34
|
+
return Object.fromEntries(entries);
|
|
35
|
+
}
|
|
36
|
+
function replaceTemplateVariables(template, values) {
|
|
37
|
+
return template.replace(getVariableRegex(), (_, variable) => values[variable] ?? "");
|
|
38
|
+
}
|
|
39
|
+
async function createShouldMustTemplate(inputDef, summary, shouldSection, mustSection, example, partialVars) {
|
|
24
40
|
const shouldSectionPrompt = (() => {
|
|
25
|
-
if (!shouldSection) return "";
|
|
41
|
+
if (!(shouldSection !== null && shouldSection !== void 0 && shouldSection.length)) return "";
|
|
26
42
|
const shouldSectionCount = shouldSection.length;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// create should section header
|
|
30
|
-
const shouldSectionHeader = `# You Should\n
|
|
31
|
-
The tasks assigned to you are you are from (a1) to (a${shouldSectionCount}) below.`;
|
|
32
|
-
// create should section
|
|
43
|
+
const shouldSectionHeader = `# You Should\n\nThe tasks assigned to you are from (a1) to (a${shouldSectionCount}) below.`;
|
|
33
44
|
const shouldSectionBody = shouldSection.map(elem => {
|
|
34
45
|
const baseBody = `## (a${elem.no}) ${elem.title}`;
|
|
35
|
-
|
|
46
|
+
return elem.content ? `${baseBody}\n${elem.content}` : baseBody;
|
|
36
47
|
}).join("\n\n");
|
|
37
|
-
return shouldSectionHeader
|
|
48
|
+
return `${shouldSectionHeader}\n\n${shouldSectionBody}`;
|
|
38
49
|
})();
|
|
39
|
-
|
|
40
|
-
// create must section prompt
|
|
41
50
|
const mustSectionPrompt = (() => {
|
|
42
|
-
if (!mustSection) return "";
|
|
51
|
+
if (!(mustSection !== null && mustSection !== void 0 && mustSection.length)) return "";
|
|
43
52
|
const mustSectionCount = mustSection.length;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
// create must section header
|
|
47
|
-
const mustSectionHeader = `# You Must\n
|
|
48
|
-
You must satisfy the following tasks from (b1) to (b${mustSectionCount}) below.\n\n`;
|
|
49
|
-
// create must section
|
|
53
|
+
const mustSectionHeader = `# You Must\n\nYou must satisfy the following tasks from (b1) to (b${mustSectionCount}) below.`;
|
|
50
54
|
const mustSectionBody = mustSection.map(elem => {
|
|
51
55
|
const baseBody = `## (b${elem.no}) ${elem.title}`;
|
|
52
|
-
|
|
56
|
+
return elem.content ? `${baseBody}\n${elem.content}` : baseBody;
|
|
53
57
|
}).join("\n\n");
|
|
54
|
-
return mustSectionHeader
|
|
58
|
+
return `${mustSectionHeader}\n\n${mustSectionBody}`;
|
|
55
59
|
})();
|
|
56
|
-
|
|
57
|
-
// create example section prompt
|
|
58
60
|
const exampleSectionPrompt = (() => {
|
|
59
|
-
if (!example) return "";
|
|
60
|
-
const exampleSectionCount = example.length;
|
|
61
|
-
if (exampleSectionCount === 0) return "";
|
|
62
|
-
|
|
63
|
-
// create example section header
|
|
64
|
-
const exampleSectionHeader = `# Example\n\n`;
|
|
65
|
-
|
|
66
|
-
// create example section
|
|
61
|
+
if (!(example !== null && example !== void 0 && example.length)) return "";
|
|
67
62
|
const exampleSectionBody = example.map(elem => `## (c${elem.no}) ${elem.title}\n${elem.content}`).join("\n\n");
|
|
68
|
-
return
|
|
63
|
+
return `# Example\n\n${exampleSectionBody}`;
|
|
69
64
|
})();
|
|
70
|
-
|
|
71
|
-
// Collect all variables used in sections
|
|
72
|
-
const allSectionContent = [(shouldSection === null || shouldSection === void 0 ? void 0 : shouldSection.map(s => s.content || '').join(' ')) || '', (mustSection === null || mustSection === void 0 ? void 0 : mustSection.map(s => s.content || '').join(' ')) || '', (example === null || example === void 0 ? void 0 : example.map(s => s.content || '').join(' ')) || '', summary].join(' ');
|
|
65
|
+
const allSectionContent = [(shouldSection === null || shouldSection === void 0 ? void 0 : shouldSection.map(s => s.content || "").join(" ")) || "", (mustSection === null || mustSection === void 0 ? void 0 : mustSection.map(s => s.content || "").join(" ")) || "", (example === null || example === void 0 ? void 0 : example.map(s => s.content || "").join(" ")) || "", summary].join(" ");
|
|
73
66
|
const usedVariables = extractVariables(allSectionContent);
|
|
74
|
-
|
|
75
|
-
// Get defined variables
|
|
76
67
|
const definedInputVariables = inputDef.map(elem => elem.name);
|
|
77
68
|
const definedPartialVariables = Object.keys(partialVars || {});
|
|
78
|
-
const definedVariables = [...definedInputVariables, ...definedPartialVariables,
|
|
79
|
-
|
|
80
|
-
// Find undefined variables
|
|
69
|
+
const definedVariables = [...definedInputVariables, ...definedPartialVariables, "outputFormat"];
|
|
81
70
|
const undefinedVariables = usedVariables.filter(variable => !definedVariables.includes(variable));
|
|
82
|
-
|
|
83
|
-
// Output warning if undefined variables are found
|
|
84
71
|
if (undefinedVariables.length > 0) {
|
|
85
|
-
console.warn(`[ShouldMustTemplate] Warning: Found ${undefinedVariables.length} undefined variable(s) in template sections: [${undefinedVariables.join(
|
|
72
|
+
console.warn(`[ShouldMustTemplate] Warning: Found ${undefinedVariables.length} undefined variable(s) in template sections: [${undefinedVariables.join(", ")}]. These variables have been automatically added to the template.`);
|
|
86
73
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
74
|
+
const autoGeneratedVariablesSection = undefinedVariables.length > 0 ? `\n\n# Auto-Generated Variables\n\n${undefinedVariables.map(variable => `## ${variable}\n{${variable}}`).join("\n\n")}` : "";
|
|
75
|
+
const systemPrompt = [summary, shouldSectionPrompt, mustSectionPrompt, exampleSectionPrompt].filter(Boolean).join("\n\n");
|
|
76
|
+
const stringInputPromptTemplate = inputDef.filter(elem => elem.type === "string").map(elem => `# ${elem.name}${elem.description ? `\n${elem.description}` : ""}\n{${elem.name}}`).join("\n\n");
|
|
77
|
+
const imageInputDefs = inputDef.filter(elem => elem.type === "imageDataURL");
|
|
78
|
+
const systemTemplate = [systemPrompt, "{outputFormat}"].filter(Boolean).join("\n\n").trim();
|
|
79
|
+
const userTextTemplate = [stringInputPromptTemplate, autoGeneratedVariablesSection].filter(Boolean).join("\n\n").trim();
|
|
80
|
+
return {
|
|
81
|
+
async formatMessages(args) {
|
|
82
|
+
const resolvedPartialVars = await resolvePartialVars(partialVars || {});
|
|
83
|
+
const mergedArgs = Object.entries(args || {}).reduce((acc, [key, value]) => {
|
|
84
|
+
acc[key] = value ?? "";
|
|
85
|
+
return acc;
|
|
86
|
+
}, {});
|
|
87
|
+
const templateValues = {
|
|
88
|
+
...mergedArgs,
|
|
89
|
+
...resolvedPartialVars
|
|
90
|
+
};
|
|
91
|
+
undefinedVariables.forEach(variable => {
|
|
92
|
+
if (!(variable in templateValues)) {
|
|
93
|
+
templateValues[variable] = "";
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
const systemMessage = {
|
|
97
|
+
role: "system",
|
|
98
|
+
content: replaceTemplateVariables(systemTemplate, templateValues)
|
|
99
|
+
};
|
|
100
|
+
const userText = replaceTemplateVariables(userTextTemplate, templateValues);
|
|
101
|
+
const userContentParts = [];
|
|
102
|
+
if (userText.trim().length > 0) {
|
|
103
|
+
userContentParts.push({
|
|
104
|
+
type: "text",
|
|
105
|
+
text: userText
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
imageInputDefs.forEach(elem => {
|
|
109
|
+
const imageValue = templateValues[elem.name];
|
|
110
|
+
if (imageValue && imageValue.trim().length > 0) {
|
|
111
|
+
userContentParts.push({
|
|
112
|
+
type: "image",
|
|
113
|
+
image: imageValue
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
const userMessage = {
|
|
118
|
+
role: "user",
|
|
119
|
+
content: userContentParts.length > 0 ? userContentParts : ""
|
|
120
|
+
};
|
|
121
|
+
return [systemMessage, userMessage];
|
|
107
122
|
}
|
|
108
|
-
}
|
|
123
|
+
};
|
|
109
124
|
}
|
|
110
125
|
//# sourceMappingURL=ShouldMustTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["getVariableRegex","RegExp","extractVariables","content","variableRegex","variables","match","exec","includes","push","resolvePartialVars","partialVars","entries","Promise","all","Object","map","key","value","result","fromEntries","replaceTemplateVariables","template","values","replace","_","variable","createShouldMustTemplate","inputDef","summary","shouldSection","mustSection","example","shouldSectionPrompt","length","shouldSectionCount","shouldSectionHeader","shouldSectionBody","elem","baseBody","no","title","join","mustSectionPrompt","mustSectionCount","mustSectionHeader","mustSectionBody","exampleSectionPrompt","exampleSectionBody","allSectionContent","s","usedVariables","definedInputVariables","name","definedPartialVariables","keys","definedVariables","undefinedVariables","filter","console","warn","autoGeneratedVariablesSection","systemPrompt","Boolean","stringInputPromptTemplate","type","description","imageInputDefs","systemTemplate","trim","userTextTemplate","formatMessages","args","resolvedPartialVars","mergedArgs","reduce","acc","templateValues","forEach","systemMessage","role","userText","userContentParts","text","imageValue","image","userMessage"],"sourceRoot":"../../../src","sources":["templates/ShouldMustTemplate.ts"],"mappings":";;;;;;AAWA,SAASA,gBAAgBA,CAAA,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gB,EAAEO,cAAc,CAAC;MAE3E,MAAMK,gBAA6C,GAAG,EAAE;MACxD,IAAID,QAAQ,CAACZ,IAAI,CAAC,CAAC,CAACnC,MAAM,GAAG,CAAC,EAAE;QAC5BgD,gBAAgB,CAACzE,IAAI,CAAC;UAClBwD,IAAI,EAAE,MAAM;UACZkB,IAAI,EAAEF;QACV,CAAC,CAAC;MACN;MAEAd,cAAc,CAACW,OAAO,CAAExC,IAAI,IAAK;QAC7B,MAAM8C,UAAU,GAAGP,cAAc,CAACvC,IAAI,CAACe,IAAI,CAAC;QAC5C,IAAI+B,UAAU,IAAIA,UAAU,CAACf,IAAI,CAAC,CAAC,CAACnC,MAAM,GAAG,CAAC,EAAE;UAC5CgD,gBAAgB,CAACzE,IAAI,CAAC;YAClBwD,IAAI,EAAE,OAAO;YACboB,KAAK,EAAED;UACX,CAAC,CAAC;QACN;MACJ,CAAC,CAAC;MAEF,MAAME,WAA6B,GAAG;QAClCN,IAAI,EAAE,MAAM;QACZ7E,OAAO,EAAE+E,gBAAgB,CAAChD,MAAM,GAAG,CAAC,GAAGgD,gBAAgB,GAAG;MAC9D,CAAC;MAED,OAAO,CAACH,aAAa,EAAEO,WAAW,CAAC;IACvC;EACJ,CAAC;AACL","ignoreList":[]}
|
package/lib/commonjs/types.js
CHANGED
|
@@ -3,4 +3,132 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.ModelNameAlias = void 0;
|
|
7
|
+
const ModelNameAlias = exports.ModelNameAlias = {
|
|
8
|
+
// Claude Models
|
|
9
|
+
"claude-haiku-3": {
|
|
10
|
+
"model": "claude-3-haiku-20240307",
|
|
11
|
+
"vendor": {
|
|
12
|
+
"type": "anthropic"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"claude-haiku-3.5": {
|
|
16
|
+
"model": "claude-3-5-haiku-20241022",
|
|
17
|
+
"vendor": {
|
|
18
|
+
"type": "anthropic"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"claude-sonnet-3.7": {
|
|
22
|
+
"model": "claude-3-7-sonnet-20250219",
|
|
23
|
+
"vendor": {
|
|
24
|
+
"type": "anthropic"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"claude-sonnet-4": {
|
|
28
|
+
"model": "claude-sonnet-4-20250514",
|
|
29
|
+
"vendor": {
|
|
30
|
+
"type": "anthropic"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"claude-opus-4": {
|
|
34
|
+
"model": "claude-opus-4-20250514",
|
|
35
|
+
"vendor": {
|
|
36
|
+
"type": "anthropic"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"claude-opus-4.1": {
|
|
40
|
+
"model": "claude-opus-4-1-20250805",
|
|
41
|
+
"vendor": {
|
|
42
|
+
"type": "anthropic"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"claude-sonnet-4.5": {
|
|
46
|
+
"model": "claude-sonnet-4-5-20250929",
|
|
47
|
+
"vendor": {
|
|
48
|
+
"type": "anthropic"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"claude-haiku-4.5": {
|
|
52
|
+
"model": "claude-haiku-4-5-20251001",
|
|
53
|
+
"vendor": {
|
|
54
|
+
"type": "anthropic"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"claude-opus-4.5": {
|
|
58
|
+
"model": "claude-opus-4-5-20251101",
|
|
59
|
+
"vendor": {
|
|
60
|
+
"type": "anthropic"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
// gpt-4o
|
|
64
|
+
"gpt-4o": {
|
|
65
|
+
model: "gpt-4o",
|
|
66
|
+
vendor: {
|
|
67
|
+
type: "openai"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"gpt-4o-mini": {
|
|
71
|
+
model: "gpt-4o-mini",
|
|
72
|
+
vendor: {
|
|
73
|
+
type: "openai"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
// gpt-5.1
|
|
77
|
+
"gpt-5.1-chat": {
|
|
78
|
+
model: "gpt-5.1-chat-latest",
|
|
79
|
+
vendor: {
|
|
80
|
+
type: "openai"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"gpt-5.1": {
|
|
84
|
+
model: "gpt-5.1",
|
|
85
|
+
vendor: {
|
|
86
|
+
type: "openai"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
// gpt-5.2
|
|
90
|
+
"gpt-5.2": {
|
|
91
|
+
model: "gpt-5.2",
|
|
92
|
+
vendor: {
|
|
93
|
+
type: "openai"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"gpt-5.2-chat": {
|
|
97
|
+
model: "gpt-5.2-chat-latest",
|
|
98
|
+
vendor: {
|
|
99
|
+
type: "openai"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
// Gemini Models
|
|
103
|
+
"gemini-3-pro": {
|
|
104
|
+
model: "gemini-3-pro-preview",
|
|
105
|
+
vendor: {
|
|
106
|
+
type: "google"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"gemini-3-flash": {
|
|
110
|
+
model: "gemini-3-flash-preview",
|
|
111
|
+
vendor: {
|
|
112
|
+
type: "google"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"gemini-2.5-flash": {
|
|
116
|
+
model: "gemini-2.5-flash",
|
|
117
|
+
vendor: {
|
|
118
|
+
type: "google"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"gemini-2.5-flash-lite": {
|
|
122
|
+
model: "gemini-2.5-flash-lite",
|
|
123
|
+
vendor: {
|
|
124
|
+
type: "google"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"gemini-2.5-pro": {
|
|
128
|
+
model: "gemini-2.5-pro",
|
|
129
|
+
vendor: {
|
|
130
|
+
type: "google"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
6
134
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["types.ts"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["ModelNameAlias","exports","model","vendor","type"],"sourceRoot":"../../src","sources":["types.ts"],"mappings":";;;;;;AA4DO,MAAMA,cAA0D,GAAAC,OAAA,CAAAD,cAAA,GAAG;EACtE;EACA,gBAAgB,EAAE;IACd,OAAO,EAAE,yBAAyB;IAClC,QAAQ,EAAE;MAAE,MAAM,EAAE;IAAY;EACpC,CAAC;EACD,kBAAkB,EAAE;IAChB,OAAO,EAAE,2BAA2B;IACpC,QAAQ,EAAE;MAAE,MAAM,EAAE;IAAY;EACpC,CAAC;EACD,mBAAmB,EAAE;IACjB,OAAO,EAAE,4BAA4B;IACrC,QAAQ,EAAE;MAAE,MAAM,EAAE;IAAY;EACpC,CAAC;EACD,iBAAiB,EAAE;IACf,OAAO,EAAE,0BAA0B;IACnC,QAAQ,EAAE;MAAE,MAAM,EAAE;IAAY;EACpC,CAAC;EACD,eAAe,EAAE;IACb,OAAO,EAAE,wBAAwB;IACjC,QAAQ,EAAE;MAAE,MAAM,EAAE;IAAY;EACpC,CAAC;EACD,iBAAiB,EAAE;IACf,OAAO,EAAE,0BAA0B;IACnC,QAAQ,EAAE;MAAE,MAAM,EAAE;IAAY;EACpC,CAAC;EACD,mBAAmB,EAAE;IACjB,OAAO,EAAE,4BAA4B;IACrC,QAAQ,EAAE;MAAE,MAAM,EAAE;IAAY;EACpC,CAAC;EACD,kBAAkB,EAAE;IAChB,OAAO,EAAE,2BAA2B;IACpC,QAAQ,EAAE;MAAE,MAAM,EAAE;IAAY;EACpC,CAAC;EACD,iBAAiB,EAAE;IACf,OAAO,EAAE,0BAA0B;IACnC,QAAQ,EAAE;MAAE,MAAM,EAAE;IAAY;EACpC,CAAC;EAED;EACA,QAAQ,EAAE;IACNE,KAAK,EAA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