@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
|
@@ -77,7 +77,7 @@ function validateMcpController(props) {
|
|
|
77
77
|
if (undefined === value)
|
|
78
78
|
return true;
|
|
79
79
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
80
|
-
}); 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)))); 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 <= 18446744073709552000)) && (undefined === input.
|
|
80
|
+
}); 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)))); 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 <= 18446744073709552000)) && (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 <= 18446744073709552000)) && (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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && (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; const _io5 = input => Object.keys(input).every(key => {
|
|
81
81
|
const value = input[key];
|
|
82
82
|
if (undefined === value)
|
|
83
83
|
return true;
|
|
@@ -389,6 +389,10 @@ function validateMcpController(props) {
|
|
|
389
389
|
path: _path + ".exclusiveMaximum",
|
|
390
390
|
expected: "(boolean | number | undefined)",
|
|
391
391
|
value: input.exclusiveMaximum
|
|
392
|
+
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
393
|
+
path: _path + ".format",
|
|
394
|
+
expected: "(string | undefined)",
|
|
395
|
+
value: input.format
|
|
392
396
|
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || _report(_exceptionable, {
|
|
393
397
|
path: _path + ".maxLength",
|
|
394
398
|
expected: "number & Type<\"uint64\">",
|
|
@@ -397,10 +401,6 @@ function validateMcpController(props) {
|
|
|
397
401
|
path: _path + ".maxLength",
|
|
398
402
|
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
399
403
|
value: input.maxLength
|
|
400
|
-
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
401
|
-
path: _path + ".format",
|
|
402
|
-
expected: "(string | undefined)",
|
|
403
|
-
value: input.format
|
|
404
404
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
405
405
|
path: _path + ".pattern",
|
|
406
406
|
expected: "(string | undefined)",
|
|
@@ -1410,7 +1410,7 @@ function validateMcpController(props) {
|
|
|
1410
1410
|
if (undefined === value)
|
|
1411
1411
|
return true;
|
|
1412
1412
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
1413
|
-
}); 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)))); 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 <= 18446744073709552000)) && (undefined === input.
|
|
1413
|
+
}); 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)))); 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 <= 18446744073709552000)) && (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 <= 18446744073709552000)) && (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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && (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; const _io5 = input => Object.keys(input).every(key => {
|
|
1414
1414
|
const value = input[key];
|
|
1415
1415
|
if (undefined === value)
|
|
1416
1416
|
return true;
|
|
@@ -1786,6 +1786,11 @@ function validateMcpController(props) {
|
|
|
1786
1786
|
path: _path + ".exclusiveMaximum",
|
|
1787
1787
|
expected: "(boolean | number | undefined)",
|
|
1788
1788
|
value: input.exclusiveMaximum
|
|
1789
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1790
|
+
method: "typia.assert",
|
|
1791
|
+
path: _path + ".format",
|
|
1792
|
+
expected: "(string | undefined)",
|
|
1793
|
+
value: input.format
|
|
1789
1794
|
}, _errorFactory)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1790
1795
|
method: "typia.assert",
|
|
1791
1796
|
path: _path + ".maxLength",
|
|
@@ -1796,11 +1801,6 @@ function validateMcpController(props) {
|
|
|
1796
1801
|
path: _path + ".maxLength",
|
|
1797
1802
|
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
1798
1803
|
value: input.maxLength
|
|
1799
|
-
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1800
|
-
method: "typia.assert",
|
|
1801
|
-
path: _path + ".format",
|
|
1802
|
-
expected: "(string | undefined)",
|
|
1803
|
-
value: input.format
|
|
1804
1804
|
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1805
1805
|
method: "typia.assert",
|
|
1806
1806
|
path: _path + ".pattern",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateMcpController.js","sourceRoot":"","sources":["../../src/functional/validateMcpController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"validateMcpController.js","sourceRoot":"","sources":["../../src/functional/validateMcpController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,sDAmCC;;;;AAvDD,8CAA0C;AAC1C,kDAA0B;AAI1B;;;;;;;;;;;;;;GAcG;AACH,SAAsB,qBAAqB,CAEzC,KAQD;;QACC,uBAAuB;QACvB,MAAM,EAAE,qBAAqB,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAgC,KAAK,CAAC;SAC5C,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE,IAAI;YACb,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,WAAW;aACZ;SACF,CAAC;IACJ,CAAC;CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IAgenticaHistoryJson } from "../json/IAgenticaHistoryJson";
|
|
2
|
+
import type { AgenticaHistoryBase } from "./AgenticaHistoryBase";
|
|
3
|
+
export interface AgenticaAssistantMessageHistory extends AgenticaHistoryBase<"assistantMessage", IAgenticaHistoryJson.IAssistantMessage> {
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgenticaAssistantMessageHistory.js","sourceRoot":"","sources":["../../src/histories/AgenticaAssistantMessageHistory.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
import type { AgenticaAssistantMessageHistory } from "./AgenticaAssistantMessageHistory";
|
|
2
3
|
import type { AgenticaCancelHistory } from "./AgenticaCancelHistory";
|
|
3
4
|
import type { AgenticaDescribeHistory } from "./AgenticaDescribeHistory";
|
|
4
5
|
import type { AgenticaExecuteHistory } from "./AgenticaExecuteHistory";
|
|
5
6
|
import type { AgenticaSelectHistory } from "./AgenticaSelectHistory";
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
export type AgenticaHistory<Model extends ILlmSchema.Model> = AgenticaCancelHistory<Model> | AgenticaDescribeHistory<Model> | AgenticaExecuteHistory<Model> | AgenticaSelectHistory<Model> |
|
|
7
|
+
import type { AgenticaSystemMessageHistory } from "./AgenticaSystemMessageHistory";
|
|
8
|
+
import type { AgenticaUserMessageHistory } from "./AgenticaUserMessageHistory";
|
|
9
|
+
export type AgenticaHistory<Model extends ILlmSchema.Model> = AgenticaCancelHistory<Model> | AgenticaDescribeHistory<Model> | AgenticaExecuteHistory<Model> | AgenticaSelectHistory<Model> | AgenticaAssistantMessageHistory | AgenticaUserMessageHistory | AgenticaSystemMessageHistory;
|
|
9
10
|
export declare namespace AgenticaHistory {
|
|
10
11
|
type Type = AgenticaHistory<any>["type"];
|
|
11
12
|
interface Mapper<Model extends ILlmSchema.Model> {
|
|
13
|
+
select: AgenticaSelectHistory<Model>;
|
|
12
14
|
cancel: AgenticaCancelHistory<Model>;
|
|
13
|
-
describe: AgenticaDescribeHistory<Model>;
|
|
14
15
|
execute: AgenticaExecuteHistory<Model>;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
describe: AgenticaDescribeHistory<Model>;
|
|
17
|
+
assistantMessage: AgenticaAssistantMessageHistory;
|
|
18
|
+
systemMessage: AgenticaSystemMessageHistory;
|
|
19
|
+
userMessage: AgenticaUserMessageHistory;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IAgenticaHistoryJson } from "../json/IAgenticaHistoryJson";
|
|
2
2
|
import type { AgenticaHistoryBase } from "./AgenticaHistoryBase";
|
|
3
|
-
export interface
|
|
4
|
-
role: "assistant";
|
|
3
|
+
export interface AgenticaSystemMessageHistory extends AgenticaHistoryBase<"systemMessage", IAgenticaHistoryJson.ISystemMessage> {
|
|
5
4
|
text: string;
|
|
6
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgenticaSystemMessageHistory.js","sourceRoot":"","sources":["../../src/histories/AgenticaSystemMessageHistory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IAgenticaHistoryJson } from "../json/IAgenticaHistoryJson";
|
|
2
|
+
import type { AgenticaHistoryBase } from "./AgenticaHistoryBase";
|
|
3
|
+
import type { AgenticaUserMessageContent } from "./contents/AgenticaUserMessageContent";
|
|
4
|
+
export interface AgenticaUserMessageHistory extends AgenticaHistoryBase<"userMessage", IAgenticaHistoryJson.IUserMessage> {
|
|
5
|
+
contents: AgenticaUserMessageContent[];
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgenticaUserMessageHistory.js","sourceRoot":"","sources":["../../src/histories/AgenticaUserMessageHistory.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
import type { AgenticaAssistantMessageHistory } from "./AgenticaAssistantMessageHistory";
|
|
2
3
|
import type { AgenticaDescribeHistory } from "./AgenticaDescribeHistory";
|
|
3
4
|
import type { AgenticaExecuteHistory } from "./AgenticaExecuteHistory";
|
|
4
|
-
import type {
|
|
5
|
-
|
|
6
|
-
export type MicroAgenticaHistory<Model extends ILlmSchema.Model> = AgenticaDescribeHistory<Model> | AgenticaExecuteHistory<Model> | AgenticaTextHistory | AgenticaUserInputHistory;
|
|
5
|
+
import type { AgenticaUserMessageHistory } from "./AgenticaUserMessageHistory";
|
|
6
|
+
export type MicroAgenticaHistory<Model extends ILlmSchema.Model> = AgenticaDescribeHistory<Model> | AgenticaExecuteHistory<Model> | AgenticaAssistantMessageHistory | AgenticaUserMessageHistory;
|
|
7
7
|
export declare namespace MicroAgenticaHistory {
|
|
8
8
|
type Type = MicroAgenticaHistory<any>["type"];
|
|
9
9
|
interface Mapper<Model extends ILlmSchema.Model> {
|
|
10
10
|
describe: AgenticaDescribeHistory<Model>;
|
|
11
11
|
execute: AgenticaExecuteHistory<Model>;
|
|
12
|
-
|
|
12
|
+
userMessage: AgenticaUserMessageHistory;
|
|
13
|
+
assistantMessage: AgenticaAssistantMessageHistory;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AgenticaUserMessageContentBase } from "./AgenticaUserMessageContentBase";
|
|
2
|
+
/**
|
|
3
|
+
* Audio content by user.
|
|
4
|
+
*
|
|
5
|
+
* @reference https://platform.openai.com/docs/guides/audio
|
|
6
|
+
* @warning We not recommend it because audio data only support base64
|
|
7
|
+
* so it's too big data
|
|
8
|
+
* @author SunRabbit
|
|
9
|
+
*/
|
|
10
|
+
export interface AgenticaUserMessageAudioContent extends AgenticaUserMessageContentBase<"audio"> {
|
|
11
|
+
/**
|
|
12
|
+
* Base64 encoded audio data.
|
|
13
|
+
*/
|
|
14
|
+
data: string;
|
|
15
|
+
/**
|
|
16
|
+
* The format of the encoded audio data. Currently supports "wav" and "mp3".
|
|
17
|
+
*/
|
|
18
|
+
format: "wav" | "mp3";
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgenticaUserMessageAudioContent.js","sourceRoot":"","sources":["../../../src/histories/contents/AgenticaUserMessageAudioContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AgenticaUserMessageAudioContent } from "./AgenticaUserMessageAudioContent";
|
|
2
|
+
import type { AgenticaUserMessageFileContent } from "./AgenticaUserMessageFileContent";
|
|
3
|
+
import type { AgenticaUserMessageImageContent } from "./AgenticaUserMessageImageContent";
|
|
4
|
+
import type { AgenticaUserMessageTextContent } from "./AgenticaUserMessageTextContent";
|
|
5
|
+
export type AgenticaUserMessageContent = AgenticaUserMessageAudioContent | AgenticaUserMessageFileContent | AgenticaUserMessageImageContent | AgenticaUserMessageTextContent;
|
|
6
|
+
export declare namespace AgenticaUserMessageContent {
|
|
7
|
+
type Type = AgenticaUserMessageContent["type"];
|
|
8
|
+
interface Mapper {
|
|
9
|
+
audio: AgenticaUserMessageAudioContent;
|
|
10
|
+
file: AgenticaUserMessageFileContent;
|
|
11
|
+
image: AgenticaUserMessageImageContent;
|
|
12
|
+
text: AgenticaUserMessageTextContent;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgenticaUserMessageContent.js","sourceRoot":"","sources":["../../../src/histories/contents/AgenticaUserMessageContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgenticaUserMessageContentBase.js","sourceRoot":"","sources":["../../../src/histories/contents/AgenticaUserMessageContentBase.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AgenticaUserMessageContentBase } from "./AgenticaUserMessageContentBase";
|
|
2
|
+
/**
|
|
3
|
+
* File content by user.
|
|
4
|
+
*
|
|
5
|
+
* @reference https://platform.openai.com/docs/api-reference/uploads/create
|
|
6
|
+
* @author SunRabbit
|
|
7
|
+
*/
|
|
8
|
+
export interface AgenticaUserMessageFileContent extends AgenticaUserMessageContentBase<"file"> {
|
|
9
|
+
/**
|
|
10
|
+
* Reference to the pre-uploaded file or the data itself.
|
|
11
|
+
*
|
|
12
|
+
* @todo Properly define independent interface
|
|
13
|
+
*/
|
|
14
|
+
file: AgenticaUserMessageFileContent.IReference | AgenticaUserMessageFileContent.IData;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace AgenticaUserMessageFileContent {
|
|
17
|
+
interface IReference {
|
|
18
|
+
type: "reference";
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
21
|
+
interface IData {
|
|
22
|
+
type: "data";
|
|
23
|
+
name: string;
|
|
24
|
+
data: string;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgenticaUserMessageFileContent.js","sourceRoot":"","sources":["../../../src/histories/contents/AgenticaUserMessageFileContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { tags } from "typia";
|
|
2
|
+
import type { AgenticaUserMessageContentBase } from "./AgenticaUserMessageContentBase";
|
|
3
|
+
/**
|
|
4
|
+
* Image content by user.
|
|
5
|
+
*
|
|
6
|
+
* @reference https://platform.openai.com/docs/guides/vision
|
|
7
|
+
* @author SunRabbit
|
|
8
|
+
*/
|
|
9
|
+
export interface AgenticaUserMessageImageContent extends AgenticaUserMessageContentBase<"image"> {
|
|
10
|
+
/**
|
|
11
|
+
* Image URL.
|
|
12
|
+
*/
|
|
13
|
+
url: string & tags.Format<"url">;
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the detail level of the image.
|
|
16
|
+
*
|
|
17
|
+
* @reference https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding
|
|
18
|
+
*/
|
|
19
|
+
detail?: "auto" | "high" | "low" | undefined;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgenticaUserMessageImageContent.js","sourceRoot":"","sources":["../../../src/histories/contents/AgenticaUserMessageImageContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AgenticaUserMessageContentBase } from "./AgenticaUserMessageContentBase";
|
|
2
|
+
/**
|
|
3
|
+
* Text content by user.
|
|
4
|
+
*
|
|
5
|
+
* @reference https://platform.openai.com/docs/guides/text-generation
|
|
6
|
+
* @author Samchon
|
|
7
|
+
* @author SunRabbit
|
|
8
|
+
*/
|
|
9
|
+
export interface AgenticaUserMessageTextContent extends AgenticaUserMessageContentBase<"text"> {
|
|
10
|
+
/**
|
|
11
|
+
* The text content.
|
|
12
|
+
*/
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgenticaUserMessageTextContent.js","sourceRoot":"","sources":["../../../src/histories/contents/AgenticaUserMessageTextContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AgenticaUserMessageAudioContent"), exports);
|
|
18
|
+
__exportStar(require("./AgenticaUserMessageContent"), exports);
|
|
19
|
+
__exportStar(require("./AgenticaUserMessageFileContent"), exports);
|
|
20
|
+
__exportStar(require("./AgenticaUserMessageImageContent"), exports);
|
|
21
|
+
__exportStar(require("./AgenticaUserMessageTextContent"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/histories/contents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAClD,+DAA6C;AAC7C,mEAAiD;AACjD,oEAAkD;AAClD,mEAAiD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./AgenticaAssistantMessageHistory";
|
|
2
|
+
export * from "./AgenticaCancelHistory";
|
|
3
|
+
export * from "./AgenticaDescribeHistory";
|
|
4
|
+
export * from "./AgenticaExecuteHistory";
|
|
5
|
+
export * from "./AgenticaHistory";
|
|
6
|
+
export * from "./AgenticaSelectHistory";
|
|
7
|
+
export * from "./AgenticaSystemMessageHistory";
|
|
8
|
+
export * from "./AgenticaUserMessageHistory";
|
|
9
|
+
export * from "./contents";
|
|
10
|
+
export * from "./MicroAgenticaHistory";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AgenticaAssistantMessageHistory"), exports);
|
|
18
|
+
__exportStar(require("./AgenticaCancelHistory"), exports);
|
|
19
|
+
__exportStar(require("./AgenticaDescribeHistory"), exports);
|
|
20
|
+
__exportStar(require("./AgenticaExecuteHistory"), exports);
|
|
21
|
+
__exportStar(require("./AgenticaHistory"), exports);
|
|
22
|
+
__exportStar(require("./AgenticaSelectHistory"), exports);
|
|
23
|
+
__exportStar(require("./AgenticaSystemMessageHistory"), exports);
|
|
24
|
+
__exportStar(require("./AgenticaUserMessageHistory"), exports);
|
|
25
|
+
__exportStar(require("./contents"), exports);
|
|
26
|
+
__exportStar(require("./MicroAgenticaHistory"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/histories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,2DAAyC;AACzC,oDAAkC;AAClC,0DAAwC;AACxC,iEAA+C;AAC/C,+DAA6C;AAC7C,6CAA2B;AAC3B,yDAAuC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,49 +1,10 @@
|
|
|
1
1
|
export * from "./Agentica";
|
|
2
|
-
export * from "./context
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./context/AgenticaOperationCollection";
|
|
5
|
-
export * from "./context/AgenticaOperationSelection";
|
|
6
|
-
export * from "./context/AgenticaTokenUsage";
|
|
7
|
-
export * from "./events/AgenticaCallEvent";
|
|
8
|
-
export * from "./events/AgenticaCancelEvent";
|
|
9
|
-
export * from "./events/AgenticaDescribeEvent";
|
|
10
|
-
export * from "./events/AgenticaEvent";
|
|
11
|
-
export * from "./events/AgenticaEventSource";
|
|
12
|
-
export * from "./events/AgenticaExecuteEvent";
|
|
13
|
-
export * from "./events/AgenticaRequestEvent";
|
|
14
|
-
export * from "./events/AgenticaResponseEvent";
|
|
15
|
-
export * from "./events/AgenticaSelectEvent";
|
|
16
|
-
export * from "./events/AgenticaTextEvent";
|
|
17
|
-
export * from "./events/AgenticaValidateEvent";
|
|
18
|
-
export * from "./events/MicroAgenticaEvent";
|
|
2
|
+
export * from "./context";
|
|
3
|
+
export * from "./events";
|
|
19
4
|
export * as factory from "./factory";
|
|
20
|
-
export * from "./functional
|
|
21
|
-
export * from "./
|
|
22
|
-
export * from "./
|
|
23
|
-
export * from "./functional/validateHttpController";
|
|
24
|
-
export * from "./functional/validateHttpLlmApplication";
|
|
25
|
-
export * from "./functional/validateMcpController";
|
|
26
|
-
export * from "./histories/AgenticaCancelHistory";
|
|
27
|
-
export * from "./histories/AgenticaDescribeHistory";
|
|
28
|
-
export * from "./histories/AgenticaExecuteHistory";
|
|
29
|
-
export * from "./histories/AgenticaHistory";
|
|
30
|
-
export * from "./histories/AgenticaSelectHistory";
|
|
31
|
-
export * from "./histories/AgenticaTextHistory";
|
|
32
|
-
export * from "./histories/MicroAgenticaHistory";
|
|
33
|
-
export * from "./json/IAgenticaEventJson";
|
|
34
|
-
export * from "./json/IAgenticaHistoryJson";
|
|
35
|
-
export * from "./json/IAgenticaOperationJson";
|
|
36
|
-
export * from "./json/IAgenticaOperationSelectionJson";
|
|
37
|
-
export * from "./json/IAgenticaTokenUsageJson";
|
|
38
|
-
export * from "./json/IMicroAgenticaEventJson";
|
|
39
|
-
export * from "./json/IMicroAgenticaHistoryJson";
|
|
5
|
+
export * from "./functional";
|
|
6
|
+
export * from "./histories";
|
|
7
|
+
export * from "./json";
|
|
40
8
|
export * from "./MicroAgentica";
|
|
41
9
|
export * as orchestrate from "./orchestrate";
|
|
42
|
-
export * from "./structures
|
|
43
|
-
export * from "./structures/IAgenticaController";
|
|
44
|
-
export * from "./structures/IAgenticaExecutor";
|
|
45
|
-
export * from "./structures/IAgenticaProps";
|
|
46
|
-
export * from "./structures/IAgenticaSystemPrompt";
|
|
47
|
-
export * from "./structures/IAgenticaVendor";
|
|
48
|
-
export * from "./structures/IMicroAgenticaConfig";
|
|
49
|
-
export * from "./structures/IMicroAgenticaProps";
|
|
10
|
+
export * from "./structures";
|