typia 14.0.6 → 15.0.1
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 +3 -0
- package/lib/http.d.ts +49 -24
- package/lib/http.js.map +1 -1
- package/lib/http.mjs.map +1 -1
- package/lib/internal/_createLlmEvaluation.d.ts +1 -0
- package/lib/internal/_createLlmEvaluation.js +486 -0
- package/lib/internal/_createLlmEvaluation.js.map +1 -0
- package/lib/internal/_createLlmEvaluation.mjs +382 -0
- package/lib/internal/_createLlmEvaluation.mjs.map +1 -0
- package/lib/internal/_httpFormDataReadBigint.js +7 -5
- package/lib/internal/_httpFormDataReadBigint.js.map +1 -1
- package/lib/internal/_httpFormDataReadBigint.mjs +1 -1
- package/lib/internal/_httpFormDataReadBigint.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBoolean.js +12 -10
- package/lib/internal/_httpFormDataReadBoolean.js.map +1 -1
- package/lib/internal/_httpFormDataReadBoolean.mjs +1 -1
- package/lib/internal/_httpFormDataReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadNumber.js +7 -5
- package/lib/internal/_httpFormDataReadNumber.js.map +1 -1
- package/lib/internal/_httpFormDataReadNumber.mjs +1 -1
- package/lib/internal/_httpFormDataReadNumber.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadString.d.ts +9 -1
- package/lib/internal/_httpFormDataReadString.js +10 -2
- package/lib/internal/_httpFormDataReadString.js.map +1 -1
- package/lib/internal/_httpFormDataReadString.mjs +9 -1
- package/lib/internal/_httpFormDataReadString.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadBigint.js +5 -1
- package/lib/internal/_httpHeaderReadBigint.js.map +1 -1
- package/lib/internal/_httpHeaderReadBigint.mjs +2 -1
- package/lib/internal/_httpHeaderReadBigint.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadNumber.js +5 -1
- package/lib/internal/_httpHeaderReadNumber.js.map +1 -1
- package/lib/internal/_httpHeaderReadNumber.mjs +2 -1
- package/lib/internal/_httpHeaderReadNumber.mjs.map +1 -1
- package/lib/internal/_httpParameterReadBigint.js +4 -0
- package/lib/internal/_httpParameterReadBigint.js.map +1 -1
- package/lib/internal/_httpParameterReadBigint.mjs +1 -0
- package/lib/internal/_httpParameterReadBigint.mjs.map +1 -1
- package/lib/internal/_httpParameterReadNumber.js +4 -0
- package/lib/internal/_httpParameterReadNumber.js.map +1 -1
- package/lib/internal/_httpParameterReadNumber.mjs +1 -0
- package/lib/internal/_httpParameterReadNumber.mjs.map +1 -1
- package/lib/internal/_httpParameterReadString.d.ts +9 -1
- package/lib/internal/_httpParameterReadString.js +9 -1
- package/lib/internal/_httpParameterReadString.js.map +1 -1
- package/lib/internal/_httpParameterReadString.mjs +9 -1
- package/lib/internal/_httpParameterReadString.mjs.map +1 -1
- package/lib/internal/_httpQueryReadBigint.js +8 -1
- package/lib/internal/_httpQueryReadBigint.js.map +1 -1
- package/lib/internal/_httpQueryReadBigint.mjs +1 -1
- package/lib/internal/_httpQueryReadBigint.mjs.map +1 -1
- package/lib/internal/_httpQueryReadBoolean.js +4 -1
- package/lib/internal/_httpQueryReadBoolean.js.map +1 -1
- package/lib/internal/_httpQueryReadBoolean.mjs +1 -1
- package/lib/internal/_httpQueryReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpQueryReadNumber.js +8 -1
- package/lib/internal/_httpQueryReadNumber.js.map +1 -1
- package/lib/internal/_httpQueryReadNumber.mjs +1 -1
- package/lib/internal/_httpQueryReadNumber.mjs.map +1 -1
- package/lib/internal/_httpQueryReadString.d.ts +9 -1
- package/lib/internal/_httpQueryReadString.js +9 -1
- package/lib/internal/_httpQueryReadString.js.map +1 -1
- package/lib/internal/_httpQueryReadString.mjs +9 -1
- package/lib/internal/_httpQueryReadString.mjs.map +1 -1
- package/lib/internal/_randomBigint.d.ts +12 -1
- package/lib/internal/_randomBigint.js +90 -2
- package/lib/internal/_randomBigint.js.map +1 -1
- package/lib/internal/_randomBigint.mjs +70 -2
- package/lib/internal/_randomBigint.mjs.map +1 -1
- package/lib/internal/_randomInteger.js +21 -12
- package/lib/internal/_randomInteger.js.map +1 -1
- package/lib/internal/_randomInteger.mjs +21 -16
- package/lib/internal/_randomInteger.mjs.map +1 -1
- package/lib/internal/_randomNumber.js +19 -10
- package/lib/internal/_randomNumber.js.map +1 -1
- package/lib/internal/_randomNumber.mjs +19 -14
- package/lib/internal/_randomNumber.mjs.map +1 -1
- package/lib/internal/_stringLengthGte.d.ts +1 -0
- package/lib/internal/_stringLengthGte.js +14 -0
- package/lib/internal/_stringLengthGte.js.map +1 -0
- package/lib/internal/_stringLengthGte.mjs +11 -0
- package/lib/internal/_stringLengthGte.mjs.map +1 -0
- package/lib/internal/_stringLengthLte.d.ts +1 -0
- package/lib/internal/_stringLengthLte.js +14 -0
- package/lib/internal/_stringLengthLte.js.map +1 -0
- package/lib/internal/_stringLengthLte.mjs +11 -0
- package/lib/internal/_stringLengthLte.mjs.map +1 -0
- package/lib/llm.d.ts +54 -1
- package/lib/llm.js +5 -0
- package/lib/llm.js.map +1 -1
- package/lib/llm.mjs +6 -1
- package/lib/llm.mjs.map +1 -1
- package/lib/re-exports.d.ts +1 -1
- package/lib/re-exports.js.map +1 -1
- package/native/cmd/ttsc-typia/build.go +2 -0
- package/native/cmd/ttsc-typia/dynamic_key_tags_transform_test.go +1 -1
- package/native/cmd/ttsc-typia/llm_evaluation_accepts_property_probability_test.go +27 -0
- package/native/cmd/ttsc-typia/llm_evaluation_accepts_unselected_source_probability_test.go +26 -0
- package/native/cmd/ttsc-typia/llm_evaluation_complete_object_shape_test.go +96 -0
- package/native/cmd/ttsc-typia/llm_evaluation_ignores_declaration_probability_without_call_test.go +18 -0
- package/native/cmd/ttsc-typia/llm_evaluation_plan_emission_transform_test.go +90 -0
- package/native/cmd/ttsc-typia/llm_evaluation_program_scan_dependencies_test.go +69 -0
- package/native/cmd/ttsc-typia/llm_evaluation_rejects_alias_comment_test.go +44 -0
- package/native/cmd/ttsc-typia/llm_evaluation_rejects_alias_refinement_test.go +45 -0
- package/native/cmd/ttsc-typia/llm_evaluation_rejects_computed_method_probability_test.go +30 -0
- package/native/cmd/ttsc-typia/llm_evaluation_rejects_imported_declaration_probability_test.go +48 -0
- package/native/cmd/ttsc-typia/llm_evaluation_rejects_invalid_probability_test.go +208 -0
- package/native/cmd/ttsc-typia/llm_evaluation_rejects_refinements_test.go +94 -0
- package/native/cmd/ttsc-typia/llm_evaluation_rejects_undecidable_types_test.go +232 -0
- package/native/cmd/ttsc-typia/metadata_type_tag_sole_malformed_diagnostic_test.go +94 -0
- package/native/cmd/ttsc-typia/random_recursive_min_items_diagnostic_test.go +18 -1
- package/native/cmd/ttsc-typia/template_literal_type_tags_transform_test.go +3 -2
- package/native/cmd/ttsc-typia/transform.go +2 -0
- package/native/cmd/ttsc-typia/transform_helpers_test.go +17 -3
- package/native/core/context/ITypiaContext.go +4 -0
- package/native/core/factories/ExpressionFactory.go +16 -1
- package/native/core/factories/IdentifierFactory.go +10 -0
- package/native/core/factories/LiteralFactory.go +16 -0
- package/native/core/factories/MetadataCommentTagFactory.go +185 -35
- package/native/core/factories/MetadataTypeTagFactory.go +97 -24
- package/native/core/factories/MetadataTypeTagSchemaFactory.go +5 -0
- package/native/core/factories/expression_factory_number_spells_non_finite_values_test.go +69 -0
- package/native/core/factories/internal/metadata/IMetadataIteratorProps.go +6 -2
- package/native/core/factories/internal/metadata/emplace_metadata_object.go +49 -15
- package/native/core/factories/literal_factory_null_survives_objects_test.go +43 -0
- package/native/core/factories/metadata_comment_tag_factory_holds_bigint_tags_exact_test.go +168 -0
- package/native/core/factories/metadata_comment_tag_factory_reads_javascript_numbers_test.go +158 -0
- package/native/core/factories/metadata_comment_tag_factory_string_length_helpers_test.go +55 -0
- package/native/core/factories/metadata_type_tag_factory_reports_all_invalid_candidates_test.go +73 -0
- package/native/core/programmers/functional/FunctionalAssertParametersProgrammer.go +1 -3
- package/native/core/programmers/functional/FunctionalIsParametersProgrammer.go +107 -9
- package/native/core/programmers/functional/FunctionalValidateParametersProgrammer.go +1 -3
- package/native/core/programmers/http/HttpFormDataProgrammer.go +41 -2
- package/native/core/programmers/http/HttpHeadersProgrammer.go +56 -4
- package/native/core/programmers/http/HttpParameterProgrammer.go +1 -3
- package/native/core/programmers/http/HttpQueryProgrammer.go +26 -43
- package/native/core/programmers/iterate/json_schema_jsDocTags.go +10 -3
- package/native/core/programmers/iterate/json_schema_jsdoc_tags_cast_reads_javascript_numbers_test.go +64 -0
- package/native/core/programmers/llm/LlmApplicationProgrammer.go +1 -0
- package/native/core/programmers/llm/LlmEvaluationProgrammer.go +559 -0
- package/native/core/programmers/llm/LlmParametersProgrammer.go +6 -5
- package/native/core/programmers/llm/LlmReferenceDescription.go +113 -0
- package/native/core/programmers/llm/LlmSchemaProgrammer.go +34 -4
- package/native/core/programmers/llm/llm_reference_description_test.go +134 -0
- package/native/core/schemas/metadata/MetadataDependency.go +9 -0
- package/native/core/utils/NumberUtil.go +195 -0
- package/native/core/utils/number_util_rational_keeps_written_value_test.go +62 -0
- package/native/core/utils/number_util_reads_javascript_number_grammar_test.go +147 -0
- package/native/transform/CallExpressionTransformer.go +1 -0
- package/native/transform/FileTransformer.go +5 -0
- package/native/transform/features/llm/LlmEvaluationProbabilityDeclarations.go +94 -0
- package/native/transform/features/llm/LlmEvaluationProbabilityDeclarations_test.go +50 -0
- package/native/transform/features/llm/LlmEvaluationTransformer.go +59 -0
- package/native/transform/features/llm/LlmSchemaTransformer.go +14 -11
- package/native/transform/features/llm/llm_transformer_entry_coverage_test.go +29 -27
- package/package.json +3 -3
- package/src/http.ts +61 -34
- package/src/internal/_createLlmEvaluation.ts +678 -0
- package/src/internal/_httpFormDataReadBigint.ts +3 -1
- package/src/internal/_httpFormDataReadBoolean.ts +3 -1
- package/src/internal/_httpFormDataReadNumber.ts +3 -1
- package/src/internal/_httpFormDataReadString.ts +10 -1
- package/src/internal/_httpHeaderReadBigint.ts +6 -1
- package/src/internal/_httpHeaderReadNumber.ts +6 -1
- package/src/internal/_httpParameterReadBigint.ts +3 -0
- package/src/internal/_httpParameterReadNumber.ts +3 -0
- package/src/internal/_httpParameterReadString.ts +12 -2
- package/src/internal/_httpQueryReadBigint.ts +7 -1
- package/src/internal/_httpQueryReadBoolean.ts +3 -1
- package/src/internal/_httpQueryReadNumber.ts +7 -1
- package/src/internal/_httpQueryReadString.ts +10 -1
- package/src/internal/_randomBigint.ts +111 -3
- package/src/internal/_randomInteger.ts +31 -16
- package/src/internal/_randomNumber.ts +23 -12
- package/src/internal/_stringLengthGte.ts +6 -0
- package/src/internal/_stringLengthLte.ts +6 -0
- package/src/llm.ts +64 -0
- package/src/re-exports.ts +1 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._createLlmEvaluation = void 0;
|
|
4
|
+
const _accessExpressionAsString_1 = require("./_accessExpressionAsString");
|
|
5
|
+
/**
|
|
6
|
+
* Creates the `ILlmEvaluation` of `typia.llm.evaluation<T>()` from its plan.
|
|
7
|
+
*
|
|
8
|
+
* Both the question map and the decoder derive their keys from here, so the
|
|
9
|
+
* readable path encoding has a single owner.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
const _createLlmEvaluation = (plan) => {
|
|
14
|
+
const questions = {};
|
|
15
|
+
for (const leaf of plan) {
|
|
16
|
+
if (leaf.kind === "set")
|
|
17
|
+
for (const member of leaf.members)
|
|
18
|
+
assign(questions, key([...leaf.path, member.value]), {
|
|
19
|
+
type: "boolean",
|
|
20
|
+
instructions: setInstructions(leaf, member),
|
|
21
|
+
});
|
|
22
|
+
else
|
|
23
|
+
assign(questions, key(leaf.path), question(leaf));
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
questions,
|
|
27
|
+
decode: (answers, rounding) => decode(plan, answers, rounding),
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
exports._createLlmEvaluation = _createLlmEvaluation;
|
|
31
|
+
/* -----------------------------------------------------------
|
|
32
|
+
QUESTIONS
|
|
33
|
+
----------------------------------------------------------- */
|
|
34
|
+
/**
|
|
35
|
+
* Encodes a property path as a question key, like `refund.requested`.
|
|
36
|
+
*
|
|
37
|
+
* Every segment after the first uses typia's accessor notation, so the key is
|
|
38
|
+
* the validation path without its `$input` root. The first segment is quoted
|
|
39
|
+
* when it is not an identifier, and always when it is `__proto__`, so no key
|
|
40
|
+
* can collide with another or reach an object's prototype.
|
|
41
|
+
*/
|
|
42
|
+
const key = (path) => {
|
|
43
|
+
const head = path[0];
|
|
44
|
+
const postfix = (0, _accessExpressionAsString_1._accessExpressionAsString)(head);
|
|
45
|
+
const first = head === "__proto__"
|
|
46
|
+
? `[${JSON.stringify(head)}]`
|
|
47
|
+
: postfix.startsWith(".")
|
|
48
|
+
? head
|
|
49
|
+
: postfix;
|
|
50
|
+
return first + path.slice(1).map(_accessExpressionAsString_1._accessExpressionAsString).join("");
|
|
51
|
+
};
|
|
52
|
+
const question = (leaf) => {
|
|
53
|
+
var _a;
|
|
54
|
+
if (leaf.kind === "boolean")
|
|
55
|
+
return { type: "boolean", instructions: leaf.instructions };
|
|
56
|
+
else if (leaf.kind === "choice") {
|
|
57
|
+
const criteria = {};
|
|
58
|
+
for (const option of leaf.options)
|
|
59
|
+
assign(criteria, option.value, (_a = option.description) !== null && _a !== void 0 ? _a : null);
|
|
60
|
+
return { type: "choice", instructions: leaf.instructions, criteria };
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
type: "score",
|
|
64
|
+
instructions: leaf.instructions,
|
|
65
|
+
// the transform rejects fewer than two levels
|
|
66
|
+
criteria: leaf.levels.map((level) => { var _a; return (_a = level.description) !== null && _a !== void 0 ? _a : String(level.value); }),
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
const setInstructions = (leaf, member) => [
|
|
70
|
+
leaf.instructions,
|
|
71
|
+
"",
|
|
72
|
+
`Does the option ${JSON.stringify(member.value)} apply?`,
|
|
73
|
+
...(member.description !== undefined ? [member.description] : []),
|
|
74
|
+
].join("\n");
|
|
75
|
+
/* -----------------------------------------------------------
|
|
76
|
+
VALIDATION
|
|
77
|
+
----------------------------------------------------------- */
|
|
78
|
+
const decode = (plan, answers, rounding) => {
|
|
79
|
+
const precision = (() => {
|
|
80
|
+
try {
|
|
81
|
+
return readPrecision(rounding);
|
|
82
|
+
}
|
|
83
|
+
catch (_a) {
|
|
84
|
+
// A trapping rounding object is an invalid declaration.
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
})();
|
|
88
|
+
if (precision === null)
|
|
89
|
+
return {
|
|
90
|
+
success: false,
|
|
91
|
+
data: answers,
|
|
92
|
+
errors: [
|
|
93
|
+
{
|
|
94
|
+
path: "$input",
|
|
95
|
+
expected: "rounding decimals in [0, 15]",
|
|
96
|
+
value: rounding,
|
|
97
|
+
description: "Evaluation rounding decimals must be integers between 0 and 15.",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
};
|
|
101
|
+
const map = object(answers);
|
|
102
|
+
if (map === null)
|
|
103
|
+
return {
|
|
104
|
+
success: false,
|
|
105
|
+
data: answers,
|
|
106
|
+
errors: [
|
|
107
|
+
{
|
|
108
|
+
path: "$input",
|
|
109
|
+
expected: "Record<string, ILlmEvaluation answer>",
|
|
110
|
+
value: answers,
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
const errors = [];
|
|
115
|
+
const expected = new Set();
|
|
116
|
+
const output = {};
|
|
117
|
+
const read = (id) => {
|
|
118
|
+
expected.add(id);
|
|
119
|
+
try {
|
|
120
|
+
return Object.prototype.hasOwnProperty.call(map, id)
|
|
121
|
+
? map[id]
|
|
122
|
+
: undefined;
|
|
123
|
+
}
|
|
124
|
+
catch (_a) {
|
|
125
|
+
// The decision reader reports the inaccessible answer on its own path.
|
|
126
|
+
return undefined;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
for (const leaf of plan) {
|
|
130
|
+
const path = accessor(leaf.path);
|
|
131
|
+
if (leaf.kind === "set") {
|
|
132
|
+
const values = [];
|
|
133
|
+
for (const member of leaf.members) {
|
|
134
|
+
const memberPath = [
|
|
135
|
+
path,
|
|
136
|
+
(0, _accessExpressionAsString_1._accessExpressionAsString)(member.value),
|
|
137
|
+
].join("");
|
|
138
|
+
const answer = read(key([...leaf.path, member.value]));
|
|
139
|
+
const probability = inspect(memberPath, answer, errors, () => booleanProbability(answer, memberPath, errors));
|
|
140
|
+
if (probability !== null && probability >= member.threshold)
|
|
141
|
+
values.push(member.value);
|
|
142
|
+
}
|
|
143
|
+
place(output, leaf.path, values);
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
const answer = read(key(leaf.path));
|
|
147
|
+
if (leaf.kind === "boolean") {
|
|
148
|
+
const probability = inspect(path, answer, errors, () => booleanProbability(answer, path, errors));
|
|
149
|
+
if (probability !== null)
|
|
150
|
+
place(output, leaf.path, probability >= leaf.threshold);
|
|
151
|
+
}
|
|
152
|
+
else if (leaf.kind === "choice") {
|
|
153
|
+
const value = inspect(path, answer, errors, () => choice(leaf, answer, path, errors, precision));
|
|
154
|
+
if (value !== null)
|
|
155
|
+
place(output, leaf.path, value);
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
const value = inspect(path, answer, errors, () => score(leaf, answer, path, errors, precision));
|
|
159
|
+
if (value !== null)
|
|
160
|
+
place(output, leaf.path, value);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
let received;
|
|
164
|
+
try {
|
|
165
|
+
received = Object.keys(map);
|
|
166
|
+
}
|
|
167
|
+
catch (_a) {
|
|
168
|
+
errors.push({
|
|
169
|
+
path: "$input",
|
|
170
|
+
expected: "readable evaluation answer map",
|
|
171
|
+
value: answers,
|
|
172
|
+
description: "Evaluation answer keys could not be inspected.",
|
|
173
|
+
});
|
|
174
|
+
received = [];
|
|
175
|
+
}
|
|
176
|
+
for (const id of received)
|
|
177
|
+
if (expected.has(id) === false)
|
|
178
|
+
try {
|
|
179
|
+
errors.push({
|
|
180
|
+
path: `$input${(0, _accessExpressionAsString_1._accessExpressionAsString)(id)}`,
|
|
181
|
+
expected: "undefined",
|
|
182
|
+
value: map[id],
|
|
183
|
+
description: "The answer does not belong to any question.",
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
catch (_b) {
|
|
187
|
+
errors.push({
|
|
188
|
+
path: `$input${(0, _accessExpressionAsString_1._accessExpressionAsString)(id)}`,
|
|
189
|
+
expected: "readable evaluation answer",
|
|
190
|
+
value: undefined,
|
|
191
|
+
description: "The extra answer could not be inspected.",
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
return errors.length === 0
|
|
195
|
+
? { success: true, data: output }
|
|
196
|
+
: { success: false, data: answers, errors };
|
|
197
|
+
};
|
|
198
|
+
/** Contain exceptions from getters and proxies at the decision path. */
|
|
199
|
+
const inspect = (path, answer, errors, read) => {
|
|
200
|
+
try {
|
|
201
|
+
return read();
|
|
202
|
+
}
|
|
203
|
+
catch (_a) {
|
|
204
|
+
errors.push({
|
|
205
|
+
path,
|
|
206
|
+
expected: "readable evaluation answer",
|
|
207
|
+
value: answer,
|
|
208
|
+
description: "The answer could not be inspected.",
|
|
209
|
+
});
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
const booleanProbability = (answer, path, errors) => {
|
|
214
|
+
const record = object(answer);
|
|
215
|
+
const type = record === null || record === void 0 ? void 0 : record.type;
|
|
216
|
+
const probability = record === null
|
|
217
|
+
? undefined
|
|
218
|
+
: type === "boolean"
|
|
219
|
+
? record.probability
|
|
220
|
+
: type === "noul"
|
|
221
|
+
? record.noul
|
|
222
|
+
: undefined;
|
|
223
|
+
if (isProbability(probability))
|
|
224
|
+
return probability;
|
|
225
|
+
errors.push({
|
|
226
|
+
path,
|
|
227
|
+
expected: '{ type: "boolean"; probability: number } | { type: "noul"; noul: number }',
|
|
228
|
+
value: answer,
|
|
229
|
+
description: record === null
|
|
230
|
+
? "Missing boolean answer."
|
|
231
|
+
: type !== "boolean" && type !== "noul"
|
|
232
|
+
? `Answer type must be "boolean" or "noul", but got ${label(type)}.`
|
|
233
|
+
: "Boolean answer needs a probability in [0, 1].",
|
|
234
|
+
});
|
|
235
|
+
return null;
|
|
236
|
+
};
|
|
237
|
+
const choice = (leaf, answer, path, errors, precision) => {
|
|
238
|
+
const expected = `{ type: "choice"; choice: ${leaf.options
|
|
239
|
+
.map((option) => JSON.stringify(option.value))
|
|
240
|
+
.join(" | ")}; probabilities?: Record<string, number> }`;
|
|
241
|
+
const record = object(answer);
|
|
242
|
+
const type = record === null || record === void 0 ? void 0 : record.type;
|
|
243
|
+
const selected = type === "choice" ? record === null || record === void 0 ? void 0 : record.choice : undefined;
|
|
244
|
+
const option = record !== null && type === "choice"
|
|
245
|
+
? leaf.options.find((o) => o.value === selected)
|
|
246
|
+
: undefined;
|
|
247
|
+
if (record === null || option === undefined) {
|
|
248
|
+
errors.push({
|
|
249
|
+
path,
|
|
250
|
+
expected,
|
|
251
|
+
value: answer,
|
|
252
|
+
description: record === null
|
|
253
|
+
? "Missing choice answer."
|
|
254
|
+
: type !== "choice"
|
|
255
|
+
? `Answer type must be "choice", but got ${label(type)}.`
|
|
256
|
+
: "Choice answer must select one of the declared options.",
|
|
257
|
+
});
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
const probabilities = distribution(record.probabilities, leaf.options.map((o) => o.value), precision.probability);
|
|
261
|
+
if (probabilities === null) {
|
|
262
|
+
errors.push({
|
|
263
|
+
path,
|
|
264
|
+
expected,
|
|
265
|
+
value: answer,
|
|
266
|
+
description: "Choice probabilities must contain every declared option exactly once, use numbers in [0, 1], and sum to 1.",
|
|
267
|
+
});
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
if (probabilities !== undefined) {
|
|
271
|
+
const selected = own(probabilities, option.value);
|
|
272
|
+
if (Object.values(probabilities).some((probability) => probability > selected + PROBABILITY_TOLERANCE)) {
|
|
273
|
+
errors.push({
|
|
274
|
+
path,
|
|
275
|
+
expected,
|
|
276
|
+
value: answer,
|
|
277
|
+
description: "Choice answer must select an option with maximum probability.",
|
|
278
|
+
});
|
|
279
|
+
return null;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return accept(option, option.value, own(probabilities, option.value), path, answer, expected, errors)
|
|
283
|
+
? option.value
|
|
284
|
+
: null;
|
|
285
|
+
};
|
|
286
|
+
const score = (leaf, answer, path, errors, precision) => {
|
|
287
|
+
const last = leaf.levels.length - 1;
|
|
288
|
+
const expected = `{ type: "score"; score: number; probabilities?: Record<string, number> }`;
|
|
289
|
+
const record = object(answer);
|
|
290
|
+
const type = record === null || record === void 0 ? void 0 : record.type;
|
|
291
|
+
const scored = type === "score" ? record === null || record === void 0 ? void 0 : record.score : undefined;
|
|
292
|
+
if (record === null ||
|
|
293
|
+
type !== "score" ||
|
|
294
|
+
typeof scored !== "number" ||
|
|
295
|
+
Number.isFinite(scored) === false ||
|
|
296
|
+
scored < 0 ||
|
|
297
|
+
scored > last) {
|
|
298
|
+
errors.push({
|
|
299
|
+
path,
|
|
300
|
+
expected,
|
|
301
|
+
value: answer,
|
|
302
|
+
description: record === null
|
|
303
|
+
? "Missing score answer."
|
|
304
|
+
: type !== "score"
|
|
305
|
+
? `Answer type must be "score", but got ${label(type)}.`
|
|
306
|
+
: `Score answer needs a score in [0, ${last}].`,
|
|
307
|
+
});
|
|
308
|
+
return null;
|
|
309
|
+
}
|
|
310
|
+
const probabilities = distribution(record.probabilities, leaf.levels.map((_, i) => String(i)), precision.probability);
|
|
311
|
+
if (probabilities === null) {
|
|
312
|
+
errors.push({
|
|
313
|
+
path,
|
|
314
|
+
expected,
|
|
315
|
+
value: answer,
|
|
316
|
+
description: "Score probabilities must contain every level index exactly once, use numbers in [0, 1], and sum to 1.",
|
|
317
|
+
});
|
|
318
|
+
return null;
|
|
319
|
+
}
|
|
320
|
+
if (probabilities !== undefined) {
|
|
321
|
+
const mean = leaf.levels.reduce((total, _, index) => total + index * own(probabilities, String(index)), 0);
|
|
322
|
+
const meanRoundingError = leaf.levels.reduce((total, _, index) => total + index * precision.probability, 0);
|
|
323
|
+
if (Math.abs(mean - scored) >
|
|
324
|
+
PROBABILITY_TOLERANCE + meanRoundingError + precision.score) {
|
|
325
|
+
errors.push({
|
|
326
|
+
path,
|
|
327
|
+
expected,
|
|
328
|
+
value: answer,
|
|
329
|
+
description: "Score must equal the probability-weighted mean of its distribution.",
|
|
330
|
+
});
|
|
331
|
+
return null;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
// the most probable level when a distribution exists, where a tie resolves
|
|
335
|
+
// to the lower level; otherwise the level nearest to the fractional score,
|
|
336
|
+
// where a half rounds up
|
|
337
|
+
let index = Math.round(scored);
|
|
338
|
+
if (probabilities !== undefined && Object.keys(probabilities).length !== 0) {
|
|
339
|
+
index = -1;
|
|
340
|
+
leaf.levels.forEach((_, i) => {
|
|
341
|
+
const p = own(probabilities, String(i));
|
|
342
|
+
if (p !== undefined &&
|
|
343
|
+
(index === -1 || p > own(probabilities, String(index))))
|
|
344
|
+
index = i;
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
const level = leaf.levels[index];
|
|
348
|
+
return accept(level, level.value, own(probabilities, String(index)), path, answer, expected, errors)
|
|
349
|
+
? level.value
|
|
350
|
+
: null;
|
|
351
|
+
};
|
|
352
|
+
/** Enforces the acceptance minimum of the selected member, if any. */
|
|
353
|
+
const accept = (member, value, probability, path, answer, expected, errors) => {
|
|
354
|
+
if (member.minimum === undefined)
|
|
355
|
+
return true;
|
|
356
|
+
if (probability === undefined) {
|
|
357
|
+
errors.push({
|
|
358
|
+
path,
|
|
359
|
+
expected,
|
|
360
|
+
value: answer,
|
|
361
|
+
description: `${JSON.stringify(value)} requires probability >= ${member.minimum}, but the answer has no probability for it.`,
|
|
362
|
+
});
|
|
363
|
+
return false;
|
|
364
|
+
}
|
|
365
|
+
if (probability < member.minimum) {
|
|
366
|
+
errors.push({
|
|
367
|
+
path,
|
|
368
|
+
expected,
|
|
369
|
+
value: answer,
|
|
370
|
+
description: `${JSON.stringify(value)} has probability ${probability} < ${member.minimum}.`,
|
|
371
|
+
});
|
|
372
|
+
return false;
|
|
373
|
+
}
|
|
374
|
+
return true;
|
|
375
|
+
};
|
|
376
|
+
/**
|
|
377
|
+
* Reads optional `probabilities`: `undefined` when absent, `null` when
|
|
378
|
+
* malformed.
|
|
379
|
+
*/
|
|
380
|
+
const distribution = (input, keys, roundingError) => {
|
|
381
|
+
if (input === undefined)
|
|
382
|
+
return undefined;
|
|
383
|
+
const record = object(input);
|
|
384
|
+
if (record === null)
|
|
385
|
+
return null;
|
|
386
|
+
if (Object.keys(record).length !== keys.length)
|
|
387
|
+
return null;
|
|
388
|
+
const output = {};
|
|
389
|
+
for (const key of keys) {
|
|
390
|
+
if (Object.prototype.hasOwnProperty.call(record, key) === false)
|
|
391
|
+
return null;
|
|
392
|
+
const probability = record[key];
|
|
393
|
+
if (isProbability(probability) === false)
|
|
394
|
+
return null;
|
|
395
|
+
assign(output, key, probability);
|
|
396
|
+
}
|
|
397
|
+
if (Math.abs(Object.values(output).reduce((sum, probability) => sum + probability, 0) -
|
|
398
|
+
1) >
|
|
399
|
+
PROBABILITY_TOLERANCE + keys.length * roundingError)
|
|
400
|
+
return null;
|
|
401
|
+
return output;
|
|
402
|
+
};
|
|
403
|
+
/** AI SDK's absolute tolerance for probability sums and derived values. */
|
|
404
|
+
const PROBABILITY_TOLERANCE = 1e-6;
|
|
405
|
+
/** AI SDK's declared decimal-precision rule, without an AI SDK dependency. */
|
|
406
|
+
const readPrecision = (rounding) => {
|
|
407
|
+
if (rounding === undefined)
|
|
408
|
+
return { probability: 0, score: 0 };
|
|
409
|
+
if (typeof rounding !== "object" ||
|
|
410
|
+
rounding === null ||
|
|
411
|
+
Array.isArray(rounding))
|
|
412
|
+
return null;
|
|
413
|
+
const record = rounding;
|
|
414
|
+
const decimalError = (value) => value === undefined
|
|
415
|
+
? 0
|
|
416
|
+
: typeof value === "number" &&
|
|
417
|
+
Number.isInteger(value) &&
|
|
418
|
+
value >= 0 &&
|
|
419
|
+
value <= 15
|
|
420
|
+
? 0.5 * 10 ** -value
|
|
421
|
+
: null;
|
|
422
|
+
const probability = decimalError(record.probabilityDecimals);
|
|
423
|
+
const score = decimalError(record.scoreDecimals);
|
|
424
|
+
return probability === null || score === null ? null : { probability, score };
|
|
425
|
+
};
|
|
426
|
+
/* -----------------------------------------------------------
|
|
427
|
+
HELPERS
|
|
428
|
+
----------------------------------------------------------- */
|
|
429
|
+
/**
|
|
430
|
+
* Renders an untrusted answer `type` for a message; unlike `JSON.stringify`, it
|
|
431
|
+
* never throws on a bigint or circular value.
|
|
432
|
+
*/
|
|
433
|
+
const label = (value) => typeof value === "string" ? JSON.stringify(value) : typeof value;
|
|
434
|
+
const accessor = (path) => "$input" + path.map(_accessExpressionAsString_1._accessExpressionAsString).join("");
|
|
435
|
+
/** Match AI SDK's JSON-record boundary, including null-prototype dictionaries. */
|
|
436
|
+
const object = (input) => {
|
|
437
|
+
if (typeof input !== "object" || input === null)
|
|
438
|
+
return null;
|
|
439
|
+
try {
|
|
440
|
+
if (Array.isArray(input))
|
|
441
|
+
return null;
|
|
442
|
+
const prototype = Object.getPrototypeOf(input);
|
|
443
|
+
return prototype === Object.prototype || prototype === null
|
|
444
|
+
? input
|
|
445
|
+
: null;
|
|
446
|
+
}
|
|
447
|
+
catch (_a) {
|
|
448
|
+
// A revoked or trapping proxy is not a usable answer record.
|
|
449
|
+
return null;
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* Reads an own probability, so an option named like an `Object.prototype`
|
|
454
|
+
* member (`constructor`, `toString`, ...) never inherits a value.
|
|
455
|
+
*/
|
|
456
|
+
const own = (probabilities, key) => probabilities !== undefined &&
|
|
457
|
+
Object.prototype.hasOwnProperty.call(probabilities, key)
|
|
458
|
+
? probabilities[key]
|
|
459
|
+
: undefined;
|
|
460
|
+
const isProbability = (value) => typeof value === "number" &&
|
|
461
|
+
Number.isFinite(value) &&
|
|
462
|
+
value >= 0 &&
|
|
463
|
+
value <= 1;
|
|
464
|
+
/** Writes the leaf value, creating the intermediate objects of its path. */
|
|
465
|
+
const place = (output, path, value) => {
|
|
466
|
+
let target = output;
|
|
467
|
+
path.slice(0, -1).forEach((name) => {
|
|
468
|
+
if (Object.prototype.hasOwnProperty.call(target, name) === false)
|
|
469
|
+
assign(target, name, {});
|
|
470
|
+
target = target[name];
|
|
471
|
+
});
|
|
472
|
+
assign(target, path[path.length - 1], value);
|
|
473
|
+
};
|
|
474
|
+
/** Own-property assignment that cannot reach the prototype via `__proto__`. */
|
|
475
|
+
const assign = (target, name, value) => {
|
|
476
|
+
if (name === "__proto__")
|
|
477
|
+
Object.defineProperty(target, name, {
|
|
478
|
+
value,
|
|
479
|
+
enumerable: true,
|
|
480
|
+
writable: true,
|
|
481
|
+
configurable: true,
|
|
482
|
+
});
|
|
483
|
+
else
|
|
484
|
+
target[name] = value;
|
|
485
|
+
};
|
|
486
|
+
//# sourceMappingURL=_createLlmEvaluation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_createLlmEvaluation.js","sourceRoot":"","sources":["../../src/internal/_createLlmEvaluation.ts"],"names":[],"mappings":";;;AAEA,2EAAwE;AAmDxE;;;;;;;GAOG;AACI,MAAM,oBAAoB,GAAG,CAClC,IAA2B,EACR,EAAE;IACrB,MAAM,SAAS,GAA6C,EAAE,CAAC;IAC/D,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;QACxB,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK;YACrB,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO;gBAC/B,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,KAA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