@agentica/core 0.22.0 → 0.24.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 +11 -12
- package/lib/Agentica.d.ts +6 -1
- package/lib/Agentica.js +8 -3
- package/lib/Agentica.js.map +1 -1
- package/lib/MicroAgentica.d.ts +10 -0
- package/lib/MicroAgentica.js +11 -0
- package/lib/MicroAgentica.js.map +1 -1
- package/lib/context/AgenticaContext.d.ts +4 -0
- package/lib/functional/assertHttpController.d.ts +75 -0
- package/lib/functional/assertHttpController.js +9622 -0
- package/lib/functional/assertHttpController.js.map +1 -0
- package/lib/functional/assertHttpLlmApplication.d.ts +1 -0
- package/lib/functional/assertHttpLlmApplication.js +1 -0
- package/lib/functional/assertHttpLlmApplication.js.map +1 -1
- package/lib/functional/assertMcpController.d.ts +1 -1
- package/lib/functional/assertMcpController.js +1 -1
- package/lib/functional/assertMcpController.js.map +1 -1
- package/lib/functional/validateHttpController.d.ts +75 -0
- package/lib/functional/validateHttpController.js +7952 -0
- package/lib/functional/validateHttpController.js.map +1 -0
- package/lib/functional/validateHttpLlmApplication.d.ts +1 -0
- package/lib/functional/validateHttpLlmApplication.js +1 -0
- package/lib/functional/validateHttpLlmApplication.js.map +1 -1
- package/lib/functional/validateMcpController.d.ts +24 -0
- package/lib/functional/validateMcpController.js +3034 -0
- package/lib/functional/validateMcpController.js.map +1 -0
- package/lib/histories/AgenticaUserInputHistory.d.ts +13 -7
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +25981 -5985
- package/lib/index.mjs.map +1 -1
- package/lib/utils/ChatGptCompletionMessageUtil.spec.d.ts +1 -0
- package/lib/utils/ChatGptCompletionMessageUtil.spec.js +288 -0
- package/lib/utils/ChatGptCompletionMessageUtil.spec.js.map +1 -0
- package/lib/utils/ChatGptTokenUsageAggregator.spec.d.ts +1 -0
- package/lib/utils/ChatGptTokenUsageAggregator.spec.js +199 -0
- package/lib/utils/ChatGptTokenUsageAggregator.spec.js.map +1 -0
- package/lib/utils/Singleton.js +18 -0
- package/lib/utils/Singleton.js.map +1 -1
- package/lib/utils/Singleton.spec.d.ts +1 -0
- package/lib/utils/Singleton.spec.js +106 -0
- package/lib/utils/Singleton.spec.js.map +1 -0
- package/lib/utils/__map_take.spec.d.ts +1 -0
- package/lib/utils/__map_take.spec.js +108 -0
- package/lib/utils/__map_take.spec.js.map +1 -0
- package/package.json +1 -1
- package/src/Agentica.ts +16 -2
- package/src/MicroAgentica.ts +13 -0
- package/src/context/AgenticaContext.ts +5 -0
- package/src/functional/assertHttpController.ts +112 -0
- package/src/functional/assertHttpLlmApplication.ts +1 -0
- package/src/functional/assertMcpController.ts +1 -2
- package/src/functional/validateHttpController.ts +118 -0
- package/src/functional/validateHttpLlmApplication.ts +1 -1
- package/src/functional/validateMcpController.ts +56 -0
- package/src/histories/AgenticaUserInputHistory.ts +14 -8
- package/src/index.ts +3 -0
- package/src/utils/ChatGptCompletionMessageUtil.spec.ts +320 -0
- package/src/utils/ChatGptTokenUsageAggregator.spec.ts +226 -0
- package/src/utils/Singleton.spec.ts +138 -0
- package/src/utils/Singleton.ts +18 -0
- package/src/utils/__map_take.spec.ts +140 -0
- package/lib/utils/MathUtil.d.ts +0 -3
- package/lib/utils/MathUtil.js +0 -8
- package/lib/utils/MathUtil.js.map +0 -1
- package/src/utils/MathUtil.ts +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateHttpController.js","sourceRoot":"","sources":["../../src/functional/validateHttpController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,wDA6FC;;;AAnHD,8CAAoD;AACpD,kDAA0B;AAI1B;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,sBAAsB,CAEpC,KAmED;IACC,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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YACF,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,UAAU,EAAE,KAAK,CAAC,UAAU;SAC7B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -17,6 +17,7 @@ import { OpenApi } from "@samchon/openapi";
|
|
|
17
17
|
* @param props Properties to create the HTTP LLM application instance
|
|
18
18
|
* @returns Validation result of the HTTP LLM application composition
|
|
19
19
|
* @author Samchon
|
|
20
|
+
* @deprecated Use {@link validateHttpController} instead.
|
|
20
21
|
*/
|
|
21
22
|
export declare function validateHttpLlmApplication<Model extends ILlmSchema.Model>(props: {
|
|
22
23
|
/**
|
|
@@ -57,6 +57,7 @@ const typia_1 = __importDefault(require("typia"));
|
|
|
57
57
|
* @param props Properties to create the HTTP LLM application instance
|
|
58
58
|
* @returns Validation result of the HTTP LLM application composition
|
|
59
59
|
* @author Samchon
|
|
60
|
+
* @deprecated Use {@link validateHttpController} instead.
|
|
60
61
|
*/
|
|
61
62
|
function validateHttpLlmApplication(props) {
|
|
62
63
|
const inspect = (() => { const _io0 = input => null !== input.swagger && undefined !== input.swagger && ("2.0" === input.swagger || "string" === typeof input.swagger && RegExp(/^2\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.swagger)) && (undefined === input.info || "object" === typeof input.info && null !== input.info && _io1(input.info)) && (undefined === input.host || "string" === typeof input.host) && (undefined === input.basePath || "string" === typeof input.basePath) && (undefined === input.consumes || Array.isArray(input.consumes) && input.consumes.every(elem => "string" === typeof elem)) && (undefined === input.produces || Array.isArray(input.produces) && input.produces.every(elem => "string" === typeof elem)) && (undefined === input.definitions || "object" === typeof input.definitions && null !== input.definitions && false === Array.isArray(input.definitions) && _io4(input.definitions)) && (undefined === input.parameters || "object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) && _io16(input.parameters)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io29(input.responses)) && (undefined === input.securityDefinitions || "object" === typeof input.securityDefinitions && null !== input.securityDefinitions && false === Array.isArray(input.securityDefinitions) && _io31(input.securityDefinitions)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem))) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && _io40(input.paths)) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && _io47(elem))); const _io1 = input => "string" === typeof input.title && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && _io2(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && _io3(input.license)) && "string" === typeof input.version; const _io2 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email); const _io3 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url); const _io4 = input => Object.keys(input).every(key => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateHttpLlmApplication.js","sourceRoot":"","sources":["../../src/functional/validateHttpLlmApplication.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"validateHttpLlmApplication.js","sourceRoot":"","sources":["../../src/functional/validateHttpLlmApplication.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,gEA6CC;;;AArED,8CAG0B;AAC1B,kDAA0B;AAE1B;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,0BAA0B,CAExC,KAoBD;IACC,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUX,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClB,IAAI,OAAO,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC;QAC9B,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,OAAO;QACL,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,iBAAO,CAAC,WAAW,CAAC;YACxB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,QAAQ,EAAE,iBAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;YACvC,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC;KACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Client } from "@modelcontextprotocol/sdk/client/index.d.ts";
|
|
2
|
+
import type { ILlmSchema, IMcpLlmApplication, IValidation } from "@samchon/openapi";
|
|
3
|
+
import type { IAgenticaController } from "../structures/IAgenticaController";
|
|
4
|
+
/**
|
|
5
|
+
* Create an MCP controller with type validation.
|
|
6
|
+
*
|
|
7
|
+
* Create an {@link IAgenticaController.IMcp} instance which represents
|
|
8
|
+
* an MCP (Model Context Protocol) controller with LLM function calling
|
|
9
|
+
* schemas and client connection.
|
|
10
|
+
*
|
|
11
|
+
* @param props Properties to create the MCP controller
|
|
12
|
+
* @param props.name Name of the MCP implementation.
|
|
13
|
+
* @param props.client Client connection to the MCP implementation.
|
|
14
|
+
* @param props.model Model schema of the LLM function calling.
|
|
15
|
+
* @param props.options Options to create the MCP controller.
|
|
16
|
+
* @returns MCP LLM application instance
|
|
17
|
+
* @author SunRabbit
|
|
18
|
+
*/
|
|
19
|
+
export declare function validateMcpController<Model extends ILlmSchema.Model>(props: {
|
|
20
|
+
name: string;
|
|
21
|
+
client: Client;
|
|
22
|
+
model: Model;
|
|
23
|
+
options?: Partial<IMcpLlmApplication.IOptions<Model>>;
|
|
24
|
+
}): Promise<IValidation<IAgenticaController.IMcp<Model>>>;
|