@agentica/core 0.24.0 → 0.26.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 +56 -17
- package/lib/Agentica.d.ts +2 -2
- package/lib/Agentica.js +4 -4
- 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 +2 -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/context/internal/AgenticaOperationComposer.spec.js +13 -5
- package/lib/context/internal/AgenticaOperationComposer.spec.js.map +1 -1
- package/lib/events/AgenticaAssistantMessageEvent.d.ts +9 -0
- package/lib/events/AgenticaAssistantMessageEvent.js +3 -0
- package/lib/events/AgenticaAssistantMessageEvent.js.map +1 -0
- package/lib/events/AgenticaEvent.d.ts +9 -9
- package/lib/events/AgenticaEvent.type.d.ts +1 -0
- package/lib/events/AgenticaEvent.type.js +8 -0
- package/lib/events/AgenticaEvent.type.js.map +1 -0
- 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 +103 -22
- 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/AgenticaAssistantMessageHistory.d.ts +5 -0
- package/lib/histories/AgenticaAssistantMessageHistory.js +3 -0
- package/lib/histories/AgenticaAssistantMessageHistory.js.map +1 -0
- package/lib/histories/AgenticaHistory.d.ts +9 -7
- package/lib/histories/{AgenticaTextHistory.d.ts → AgenticaSystemMessageHistory.d.ts} +1 -2
- package/lib/histories/{AgenticaUserInputHistory.js → AgenticaSystemMessageHistory.js} +1 -1
- package/lib/histories/AgenticaSystemMessageHistory.js.map +1 -0
- 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 +10 -0
- package/lib/histories/index.js +27 -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 +182 -131
- package/lib/index.mjs.map +1 -1
- package/lib/json/IAgenticaEventJson.d.ts +44 -19
- package/lib/json/IAgenticaEventJson.type.d.ts +1 -0
- package/lib/json/IAgenticaEventJson.type.js +8 -0
- package/lib/json/IAgenticaEventJson.type.js.map +1 -0
- package/lib/json/IAgenticaHistoryJson.d.ts +34 -19
- package/lib/json/IAgenticaHistoryJson.type.d.ts +1 -0
- package/lib/json/IAgenticaHistoryJson.type.js +8 -0
- package/lib/json/IAgenticaHistoryJson.type.js.map +1 -0
- 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/transformHistory.d.ts +1 -0
- package/lib/transformers/{AgenticaHistoryTransformer.js → transformHistory.js} +33 -23
- package/lib/transformers/transformHistory.js.map +1 -0
- package/lib/utils/ChatGptCompletionMessageUtil.js +2 -2
- package/lib/utils/types.d.ts +33 -0
- package/lib/utils/types.js +29 -0
- package/lib/utils/types.js.map +1 -0
- package/package.json +7 -7
- package/src/Agentica.ts +10 -9
- package/src/MicroAgentica.ts +12 -9
- package/src/context/AgenticaContext.ts +2 -2
- package/src/context/MicroAgenticaContext.ts +2 -2
- package/src/context/index.ts +5 -0
- package/src/context/internal/AgenticaOperationComposer.spec.ts +15 -5
- package/src/events/AgenticaAssistantMessageEvent.ts +12 -0
- package/src/events/AgenticaEvent.ts +15 -15
- package/src/events/AgenticaEvent.type.ts +19 -0
- 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 +120 -29
- package/src/functional/assertMcpController.ts +4 -2
- package/src/functional/index.ts +7 -0
- package/src/functional/validateMcpController.ts +4 -2
- package/src/histories/AgenticaAssistantMessageHistory.ts +10 -0
- package/src/histories/AgenticaHistory.ts +11 -8
- package/src/histories/{AgenticaTextHistory.ts → AgenticaSystemMessageHistory.ts} +4 -2
- 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 +10 -0
- package/src/index.ts +6 -54
- package/src/json/IAgenticaEventJson.ts +53 -21
- package/src/json/IAgenticaEventJson.type.ts +19 -0
- package/src/json/IAgenticaHistoryJson.ts +41 -23
- package/src/json/IAgenticaHistoryJson.type.ts +19 -0
- 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/{AgenticaHistoryTransformer.ts → transformHistory.ts} +43 -26
- package/src/utils/types.ts +50 -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 -86
- 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 +0 -155
- 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/src/events/AgenticaTextEvent.ts +0 -12
- package/src/events/AgenticaUserInputEvent.ts +0 -12
- package/src/histories/AgenticaUserInputHistory.ts +0 -94
- package/src/structures/mcp/IMcpLlmTransportProps.ts +0 -13
- package/src/structures/mcp/index.ts +0 -1
- package/src/transformers/AgenticaEventTransformer.ts +0 -196
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: [ {
|
|
@@ -336,31 +328,89 @@ function decodeHistory(history) {
|
|
|
336
328
|
})
|
|
337
329
|
} ];
|
|
338
330
|
}
|
|
339
|
-
if (history.type === "
|
|
331
|
+
if (history.type === "assistantMessage") {
|
|
332
|
+
return [ {
|
|
333
|
+
role: "assistant",
|
|
334
|
+
content: history.text
|
|
335
|
+
} ];
|
|
336
|
+
}
|
|
337
|
+
if (history.type === "systemMessage") {
|
|
338
|
+
return [ {
|
|
339
|
+
role: "system",
|
|
340
|
+
content: history.text
|
|
341
|
+
} ];
|
|
342
|
+
}
|
|
343
|
+
if (history.type === "userMessage") {
|
|
344
|
+
const contents = history.contents;
|
|
340
345
|
return [ {
|
|
341
346
|
role: "user",
|
|
342
|
-
content:
|
|
347
|
+
content: contents.map(decodeUserMessageContent)
|
|
343
348
|
} ];
|
|
344
349
|
}
|
|
345
|
-
throw new Error(
|
|
350
|
+
throw new Error(`Unsupported history type, value: ${JSON.stringify(history)}`);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
function decodeUserMessageContent(content) {
|
|
354
|
+
if (content.type === "text") {
|
|
355
|
+
return content;
|
|
356
|
+
}
|
|
357
|
+
if (content.type === "audio") {
|
|
358
|
+
return {
|
|
359
|
+
type: "input_audio",
|
|
360
|
+
input_audio: {
|
|
361
|
+
data: content.data,
|
|
362
|
+
format: content.format
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
if (content.type === "file") {
|
|
367
|
+
return {
|
|
368
|
+
type: "file",
|
|
369
|
+
file: content.file.type === "data" ? {
|
|
370
|
+
file_data: content.file.data,
|
|
371
|
+
filename: content.file.name
|
|
372
|
+
} : {
|
|
373
|
+
file_id: content.file.id
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
if (content.type === "image") {
|
|
378
|
+
return {
|
|
379
|
+
type: "image_url",
|
|
380
|
+
image_url: {
|
|
381
|
+
url: content.url,
|
|
382
|
+
detail: content.detail
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
throw new Error(`Unsupported user message content type, value: ${JSON.stringify(content)}`);
|
|
346
387
|
}
|
|
347
388
|
|
|
348
|
-
function
|
|
389
|
+
function createUserMessageHistory(props) {
|
|
349
390
|
return {
|
|
350
|
-
type: "
|
|
351
|
-
role: "user",
|
|
391
|
+
type: "userMessage",
|
|
352
392
|
contents: props.contents,
|
|
353
393
|
toJSON: () => ({
|
|
354
|
-
type: "
|
|
394
|
+
type: "userMessage",
|
|
355
395
|
contents: props.contents
|
|
356
396
|
})
|
|
357
397
|
};
|
|
358
398
|
}
|
|
359
399
|
|
|
360
|
-
function
|
|
400
|
+
function createAssistantMessageHistory(props) {
|
|
361
401
|
const prompt = {
|
|
362
|
-
type: "
|
|
363
|
-
|
|
402
|
+
type: "assistantMessage",
|
|
403
|
+
text: props.text
|
|
404
|
+
};
|
|
405
|
+
return {
|
|
406
|
+
...prompt,
|
|
407
|
+
toJSON: () => prompt
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
function createSystemMessageHistory(props) {
|
|
412
|
+
const prompt = {
|
|
413
|
+
type: "systemMessage",
|
|
364
414
|
text: props.text
|
|
365
415
|
};
|
|
366
416
|
return {
|
|
@@ -437,22 +487,6 @@ function createInitializeEvent() {
|
|
|
437
487
|
};
|
|
438
488
|
}
|
|
439
489
|
|
|
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
490
|
function createSelectEvent(props) {
|
|
457
491
|
return {
|
|
458
492
|
type: "select",
|
|
@@ -529,25 +563,35 @@ function createExecuteEvent(props) {
|
|
|
529
563
|
};
|
|
530
564
|
}
|
|
531
565
|
|
|
532
|
-
function
|
|
566
|
+
function createUserMessageEvent(props) {
|
|
533
567
|
return {
|
|
534
|
-
type: "
|
|
535
|
-
|
|
568
|
+
type: "userMessage",
|
|
569
|
+
contents: props.contents,
|
|
570
|
+
toJSON: () => ({
|
|
571
|
+
type: "userMessage",
|
|
572
|
+
contents: props.contents
|
|
573
|
+
}),
|
|
574
|
+
toHistory: () => createUserMessageHistory({
|
|
575
|
+
contents: props.contents
|
|
576
|
+
})
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
function creatAssistantEvent(props) {
|
|
581
|
+
return {
|
|
582
|
+
type: "assistantMessage",
|
|
536
583
|
stream: props.stream,
|
|
537
584
|
join: props.join,
|
|
538
585
|
toJSON: () => ({
|
|
539
|
-
type: "
|
|
540
|
-
role: "assistant",
|
|
586
|
+
type: "assistantMessage",
|
|
541
587
|
done: props.done(),
|
|
542
588
|
text: props.get()
|
|
543
589
|
}),
|
|
544
590
|
toHistory: () => ({
|
|
545
|
-
type: "
|
|
546
|
-
role: "assistant",
|
|
591
|
+
type: "assistantMessage",
|
|
547
592
|
text: props.get(),
|
|
548
593
|
toJSON: () => ({
|
|
549
|
-
type: "
|
|
550
|
-
role: "assistant",
|
|
594
|
+
type: "assistantMessage",
|
|
551
595
|
text: props.get()
|
|
552
596
|
})
|
|
553
597
|
})
|
|
@@ -612,6 +656,8 @@ function createOperationSelection(props) {
|
|
|
612
656
|
|
|
613
657
|
var index$2 = Object.freeze({
|
|
614
658
|
__proto__: null,
|
|
659
|
+
creatAssistantEvent,
|
|
660
|
+
createAssistantMessageHistory,
|
|
615
661
|
createCallEvent,
|
|
616
662
|
createCancelEvent,
|
|
617
663
|
createCancelHistory,
|
|
@@ -625,12 +671,12 @@ var index$2 = Object.freeze({
|
|
|
625
671
|
createResponseEvent,
|
|
626
672
|
createSelectEvent,
|
|
627
673
|
createSelectHistory,
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
createUserInputHistory,
|
|
674
|
+
createSystemMessageHistory,
|
|
675
|
+
createUserMessageEvent,
|
|
676
|
+
createUserMessageHistory,
|
|
632
677
|
createValidateEvent,
|
|
633
|
-
decodeHistory
|
|
678
|
+
decodeHistory,
|
|
679
|
+
decodeUserMessageContent
|
|
634
680
|
});
|
|
635
681
|
|
|
636
682
|
var AgenticaConstant;
|
|
@@ -750,7 +796,7 @@ function transformCompletionChunk(source) {
|
|
|
750
796
|
const valid = (() => {
|
|
751
797
|
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
798
|
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 || "
|
|
799
|
+
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
800
|
const _io3 = input => (undefined === input.arguments || "string" === typeof input.arguments) && (undefined === input.name || "string" === typeof input.name);
|
|
755
801
|
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
802
|
const _io5 = input => (undefined === input.arguments || "string" === typeof input.arguments) && (undefined === input.name || "string" === typeof input.name);
|
|
@@ -850,7 +896,7 @@ function transformCompletionChunk(source) {
|
|
|
850
896
|
path: _path + ".refusal",
|
|
851
897
|
expected: "(null | string | undefined)",
|
|
852
898
|
value: input.refusal
|
|
853
|
-
}), undefined === input.role || "
|
|
899
|
+
}), undefined === input.role || "user" === input.role || "developer" === input.role || "system" === input.role || "assistant" === input.role || "tool" === input.role || _report(_exceptionable, {
|
|
854
900
|
path: _path + ".role",
|
|
855
901
|
expected: '("assistant" | "developer" | "system" | "tool" | "user" | undefined)',
|
|
856
902
|
value: input.role
|
|
@@ -1269,7 +1315,7 @@ async function* streamDefaultReaderToAsyncGenerator(reader) {
|
|
|
1269
1315
|
}
|
|
1270
1316
|
}
|
|
1271
1317
|
|
|
1272
|
-
function transform
|
|
1318
|
+
function transform(stream, transformer) {
|
|
1273
1319
|
const reader = stream.getReader();
|
|
1274
1320
|
return new ReadableStream({
|
|
1275
1321
|
pull: async controller => {
|
|
@@ -1287,7 +1333,7 @@ const StreamUtil = {
|
|
|
1287
1333
|
readAll,
|
|
1288
1334
|
reduce,
|
|
1289
1335
|
from,
|
|
1290
|
-
transform
|
|
1336
|
+
transform
|
|
1291
1337
|
};
|
|
1292
1338
|
|
|
1293
1339
|
function cancelFunction(ctx, reference) {
|
|
@@ -1313,7 +1359,7 @@ async function call(ctx, operations) {
|
|
|
1313
1359
|
content: AgenticaDefaultPrompt.write(ctx.config)
|
|
1314
1360
|
}, ...ctx.histories.map(decodeHistory).flat(), {
|
|
1315
1361
|
role: "user",
|
|
1316
|
-
content: ctx.prompt.contents
|
|
1362
|
+
content: ctx.prompt.contents.map(decodeUserMessageContent)
|
|
1317
1363
|
}, ...ctx.config?.systemPrompt?.execute === null ? [] : [ {
|
|
1318
1364
|
role: "system",
|
|
1319
1365
|
content: ctx.config?.systemPrompt?.execute?.(ctx.histories) ?? AgenticaSystemPrompt.EXECUTE
|
|
@@ -1384,10 +1430,10 @@ async function call(ctx, operations) {
|
|
|
1384
1430
|
}
|
|
1385
1431
|
if (choice.message.role === "assistant" && choice.message.content != null && choice.message.content.length !== 0) {
|
|
1386
1432
|
closures.push((async () => {
|
|
1387
|
-
const value =
|
|
1433
|
+
const value = createAssistantMessageHistory({
|
|
1388
1434
|
text: choice.message.content
|
|
1389
1435
|
});
|
|
1390
|
-
ctx.dispatch(
|
|
1436
|
+
ctx.dispatch(creatAssistantEvent({
|
|
1391
1437
|
get: () => value.text,
|
|
1392
1438
|
done: () => true,
|
|
1393
1439
|
stream: toAsyncGenerator(value.text),
|
|
@@ -1588,7 +1634,7 @@ async function correct(ctx, call, retry, error) {
|
|
|
1588
1634
|
content: AgenticaDefaultPrompt.write(ctx.config)
|
|
1589
1635
|
}, ...ctx.histories.map(decodeHistory).flat(), {
|
|
1590
1636
|
role: "user",
|
|
1591
|
-
content: ctx.prompt.contents
|
|
1637
|
+
content: ctx.prompt.contents.map(decodeUserMessageContent)
|
|
1592
1638
|
}, ...ctx.config?.systemPrompt?.execute === null ? [] : [ {
|
|
1593
1639
|
role: "system",
|
|
1594
1640
|
content: ctx.config?.systemPrompt?.execute?.(ctx.histories) ?? AgenticaSystemPrompt.EXECUTE
|
|
@@ -1819,7 +1865,7 @@ async function step$1(ctx, operations, retry, failures) {
|
|
|
1819
1865
|
}))))
|
|
1820
1866
|
}, ...ctx.histories.map(decodeHistory).flat(), {
|
|
1821
1867
|
role: "user",
|
|
1822
|
-
content: ctx.prompt.contents
|
|
1868
|
+
content: ctx.prompt.contents.map(decodeUserMessageContent)
|
|
1823
1869
|
}, {
|
|
1824
1870
|
role: "system",
|
|
1825
1871
|
content: ctx.config?.systemPrompt?.cancel?.(ctx.histories) ?? AgenticaSystemPrompt.CANCEL
|
|
@@ -2891,7 +2937,7 @@ const FUNCTION = {
|
|
|
2891
2937
|
required: [ "properties", "required", "type" ]
|
|
2892
2938
|
},
|
|
2893
2939
|
"IChatGptSchema.IAnyOf": {
|
|
2894
|
-
description: "Union type.\n\
|
|
2940
|
+
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
2941
|
type: "object",
|
|
2896
2942
|
properties: {
|
|
2897
2943
|
anyOf: {
|
|
@@ -3816,7 +3862,7 @@ async function initialize(ctx) {
|
|
|
3816
3862
|
content: AgenticaDefaultPrompt.write(ctx.config)
|
|
3817
3863
|
}, ...ctx.histories.map(decodeHistory).flat(), {
|
|
3818
3864
|
role: "user",
|
|
3819
|
-
content: ctx.prompt.contents
|
|
3865
|
+
content: ctx.prompt.contents.map(decodeUserMessageContent)
|
|
3820
3866
|
}, {
|
|
3821
3867
|
role: "system",
|
|
3822
3868
|
content: ctx.config?.systemPrompt?.initialize?.(ctx.histories) ?? AgenticaSystemPrompt.INITIALIZE
|
|
@@ -3855,7 +3901,7 @@ async function initialize(ctx) {
|
|
|
3855
3901
|
mpsc
|
|
3856
3902
|
};
|
|
3857
3903
|
mpsc.produce(choice.delta.content);
|
|
3858
|
-
ctx.dispatch(
|
|
3904
|
+
ctx.dispatch(creatAssistantEvent({
|
|
3859
3905
|
stream: streamDefaultReaderToAsyncGenerator(mpsc.consumer.getReader()),
|
|
3860
3906
|
done: () => mpsc.done(),
|
|
3861
3907
|
get: () => textContext[choice.index].content,
|
|
@@ -3879,7 +3925,7 @@ async function initialize(ctx) {
|
|
|
3879
3925
|
const prompts = [];
|
|
3880
3926
|
for (const choice of completion.choices) {
|
|
3881
3927
|
if (choice.message.role === "assistant" && choice.message.content != null && choice.message.content.length !== 0) {
|
|
3882
|
-
prompts.push(
|
|
3928
|
+
prompts.push(createAssistantMessageHistory({
|
|
3883
3929
|
text: choice.message.content
|
|
3884
3930
|
}));
|
|
3885
3931
|
}
|
|
@@ -4068,7 +4114,7 @@ async function step(ctx, operations, retry, failures) {
|
|
|
4068
4114
|
}))))
|
|
4069
4115
|
}, ...ctx.histories.map(decodeHistory).flat(), {
|
|
4070
4116
|
role: "user",
|
|
4071
|
-
content: ctx.prompt.contents
|
|
4117
|
+
content: ctx.prompt.contents.map(decodeUserMessageContent)
|
|
4072
4118
|
}, {
|
|
4073
4119
|
role: "system",
|
|
4074
4120
|
content: ctx.config?.systemPrompt?.select?.(ctx.histories) ?? AgenticaSystemPrompt.SELECT
|
|
@@ -4210,11 +4256,11 @@ async function step(ctx, operations, retry, failures) {
|
|
|
4210
4256
|
}
|
|
4211
4257
|
}
|
|
4212
4258
|
if (choice.message.role === "assistant" && choice.message.content != null && choice.message.content.length !== 0) {
|
|
4213
|
-
const text =
|
|
4259
|
+
const text = createAssistantMessageHistory({
|
|
4214
4260
|
text: choice.message.content
|
|
4215
4261
|
});
|
|
4216
4262
|
prompts.push(text);
|
|
4217
|
-
ctx.dispatch(
|
|
4263
|
+
ctx.dispatch(creatAssistantEvent({
|
|
4218
4264
|
stream: toAsyncGenerator(text.text),
|
|
4219
4265
|
join: async () => Promise.resolve(text.text),
|
|
4220
4266
|
done: () => true,
|
|
@@ -4281,9 +4327,17 @@ function execute(executor) {
|
|
|
4281
4327
|
};
|
|
4282
4328
|
}
|
|
4283
4329
|
|
|
4284
|
-
function
|
|
4285
|
-
if (props.history.type === "
|
|
4286
|
-
return
|
|
4330
|
+
function transformHistory(props) {
|
|
4331
|
+
if (props.history.type === "userMessage") {
|
|
4332
|
+
return transformUserMessage({
|
|
4333
|
+
history: props.history
|
|
4334
|
+
});
|
|
4335
|
+
} else if (props.history.type === "assistantMessage") {
|
|
4336
|
+
return transformAssistantMessage({
|
|
4337
|
+
history: props.history
|
|
4338
|
+
});
|
|
4339
|
+
} else if (props.history.type === "systemMessage") {
|
|
4340
|
+
return transformSystemMessage({
|
|
4287
4341
|
history: props.history
|
|
4288
4342
|
});
|
|
4289
4343
|
} else if (props.history.type === "select") {
|
|
@@ -4301,17 +4355,23 @@ function transform(props) {
|
|
|
4301
4355
|
operations: props.operations,
|
|
4302
4356
|
history: props.history
|
|
4303
4357
|
});
|
|
4304
|
-
} else if (props.history.type === "describe") {
|
|
4305
|
-
return transformDescribe({
|
|
4306
|
-
operations: props.operations,
|
|
4307
|
-
history: props.history
|
|
4308
|
-
});
|
|
4309
4358
|
}
|
|
4310
|
-
|
|
4359
|
+
return transformDescribe({
|
|
4360
|
+
operations: props.operations,
|
|
4361
|
+
history: props.history
|
|
4362
|
+
});
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
function transformAssistantMessage(props) {
|
|
4366
|
+
return createAssistantMessageHistory(props.history);
|
|
4367
|
+
}
|
|
4368
|
+
|
|
4369
|
+
function transformSystemMessage(props) {
|
|
4370
|
+
return createSystemMessageHistory(props.history);
|
|
4311
4371
|
}
|
|
4312
4372
|
|
|
4313
|
-
function
|
|
4314
|
-
return
|
|
4373
|
+
function transformUserMessage(props) {
|
|
4374
|
+
return createUserMessageHistory(props.history);
|
|
4315
4375
|
}
|
|
4316
4376
|
|
|
4317
4377
|
function transformSelect(props) {
|
|
@@ -4370,15 +4430,6 @@ function findOperation(props) {
|
|
|
4370
4430
|
return found;
|
|
4371
4431
|
}
|
|
4372
4432
|
|
|
4373
|
-
const AgenticaHistoryTransformer = {
|
|
4374
|
-
transform,
|
|
4375
|
-
transformText,
|
|
4376
|
-
transformSelect,
|
|
4377
|
-
transformCancel,
|
|
4378
|
-
transformExecute,
|
|
4379
|
-
transformDescribe
|
|
4380
|
-
};
|
|
4381
|
-
|
|
4382
4433
|
class Agentica {
|
|
4383
4434
|
constructor(props) {
|
|
4384
4435
|
this.props = props;
|
|
@@ -4388,7 +4439,7 @@ class Agentica {
|
|
|
4388
4439
|
});
|
|
4389
4440
|
this.stack_ = [];
|
|
4390
4441
|
this.listeners_ = new Map;
|
|
4391
|
-
this.histories_ = (props.histories ?? []).map((input =>
|
|
4442
|
+
this.histories_ = (props.histories ?? []).map((input => transformHistory({
|
|
4392
4443
|
operations: this.operations_.group,
|
|
4393
4444
|
history: input
|
|
4394
4445
|
})));
|
|
@@ -4403,13 +4454,13 @@ class Agentica {
|
|
|
4403
4454
|
});
|
|
4404
4455
|
}
|
|
4405
4456
|
async conversate(content, options = {}) {
|
|
4406
|
-
const prompt =
|
|
4457
|
+
const prompt = createUserMessageHistory({
|
|
4407
4458
|
contents: Array.isArray(content) ? content : typeof content === "string" ? [ {
|
|
4408
4459
|
type: "text",
|
|
4409
4460
|
text: content
|
|
4410
4461
|
} ] : [ content ]
|
|
4411
4462
|
});
|
|
4412
|
-
this.dispatch(
|
|
4463
|
+
this.dispatch(createUserMessageEvent({
|
|
4413
4464
|
contents: prompt.contents
|
|
4414
4465
|
})).catch((() => {}));
|
|
4415
4466
|
const newbie = await this.executor_(this.getContext({
|
|
@@ -4744,7 +4795,7 @@ function assertHttpController(props) {
|
|
|
4744
4795
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
|
4745
4796
|
}));
|
|
4746
4797
|
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))));
|
|
4747
|
-
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.
|
|
4798
|
+
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;
|
|
4748
4799
|
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;
|
|
4749
4800
|
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))));
|
|
4750
4801
|
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))));
|
|
@@ -9869,6 +9920,11 @@ function assertHttpController(props) {
|
|
|
9869
9920
|
path: _path + ".exclusiveMaximum",
|
|
9870
9921
|
expected: "(boolean | number | undefined)",
|
|
9871
9922
|
value: input.exclusiveMaximum
|
|
9923
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9924
|
+
method: "typia.assert",
|
|
9925
|
+
path: _path + ".format",
|
|
9926
|
+
expected: "(string | undefined)",
|
|
9927
|
+
value: input.format
|
|
9872
9928
|
}, _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, {
|
|
9873
9929
|
method: "typia.assert",
|
|
9874
9930
|
path: _path + ".maxLength",
|
|
@@ -9879,11 +9935,6 @@ function assertHttpController(props) {
|
|
|
9879
9935
|
path: _path + ".maxLength",
|
|
9880
9936
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
9881
9937
|
value: input.maxLength
|
|
9882
|
-
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9883
|
-
method: "typia.assert",
|
|
9884
|
-
path: _path + ".format",
|
|
9885
|
-
expected: "(string | undefined)",
|
|
9886
|
-
value: input.format
|
|
9887
9938
|
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9888
9939
|
method: "typia.assert",
|
|
9889
9940
|
path: _path + ".pattern",
|
|
@@ -14116,7 +14167,7 @@ function assertHttpLlmApplication(props) {
|
|
|
14116
14167
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
|
14117
14168
|
}));
|
|
14118
14169
|
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))));
|
|
14119
|
-
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.
|
|
14170
|
+
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;
|
|
14120
14171
|
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;
|
|
14121
14172
|
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))));
|
|
14122
14173
|
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))));
|
|
@@ -19241,6 +19292,11 @@ function assertHttpLlmApplication(props) {
|
|
|
19241
19292
|
path: _path + ".exclusiveMaximum",
|
|
19242
19293
|
expected: "(boolean | number | undefined)",
|
|
19243
19294
|
value: input.exclusiveMaximum
|
|
19295
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
19296
|
+
method: "typia.assert",
|
|
19297
|
+
path: _path + ".format",
|
|
19298
|
+
expected: "(string | undefined)",
|
|
19299
|
+
value: input.format
|
|
19244
19300
|
}, _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, {
|
|
19245
19301
|
method: "typia.assert",
|
|
19246
19302
|
path: _path + ".maxLength",
|
|
@@ -19251,11 +19307,6 @@ function assertHttpLlmApplication(props) {
|
|
|
19251
19307
|
path: _path + ".maxLength",
|
|
19252
19308
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
19253
19309
|
value: input.maxLength
|
|
19254
|
-
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
19255
|
-
method: "typia.assert",
|
|
19256
|
-
path: _path + ".format",
|
|
19257
|
-
expected: "(string | undefined)",
|
|
19258
|
-
value: input.format
|
|
19259
19310
|
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
19260
19311
|
method: "typia.assert",
|
|
19261
19312
|
path: _path + ".pattern",
|
|
@@ -23280,7 +23331,7 @@ async function assertMcpController(props) {
|
|
|
23280
23331
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
23281
23332
|
}));
|
|
23282
23333
|
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))));
|
|
23283
|
-
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.
|
|
23334
|
+
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;
|
|
23284
23335
|
const _io5 = input => Object.keys(input).every((key => {
|
|
23285
23336
|
const value = input[key];
|
|
23286
23337
|
if (undefined === value) return true;
|
|
@@ -23642,6 +23693,11 @@ async function assertMcpController(props) {
|
|
|
23642
23693
|
path: _path + ".exclusiveMaximum",
|
|
23643
23694
|
expected: "(boolean | number | undefined)",
|
|
23644
23695
|
value: input.exclusiveMaximum
|
|
23696
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
23697
|
+
method: "typia.assert",
|
|
23698
|
+
path: _path + ".format",
|
|
23699
|
+
expected: "(string | undefined)",
|
|
23700
|
+
value: input.format
|
|
23645
23701
|
}, _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, {
|
|
23646
23702
|
method: "typia.assert",
|
|
23647
23703
|
path: _path + ".maxLength",
|
|
@@ -23652,11 +23708,6 @@ async function assertMcpController(props) {
|
|
|
23652
23708
|
path: _path + ".maxLength",
|
|
23653
23709
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
23654
23710
|
value: input.maxLength
|
|
23655
|
-
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
23656
|
-
method: "typia.assert",
|
|
23657
|
-
path: _path + ".format",
|
|
23658
|
-
expected: "(string | undefined)",
|
|
23659
|
-
value: input.format
|
|
23660
23711
|
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
23661
23712
|
method: "typia.assert",
|
|
23662
23713
|
path: _path + ".pattern",
|
|
@@ -25083,7 +25134,7 @@ function validateHttpController(props) {
|
|
|
25083
25134
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
|
25084
25135
|
}));
|
|
25085
25136
|
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))));
|
|
25086
|
-
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.
|
|
25137
|
+
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;
|
|
25087
25138
|
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;
|
|
25088
25139
|
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))));
|
|
25089
25140
|
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))));
|
|
@@ -29278,6 +29329,10 @@ function validateHttpController(props) {
|
|
|
29278
29329
|
path: _path + ".exclusiveMaximum",
|
|
29279
29330
|
expected: "(boolean | number | undefined)",
|
|
29280
29331
|
value: input.exclusiveMaximum
|
|
29332
|
+
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
29333
|
+
path: _path + ".format",
|
|
29334
|
+
expected: "(string | undefined)",
|
|
29335
|
+
value: input.format
|
|
29281
29336
|
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000 || _report(_exceptionable, {
|
|
29282
29337
|
path: _path + ".maxLength",
|
|
29283
29338
|
expected: 'number & Type<"uint64">',
|
|
@@ -29286,10 +29341,6 @@ function validateHttpController(props) {
|
|
|
29286
29341
|
path: _path + ".maxLength",
|
|
29287
29342
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
29288
29343
|
value: input.maxLength
|
|
29289
|
-
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
29290
|
-
path: _path + ".format",
|
|
29291
|
-
expected: "(string | undefined)",
|
|
29292
|
-
value: input.format
|
|
29293
29344
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
29294
29345
|
path: _path + ".pattern",
|
|
29295
29346
|
expected: "(string | undefined)",
|
|
@@ -32784,7 +32835,7 @@ function validateHttpLlmApplication(props) {
|
|
|
32784
32835
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
|
32785
32836
|
}));
|
|
32786
32837
|
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))));
|
|
32787
|
-
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.
|
|
32838
|
+
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;
|
|
32788
32839
|
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;
|
|
32789
32840
|
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))));
|
|
32790
32841
|
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))));
|
|
@@ -36979,6 +37030,10 @@ function validateHttpLlmApplication(props) {
|
|
|
36979
37030
|
path: _path + ".exclusiveMaximum",
|
|
36980
37031
|
expected: "(boolean | number | undefined)",
|
|
36981
37032
|
value: input.exclusiveMaximum
|
|
37033
|
+
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
37034
|
+
path: _path + ".format",
|
|
37035
|
+
expected: "(string | undefined)",
|
|
37036
|
+
value: input.format
|
|
36982
37037
|
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000 || _report(_exceptionable, {
|
|
36983
37038
|
path: _path + ".maxLength",
|
|
36984
37039
|
expected: 'number & Type<"uint64">',
|
|
@@ -36987,10 +37042,6 @@ function validateHttpLlmApplication(props) {
|
|
|
36987
37042
|
path: _path + ".maxLength",
|
|
36988
37043
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
36989
37044
|
value: input.maxLength
|
|
36990
|
-
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
36991
|
-
path: _path + ".format",
|
|
36992
|
-
expected: "(string | undefined)",
|
|
36993
|
-
value: input.format
|
|
36994
37045
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
36995
37046
|
path: _path + ".pattern",
|
|
36996
37047
|
expected: "(string | undefined)",
|
|
@@ -40280,7 +40331,7 @@ async function validateMcpController(props) {
|
|
|
40280
40331
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
40281
40332
|
}));
|
|
40282
40333
|
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))));
|
|
40283
|
-
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.
|
|
40334
|
+
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;
|
|
40284
40335
|
const _io5 = input => Object.keys(input).every((key => {
|
|
40285
40336
|
const value = input[key];
|
|
40286
40337
|
if (undefined === value) return true;
|
|
@@ -40578,6 +40629,10 @@ async function validateMcpController(props) {
|
|
|
40578
40629
|
path: _path + ".exclusiveMaximum",
|
|
40579
40630
|
expected: "(boolean | number | undefined)",
|
|
40580
40631
|
value: input.exclusiveMaximum
|
|
40632
|
+
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
40633
|
+
path: _path + ".format",
|
|
40634
|
+
expected: "(string | undefined)",
|
|
40635
|
+
value: input.format
|
|
40581
40636
|
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000 || _report(_exceptionable, {
|
|
40582
40637
|
path: _path + ".maxLength",
|
|
40583
40638
|
expected: 'number & Type<"uint64">',
|
|
@@ -40586,10 +40641,6 @@ async function validateMcpController(props) {
|
|
|
40586
40641
|
path: _path + ".maxLength",
|
|
40587
40642
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
40588
40643
|
value: input.maxLength
|
|
40589
|
-
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
40590
|
-
path: _path + ".format",
|
|
40591
|
-
expected: "(string | undefined)",
|
|
40592
|
-
value: input.format
|
|
40593
40644
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
40594
40645
|
path: _path + ".pattern",
|
|
40595
40646
|
expected: "(string | undefined)",
|
|
@@ -41590,7 +41641,7 @@ async function validateMcpController(props) {
|
|
|
41590
41641
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
41591
41642
|
}));
|
|
41592
41643
|
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))));
|
|
41593
|
-
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.
|
|
41644
|
+
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;
|
|
41594
41645
|
const _io5 = input => Object.keys(input).every((key => {
|
|
41595
41646
|
const value = input[key];
|
|
41596
41647
|
if (undefined === value) return true;
|
|
@@ -41952,6 +42003,11 @@ async function validateMcpController(props) {
|
|
|
41952
42003
|
path: _path + ".exclusiveMaximum",
|
|
41953
42004
|
expected: "(boolean | number | undefined)",
|
|
41954
42005
|
value: input.exclusiveMaximum
|
|
42006
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
42007
|
+
method: "typia.assert",
|
|
42008
|
+
path: _path + ".format",
|
|
42009
|
+
expected: "(string | undefined)",
|
|
42010
|
+
value: input.format
|
|
41955
42011
|
}, _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, {
|
|
41956
42012
|
method: "typia.assert",
|
|
41957
42013
|
path: _path + ".maxLength",
|
|
@@ -41962,11 +42018,6 @@ async function validateMcpController(props) {
|
|
|
41962
42018
|
path: _path + ".maxLength",
|
|
41963
42019
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
41964
42020
|
value: input.maxLength
|
|
41965
|
-
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
41966
|
-
method: "typia.assert",
|
|
41967
|
-
path: _path + ".format",
|
|
41968
|
-
expected: "(string | undefined)",
|
|
41969
|
-
value: input.format
|
|
41970
42021
|
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
41971
42022
|
method: "typia.assert",
|
|
41972
42023
|
path: _path + ".pattern",
|
|
@@ -43201,7 +43252,7 @@ class MicroAgentica {
|
|
|
43201
43252
|
controllers: props.controllers,
|
|
43202
43253
|
config: props.config
|
|
43203
43254
|
});
|
|
43204
|
-
this.histories_ = (props.histories ?? []).map((input =>
|
|
43255
|
+
this.histories_ = (props.histories ?? []).map((input => transformHistory({
|
|
43205
43256
|
operations: this.operations_.group,
|
|
43206
43257
|
history: input
|
|
43207
43258
|
})));
|
|
@@ -43215,13 +43266,13 @@ class MicroAgentica {
|
|
|
43215
43266
|
});
|
|
43216
43267
|
}
|
|
43217
43268
|
async conversate(content) {
|
|
43218
|
-
const talk =
|
|
43269
|
+
const talk = createUserMessageHistory({
|
|
43219
43270
|
contents: Array.isArray(content) ? content : typeof content === "string" ? [ {
|
|
43220
43271
|
type: "text",
|
|
43221
43272
|
text: content
|
|
43222
43273
|
} ] : [ content ]
|
|
43223
43274
|
});
|
|
43224
|
-
this.dispatch(
|
|
43275
|
+
this.dispatch(createUserMessageEvent({
|
|
43225
43276
|
contents: talk.contents
|
|
43226
43277
|
})).catch((() => {}));
|
|
43227
43278
|
const ctx = this.getContext({
|