@agentica/core 0.23.0 → 0.25.0
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 +1 -1
- package/lib/Agentica.d.ts +7 -2
- package/lib/Agentica.js +12 -7
- package/lib/Agentica.js.map +1 -1
- package/lib/MicroAgentica.d.ts +2 -2
- package/lib/MicroAgentica.js +4 -4
- package/lib/MicroAgentica.js.map +1 -1
- package/lib/context/AgenticaContext.d.ts +6 -2
- package/lib/context/MicroAgenticaContext.d.ts +2 -2
- package/lib/context/index.d.ts +5 -0
- package/lib/{structures/mcp → context}/index.js +5 -1
- package/lib/context/index.js.map +1 -0
- package/lib/events/AgenticaAssistantMessageEvent.d.ts +9 -0
- package/lib/{histories/AgenticaUserInputHistory.js → events/AgenticaAssistantMessageEvent.js} +1 -1
- package/lib/events/AgenticaAssistantMessageEvent.js.map +1 -0
- package/lib/events/AgenticaEvent.d.ts +9 -9
- package/lib/events/AgenticaUserMessageEvent.d.ts +9 -0
- package/lib/events/{AgenticaUserInputEvent.js → AgenticaUserMessageEvent.js} +1 -1
- package/lib/events/AgenticaUserMessageEvent.js.map +1 -0
- package/lib/events/MicroAgenticaEvent.d.ts +6 -6
- package/lib/events/index.d.ts +14 -0
- package/lib/events/index.js +31 -0
- package/lib/events/index.js.map +1 -0
- package/lib/factory/events.d.ts +8 -8
- package/lib/factory/events.js +23 -38
- package/lib/factory/events.js.map +1 -1
- package/lib/factory/histories.d.ts +1 -36
- package/lib/factory/histories.js +77 -24
- package/lib/factory/histories.js.map +1 -1
- package/lib/functional/assertHttpController.js +6 -6
- package/lib/functional/assertHttpLlmApplication.js +6 -6
- package/lib/functional/assertMcpController.d.ts +1 -2
- package/lib/functional/assertMcpController.js +6 -6
- package/lib/functional/assertMcpController.js.map +1 -1
- package/lib/functional/index.d.ts +6 -0
- package/lib/functional/index.js +23 -0
- package/lib/functional/index.js.map +1 -0
- package/lib/functional/validateHttpController.js +5 -5
- package/lib/functional/validateHttpLlmApplication.js +5 -5
- package/lib/functional/validateMcpController.d.ts +1 -2
- package/lib/functional/validateMcpController.js +11 -11
- package/lib/functional/validateMcpController.js.map +1 -1
- package/lib/histories/{AgenticaTextHistory.d.ts → AgenticaAssistantMessageHistory.d.ts} +1 -2
- package/lib/histories/AgenticaAssistantMessageHistory.js +3 -0
- package/lib/histories/AgenticaAssistantMessageHistory.js.map +1 -0
- package/lib/histories/AgenticaHistory.d.ts +7 -7
- package/lib/histories/AgenticaUserMessageHistory.d.ts +6 -0
- package/lib/{events/AgenticaTextEvent.js → histories/AgenticaUserMessageHistory.js} +1 -1
- package/lib/histories/AgenticaUserMessageHistory.js.map +1 -0
- package/lib/histories/MicroAgenticaHistory.d.ts +5 -4
- package/lib/histories/contents/AgenticaUserMessageAudioContent.d.ts +19 -0
- package/lib/histories/contents/AgenticaUserMessageAudioContent.js +3 -0
- package/lib/histories/contents/AgenticaUserMessageAudioContent.js.map +1 -0
- package/lib/histories/contents/AgenticaUserMessageContent.d.ts +14 -0
- package/lib/histories/{AgenticaTextHistory.js → contents/AgenticaUserMessageContent.js} +1 -1
- package/lib/histories/contents/AgenticaUserMessageContent.js.map +1 -0
- package/lib/histories/contents/AgenticaUserMessageContentBase.d.ts +6 -0
- package/lib/histories/contents/AgenticaUserMessageContentBase.js +3 -0
- package/lib/histories/contents/AgenticaUserMessageContentBase.js.map +1 -0
- package/lib/histories/contents/AgenticaUserMessageFileContent.d.ts +26 -0
- package/lib/histories/contents/AgenticaUserMessageFileContent.js +3 -0
- package/lib/histories/contents/AgenticaUserMessageFileContent.js.map +1 -0
- package/lib/histories/contents/AgenticaUserMessageImageContent.d.ts +20 -0
- package/lib/histories/contents/AgenticaUserMessageImageContent.js +3 -0
- package/lib/histories/contents/AgenticaUserMessageImageContent.js.map +1 -0
- package/lib/histories/contents/AgenticaUserMessageTextContent.d.ts +14 -0
- package/lib/histories/contents/AgenticaUserMessageTextContent.js +3 -0
- package/lib/histories/contents/AgenticaUserMessageTextContent.js.map +1 -0
- package/lib/histories/contents/index.d.ts +5 -0
- package/lib/histories/contents/index.js +22 -0
- package/lib/histories/contents/index.js.map +1 -0
- package/lib/histories/index.d.ts +9 -0
- package/lib/histories/index.js +26 -0
- package/lib/histories/index.js.map +1 -0
- package/lib/index.d.ts +6 -45
- package/lib/index.js +6 -46
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +155 -135
- package/lib/index.mjs.map +1 -1
- package/lib/json/IAgenticaEventJson.d.ts +29 -23
- package/lib/json/IAgenticaHistoryJson.d.ts +24 -19
- package/lib/json/IMicroAgenticaEventJson.d.ts +1 -1
- package/lib/json/IMicroAgenticaHistoryJson.d.ts +1 -1
- package/lib/json/index.d.ts +7 -0
- package/lib/json/index.js +24 -0
- package/lib/json/index.js.map +1 -0
- package/lib/orchestrate/call.js +4 -4
- package/lib/orchestrate/call.js.map +1 -1
- package/lib/orchestrate/cancel.js +1 -1
- package/lib/orchestrate/cancel.js.map +1 -1
- package/lib/orchestrate/initialize.js +4 -4
- package/lib/orchestrate/initialize.js.map +1 -1
- package/lib/orchestrate/select.js +3 -3
- package/lib/orchestrate/select.js.map +1 -1
- package/lib/structures/IAgenticaController.d.ts +1 -2
- package/lib/structures/index.d.ts +10 -0
- package/lib/structures/index.js +27 -0
- package/lib/structures/index.js.map +1 -0
- package/lib/transformers/transformEvent.d.ts +1 -0
- package/lib/transformers/{AgenticaEventTransformer.js → transformEvent.js} +74 -31
- package/lib/transformers/transformEvent.js.map +1 -0
- package/lib/transformers/transformHistory.d.ts +1 -0
- package/lib/transformers/{AgenticaHistoryTransformer.js → transformHistory.js} +24 -23
- package/lib/transformers/transformHistory.js.map +1 -0
- package/lib/utils/ChatGptCompletionMessageUtil.js +2 -2
- package/lib/utils/ChatGptCompletionMessageUtil.spec.d.ts +1 -0
- package/lib/utils/ChatGptCompletionMessageUtil.spec.js +288 -0
- package/lib/utils/ChatGptCompletionMessageUtil.spec.js.map +1 -0
- package/lib/utils/ChatGptTokenUsageAggregator.spec.d.ts +1 -0
- package/lib/utils/ChatGptTokenUsageAggregator.spec.js +199 -0
- package/lib/utils/ChatGptTokenUsageAggregator.spec.js.map +1 -0
- package/lib/utils/Singleton.js +18 -0
- package/lib/utils/Singleton.js.map +1 -1
- package/lib/utils/Singleton.spec.d.ts +1 -0
- package/lib/utils/Singleton.spec.js +106 -0
- package/lib/utils/Singleton.spec.js.map +1 -0
- package/lib/utils/__map_take.spec.d.ts +1 -0
- package/lib/utils/__map_take.spec.js +108 -0
- package/lib/utils/__map_take.spec.js.map +1 -0
- package/package.json +5 -6
- package/src/Agentica.ts +25 -10
- package/src/MicroAgentica.ts +12 -9
- package/src/context/AgenticaContext.ts +7 -2
- package/src/context/MicroAgenticaContext.ts +2 -2
- package/src/context/index.ts +5 -0
- package/src/events/AgenticaAssistantMessageEvent.ts +12 -0
- package/src/events/AgenticaEvent.ts +15 -15
- package/src/events/AgenticaUserMessageEvent.ts +12 -0
- package/src/events/MicroAgenticaEvent.ts +9 -9
- package/src/events/index.ts +14 -0
- package/src/factory/events.ts +29 -34
- package/src/factory/histories.ts +81 -32
- package/src/functional/assertMcpController.ts +4 -2
- package/src/functional/index.ts +7 -0
- package/src/functional/validateMcpController.ts +4 -2
- package/src/histories/{AgenticaTextHistory.ts → AgenticaAssistantMessageHistory.ts} +4 -2
- package/src/histories/AgenticaHistory.ts +8 -8
- package/src/histories/AgenticaUserMessageHistory.ts +11 -0
- package/src/histories/MicroAgenticaHistory.ts +6 -5
- package/src/histories/contents/AgenticaUserMessageAudioContent.ts +21 -0
- package/src/histories/contents/AgenticaUserMessageContent.ts +19 -0
- package/src/histories/contents/AgenticaUserMessageContentBase.ts +6 -0
- package/src/histories/contents/AgenticaUserMessageFileContent.ts +27 -0
- package/src/histories/contents/AgenticaUserMessageImageContent.ts +23 -0
- package/src/histories/contents/AgenticaUserMessageTextContent.ts +15 -0
- package/src/histories/contents/index.ts +5 -0
- package/src/histories/index.ts +9 -0
- package/src/index.ts +6 -54
- package/src/json/IAgenticaEventJson.ts +36 -28
- package/src/json/IAgenticaHistoryJson.ts +28 -22
- package/src/json/IMicroAgenticaEventJson.ts +2 -1
- package/src/json/IMicroAgenticaHistoryJson.ts +2 -1
- package/src/json/index.ts +7 -0
- package/src/orchestrate/call.ts +8 -8
- package/src/orchestrate/cancel.ts +2 -2
- package/src/orchestrate/initialize.ts +5 -5
- package/src/orchestrate/select.ts +5 -5
- package/src/structures/IAgenticaController.ts +4 -2
- package/src/structures/index.ts +10 -0
- package/src/transformers/{AgenticaEventTransformer.ts → transformEvent.ts} +94 -42
- package/src/transformers/{AgenticaHistoryTransformer.ts → transformHistory.ts} +30 -26
- package/src/utils/ChatGptCompletionMessageUtil.spec.ts +320 -0
- package/src/utils/ChatGptTokenUsageAggregator.spec.ts +226 -0
- package/src/utils/Singleton.spec.ts +138 -0
- package/src/utils/Singleton.ts +18 -0
- package/src/utils/__map_take.spec.ts +140 -0
- package/lib/events/AgenticaTextEvent.d.ts +0 -10
- package/lib/events/AgenticaTextEvent.js.map +0 -1
- package/lib/events/AgenticaUserInputEvent.d.ts +0 -10
- package/lib/events/AgenticaUserInputEvent.js.map +0 -1
- package/lib/histories/AgenticaTextHistory.js.map +0 -1
- package/lib/histories/AgenticaUserInputHistory.d.ts +0 -80
- package/lib/histories/AgenticaUserInputHistory.js.map +0 -1
- package/lib/structures/mcp/IMcpLlmTransportProps.d.ts +0 -11
- package/lib/structures/mcp/IMcpLlmTransportProps.js +0 -3
- package/lib/structures/mcp/IMcpLlmTransportProps.js.map +0 -1
- package/lib/structures/mcp/index.d.ts +0 -1
- package/lib/structures/mcp/index.js.map +0 -1
- package/lib/transformers/AgenticaEventTransformer.d.ts +0 -63
- package/lib/transformers/AgenticaEventTransformer.js.map +0 -1
- package/lib/transformers/AgenticaHistoryTransformer.d.ts +0 -41
- package/lib/transformers/AgenticaHistoryTransformer.js.map +0 -1
- package/lib/utils/MathUtil.d.ts +0 -3
- package/lib/utils/MathUtil.js +0 -8
- package/lib/utils/MathUtil.js.map +0 -1
- package/src/events/AgenticaTextEvent.ts +0 -12
- package/src/events/AgenticaUserInputEvent.ts +0 -12
- package/src/histories/AgenticaUserInputHistory.ts +0 -88
- package/src/structures/mcp/IMcpLlmTransportProps.ts +0 -13
- package/src/structures/mcp/index.ts +0 -1
- package/src/utils/MathUtil.ts +0 -3
package/lib/index.mjs
CHANGED
|
@@ -273,14 +273,7 @@ const AgenticaTokenUsageAggregator = {
|
|
|
273
273
|
function decodeHistory(history) {
|
|
274
274
|
if (history.type === "describe") {
|
|
275
275
|
return [];
|
|
276
|
-
}
|
|
277
|
-
if (history.type === "text") {
|
|
278
|
-
return [ {
|
|
279
|
-
role: history.role,
|
|
280
|
-
content: history.text
|
|
281
|
-
} ];
|
|
282
|
-
}
|
|
283
|
-
if (history.type === "select" || history.type === "cancel") {
|
|
276
|
+
} else if (history.type === "select" || history.type === "cancel") {
|
|
284
277
|
return [ {
|
|
285
278
|
role: "assistant",
|
|
286
279
|
tool_calls: [ {
|
|
@@ -301,8 +294,7 @@ function decodeHistory(history) {
|
|
|
301
294
|
tool_call_id: history.id,
|
|
302
295
|
content: ""
|
|
303
296
|
} ];
|
|
304
|
-
}
|
|
305
|
-
if (history.type === "execute") {
|
|
297
|
+
} else if (history.type === "execute") {
|
|
306
298
|
return [ {
|
|
307
299
|
role: "assistant",
|
|
308
300
|
tool_calls: [ {
|
|
@@ -335,32 +327,63 @@ function decodeHistory(history) {
|
|
|
335
327
|
}
|
|
336
328
|
})
|
|
337
329
|
} ];
|
|
338
|
-
}
|
|
339
|
-
if (history.type === "user_input") {
|
|
330
|
+
} else if (history.type === "assistantMessage") {
|
|
340
331
|
return [ {
|
|
341
|
-
role: "
|
|
342
|
-
content: history.
|
|
332
|
+
role: "assistant",
|
|
333
|
+
content: history.text
|
|
343
334
|
} ];
|
|
344
335
|
}
|
|
345
|
-
|
|
336
|
+
return [ {
|
|
337
|
+
role: "user",
|
|
338
|
+
content: history.contents.map(decodeUserMessageContent)
|
|
339
|
+
} ];
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
function decodeUserMessageContent(content) {
|
|
343
|
+
if (content.type === "audio") {
|
|
344
|
+
return {
|
|
345
|
+
type: "input_audio",
|
|
346
|
+
input_audio: {
|
|
347
|
+
data: content.data,
|
|
348
|
+
format: content.format
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
} else if (content.type === "file") {
|
|
352
|
+
return {
|
|
353
|
+
type: "file",
|
|
354
|
+
file: content.file.type === "data" ? {
|
|
355
|
+
file_data: content.file.data,
|
|
356
|
+
filename: content.file.name
|
|
357
|
+
} : {
|
|
358
|
+
file_id: content.file.id
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
} else if (content.type === "image") {
|
|
362
|
+
return {
|
|
363
|
+
type: "image_url",
|
|
364
|
+
image_url: {
|
|
365
|
+
url: content.url,
|
|
366
|
+
detail: content.detail
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
return content;
|
|
346
371
|
}
|
|
347
372
|
|
|
348
|
-
function
|
|
373
|
+
function createUserMessageHistory(props) {
|
|
349
374
|
return {
|
|
350
|
-
type: "
|
|
351
|
-
role: "user",
|
|
375
|
+
type: "userMessage",
|
|
352
376
|
contents: props.contents,
|
|
353
377
|
toJSON: () => ({
|
|
354
|
-
type: "
|
|
378
|
+
type: "userMessage",
|
|
355
379
|
contents: props.contents
|
|
356
380
|
})
|
|
357
381
|
};
|
|
358
382
|
}
|
|
359
383
|
|
|
360
|
-
function
|
|
384
|
+
function createAssistantMessageHistory(props) {
|
|
361
385
|
const prompt = {
|
|
362
|
-
type: "
|
|
363
|
-
role: "assistant",
|
|
386
|
+
type: "assistantMessage",
|
|
364
387
|
text: props.text
|
|
365
388
|
};
|
|
366
389
|
return {
|
|
@@ -437,22 +460,6 @@ function createInitializeEvent() {
|
|
|
437
460
|
};
|
|
438
461
|
}
|
|
439
462
|
|
|
440
|
-
function createUserInputEvent(props) {
|
|
441
|
-
return {
|
|
442
|
-
type: "user_input",
|
|
443
|
-
role: "user",
|
|
444
|
-
contents: props.contents,
|
|
445
|
-
join: async () => props.contents,
|
|
446
|
-
toJSON: () => ({
|
|
447
|
-
type: "user_input",
|
|
448
|
-
contents: props.contents
|
|
449
|
-
}),
|
|
450
|
-
toHistory: () => createUserInputHistory({
|
|
451
|
-
contents: props.contents
|
|
452
|
-
})
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
|
|
456
463
|
function createSelectEvent(props) {
|
|
457
464
|
return {
|
|
458
465
|
type: "select",
|
|
@@ -529,25 +536,35 @@ function createExecuteEvent(props) {
|
|
|
529
536
|
};
|
|
530
537
|
}
|
|
531
538
|
|
|
532
|
-
function
|
|
539
|
+
function createUserMessageEvent(props) {
|
|
533
540
|
return {
|
|
534
|
-
type: "
|
|
535
|
-
|
|
541
|
+
type: "userMessage",
|
|
542
|
+
contents: props.contents,
|
|
543
|
+
toJSON: () => ({
|
|
544
|
+
type: "userMessage",
|
|
545
|
+
contents: props.contents
|
|
546
|
+
}),
|
|
547
|
+
toHistory: () => createUserMessageHistory({
|
|
548
|
+
contents: props.contents
|
|
549
|
+
})
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
function creatAssistantEvent(props) {
|
|
554
|
+
return {
|
|
555
|
+
type: "assistantMessage",
|
|
536
556
|
stream: props.stream,
|
|
537
557
|
join: props.join,
|
|
538
558
|
toJSON: () => ({
|
|
539
|
-
type: "
|
|
540
|
-
role: "assistant",
|
|
559
|
+
type: "assistantMessage",
|
|
541
560
|
done: props.done(),
|
|
542
561
|
text: props.get()
|
|
543
562
|
}),
|
|
544
563
|
toHistory: () => ({
|
|
545
|
-
type: "
|
|
546
|
-
role: "assistant",
|
|
564
|
+
type: "assistantMessage",
|
|
547
565
|
text: props.get(),
|
|
548
566
|
toJSON: () => ({
|
|
549
|
-
type: "
|
|
550
|
-
role: "assistant",
|
|
567
|
+
type: "assistantMessage",
|
|
551
568
|
text: props.get()
|
|
552
569
|
})
|
|
553
570
|
})
|
|
@@ -612,6 +629,8 @@ function createOperationSelection(props) {
|
|
|
612
629
|
|
|
613
630
|
var index$2 = Object.freeze({
|
|
614
631
|
__proto__: null,
|
|
632
|
+
creatAssistantEvent,
|
|
633
|
+
createAssistantMessageHistory,
|
|
615
634
|
createCallEvent,
|
|
616
635
|
createCancelEvent,
|
|
617
636
|
createCancelHistory,
|
|
@@ -625,12 +644,11 @@ var index$2 = Object.freeze({
|
|
|
625
644
|
createResponseEvent,
|
|
626
645
|
createSelectEvent,
|
|
627
646
|
createSelectHistory,
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
createUserInputEvent,
|
|
631
|
-
createUserInputHistory,
|
|
647
|
+
createUserMessageEvent,
|
|
648
|
+
createUserMessageHistory,
|
|
632
649
|
createValidateEvent,
|
|
633
|
-
decodeHistory
|
|
650
|
+
decodeHistory,
|
|
651
|
+
decodeUserMessageContent
|
|
634
652
|
});
|
|
635
653
|
|
|
636
654
|
var AgenticaConstant;
|
|
@@ -750,7 +768,7 @@ function transformCompletionChunk(source) {
|
|
|
750
768
|
const valid = (() => {
|
|
751
769
|
const _io0 = input => "string" === typeof input.id && (Array.isArray(input.choices) && input.choices.every((elem => "object" === typeof elem && null !== elem && _io1(elem)))) && "number" === typeof input.created && "string" === typeof input.model && "chat.completion.chunk" === input.object && (null === input.service_tier || undefined === input.service_tier || "scale" === input.service_tier || "default" === input.service_tier) && (undefined === input.system_fingerprint || "string" === typeof input.system_fingerprint) && (null === input.usage || undefined === input.usage || "object" === typeof input.usage && null !== input.usage && _io9(input.usage));
|
|
752
770
|
const _io1 = input => "object" === typeof input.delta && null !== input.delta && false === Array.isArray(input.delta) && _io2(input.delta) && (null === input.finish_reason || "length" === input.finish_reason || "function_call" === input.finish_reason || "stop" === input.finish_reason || "tool_calls" === input.finish_reason || "content_filter" === input.finish_reason) && "number" === typeof input.index && (null === input.logprobs || undefined === input.logprobs || "object" === typeof input.logprobs && null !== input.logprobs && _io6(input.logprobs));
|
|
753
|
-
const _io2 = input => (null === input.content || undefined === input.content || "string" === typeof input.content) && (undefined === input.function_call || "object" === typeof input.function_call && null !== input.function_call && false === Array.isArray(input.function_call) && _io3(input.function_call)) && (null === input.refusal || undefined === input.refusal || "string" === typeof input.refusal) && (undefined === input.role || "
|
|
771
|
+
const _io2 = input => (null === input.content || undefined === input.content || "string" === typeof input.content) && (undefined === input.function_call || "object" === typeof input.function_call && null !== input.function_call && false === Array.isArray(input.function_call) && _io3(input.function_call)) && (null === input.refusal || undefined === input.refusal || "string" === typeof input.refusal) && (undefined === input.role || "user" === input.role || "developer" === input.role || "system" === input.role || "assistant" === input.role || "tool" === input.role) && (undefined === input.tool_calls || Array.isArray(input.tool_calls) && input.tool_calls.every((elem => "object" === typeof elem && null !== elem && _io4(elem))));
|
|
754
772
|
const _io3 = input => (undefined === input.arguments || "string" === typeof input.arguments) && (undefined === input.name || "string" === typeof input.name);
|
|
755
773
|
const _io4 = input => "number" === typeof input.index && (undefined === input.id || "string" === typeof input.id) && (undefined === input["function"] || "object" === typeof input["function"] && null !== input["function"] && false === Array.isArray(input["function"]) && _io5(input["function"])) && (undefined === input.type || "function" === input.type);
|
|
756
774
|
const _io5 = input => (undefined === input.arguments || "string" === typeof input.arguments) && (undefined === input.name || "string" === typeof input.name);
|
|
@@ -850,7 +868,7 @@ function transformCompletionChunk(source) {
|
|
|
850
868
|
path: _path + ".refusal",
|
|
851
869
|
expected: "(null | string | undefined)",
|
|
852
870
|
value: input.refusal
|
|
853
|
-
}), undefined === input.role || "
|
|
871
|
+
}), undefined === input.role || "user" === input.role || "developer" === input.role || "system" === input.role || "assistant" === input.role || "tool" === input.role || _report(_exceptionable, {
|
|
854
872
|
path: _path + ".role",
|
|
855
873
|
expected: '("assistant" | "developer" | "system" | "tool" | "user" | undefined)',
|
|
856
874
|
value: input.role
|
|
@@ -1269,7 +1287,7 @@ async function* streamDefaultReaderToAsyncGenerator(reader) {
|
|
|
1269
1287
|
}
|
|
1270
1288
|
}
|
|
1271
1289
|
|
|
1272
|
-
function transform
|
|
1290
|
+
function transform(stream, transformer) {
|
|
1273
1291
|
const reader = stream.getReader();
|
|
1274
1292
|
return new ReadableStream({
|
|
1275
1293
|
pull: async controller => {
|
|
@@ -1287,7 +1305,7 @@ const StreamUtil = {
|
|
|
1287
1305
|
readAll,
|
|
1288
1306
|
reduce,
|
|
1289
1307
|
from,
|
|
1290
|
-
transform
|
|
1308
|
+
transform
|
|
1291
1309
|
};
|
|
1292
1310
|
|
|
1293
1311
|
function cancelFunction(ctx, reference) {
|
|
@@ -1313,7 +1331,7 @@ async function call(ctx, operations) {
|
|
|
1313
1331
|
content: AgenticaDefaultPrompt.write(ctx.config)
|
|
1314
1332
|
}, ...ctx.histories.map(decodeHistory).flat(), {
|
|
1315
1333
|
role: "user",
|
|
1316
|
-
content: ctx.prompt.contents
|
|
1334
|
+
content: ctx.prompt.contents.map(decodeUserMessageContent)
|
|
1317
1335
|
}, ...ctx.config?.systemPrompt?.execute === null ? [] : [ {
|
|
1318
1336
|
role: "system",
|
|
1319
1337
|
content: ctx.config?.systemPrompt?.execute?.(ctx.histories) ?? AgenticaSystemPrompt.EXECUTE
|
|
@@ -1384,10 +1402,10 @@ async function call(ctx, operations) {
|
|
|
1384
1402
|
}
|
|
1385
1403
|
if (choice.message.role === "assistant" && choice.message.content != null && choice.message.content.length !== 0) {
|
|
1386
1404
|
closures.push((async () => {
|
|
1387
|
-
const value =
|
|
1405
|
+
const value = createAssistantMessageHistory({
|
|
1388
1406
|
text: choice.message.content
|
|
1389
1407
|
});
|
|
1390
|
-
ctx.dispatch(
|
|
1408
|
+
ctx.dispatch(creatAssistantEvent({
|
|
1391
1409
|
get: () => value.text,
|
|
1392
1410
|
done: () => true,
|
|
1393
1411
|
stream: toAsyncGenerator(value.text),
|
|
@@ -1588,7 +1606,7 @@ async function correct(ctx, call, retry, error) {
|
|
|
1588
1606
|
content: AgenticaDefaultPrompt.write(ctx.config)
|
|
1589
1607
|
}, ...ctx.histories.map(decodeHistory).flat(), {
|
|
1590
1608
|
role: "user",
|
|
1591
|
-
content: ctx.prompt.contents
|
|
1609
|
+
content: ctx.prompt.contents.map(decodeUserMessageContent)
|
|
1592
1610
|
}, ...ctx.config?.systemPrompt?.execute === null ? [] : [ {
|
|
1593
1611
|
role: "system",
|
|
1594
1612
|
content: ctx.config?.systemPrompt?.execute?.(ctx.histories) ?? AgenticaSystemPrompt.EXECUTE
|
|
@@ -1819,7 +1837,7 @@ async function step$1(ctx, operations, retry, failures) {
|
|
|
1819
1837
|
}))))
|
|
1820
1838
|
}, ...ctx.histories.map(decodeHistory).flat(), {
|
|
1821
1839
|
role: "user",
|
|
1822
|
-
content: ctx.prompt.contents
|
|
1840
|
+
content: ctx.prompt.contents.map(decodeUserMessageContent)
|
|
1823
1841
|
}, {
|
|
1824
1842
|
role: "system",
|
|
1825
1843
|
content: ctx.config?.systemPrompt?.cancel?.(ctx.histories) ?? AgenticaSystemPrompt.CANCEL
|
|
@@ -2891,7 +2909,7 @@ const FUNCTION = {
|
|
|
2891
2909
|
required: [ "properties", "required", "type" ]
|
|
2892
2910
|
},
|
|
2893
2911
|
"IChatGptSchema.IAnyOf": {
|
|
2894
|
-
description: "Union type.\n\
|
|
2912
|
+
description: "Union type.\n\n`IOneOf` represents an union type of the TypeScript (`A | B | C`).\n\nFor reference, even though your Swagger (or OpenAPI) document has\ndefined `anyOf` instead of the `oneOf`, {@link IChatGptSchema} forcibly\nconverts it to `oneOf` type.",
|
|
2895
2913
|
type: "object",
|
|
2896
2914
|
properties: {
|
|
2897
2915
|
anyOf: {
|
|
@@ -3816,7 +3834,7 @@ async function initialize(ctx) {
|
|
|
3816
3834
|
content: AgenticaDefaultPrompt.write(ctx.config)
|
|
3817
3835
|
}, ...ctx.histories.map(decodeHistory).flat(), {
|
|
3818
3836
|
role: "user",
|
|
3819
|
-
content: ctx.prompt.contents
|
|
3837
|
+
content: ctx.prompt.contents.map(decodeUserMessageContent)
|
|
3820
3838
|
}, {
|
|
3821
3839
|
role: "system",
|
|
3822
3840
|
content: ctx.config?.systemPrompt?.initialize?.(ctx.histories) ?? AgenticaSystemPrompt.INITIALIZE
|
|
@@ -3855,7 +3873,7 @@ async function initialize(ctx) {
|
|
|
3855
3873
|
mpsc
|
|
3856
3874
|
};
|
|
3857
3875
|
mpsc.produce(choice.delta.content);
|
|
3858
|
-
ctx.dispatch(
|
|
3876
|
+
ctx.dispatch(creatAssistantEvent({
|
|
3859
3877
|
stream: streamDefaultReaderToAsyncGenerator(mpsc.consumer.getReader()),
|
|
3860
3878
|
done: () => mpsc.done(),
|
|
3861
3879
|
get: () => textContext[choice.index].content,
|
|
@@ -3879,7 +3897,7 @@ async function initialize(ctx) {
|
|
|
3879
3897
|
const prompts = [];
|
|
3880
3898
|
for (const choice of completion.choices) {
|
|
3881
3899
|
if (choice.message.role === "assistant" && choice.message.content != null && choice.message.content.length !== 0) {
|
|
3882
|
-
prompts.push(
|
|
3900
|
+
prompts.push(createAssistantMessageHistory({
|
|
3883
3901
|
text: choice.message.content
|
|
3884
3902
|
}));
|
|
3885
3903
|
}
|
|
@@ -4068,7 +4086,7 @@ async function step(ctx, operations, retry, failures) {
|
|
|
4068
4086
|
}))))
|
|
4069
4087
|
}, ...ctx.histories.map(decodeHistory).flat(), {
|
|
4070
4088
|
role: "user",
|
|
4071
|
-
content: ctx.prompt.contents
|
|
4089
|
+
content: ctx.prompt.contents.map(decodeUserMessageContent)
|
|
4072
4090
|
}, {
|
|
4073
4091
|
role: "system",
|
|
4074
4092
|
content: ctx.config?.systemPrompt?.select?.(ctx.histories) ?? AgenticaSystemPrompt.SELECT
|
|
@@ -4210,11 +4228,11 @@ async function step(ctx, operations, retry, failures) {
|
|
|
4210
4228
|
}
|
|
4211
4229
|
}
|
|
4212
4230
|
if (choice.message.role === "assistant" && choice.message.content != null && choice.message.content.length !== 0) {
|
|
4213
|
-
const text =
|
|
4231
|
+
const text = createAssistantMessageHistory({
|
|
4214
4232
|
text: choice.message.content
|
|
4215
4233
|
});
|
|
4216
4234
|
prompts.push(text);
|
|
4217
|
-
ctx.dispatch(
|
|
4235
|
+
ctx.dispatch(creatAssistantEvent({
|
|
4218
4236
|
stream: toAsyncGenerator(text.text),
|
|
4219
4237
|
join: async () => Promise.resolve(text.text),
|
|
4220
4238
|
done: () => true,
|
|
@@ -4281,9 +4299,13 @@ function execute(executor) {
|
|
|
4281
4299
|
};
|
|
4282
4300
|
}
|
|
4283
4301
|
|
|
4284
|
-
function
|
|
4285
|
-
if (props.history.type === "
|
|
4286
|
-
return
|
|
4302
|
+
function transformHistory(props) {
|
|
4303
|
+
if (props.history.type === "userMessage") {
|
|
4304
|
+
return transformUserMessage({
|
|
4305
|
+
history: props.history
|
|
4306
|
+
});
|
|
4307
|
+
} else if (props.history.type === "assistantMessage") {
|
|
4308
|
+
return transformAssistantMessage({
|
|
4287
4309
|
history: props.history
|
|
4288
4310
|
});
|
|
4289
4311
|
} else if (props.history.type === "select") {
|
|
@@ -4301,17 +4323,19 @@ function transform(props) {
|
|
|
4301
4323
|
operations: props.operations,
|
|
4302
4324
|
history: props.history
|
|
4303
4325
|
});
|
|
4304
|
-
} else if (props.history.type === "describe") {
|
|
4305
|
-
return transformDescribe({
|
|
4306
|
-
operations: props.operations,
|
|
4307
|
-
history: props.history
|
|
4308
|
-
});
|
|
4309
4326
|
}
|
|
4310
|
-
|
|
4327
|
+
return transformDescribe({
|
|
4328
|
+
operations: props.operations,
|
|
4329
|
+
history: props.history
|
|
4330
|
+
});
|
|
4311
4331
|
}
|
|
4312
4332
|
|
|
4313
|
-
function
|
|
4314
|
-
return
|
|
4333
|
+
function transformAssistantMessage(props) {
|
|
4334
|
+
return createAssistantMessageHistory(props.history);
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
function transformUserMessage(props) {
|
|
4338
|
+
return createUserMessageHistory(props.history);
|
|
4315
4339
|
}
|
|
4316
4340
|
|
|
4317
4341
|
function transformSelect(props) {
|
|
@@ -4370,15 +4394,6 @@ function findOperation(props) {
|
|
|
4370
4394
|
return found;
|
|
4371
4395
|
}
|
|
4372
4396
|
|
|
4373
|
-
const AgenticaHistoryTransformer = {
|
|
4374
|
-
transform,
|
|
4375
|
-
transformText,
|
|
4376
|
-
transformSelect,
|
|
4377
|
-
transformCancel,
|
|
4378
|
-
transformExecute,
|
|
4379
|
-
transformDescribe
|
|
4380
|
-
};
|
|
4381
|
-
|
|
4382
4397
|
class Agentica {
|
|
4383
4398
|
constructor(props) {
|
|
4384
4399
|
this.props = props;
|
|
@@ -4388,7 +4403,7 @@ class Agentica {
|
|
|
4388
4403
|
});
|
|
4389
4404
|
this.stack_ = [];
|
|
4390
4405
|
this.listeners_ = new Map;
|
|
4391
|
-
this.histories_ = (props.histories ?? []).map((input =>
|
|
4406
|
+
this.histories_ = (props.histories ?? []).map((input => transformHistory({
|
|
4392
4407
|
operations: this.operations_.group,
|
|
4393
4408
|
history: input
|
|
4394
4409
|
})));
|
|
@@ -4402,18 +4417,19 @@ class Agentica {
|
|
|
4402
4417
|
histories: this.props.histories?.slice()
|
|
4403
4418
|
});
|
|
4404
4419
|
}
|
|
4405
|
-
async conversate(content) {
|
|
4406
|
-
const prompt =
|
|
4420
|
+
async conversate(content, options = {}) {
|
|
4421
|
+
const prompt = createUserMessageHistory({
|
|
4407
4422
|
contents: Array.isArray(content) ? content : typeof content === "string" ? [ {
|
|
4408
4423
|
type: "text",
|
|
4409
4424
|
text: content
|
|
4410
4425
|
} ] : [ content ]
|
|
4411
4426
|
});
|
|
4412
|
-
this.dispatch(
|
|
4427
|
+
this.dispatch(createUserMessageEvent({
|
|
4413
4428
|
contents: prompt.contents
|
|
4414
4429
|
})).catch((() => {}));
|
|
4415
4430
|
const newbie = await this.executor_(this.getContext({
|
|
4416
4431
|
prompt,
|
|
4432
|
+
abortSignal: options.abortSignal,
|
|
4417
4433
|
usage: this.token_usage_
|
|
4418
4434
|
}));
|
|
4419
4435
|
this.histories_.push(prompt, ...newbie);
|
|
@@ -4446,6 +4462,7 @@ class Agentica {
|
|
|
4446
4462
|
stack: this.stack_,
|
|
4447
4463
|
ready: () => this.ready_,
|
|
4448
4464
|
prompt: props.prompt,
|
|
4465
|
+
abortSignal: props.abortSignal,
|
|
4449
4466
|
dispatch: async event => this.dispatch(event),
|
|
4450
4467
|
request: async (source, body) => {
|
|
4451
4468
|
const event = createRequestEvent({
|
|
@@ -4458,7 +4475,10 @@ class Agentica {
|
|
|
4458
4475
|
include_usage: true
|
|
4459
4476
|
}
|
|
4460
4477
|
},
|
|
4461
|
-
options:
|
|
4478
|
+
options: {
|
|
4479
|
+
...this.props.vendor.options,
|
|
4480
|
+
signal: props.abortSignal
|
|
4481
|
+
}
|
|
4462
4482
|
});
|
|
4463
4483
|
await dispatch(event);
|
|
4464
4484
|
const completion = await this.props.vendor.api.chat.completions.create(event.body, event.options);
|
|
@@ -4739,7 +4759,7 @@ function assertHttpController(props) {
|
|
|
4739
4759
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
|
4740
4760
|
}));
|
|
4741
4761
|
const _io114 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io113(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
4742
|
-
const _io115 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.
|
|
4762
|
+
const _io115 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem))) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu5(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu5(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu5(input.additionalProperties))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io113(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io127(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && "string" === typeof input.$ref;
|
|
4743
4763
|
const _io116 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
4744
4764
|
const _io117 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) && "boolean" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
4745
4765
|
const _io118 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -0x8000000000000000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -0x8000000000000000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
@@ -9864,6 +9884,11 @@ function assertHttpController(props) {
|
|
|
9864
9884
|
path: _path + ".exclusiveMaximum",
|
|
9865
9885
|
expected: "(boolean | number | undefined)",
|
|
9866
9886
|
value: input.exclusiveMaximum
|
|
9887
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9888
|
+
method: "typia.assert",
|
|
9889
|
+
path: _path + ".format",
|
|
9890
|
+
expected: "(string | undefined)",
|
|
9891
|
+
value: input.format
|
|
9867
9892
|
}, _errorFactory)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9868
9893
|
method: "typia.assert",
|
|
9869
9894
|
path: _path + ".maxLength",
|
|
@@ -9874,11 +9899,6 @@ function assertHttpController(props) {
|
|
|
9874
9899
|
path: _path + ".maxLength",
|
|
9875
9900
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
9876
9901
|
value: input.maxLength
|
|
9877
|
-
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9878
|
-
method: "typia.assert",
|
|
9879
|
-
path: _path + ".format",
|
|
9880
|
-
expected: "(string | undefined)",
|
|
9881
|
-
value: input.format
|
|
9882
9902
|
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9883
9903
|
method: "typia.assert",
|
|
9884
9904
|
path: _path + ".pattern",
|
|
@@ -14111,7 +14131,7 @@ function assertHttpLlmApplication(props) {
|
|
|
14111
14131
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
|
14112
14132
|
}));
|
|
14113
14133
|
const _io114 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io113(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
14114
|
-
const _io115 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.
|
|
14134
|
+
const _io115 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem))) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu5(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu5(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu5(input.additionalProperties))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io113(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io127(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && "string" === typeof input.$ref;
|
|
14115
14135
|
const _io116 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
14116
14136
|
const _io117 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) && "boolean" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
14117
14137
|
const _io118 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -0x8000000000000000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -0x8000000000000000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
@@ -19236,6 +19256,11 @@ function assertHttpLlmApplication(props) {
|
|
|
19236
19256
|
path: _path + ".exclusiveMaximum",
|
|
19237
19257
|
expected: "(boolean | number | undefined)",
|
|
19238
19258
|
value: input.exclusiveMaximum
|
|
19259
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
19260
|
+
method: "typia.assert",
|
|
19261
|
+
path: _path + ".format",
|
|
19262
|
+
expected: "(string | undefined)",
|
|
19263
|
+
value: input.format
|
|
19239
19264
|
}, _errorFactory)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
19240
19265
|
method: "typia.assert",
|
|
19241
19266
|
path: _path + ".maxLength",
|
|
@@ -19246,11 +19271,6 @@ function assertHttpLlmApplication(props) {
|
|
|
19246
19271
|
path: _path + ".maxLength",
|
|
19247
19272
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
19248
19273
|
value: input.maxLength
|
|
19249
|
-
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
19250
|
-
method: "typia.assert",
|
|
19251
|
-
path: _path + ".format",
|
|
19252
|
-
expected: "(string | undefined)",
|
|
19253
|
-
value: input.format
|
|
19254
19274
|
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
19255
19275
|
method: "typia.assert",
|
|
19256
19276
|
path: _path + ".pattern",
|
|
@@ -23275,7 +23295,7 @@ async function assertMcpController(props) {
|
|
|
23275
23295
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
23276
23296
|
}));
|
|
23277
23297
|
const _io3 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu0(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples))));
|
|
23278
|
-
const _io4 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.
|
|
23298
|
+
const _io4 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem))) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu0(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu0(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu0(input.additionalProperties))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io17(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && (Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && "string" === typeof input.$ref;
|
|
23279
23299
|
const _io5 = input => Object.keys(input).every((key => {
|
|
23280
23300
|
const value = input[key];
|
|
23281
23301
|
if (undefined === value) return true;
|
|
@@ -23637,6 +23657,11 @@ async function assertMcpController(props) {
|
|
|
23637
23657
|
path: _path + ".exclusiveMaximum",
|
|
23638
23658
|
expected: "(boolean | number | undefined)",
|
|
23639
23659
|
value: input.exclusiveMaximum
|
|
23660
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
23661
|
+
method: "typia.assert",
|
|
23662
|
+
path: _path + ".format",
|
|
23663
|
+
expected: "(string | undefined)",
|
|
23664
|
+
value: input.format
|
|
23640
23665
|
}, _errorFactory)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
23641
23666
|
method: "typia.assert",
|
|
23642
23667
|
path: _path + ".maxLength",
|
|
@@ -23647,11 +23672,6 @@ async function assertMcpController(props) {
|
|
|
23647
23672
|
path: _path + ".maxLength",
|
|
23648
23673
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
23649
23674
|
value: input.maxLength
|
|
23650
|
-
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
23651
|
-
method: "typia.assert",
|
|
23652
|
-
path: _path + ".format",
|
|
23653
|
-
expected: "(string | undefined)",
|
|
23654
|
-
value: input.format
|
|
23655
23675
|
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
23656
23676
|
method: "typia.assert",
|
|
23657
23677
|
path: _path + ".pattern",
|
|
@@ -25078,7 +25098,7 @@ function validateHttpController(props) {
|
|
|
25078
25098
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
|
25079
25099
|
}));
|
|
25080
25100
|
const _io114 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io113(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
25081
|
-
const _io115 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.
|
|
25101
|
+
const _io115 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem))) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu5(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu5(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu5(input.additionalProperties))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io113(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io127(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && "string" === typeof input.$ref;
|
|
25082
25102
|
const _io116 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
25083
25103
|
const _io117 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) && "boolean" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
25084
25104
|
const _io118 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -0x8000000000000000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -0x8000000000000000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
@@ -29273,6 +29293,10 @@ function validateHttpController(props) {
|
|
|
29273
29293
|
path: _path + ".exclusiveMaximum",
|
|
29274
29294
|
expected: "(boolean | number | undefined)",
|
|
29275
29295
|
value: input.exclusiveMaximum
|
|
29296
|
+
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
29297
|
+
path: _path + ".format",
|
|
29298
|
+
expected: "(string | undefined)",
|
|
29299
|
+
value: input.format
|
|
29276
29300
|
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000 || _report(_exceptionable, {
|
|
29277
29301
|
path: _path + ".maxLength",
|
|
29278
29302
|
expected: 'number & Type<"uint64">',
|
|
@@ -29281,10 +29305,6 @@ function validateHttpController(props) {
|
|
|
29281
29305
|
path: _path + ".maxLength",
|
|
29282
29306
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
29283
29307
|
value: input.maxLength
|
|
29284
|
-
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
29285
|
-
path: _path + ".format",
|
|
29286
|
-
expected: "(string | undefined)",
|
|
29287
|
-
value: input.format
|
|
29288
29308
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
29289
29309
|
path: _path + ".pattern",
|
|
29290
29310
|
expected: "(string | undefined)",
|
|
@@ -32779,7 +32799,7 @@ function validateHttpLlmApplication(props) {
|
|
|
32779
32799
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
|
32780
32800
|
}));
|
|
32781
32801
|
const _io114 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io113(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
32782
|
-
const _io115 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.
|
|
32802
|
+
const _io115 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem))) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu5(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu5(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu5(input.additionalProperties))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io113(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io127(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && (Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)))) && "string" === typeof input.$ref;
|
|
32783
32803
|
const _io116 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
32784
32804
|
const _io117 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) && "boolean" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
32785
32805
|
const _io118 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -0x8000000000000000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -0x8000000000000000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples))));
|
|
@@ -36974,6 +36994,10 @@ function validateHttpLlmApplication(props) {
|
|
|
36974
36994
|
path: _path + ".exclusiveMaximum",
|
|
36975
36995
|
expected: "(boolean | number | undefined)",
|
|
36976
36996
|
value: input.exclusiveMaximum
|
|
36997
|
+
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
36998
|
+
path: _path + ".format",
|
|
36999
|
+
expected: "(string | undefined)",
|
|
37000
|
+
value: input.format
|
|
36977
37001
|
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000 || _report(_exceptionable, {
|
|
36978
37002
|
path: _path + ".maxLength",
|
|
36979
37003
|
expected: 'number & Type<"uint64">',
|
|
@@ -36982,10 +37006,6 @@ function validateHttpLlmApplication(props) {
|
|
|
36982
37006
|
path: _path + ".maxLength",
|
|
36983
37007
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
36984
37008
|
value: input.maxLength
|
|
36985
|
-
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
36986
|
-
path: _path + ".format",
|
|
36987
|
-
expected: "(string | undefined)",
|
|
36988
|
-
value: input.format
|
|
36989
37009
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
36990
37010
|
path: _path + ".pattern",
|
|
36991
37011
|
expected: "(string | undefined)",
|
|
@@ -40275,7 +40295,7 @@ async function validateMcpController(props) {
|
|
|
40275
40295
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
40276
40296
|
}));
|
|
40277
40297
|
const _io3 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu0(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples))));
|
|
40278
|
-
const _io4 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.
|
|
40298
|
+
const _io4 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem))) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu0(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu0(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu0(input.additionalProperties))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io17(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && (Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && "string" === typeof input.$ref;
|
|
40279
40299
|
const _io5 = input => Object.keys(input).every((key => {
|
|
40280
40300
|
const value = input[key];
|
|
40281
40301
|
if (undefined === value) return true;
|
|
@@ -40573,6 +40593,10 @@ async function validateMcpController(props) {
|
|
|
40573
40593
|
path: _path + ".exclusiveMaximum",
|
|
40574
40594
|
expected: "(boolean | number | undefined)",
|
|
40575
40595
|
value: input.exclusiveMaximum
|
|
40596
|
+
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
40597
|
+
path: _path + ".format",
|
|
40598
|
+
expected: "(string | undefined)",
|
|
40599
|
+
value: input.format
|
|
40576
40600
|
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000 || _report(_exceptionable, {
|
|
40577
40601
|
path: _path + ".maxLength",
|
|
40578
40602
|
expected: 'number & Type<"uint64">',
|
|
@@ -40581,10 +40605,6 @@ async function validateMcpController(props) {
|
|
|
40581
40605
|
path: _path + ".maxLength",
|
|
40582
40606
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
40583
40607
|
value: input.maxLength
|
|
40584
|
-
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
40585
|
-
path: _path + ".format",
|
|
40586
|
-
expected: "(string | undefined)",
|
|
40587
|
-
value: input.format
|
|
40588
40608
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
40589
40609
|
path: _path + ".pattern",
|
|
40590
40610
|
expected: "(string | undefined)",
|
|
@@ -41585,7 +41605,7 @@ async function validateMcpController(props) {
|
|
|
41585
41605
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
41586
41606
|
}));
|
|
41587
41607
|
const _io3 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu0(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples))));
|
|
41588
|
-
const _io4 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.
|
|
41608
|
+
const _io4 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem))) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu0(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu0(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu0(input.additionalProperties))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io17(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && (Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && "string" === typeof input.$ref;
|
|
41589
41609
|
const _io5 = input => Object.keys(input).every((key => {
|
|
41590
41610
|
const value = input[key];
|
|
41591
41611
|
if (undefined === value) return true;
|
|
@@ -41947,6 +41967,11 @@ async function validateMcpController(props) {
|
|
|
41947
41967
|
path: _path + ".exclusiveMaximum",
|
|
41948
41968
|
expected: "(boolean | number | undefined)",
|
|
41949
41969
|
value: input.exclusiveMaximum
|
|
41970
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
41971
|
+
method: "typia.assert",
|
|
41972
|
+
path: _path + ".format",
|
|
41973
|
+
expected: "(string | undefined)",
|
|
41974
|
+
value: input.format
|
|
41950
41975
|
}, _errorFactory)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
41951
41976
|
method: "typia.assert",
|
|
41952
41977
|
path: _path + ".maxLength",
|
|
@@ -41957,11 +41982,6 @@ async function validateMcpController(props) {
|
|
|
41957
41982
|
path: _path + ".maxLength",
|
|
41958
41983
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
41959
41984
|
value: input.maxLength
|
|
41960
|
-
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
41961
|
-
method: "typia.assert",
|
|
41962
|
-
path: _path + ".format",
|
|
41963
|
-
expected: "(string | undefined)",
|
|
41964
|
-
value: input.format
|
|
41965
41985
|
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
41966
41986
|
method: "typia.assert",
|
|
41967
41987
|
path: _path + ".pattern",
|
|
@@ -43196,7 +43216,7 @@ class MicroAgentica {
|
|
|
43196
43216
|
controllers: props.controllers,
|
|
43197
43217
|
config: props.config
|
|
43198
43218
|
});
|
|
43199
|
-
this.histories_ = (props.histories ?? []).map((input =>
|
|
43219
|
+
this.histories_ = (props.histories ?? []).map((input => transformHistory({
|
|
43200
43220
|
operations: this.operations_.group,
|
|
43201
43221
|
history: input
|
|
43202
43222
|
})));
|
|
@@ -43210,13 +43230,13 @@ class MicroAgentica {
|
|
|
43210
43230
|
});
|
|
43211
43231
|
}
|
|
43212
43232
|
async conversate(content) {
|
|
43213
|
-
const talk =
|
|
43233
|
+
const talk = createUserMessageHistory({
|
|
43214
43234
|
contents: Array.isArray(content) ? content : typeof content === "string" ? [ {
|
|
43215
43235
|
type: "text",
|
|
43216
43236
|
text: content
|
|
43217
43237
|
} ] : [ content ]
|
|
43218
43238
|
});
|
|
43219
|
-
this.dispatch(
|
|
43239
|
+
this.dispatch(createUserMessageEvent({
|
|
43220
43240
|
contents: talk.contents
|
|
43221
43241
|
})).catch((() => {}));
|
|
43222
43242
|
const ctx = this.getContext({
|