@agentica/core 0.15.5 → 0.15.6
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 +0 -1
- package/lib/Agentica.js +6 -6
- package/lib/Agentica.js.map +1 -1
- package/lib/constants/AgenticaDefaultPrompt.js +1 -1
- package/lib/constants/AgenticaDefaultPrompt.js.map +1 -1
- package/lib/context/internal/AgenticaOperationComposer.d.ts +1 -1
- package/lib/context/internal/AgenticaOperationComposer.js.map +1 -1
- package/lib/context/internal/AgenticaTokenUsageAggregator.js.map +1 -1
- package/lib/events/AgenticaValidateEvent.d.ts +1 -1
- package/lib/factory/events.d.ts +3 -3
- package/lib/factory/events.js.map +1 -1
- package/lib/factory/operations.js.map +1 -1
- package/lib/factory/prompts.d.ts +6 -6
- package/lib/factory/prompts.js.map +1 -1
- package/lib/functional/assertHttpLlmApplication.js +16 -16
- package/lib/functional/assertHttpLlmApplication.js.map +1 -1
- package/lib/functional/validateHttpLlmApplication.js +13 -13
- package/lib/functional/validateHttpLlmApplication.js.map +1 -1
- package/lib/index.mjs +1714 -1714
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/call.js +2 -2
- package/lib/orchestrate/call.js.map +1 -1
- package/lib/orchestrate/cancel.d.ts +1 -1
- package/lib/orchestrate/cancel.js +2 -2
- package/lib/orchestrate/cancel.js.map +1 -1
- package/lib/orchestrate/describe.d.ts +1 -1
- package/lib/orchestrate/describe.js +3 -3
- package/lib/orchestrate/describe.js.map +1 -1
- package/lib/orchestrate/execute.js +3 -3
- package/lib/orchestrate/execute.js.map +1 -1
- package/lib/orchestrate/initialize.js +21 -21
- package/lib/orchestrate/initialize.js.map +1 -1
- package/lib/orchestrate/internal/cancelFunction.js.map +1 -1
- package/lib/orchestrate/internal/selectFunction.js +1 -1
- package/lib/orchestrate/internal/selectFunction.js.map +1 -1
- package/lib/orchestrate/select.js +4 -4
- package/lib/orchestrate/select.js.map +1 -1
- package/lib/transformers/AgenticaEventTransformer.d.ts +2 -2
- package/lib/transformers/AgenticaEventTransformer.js +1 -1
- package/lib/transformers/AgenticaEventTransformer.js.map +1 -1
- package/lib/transformers/AgenticaPromptTransformer.d.ts +3 -3
- package/lib/transformers/AgenticaPromptTransformer.js +1 -1
- package/lib/transformers/AgenticaPromptTransformer.js.map +1 -1
- package/lib/utils/ChatGptCompletionMessageUtil.js.map +1 -1
- package/package.json +1 -1
- package/src/Agentica.ts +9 -8
- package/src/constants/AgenticaDefaultPrompt.ts +3 -1
- package/src/context/AgenticaCancelPrompt.ts +2 -0
- package/src/context/AgenticaContext.ts +2 -0
- package/src/context/AgenticaOperation.ts +1 -0
- package/src/context/AgenticaOperationCollection.ts +1 -0
- package/src/context/AgenticaOperationSelection.ts +2 -0
- package/src/context/internal/AgenticaOperationComposer.ts +3 -2
- package/src/context/internal/AgenticaTokenUsageAggregator.ts +1 -0
- package/src/events/AgenticaCallEvent.ts +2 -0
- package/src/events/AgenticaCancelEvent.ts +2 -0
- package/src/events/AgenticaDescribeEvent.ts +1 -0
- package/src/events/AgenticaEvent.ts +1 -0
- package/src/events/AgenticaExecuteEvent.ts +2 -0
- package/src/events/AgenticaInitializeEvent.ts +1 -0
- package/src/events/AgenticaSelectEvent.ts +2 -0
- package/src/events/AgenticaTextEvent.ts +1 -0
- package/src/events/AgenticaValidateEvent.ts +3 -1
- package/src/factory/events.ts +6 -5
- package/src/factory/operations.ts +1 -0
- package/src/factory/prompts.ts +7 -6
- package/src/functional/assertHttpLlmApplication.ts +1 -0
- package/src/functional/validateHttpLlmApplication.ts +1 -0
- package/src/json/IAgenticaEventJson.ts +2 -0
- package/src/orchestrate/call.ts +12 -10
- package/src/orchestrate/cancel.ts +9 -7
- package/src/orchestrate/describe.ts +5 -4
- package/src/orchestrate/execute.ts +4 -3
- package/src/orchestrate/initialize.ts +6 -5
- package/src/orchestrate/internal/cancelFunction.ts +2 -1
- package/src/orchestrate/internal/selectFunction.ts +2 -1
- package/src/orchestrate/select.ts +10 -8
- package/src/prompts/AgenticaCancelPrompt.ts +2 -0
- package/src/prompts/AgenticaDescribePrompt.ts +2 -0
- package/src/prompts/AgenticaExecutePrompt.ts +2 -0
- package/src/prompts/AgenticaPrompt.ts +2 -0
- package/src/prompts/AgenticaSelectPrompt.ts +2 -0
- package/src/prompts/AgenticaTextPrompt.ts +1 -0
- package/src/structures/IAgenticaConfig.ts +1 -0
- package/src/structures/IAgenticaProps.ts +1 -0
- package/src/structures/IAgenticaSystemPrompt.ts +1 -0
- package/src/transformers/AgenticaEventTransformer.ts +4 -3
- package/src/transformers/AgenticaPromptTransformer.ts +5 -4
- package/src/utils/ChatGptCompletionMessageUtil.ts +2 -2
|
@@ -50,11 +50,11 @@ const __typia_transform__validateReport = __importStar(require("typia/lib/intern
|
|
|
50
50
|
const typia_1 = __importDefault(require("typia"));
|
|
51
51
|
const AgenticaDefaultPrompt_1 = require("../constants/AgenticaDefaultPrompt");
|
|
52
52
|
const AgenticaSystemPrompt_1 = require("../constants/AgenticaSystemPrompt");
|
|
53
|
-
const MPSC_1 = require("../utils/MPSC");
|
|
54
|
-
const StreamUtil_1 = require("../utils/StreamUtil");
|
|
55
|
-
const ChatGptCompletionMessageUtil_1 = require("../utils/ChatGptCompletionMessageUtil");
|
|
56
53
|
const events_1 = require("../factory/events");
|
|
57
54
|
const prompts_1 = require("../factory/prompts");
|
|
55
|
+
const ChatGptCompletionMessageUtil_1 = require("../utils/ChatGptCompletionMessageUtil");
|
|
56
|
+
const MPSC_1 = require("../utils/MPSC");
|
|
57
|
+
const StreamUtil_1 = require("../utils/StreamUtil");
|
|
58
58
|
const FUNCTION = {
|
|
59
59
|
model: "chatgpt",
|
|
60
60
|
options: {
|
|
@@ -1283,6 +1283,10 @@ const FUNCTION = {
|
|
|
1283
1283
|
"object"
|
|
1284
1284
|
]
|
|
1285
1285
|
},
|
|
1286
|
+
properties: {
|
|
1287
|
+
title: "Properties of the object",
|
|
1288
|
+
$ref: "#/$defs/RecordstringIChatGptSchema"
|
|
1289
|
+
},
|
|
1286
1290
|
required: {
|
|
1287
1291
|
title: "List of key values of the required properties",
|
|
1288
1292
|
description: "List of key values of the required properties.\n\nThe `required` means a list of the key values of the required\n{@link properties}. If some property key is not listed in the `required`\nlist, it means that property is optional. Otherwise some property key\nexists in the `required` list, it means that the property must be filled.\n\nBelow is an example of the {@link properties} and `required`.\n\n```typescript\ninterface SomeObject {\n id: string;\n email: string;\n name?: string;\n}\n```\n\nAs you can see, `id` and `email` {@link properties} are {@link required},\nso that they are listed in the `required` list.\n\n```json\n{\n \"type\": \"object\",\n \"properties\": {\n \"id\": { \"type\": \"string\" },\n \"email\": { \"type\": \"string\" },\n \"name\": { \"type\": \"string\" }\n },\n \"required\": [\"id\", \"email\"]\n}\n```",
|
|
@@ -1291,10 +1295,6 @@ const FUNCTION = {
|
|
|
1291
1295
|
type: "string"
|
|
1292
1296
|
}
|
|
1293
1297
|
},
|
|
1294
|
-
properties: {
|
|
1295
|
-
title: "Properties of the object",
|
|
1296
|
-
$ref: "#/$defs/RecordstringIChatGptSchema"
|
|
1297
|
-
},
|
|
1298
1298
|
title: {
|
|
1299
1299
|
title: "Title of the schema",
|
|
1300
1300
|
description: "Title of the schema.",
|
|
@@ -1326,8 +1326,8 @@ const FUNCTION = {
|
|
|
1326
1326
|
"$defs",
|
|
1327
1327
|
"additionalProperties",
|
|
1328
1328
|
"type",
|
|
1329
|
-
"
|
|
1330
|
-
"
|
|
1329
|
+
"properties",
|
|
1330
|
+
"required"
|
|
1331
1331
|
]
|
|
1332
1332
|
},
|
|
1333
1333
|
separated: {
|
|
@@ -1358,6 +1358,10 @@ const FUNCTION = {
|
|
|
1358
1358
|
"object"
|
|
1359
1359
|
]
|
|
1360
1360
|
},
|
|
1361
|
+
properties: {
|
|
1362
|
+
title: "Properties of the object",
|
|
1363
|
+
$ref: "#/$defs/RecordstringIChatGptSchema"
|
|
1364
|
+
},
|
|
1361
1365
|
required: {
|
|
1362
1366
|
title: "List of key values of the required properties",
|
|
1363
1367
|
description: "List of key values of the required properties.\n\nThe `required` means a list of the key values of the required\n{@link properties}. If some property key is not listed in the `required`\nlist, it means that property is optional. Otherwise some property key\nexists in the `required` list, it means that the property must be filled.\n\nBelow is an example of the {@link properties} and `required`.\n\n```typescript\ninterface SomeObject {\n id: string;\n email: string;\n name?: string;\n}\n```\n\nAs you can see, `id` and `email` {@link properties} are {@link required},\nso that they are listed in the `required` list.\n\n```json\n{\n \"type\": \"object\",\n \"properties\": {\n \"id\": { \"type\": \"string\" },\n \"email\": { \"type\": \"string\" },\n \"name\": { \"type\": \"string\" }\n },\n \"required\": [\"id\", \"email\"]\n}\n```",
|
|
@@ -1366,10 +1370,6 @@ const FUNCTION = {
|
|
|
1366
1370
|
type: "string"
|
|
1367
1371
|
}
|
|
1368
1372
|
},
|
|
1369
|
-
properties: {
|
|
1370
|
-
title: "Properties of the object",
|
|
1371
|
-
$ref: "#/$defs/RecordstringIChatGptSchema"
|
|
1372
|
-
},
|
|
1373
1373
|
title: {
|
|
1374
1374
|
title: "Title of the schema",
|
|
1375
1375
|
description: "Title of the schema.",
|
|
@@ -1401,8 +1401,8 @@ const FUNCTION = {
|
|
|
1401
1401
|
"$defs",
|
|
1402
1402
|
"additionalProperties",
|
|
1403
1403
|
"type",
|
|
1404
|
-
"
|
|
1405
|
-
"
|
|
1404
|
+
"properties",
|
|
1405
|
+
"required"
|
|
1406
1406
|
]
|
|
1407
1407
|
},
|
|
1408
1408
|
human: {
|
|
@@ -1435,6 +1435,10 @@ const FUNCTION = {
|
|
|
1435
1435
|
"object"
|
|
1436
1436
|
]
|
|
1437
1437
|
},
|
|
1438
|
+
properties: {
|
|
1439
|
+
title: "Properties of the object",
|
|
1440
|
+
$ref: "#/$defs/RecordstringIChatGptSchema"
|
|
1441
|
+
},
|
|
1438
1442
|
required: {
|
|
1439
1443
|
title: "List of key values of the required properties",
|
|
1440
1444
|
description: "List of key values of the required properties.\n\nThe `required` means a list of the key values of the required\n{@link properties}. If some property key is not listed in the `required`\nlist, it means that property is optional. Otherwise some property key\nexists in the `required` list, it means that the property must be filled.\n\nBelow is an example of the {@link properties} and `required`.\n\n```typescript\ninterface SomeObject {\n id: string;\n email: string;\n name?: string;\n}\n```\n\nAs you can see, `id` and `email` {@link properties} are {@link required},\nso that they are listed in the `required` list.\n\n```json\n{\n \"type\": \"object\",\n \"properties\": {\n \"id\": { \"type\": \"string\" },\n \"email\": { \"type\": \"string\" },\n \"name\": { \"type\": \"string\" }\n },\n \"required\": [\"id\", \"email\"]\n}\n```",
|
|
@@ -1443,10 +1447,6 @@ const FUNCTION = {
|
|
|
1443
1447
|
type: "string"
|
|
1444
1448
|
}
|
|
1445
1449
|
},
|
|
1446
|
-
properties: {
|
|
1447
|
-
title: "Properties of the object",
|
|
1448
|
-
$ref: "#/$defs/RecordstringIChatGptSchema"
|
|
1449
|
-
},
|
|
1450
1450
|
title: {
|
|
1451
1451
|
title: "Title of the schema",
|
|
1452
1452
|
description: "Title of the schema.",
|
|
@@ -1478,8 +1478,8 @@ const FUNCTION = {
|
|
|
1478
1478
|
"$defs",
|
|
1479
1479
|
"additionalProperties",
|
|
1480
1480
|
"type",
|
|
1481
|
-
"
|
|
1482
|
-
"
|
|
1481
|
+
"properties",
|
|
1482
|
+
"required"
|
|
1483
1483
|
],
|
|
1484
1484
|
description: "Description of the current {@link IChatGptSchema.IParameters} type:\n\n> Type of the function parameters.\n> \n> `IChatGptSchema.IParameters` is a type defining a function's parameters\n> as a keyworded object type.\n> \n> It also can be utilized for the structured output metadata.\n\n------------------------------\n\nDescription of the parent {@link IChatGptSchema} type:\n\n> Type schema info of the ChatGPT.\n> \n> `IChatGptSchema` is a type schema info of the ChatGPT function calling.\n> \n> `IChatGptSchema` basically follows the JSON schema definition of the OpenAPI v3.1\n> speciifcation; {@link OpenApiV3_1.IJsonSchema}.\n> \n> However, the `IChatGptSchema` does not follow the entire specification of\n> the OpenAPI v3.1. It has own specific restrictions and definitions. Here is the\n> list of how `IChatGptSchema` is different with the OpenAPI v3.1 JSON schema.\n> \n> - Decompose mixed type: {@link OpenApiV3_1.IJsonSchema.IMixed}\n> - Resolve nullable property: {@link OpenApiV3_1.IJsonSchema.__ISignificant.nullable}\n> - Tuple type is banned: {@link OpenApiV3_1.IJsonSchema.ITuple.prefixItems}\n> - Constant type is banned: {@link OpenApiV3_1.IJsonSchema.IConstant}\n> - Merge {@link OpenApiV3_1.IJsonSchema.IOneOf} to {@link IChatGptSchema.IAnOf}\n> - Merge {@link OpenApiV3_1.IJsonSchema.IAllOf} to {@link IChatGptSchema.IObject}\n> - Merge {@link OpenApiV3_1.IJsonSchema.IRecursiveReference} to {@link IChatGptSchema.IReference}\n> - When {@link IChatGptSchema.IConfig.strict} mode\n> - Every object properties must be required\n> - Do not allow {@link IChatGptSchema.IObject.additionalProperties}\n> \n> If compare with the {@link OpenApi.IJsonSchema}, the emended JSON schema specification,\n> \n> - {@link IChatGptSchema.IAnyOf} instead of the {@link OpenApi.IJsonSchema.IOneOf}\n> - {@link IChatGptSchema.IParameters.$defs} instead of the {@link OpenApi.IJsonSchema.IComponents.schemas}\n> - {@link IChatGptSchema.IString.enum} instead of the {@link OpenApi.IJsonSchema.IConstant}\n> - {@link IChatGptSchema.additionalProperties} is fixed to `false`\n> - No tuple type {@link OpenApi.IJsonSchema.ITuple} support\n> - When {@link IChatGptSchema.IConfig.strict} mode\n> - Every object properties must be required\n> - Do not allow {@link IChatGptSchema.IObject.additionalProperties}\n> \n> For reference, if you've composed the `IChatGptSchema` type with the\n> {@link IChatGptSchema.IConfig.reference} `false` option (default is `false`),\n> only the recursived named types would be archived into the\n> {@link IChatGptSchema.IParameters.$defs}, and the others would be ecaped from the\n> {@link IChatGptSchema.IReference} type.\n> \n> Also, OpenAI has banned below constraint properties. Instead, `IChatGptSchema`\n> fills the {@link IChatGptSchema.__IAttribute.description} property with\n> the comment text like `\"@format uuid\"`.\n> \n> - {@link OpenApi.IJsonSchema.INumber.minimum}\n> - {@link OpenApi.IJsonSchema.INumber.maximum}\n> - {@link OpenApi.IJsonSchema.INumber.multipleOf}\n> - {@link OpenApi.IJsonSchema.IString.minLength}\n> - {@link OpenApi.IJsonSchema.IString.maxLength}\n> - {@link OpenApi.IJsonSchema.IString.format}\n> - {@link OpenApi.IJsonSchema.IString.pattern}\n> - {@link OpenApi.IJsonSchema.IString.contentMediaType}\n> - {@link OpenApi.IJsonSchema.IString.default}\n> - {@link OpenApi.IJsonSchema.IArray.minItems}\n> - {@link OpenApi.IJsonSchema.IArray.maxItems}\n> - {@link OpenApi.IJsonSchema.IArray.unique}\n> \n> Additionally, OpenAI cannot define the `description` property to the\n> {@link IChatGptSchema.IReference} type, and even does not understand\n> the capsulization to the {@link IChatGptSchema.IAnyOf} type.\n> Therefore, the `description` is written to the parent object type,\n> not the reference type.\n> \n> ```json\n> {\n> \"type\": \"object\",\n> \"description\": \"### Description of {@link something} property.\\n\\n> Hello?\",\n> \"properties\": {\n> \"something\": {\n> \"$ref\": \"#/$defs/SomeObject\"\n> }\n> }\n> }\n> ```\n\n### Description of {@link $defs} property:\n\n> Collection of the named types.\n\n### Description of {@link properties} property:\n\n> Properties of the object.\n> \n> The `properties` means a list of key-value pairs of the object's\n> regular properties. The key is the name of the regular property,\n> and the value is the type schema info."
|
|
1485
1485
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.js","sourceRoot":"","sources":["../../src/orchestrate/initialize.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"initialize.js","sourceRoot":"","sources":["../../src/orchestrate/initialize.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,gCA+IC;;AAlKD,kDAA0B;AAM1B,8EAA2E;AAC3E,4EAAyE;AACzE,8CAAoD;AACpD,gDAAoE;AACpE,wFAAqF;AACrF,wCAAqC;AACrC,oDAAiD;AAE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C;QAE7B,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancelFunction.js","sourceRoot":"","sources":["../../../src/orchestrate/internal/cancelFunction.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"cancelFunction.js","sourceRoot":"","sources":["../../../src/orchestrate/internal/cancelFunction.ts"],"names":[],"mappings":";;;;;;;;;;;AAYA,wCAsBC;AA5BD,iDAAyD;AACzD,yDAAoE;AAEpE;;GAEG;AACH,SAAsB,cAAc,CAClC,GAA2B,EAC3B,SAAmC;;QAEnC,MAAM,KAAK,GAAW,GAAG,CAAC,KAAK,CAAC,SAAS,CACvC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAC/C,CAAC;QACF,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,IAAI,GAAsC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAE,CAAC;QAClE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC3B,MAAM,GAAG,CAAC,QAAQ,CAChB,IAAA,0BAAiB,EAAC;YAChB,SAAS,EAAE,IAAA,qCAAwB,EAAC;gBAClC,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,MAAM,EAAE,SAAS,CAAC,MAAM;aACzB,CAAC;SACH,CAAC,CACH,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;CAAA"}
|
|
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.selectFunction = selectFunction;
|
|
13
|
-
const operations_1 = require("../../factory/operations");
|
|
14
13
|
const events_1 = require("../../factory/events");
|
|
14
|
+
const operations_1 = require("../../factory/operations");
|
|
15
15
|
function selectFunction(ctx, reference) {
|
|
16
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17
17
|
const operation = ctx.operations.flat.get(reference.name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectFunction.js","sourceRoot":"","sources":["../../../src/orchestrate/internal/selectFunction.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"selectFunction.js","sourceRoot":"","sources":["../../../src/orchestrate/internal/selectFunction.ts"],"names":[],"mappings":";;;;;;;;;;;AAUA,wCAmBC;AAtBD,iDAAyD;AACzD,yDAAoE;AAEpE,SAAsB,cAAc,CAAiC,GAA2B,EAAE,SAAmC;;QACnI,MAAM,SAAS,GACT,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,SAAS,GACT,IAAA,qCAAwB,EAAC;YACzB,SAAS;YACT,MAAM,EAAE,SAAS,CAAC,MAAM;SACzB,CAAC,CAAC;QACP,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC1B,KAAK,GAAG,CAAC,QAAQ,CACf,IAAA,0BAAiB,EAAC;YAChB,SAAS;SACV,CAAC,CACH,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA"}
|
|
@@ -52,11 +52,11 @@ const uuid_1 = require("uuid");
|
|
|
52
52
|
const AgenticaConstant_1 = require("../constants/AgenticaConstant");
|
|
53
53
|
const AgenticaDefaultPrompt_1 = require("../constants/AgenticaDefaultPrompt");
|
|
54
54
|
const AgenticaSystemPrompt_1 = require("../constants/AgenticaSystemPrompt");
|
|
55
|
-
const StreamUtil_1 = require("../utils/StreamUtil");
|
|
56
|
-
const ChatGptCompletionMessageUtil_1 = require("../utils/ChatGptCompletionMessageUtil");
|
|
57
|
-
const prompts_1 = require("../factory/prompts");
|
|
58
|
-
const operations_1 = require("../factory/operations");
|
|
59
55
|
const events_1 = require("../factory/events");
|
|
56
|
+
const operations_1 = require("../factory/operations");
|
|
57
|
+
const prompts_1 = require("../factory/prompts");
|
|
58
|
+
const ChatGptCompletionMessageUtil_1 = require("../utils/ChatGptCompletionMessageUtil");
|
|
59
|
+
const StreamUtil_1 = require("../utils/StreamUtil");
|
|
60
60
|
const selectFunction_1 = require("./internal/selectFunction");
|
|
61
61
|
const CONTAINER = {
|
|
62
62
|
model: "chatgpt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/orchestrate/select.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/orchestrate/select.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,wBA2DC;;AA9FD,kDAA0B;AAC1B,+BAA0B;AAY1B,oEAAiE;AACjE,8EAA2E;AAC3E,4EAAyE;AACzE,8CAAoD;AACpD,sDAAiE;AACjE,gDAAwF;AACxF,wFAAqF;AACrF,oDAAiD;AAEjD,8DAA2D;AAE3D,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGZ,CAAC;AAQJ,SAAsB,MAAM,CAAiC,GAA2B;;;QACtF,IAAI,GAAG,CAAC,UAAU,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACzC,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC5C,CAAC;QAED,MAAM,MAAM,G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EAAE;gBACF,0CAA0C;aAC3C,CAAC,IAAI,CAAC,IAAI,CAAC;SACqC;KACtD,CAAC;SACD,IAAI,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
2
|
import type { AgenticaOperation } from "../context/AgenticaOperation";
|
|
3
|
-
import type { AgenticaEvent } from "../events/AgenticaEvent";
|
|
4
|
-
import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
|
|
5
3
|
import type { AgenticaCallEvent } from "../events/AgenticaCallEvent";
|
|
6
4
|
import type { AgenticaCancelEvent } from "../events/AgenticaCancelEvent";
|
|
7
5
|
import type { AgenticaDescribeEvent } from "../events/AgenticaDescribeEvent";
|
|
6
|
+
import type { AgenticaEvent } from "../events/AgenticaEvent";
|
|
8
7
|
import type { AgenticaExecuteEvent } from "../events/AgenticaExecuteEvent";
|
|
9
8
|
import type { AgenticaInitializeEvent } from "../events/AgenticaInitializeEvent";
|
|
10
9
|
import type { AgenticaRequestEvent } from "../events/AgenticaRequestEvent";
|
|
11
10
|
import type { AgenticaSelectEvent } from "../events/AgenticaSelectEvent";
|
|
12
11
|
import type { AgenticaTextEvent } from "../events/AgenticaTextEvent";
|
|
12
|
+
import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
|
|
13
13
|
declare function findOperation<Model extends ILlmSchema.Model>(props: {
|
|
14
14
|
operations: Map<string, Map<string, AgenticaOperation<Model>>>;
|
|
15
15
|
input: {
|
|
@@ -11,9 +11,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AgenticaEventTransformer = void 0;
|
|
13
13
|
exports.transformCancel = transformCancel;
|
|
14
|
-
const StreamUtil_1 = require("../utils/StreamUtil");
|
|
15
14
|
const events_1 = require("../factory/events");
|
|
16
15
|
const operations_1 = require("../factory/operations");
|
|
16
|
+
const StreamUtil_1 = require("../utils/StreamUtil");
|
|
17
17
|
function findOperation(props) {
|
|
18
18
|
var _a;
|
|
19
19
|
const found = (_a = props.operations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgenticaEventTransformer.js","sourceRoot":"","sources":["../../src/transformers/AgenticaEventTransformer.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AgenticaEventTransformer.js","sourceRoot":"","sources":["../../src/transformers/AgenticaEventTransformer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoGA,0CAaC;AAnGD,8CAA+L;AAC/L,sDAAiE;AACjE,oDAAiD;AAEjD,SAAS,aAAa,CAAiC,KAMtD;;IACC,MAAM,KAAK,GAAyC,MAAA,KAAK,CAAC,UAAU;SACjE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,0CAC1B,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC9B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CACb,oCAAoC,KAAK,CAAC,KAAK,CAAC,UAAU,eAAe,KAAK,CAAC,KAAK,CAAC,QAAQ,GAAG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,SAAS,CAAiC,KAGlD;IACC,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAChC,OAAO,aAAa,CAAC;YACnB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB,CAAC,CAAC;IACL,CAAC;SACI,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACvC,OAAO,eAAe,CAAC;YACrB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB,CAAC,CAAC;IACL,CAAC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ACnB,gBAAgB;IAChB,eAAe;IACf,aAAa;IACb,aAAa;CACd,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
2
|
import type { AgenticaOperation } from "../context/AgenticaOperation";
|
|
3
3
|
import type { IAgenticaPromptJson } from "../json/IAgenticaPromptJson";
|
|
4
|
+
import type { AgenticaCancelPrompt } from "../prompts/AgenticaCancelPrompt";
|
|
5
|
+
import type { AgenticaDescribePrompt } from "../prompts/AgenticaDescribePrompt";
|
|
6
|
+
import type { AgenticaExecutePrompt } from "../prompts/AgenticaExecutePrompt";
|
|
4
7
|
import type { AgenticaPrompt } from "../prompts/AgenticaPrompt";
|
|
5
8
|
import type { AgenticaSelectPrompt } from "../prompts/AgenticaSelectPrompt";
|
|
6
9
|
import type { AgenticaTextPrompt } from "../prompts/AgenticaTextPrompt";
|
|
7
|
-
import type { AgenticaCancelPrompt } from "../prompts/AgenticaCancelPrompt";
|
|
8
|
-
import type { AgenticaExecutePrompt } from "../prompts/AgenticaExecutePrompt";
|
|
9
|
-
import type { AgenticaDescribePrompt } from "../prompts/AgenticaDescribePrompt";
|
|
10
10
|
declare function transform<Model extends ILlmSchema.Model>(props: {
|
|
11
11
|
operations: Map<string, Map<string, AgenticaOperation<Model>>>;
|
|
12
12
|
prompt: IAgenticaPromptJson;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AgenticaPromptTransformer = void 0;
|
|
4
|
-
const prompts_1 = require("../factory/prompts");
|
|
5
4
|
const operations_1 = require("../factory/operations");
|
|
5
|
+
const prompts_1 = require("../factory/prompts");
|
|
6
6
|
function transform(props) {
|
|
7
7
|
// TEXT
|
|
8
8
|
if (props.prompt.type === "text") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgenticaPromptTransformer.js","sourceRoot":"","sources":["../../src/transformers/AgenticaPromptTransformer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AgenticaPromptTransformer.js","sourceRoot":"","sources":["../../src/transformers/AgenticaPromptTransformer.ts"],"names":[],"mappings":";;;AAWA,sDAAiE;AACjE,gDAAyI;AAEzI,SAAS,SAAS,CAAiC,KAGlD;IACC,OAAO;IACP,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QACjC,OAAO,aAAa,CAAC;YACnB,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;IACD,kBAAkB;SACb,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,eAAe,CAAC;YACrB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;SACI,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,eAAe,CAAC;YACrB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;IACD,UAAU;SACL,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QACzC,OAAO,gBAAgB,CAAC;YACtB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;SACI,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,iBAAiB,CAAC;YACvB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAC1C,CAAC;AAED,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AGG;QACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAgC;KACrD,CAAC,CAAC;AACL,CAAC;AAED,SAAS,iBAAiB,CAAiC,KAG1D;IACC,OAAO,IAAA,8BAAoB,EAAC;QAC1B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;QACvB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CACzC,gBAAgB,CAAC;YACf,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,MAAM,EAAE,IAAI;SACb,CAAC,CACH;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAS,aAAa,CAAiC,KAMtD;;IACC,MAAM,KAAK,GAAyC,MAAA,KAAK,CAAC,UAAU;SACjE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,0CAC1B,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC9B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CACb,oCAAoC,KAAK,CAAC,KAAK,CAAC,UAAU,eAAe,KAAK,CAAC,KAAK,CAAC,QAAQ,GAAG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAEY,QAAA,yBAAyB,GAAG;IACvC,SAAS;IACT,aAAa;IACb,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,iBAAiB;CAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatGptCompletionMessageUtil.js","sourceRoot":"","sources":["../../src/utils/ChatGptCompletionMessageUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ChatGptCompletionMessageUtil.js","sourceRoot":"","sources":["../../src/utils/ChatGptCompletionMessageUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;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AC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,cAAc,CAAC,GAAkC,EAAE,GAA8C;;IACxG,IAAI,GAAG,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;QACzB,GAAG,CAAC,QAAQ,CAAC,SAAS,IAAI,MAAA,GAAG,CAAC,QAAQ,CAAC,SAAS,mCAAI,EAAE,CAAC;QACvD,GAAG,CAAC,QAAQ,CAAC,IAAI,IAAI,MAAA,GAAG,CAAC,QAAQ,CAAC,IAAI,mCAAI,EAAE,CAAC;IAC/C,CAAC;IAED,GAAG,CAAC,EAAE,IAAI,MAAA,GAAG,CAAC,EAAE,mCAAI,EAAE,CAAC;IAEvB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,4BAA4B,GAAG;IAC1C,wBAAwB;IACxB,UAAU;IACV,KAAK;IACL,WAAW;IACX,cAAc;CACf,CAAC"}
|
package/package.json
CHANGED
package/src/Agentica.ts
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
|
|
2
3
|
import type { AgenticaContext } from "./context/AgenticaContext";
|
|
3
4
|
import type { AgenticaOperation } from "./context/AgenticaOperation";
|
|
4
5
|
import type { AgenticaOperationCollection } from "./context/AgenticaOperationCollection";
|
|
5
6
|
import type { AgenticaOperationSelection } from "./context/AgenticaOperationSelection";
|
|
6
7
|
import type { AgenticaEvent } from "./events/AgenticaEvent";
|
|
8
|
+
import type { AgenticaRequestEvent } from "./events/AgenticaRequestEvent";
|
|
7
9
|
import type { AgenticaPrompt } from "./prompts/AgenticaPrompt";
|
|
10
|
+
import type { AgenticaTextPrompt } from "./prompts/AgenticaTextPrompt";
|
|
8
11
|
import type { IAgenticaConfig } from "./structures/IAgenticaConfig";
|
|
9
12
|
import type { IAgenticaController } from "./structures/IAgenticaController";
|
|
10
13
|
import type { IAgenticaProps } from "./structures/IAgenticaProps";
|
|
11
14
|
import type { IAgenticaVendor } from "./structures/IAgenticaVendor";
|
|
12
|
-
import type { AgenticaTextPrompt } from "./prompts/AgenticaTextPrompt";
|
|
13
|
-
import type { AgenticaRequestEvent } from "./events/AgenticaRequestEvent";
|
|
14
15
|
|
|
15
|
-
import { ChatGptCompletionMessageUtil } from "./utils/ChatGptCompletionMessageUtil";
|
|
16
16
|
import { AgenticaTokenUsage } from "./context/AgenticaTokenUsage";
|
|
17
|
-
import { AgenticaTokenUsageAggregator } from "./context/internal/AgenticaTokenUsageAggregator";
|
|
18
|
-
import { __map_take } from "./utils/__map_take";
|
|
19
17
|
import { AgenticaOperationComposer } from "./context/internal/AgenticaOperationComposer";
|
|
20
|
-
import {
|
|
21
|
-
import { AgenticaPromptTransformer } from "./transformers/AgenticaPromptTransformer";
|
|
22
|
-
import { createTextPrompt } from "./factory/prompts";
|
|
18
|
+
import { AgenticaTokenUsageAggregator } from "./context/internal/AgenticaTokenUsageAggregator";
|
|
23
19
|
import { createInitializeEvent, createRequestEvent, createTextEvent } from "./factory/events";
|
|
20
|
+
import { createTextPrompt } from "./factory/prompts";
|
|
24
21
|
import { execute } from "./orchestrate/execute";
|
|
22
|
+
import { AgenticaPromptTransformer } from "./transformers/AgenticaPromptTransformer";
|
|
23
|
+
import { __map_take } from "./utils/__map_take";
|
|
24
|
+
import { ChatGptCompletionMessageUtil } from "./utils/ChatGptCompletionMessageUtil";
|
|
25
|
+
import { StreamUtil } from "./utils/StreamUtil";
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* Nestia A.I. chatbot agent.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
|
|
2
3
|
import type { IAgenticaConfig } from "../structures/IAgenticaConfig";
|
|
3
4
|
|
|
4
|
-
import { AgenticaSystemPrompt } from "./AgenticaSystemPrompt";
|
|
5
5
|
import { Singleton } from "../utils/Singleton";
|
|
6
6
|
|
|
7
|
+
import { AgenticaSystemPrompt } from "./AgenticaSystemPrompt";
|
|
8
|
+
|
|
7
9
|
/**
|
|
8
10
|
* @TODO maybe this code will rewrite
|
|
9
11
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
|
|
2
3
|
import type { IAgenticaPromptJson } from "../json/IAgenticaPromptJson";
|
|
3
4
|
import type { AgenticaPromptBase } from "../prompts/AgenticaPromptBase";
|
|
5
|
+
|
|
4
6
|
import type { AgenticaOperationSelection } from "./AgenticaOperationSelection";
|
|
5
7
|
|
|
6
8
|
export interface AgenticaCancelPrompt<
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
2
|
import type OpenAI from "openai";
|
|
3
|
+
|
|
3
4
|
import type { AgenticaEvent } from "../events/AgenticaEvent";
|
|
4
5
|
import type { AgenticaEventSource } from "../events/AgenticaEventSource";
|
|
5
6
|
import type { AgenticaPrompt } from "../prompts/AgenticaPrompt";
|
|
6
7
|
import type { AgenticaTextPrompt } from "../prompts/AgenticaTextPrompt";
|
|
7
8
|
import type { IAgenticaConfig } from "../structures/IAgenticaConfig";
|
|
9
|
+
|
|
8
10
|
import type { AgenticaOperationCollection } from "./AgenticaOperationCollection";
|
|
9
11
|
import type { AgenticaOperationSelection } from "./AgenticaOperationSelection";
|
|
10
12
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
|
|
2
3
|
import type { IAgenticaOperationSelectionJson } from "../json/IAgenticaOperationSelectionJson";
|
|
4
|
+
|
|
3
5
|
import type { AgenticaOperation } from "./AgenticaOperation";
|
|
4
6
|
|
|
5
7
|
export interface AgenticaOperationSelection<Model extends ILlmSchema.Model> {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
-
|
|
3
|
-
import type { AgenticaOperationCollection } from "../AgenticaOperationCollection";
|
|
2
|
+
|
|
4
3
|
import type { IAgenticaConfig } from "../../structures/IAgenticaConfig";
|
|
5
4
|
import type { IAgenticaController } from "../../structures/IAgenticaController";
|
|
5
|
+
import type { AgenticaOperation } from "../AgenticaOperation";
|
|
6
|
+
import type { AgenticaOperationCollection } from "../AgenticaOperationCollection";
|
|
6
7
|
|
|
7
8
|
import { __map_take } from "../../utils/__map_take";
|
|
8
9
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
|
|
2
3
|
import type { AgenticaOperation } from "../context/AgenticaOperation";
|
|
3
4
|
import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
|
|
5
|
+
|
|
4
6
|
import type { AgenticaEventBase } from "./AgenticaEventBase";
|
|
5
7
|
|
|
6
8
|
/**
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
|
|
2
3
|
import type { AgenticaOperationSelection } from "../context/AgenticaOperationSelection";
|
|
3
4
|
import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
|
|
5
|
+
|
|
4
6
|
import type { AgenticaEventBase } from "./AgenticaEventBase";
|
|
5
7
|
|
|
6
8
|
export interface AgenticaCancelEvent<
|
|
@@ -3,6 +3,7 @@ import type { ILlmSchema } from "@samchon/openapi";
|
|
|
3
3
|
import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
|
|
4
4
|
import type { AgenticaDescribePrompt } from "../prompts/AgenticaDescribePrompt";
|
|
5
5
|
import type { AgenticaExecutePrompt } from "../prompts/AgenticaExecutePrompt";
|
|
6
|
+
|
|
6
7
|
import type { AgenticaEventBase } from "./AgenticaEventBase";
|
|
7
8
|
|
|
8
9
|
export interface AgenticaDescribeEvent<
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { IHttpResponse, ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
|
|
2
3
|
import type { AgenticaOperation } from "../context/AgenticaOperation";
|
|
3
4
|
import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
|
|
4
5
|
import type { AgenticaExecutePrompt } from "../prompts/AgenticaExecutePrompt";
|
|
6
|
+
|
|
5
7
|
import type { AgenticaEventBase } from "./AgenticaEventBase";
|
|
6
8
|
|
|
7
9
|
export type AgenticaExecuteEvent<Model extends ILlmSchema.Model> =
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
|
|
2
3
|
import type { AgenticaOperationSelection } from "../context/AgenticaOperationSelection";
|
|
3
4
|
import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
|
|
4
5
|
import type { AgenticaSelectPrompt } from "../prompts/AgenticaSelectPrompt";
|
|
6
|
+
|
|
5
7
|
import type { AgenticaEventBase } from "./AgenticaEventBase";
|
|
6
8
|
|
|
7
9
|
export interface AgenticaSelectEvent<
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
2
|
import type { IValidation } from "typia";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import type { AgenticaOperation } from "../context/AgenticaOperation";
|
|
5
5
|
import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
|
|
6
6
|
|
|
7
|
+
import type { AgenticaEventBase } from "./AgenticaEventBase";
|
|
8
|
+
|
|
7
9
|
/**
|
|
8
10
|
* Event of a validation feedback.
|
|
9
11
|
*
|
package/src/factory/events.ts
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { v4 } from "uuid";
|
|
2
|
-
|
|
3
1
|
import type { ILlmSchema, IValidation } from "@samchon/openapi";
|
|
4
2
|
import type OpenAI from "openai";
|
|
3
|
+
|
|
4
|
+
import { v4 } from "uuid";
|
|
5
|
+
|
|
5
6
|
import type { AgenticaOperation } from "../context/AgenticaOperation";
|
|
6
7
|
import type { AgenticaOperationSelection } from "../context/AgenticaOperationSelection";
|
|
7
8
|
import type { AgenticaCallEvent } from "../events/AgenticaCallEvent";
|
|
8
9
|
import type { AgenticaCancelEvent } from "../events/AgenticaCancelEvent";
|
|
9
10
|
import type { AgenticaDescribeEvent } from "../events/AgenticaDescribeEvent";
|
|
10
11
|
import type { AgenticaEventSource } from "../events/AgenticaEventSource";
|
|
12
|
+
import type { AgenticaExecuteEvent } from "../events/AgenticaExecuteEvent";
|
|
11
13
|
import type { AgenticaInitializeEvent } from "../events/AgenticaInitializeEvent";
|
|
12
14
|
import type { AgenticaRequestEvent } from "../events/AgenticaRequestEvent";
|
|
13
15
|
import type { AgenticaResponseEvent } from "../events/AgenticaResponseEvent";
|
|
16
|
+
import type { AgenticaSelectEvent } from "../events/AgenticaSelectEvent";
|
|
14
17
|
import type { AgenticaTextEvent } from "../events/AgenticaTextEvent";
|
|
18
|
+
import type { AgenticaValidateEvent } from "../events/AgenticaValidateEvent";
|
|
15
19
|
import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
|
|
16
20
|
import type { AgenticaExecutePrompt } from "../prompts/AgenticaExecutePrompt";
|
|
17
|
-
import type { AgenticaExecuteEvent } from "../events/AgenticaExecuteEvent";
|
|
18
|
-
import type { AgenticaSelectEvent } from "../events/AgenticaSelectEvent";
|
|
19
|
-
import type { AgenticaValidateEvent } from "../events/AgenticaValidateEvent";
|
|
20
21
|
|
|
21
22
|
import { createExecutePrompt, createSelectPrompt } from "./prompts";
|
|
22
23
|
|