@picoflow/core 1.0.11 → 1.0.13
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 +4 -3
- package/clients/http-client.js +1 -1
- package/clients/self-client.js +1 -1
- package/configs/core-config.js +1 -1
- package/decorators/stop-tool.js +1 -1
- package/flow/content-type.js +1 -1
- package/flow/end-step.js +1 -1
- package/flow/flow-creator.js +1 -1
- package/flow/flow-types.d.ts +33 -26
- package/flow/flow-types.js +1 -1
- package/flow/flow.d.ts +10 -3
- package/flow/flow.js +1 -1
- package/flow/llm-runner.js +1 -1
- package/flow/logic-runner.js +1 -1
- package/flow/logic-step.js +1 -1
- package/flow/memory.js +1 -1
- package/flow/step.d.ts +9 -5
- package/flow/step.js +1 -1
- package/index.js +45 -26
- package/models/default-models.d.ts +2 -0
- package/models/default-models.js +1 -0
- package/models/model-registry.d.ts +66 -0
- package/models/model-registry.js +1 -0
- package/package.json +1 -1
- package/prompt/flow-prompt.js +1 -1
- package/prompt/prompt-util.js +1 -1
- package/services/flow-engine.d.ts +6 -23
- package/services/flow-engine.js +1 -1
- package/session/cosmo-session.js +1 -1
- package/session/file-session.js +1 -1
- package/session/flow-session.js +1 -1
- package/session/mongo-session.js +1 -1
- package/session/session-adaptor.js +1 -1
- package/session/session-logger.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/environ.js +1 -1
- package/utils/errors.js +1 -1
- package/utils/license-util.js +1 -1
- package/utils/llm-file.d.ts +4 -0
- package/utils/llm-file.js +1 -1
- package/utils/logic.js +1 -1
- package/utils/message-util.js +1 -1
- package/utils/retry.js +1 -1
- package/utils/string-util.js +1 -1
- package/utils/tool-util.js +1 -1
- package/utils/verify-license.js +1 -1
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@ yarn add @picoflow/core
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## License Key
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
You need a license key that you need to include in your .env file
|
|
15
|
+
A free key for personal use can be found at www.picoflow.io , the Q/A section.
|
|
16
16
|
|
|
17
17
|
## Features
|
|
18
18
|
- **Agentic Flows**: Define complex conversational flows using flows/steps
|
|
@@ -31,4 +31,5 @@ For more detailed documentation, please refer to the [doc](./doc) folder.
|
|
|
31
31
|
|
|
32
32
|
## License
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
License info: [https://www.picoflow.io/picoflow-license]
|
|
35
|
+
Copyright (c) 2026 picoflow.io
|
package/clients/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x5e201d=a0_0xe2dc;function a0_0x3629(){const _0x1e18a7=['client','create','936258Uzjxjc','__esModule','apply','defineProperty','MSnGr','constructor','request','ObJsu','vaUVS','zhBxm','reject','UMelA','hOXZw','HttpClient','toString','data','xCjmv','removeHeader','1590374JJcPjD','4395860SGiJFD','wkwyc','DqWTw','get','diBlL','defaults','search','patch','4pLGjVf','default','678461PMpwDo','10kQzSYl','@nestjs/common','NxrgK','(((.+)+)+)+$','HttpStatus','validateStatus','interceptors','HFWby','qpcXP','delete','message','4024464rpMZej','rjHMZ','4213890qzThse','1801578vXdyax','common','upZjf','hHORE','lRFKV','yTdqn','use','post','response','statusCode','ULzpK','Mwiht','axios','BPpcX','dfrzm','setup','headers','put'];a0_0x3629=function(){return _0x1e18a7;};return a0_0x3629();}(function(_0x167898,_0xcc94f8){const _0x357955=a0_0xe2dc,_0x2c74a0=_0x167898();while(!![]){try{const _0x26ae7c=-parseInt(_0x357955(0x1eb))/0x1+parseInt(_0x357955(0x1e0))/0x2+parseInt(_0x357955(0x1ce))/0x3*(parseInt(_0x357955(0x1e9))/0x4)+-parseInt(_0x357955(0x1ec))/0x5*(parseInt(_0x357955(0x1fa))/0x6)+parseInt(_0x357955(0x1e1))/0x7+parseInt(_0x357955(0x1f7))/0x8+-parseInt(_0x357955(0x1f9))/0x9;if(_0x26ae7c===_0xcc94f8)break;else _0x2c74a0['push'](_0x2c74a0['shift']());}catch(_0xcaf031){_0x2c74a0['push'](_0x2c74a0['shift']());}}}(a0_0x3629,0x77e6a));const a0_0x9d6111=(function(){const _0x3fbb93=a0_0xe2dc,_0x5cdd57={'dfrzm':function(_0x460ea9,_0x48cf3d){return _0x460ea9<_0x48cf3d;},'kHcTd':function(_0x191998,_0x37ce44){return _0x191998===_0x37ce44;},'xCjmv':_0x3fbb93(0x1c5),'BPpcX':_0x3fbb93(0x1d6)};let _0x308ee5=!![];return function(_0x31f7cd,_0x5659cc){const _0x2eeabe=_0x3fbb93,_0x893fb={'xsTzs':function(_0x2e3e7e,_0x48c34e){return _0x5cdd57['kHcTd'](_0x2e3e7e,_0x48c34e);},'xBCUw':'vaYQb'};if(_0x5cdd57[_0x2eeabe(0x1de)]===_0x5cdd57[_0x2eeabe(0x1c7)])return _0x43f236=_0x3dc88f,_0x169a78>=_0x351cf3[_0x2eeabe(0x1f0)]['OK']&&_0x5cdd57[_0x2eeabe(0x1c8)](_0xd5f24a,0x12c);else{const _0x2ed600=_0x308ee5?function(){const _0x2a5e9e=_0x2eeabe;if(_0x5659cc){if(_0x893fb['xsTzs'](_0x2a5e9e(0x1f4),_0x893fb['xBCUw']))return this[_0x2a5e9e(0x1c9)](this[_0x2a5e9e(0x1cc)]['patch'],_0x2455b3,_0x47660d,_0x39c9e7);else{const _0x1feb1a=_0x5659cc['apply'](_0x31f7cd,arguments);return _0x5659cc=null,_0x1feb1a;}}}:function(){};return _0x308ee5=![],_0x2ed600;}};}()),a0_0x2931fe=a0_0x9d6111(this,function(){const _0x49b9a5=a0_0xe2dc,_0x356d7c={'rjHMZ':_0x49b9a5(0x1ef)};return a0_0x2931fe[_0x49b9a5(0x1dc)]()[_0x49b9a5(0x1e7)](_0x356d7c[_0x49b9a5(0x1f8)])[_0x49b9a5(0x1dc)]()[_0x49b9a5(0x1d3)](a0_0x2931fe)[_0x49b9a5(0x1e7)](_0x49b9a5(0x1ef));});a0_0x2931fe();function a0_0xe2dc(_0x3b77c4,_0x312e1e){const _0x339f6a=a0_0x3629();return a0_0xe2dc=function(_0x2931fe,_0x9d6111){_0x2931fe=_0x2931fe-0x1c2;let _0x3629af=_0x339f6a[_0x2931fe];return _0x3629af;},a0_0xe2dc(_0x3b77c4,_0x312e1e);}'use strict';var __importDefault=this&&this['__importDefault']||function(_0xc21c81){return _0xc21c81&&_0xc21c81['__esModule']?_0xc21c81:{'default':_0xc21c81};};Object[a0_0x5e201d(0x1d1)](exports,a0_0x5e201d(0x1cf),{'value':!![]}),exports['HttpClient']=void 0x0;const common_1=require(a0_0x5e201d(0x1ed)),axios_1=__importDefault(require(a0_0x5e201d(0x1c6)));class HttpClient{constructor(_0x2c1146,_0x3e62e1={},_0x474944){const _0x188456=a0_0x5e201d;this[_0x188456(0x1cc)]=axios_1[_0x188456(0x1ea)][_0x188456(0x1cd)]({'baseURL':_0x2c1146,'timeout':_0x474944,'headers':_0x3e62e1}),this[_0x188456(0x1cc)][_0x188456(0x1f2)][_0x188456(0x1d4)]['use'](_0x95c8a4=>{return _0x95c8a4;},_0xbf2c06=>Promise['reject'](_0xbf2c06)),this[_0x188456(0x1cc)][_0x188456(0x1f2)][_0x188456(0x1c2)][_0x188456(0x200)](_0x4879bf=>_0x4879bf['data'],_0x299058=>{const _0x1b8eae=_0x188456,_0x33a3f5=_0x299058[_0x1b8eae(0x1c2)]?.[_0x1b8eae(0x1dd)]?.['message']||_0x299058[_0x1b8eae(0x1f6)];return Promise[_0x1b8eae(0x1d8)](new Error(_0x33a3f5));});}async[a0_0x5e201d(0x1e4)](_0x498bcd,_0x3c71fe={},_0x2f6f52){const _0x5c0fcc=a0_0x5e201d,_0x182702={'LuLbH':function(_0x4255a3,_0x7114a7){return _0x4255a3===_0x7114a7;},'upZjf':'XJLLV','YruKN':function(_0x59ad9d,_0x309324){return _0x59ad9d>=_0x309324;},'koTgd':function(_0x2aa7f1,_0xc8e1d1){return _0x2aa7f1<_0xc8e1d1;},'bjaWA':function(_0xa4c30b,_0x42b64e){return _0xa4c30b??_0x42b64e;},'diBlL':function(_0x447a82,_0x35d2d9){return _0x447a82===_0x35d2d9;},'VIBAM':'vcOou'};let _0xefb930=common_1[_0x5c0fcc(0x1f0)]['OK'];const _0xbc75db=_0x182702['bjaWA'](_0x2f6f52,{});_0xbc75db[_0x5c0fcc(0x1f1)]=_0x3b5e00=>{const _0x508e06=_0x5c0fcc;return _0x182702['LuLbH'](_0x182702[_0x508e06(0x1fc)],_0x182702['upZjf'])?(_0xefb930=_0x3b5e00,_0x182702['YruKN'](_0x3b5e00,common_1[_0x508e06(0x1f0)]['OK'])&&_0x182702['koTgd'](_0x3b5e00,0x12c)):_0x3b5792&&_0x32f88b[_0x508e06(0x1cf)]?_0x59031e:{'default':_0x11aec2};};try{if(_0x182702[_0x5c0fcc(0x1e5)](_0x182702['VIBAM'],_0x182702['VIBAM'])){const _0x13f0ec=await this[_0x5c0fcc(0x1cc)][_0x5c0fcc(0x1e4)](_0x498bcd,{'params':_0x3c71fe,..._0xbc75db});return _0x13f0ec;}else this[_0x5c0fcc(0x1cc)][_0x5c0fcc(0x1e6)]['headers']['common'][_0x2dcc4f]=_0x4cccf6;}catch(_0x3848ca){_0x3848ca[_0x5c0fcc(0x1c3)]=_0xefb930;throw _0x3848ca;}}async[a0_0x5e201d(0x201)](_0x4591d4,_0x50a6be={},_0x1d14ee){const _0x4445ed=a0_0x5e201d;return this[_0x4445ed(0x1c9)](this[_0x4445ed(0x1cc)]['post'],_0x4591d4,_0x50a6be,_0x1d14ee);}async[a0_0x5e201d(0x1cb)](_0x29e53d,_0x24b680={},_0x371019){const _0x1c16b1=a0_0x5e201d;return this[_0x1c16b1(0x1c9)](this['client'][_0x1c16b1(0x1cb)],_0x29e53d,_0x24b680,_0x371019);}async[a0_0x5e201d(0x1f5)](_0x5852a6,_0x41803a){const _0x16efd9=a0_0x5e201d,_0x3833c9={'UMelA':function(_0x1f1b70,_0x2cf979){return _0x1f1b70<_0x2cf979;},'hOXZw':function(_0x30d219,_0x253b8b){return _0x30d219??_0x253b8b;},'lRFKV':function(_0x80c022,_0x2fa8ad){return _0x80c022!==_0x2fa8ad;},'hHORE':_0x16efd9(0x1e3)};let _0x385786=common_1[_0x16efd9(0x1f0)]['OK'];const _0x14c773=_0x3833c9[_0x16efd9(0x1da)](_0x41803a,{});_0x14c773[_0x16efd9(0x1f1)]=_0x2c8b1a=>{const _0x44f98f=_0x16efd9;return _0x385786=_0x2c8b1a,_0x2c8b1a>=common_1[_0x44f98f(0x1f0)]['OK']&&_0x3833c9[_0x44f98f(0x1d9)](_0x2c8b1a,0x12c);};try{const _0x2a150f=await this[_0x16efd9(0x1cc)]['delete'](_0x5852a6,{..._0x41803a});return _0x2a150f;}catch(_0x1bec56){if(_0x3833c9[_0x16efd9(0x1fe)](_0x16efd9(0x1e3),_0x3833c9[_0x16efd9(0x1fd)]))return _0x5d7b7c;else{_0x1bec56[_0x16efd9(0x1c3)]=_0x385786;throw _0x1bec56;}}}async['patch'](_0x23af5a,_0x3412f5={},_0x4fe868){const _0x199306=a0_0x5e201d;return this[_0x199306(0x1c9)](this['client'][_0x199306(0x1e8)],_0x23af5a,_0x3412f5,_0x4fe868);}['setHeader'](_0x1d3e67,_0x185bb9){const _0xf273e8=a0_0x5e201d;this[_0xf273e8(0x1cc)][_0xf273e8(0x1e6)]['headers'][_0xf273e8(0x1fb)][_0x1d3e67]=_0x185bb9;}[a0_0x5e201d(0x1df)](_0x2bead9){const _0x1f998c=a0_0x5e201d;delete this[_0x1f998c(0x1cc)][_0x1f998c(0x1e6)][_0x1f998c(0x1ca)][_0x1f998c(0x1fb)][_0x2bead9];}async['setup'](_0x2149fe,_0xa6c6e,_0x3fa5c7={},_0x1d3738){const _0x51f21e=a0_0x5e201d,_0x95a6b3={'NxrgK':function(_0x51ea02,_0x2b6071){return _0x51ea02!==_0x2b6071;},'ObJsu':_0x51f21e(0x1e2),'Kiexr':function(_0x4c8055,_0x198684){return _0x4c8055>=_0x198684;},'yTdqn':function(_0x36890b,_0x155329){return _0x36890b<_0x155329;},'ULzpK':function(_0x4a936e,_0x6d954d){return _0x4a936e??_0x6d954d;},'HFWby':function(_0x10fd14,_0x46e994,_0x87646b,_0xf44e60){return _0x10fd14(_0x46e994,_0x87646b,_0xf44e60);},'zhBxm':_0x51f21e(0x1d2)};let _0x4f5047=common_1[_0x51f21e(0x1f0)]['OK'];const _0x3bfb56=_0x95a6b3[_0x51f21e(0x1c4)](_0x1d3738,{});_0x3bfb56[_0x51f21e(0x1f1)]=_0x1bcb75=>{const _0x4ed8b8=_0x51f21e;if(_0x95a6b3[_0x4ed8b8(0x1ee)](_0x95a6b3['ObJsu'],_0x95a6b3[_0x4ed8b8(0x1d5)])){const _0xa6bb8c=_0x2aee4d?function(){const _0x34a47e=_0x4ed8b8;if(_0x290f35){const _0x2a5b8a=_0x564c8d[_0x34a47e(0x1d0)](_0x18f945,arguments);return _0x48bac1=null,_0x2a5b8a;}}:function(){};return _0x569ec1=![],_0xa6bb8c;}else return _0x4f5047=_0x1bcb75,_0x95a6b3['Kiexr'](_0x1bcb75,common_1[_0x4ed8b8(0x1f0)]['OK'])&&_0x1bcb75<0x12c;};try{const _0x5a875f=await _0x95a6b3[_0x51f21e(0x1f3)](_0x2149fe,_0xa6c6e,_0x3fa5c7,{..._0x3bfb56});return _0x5a875f;}catch(_0x532a7b){if(_0x95a6b3[_0x51f21e(0x1d7)]===_0x95a6b3[_0x51f21e(0x1d7)]){_0x532a7b[_0x51f21e(0x1c3)]=_0x4f5047;throw _0x532a7b;}else return _0x4faeff=_0x40cde0,_0x5ee1e6>=_0x4b809d['HttpStatus']['OK']&&_0x95a6b3[_0x51f21e(0x1ff)](_0x48c896,0x12c);}}}exports[a0_0x5e201d(0x1db)]=HttpClient;
|
package/clients/self-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a1_0x2cf354=a1_0x5a0b;(function(_0x28c3ee,_0xb92fe9){const _0x438725=a1_0x5a0b,_0x2f869e=_0x28c3ee();while(!![]){try{const _0x32208d=-parseInt(_0x438725(0x1dd))/0x1+parseInt(_0x438725(0x1df))/0x2+-parseInt(_0x438725(0x1da))/0x3*(parseInt(_0x438725(0x1e4))/0x4)+-parseInt(_0x438725(0x1d9))/0x5*(-parseInt(_0x438725(0x1dc))/0x6)+-parseInt(_0x438725(0x1ea))/0x7*(parseInt(_0x438725(0x1db))/0x8)+-parseInt(_0x438725(0x1e3))/0x9+-parseInt(_0x438725(0x1e1))/0xa*(-parseInt(_0x438725(0x1e0))/0xb);if(_0x32208d===_0xb92fe9)break;else _0x2f869e['push'](_0x2f869e['shift']());}catch(_0x659997){_0x2f869e['push'](_0x2f869e['shift']());}}}(a1_0x12c8,0x80ee9));const a1_0x3b3cea=(function(){let _0x2c9f28=!![];return function(_0x39b32a,_0x15f2aa){const _0x21ec10=_0x2c9f28?function(){if(_0x15f2aa){const _0x492e62=_0x15f2aa['apply'](_0x39b32a,arguments);return _0x15f2aa=null,_0x492e62;}}:function(){};return _0x2c9f28=![],_0x21ec10;};}()),a1_0x2ba7bf=a1_0x3b3cea(this,function(){const _0x4c6596=a1_0x5a0b,_0x4190a5={'lSnUO':'(((.+)+)+)+$'};return a1_0x2ba7bf[_0x4c6596(0x1e8)]()[_0x4c6596(0x1e2)](_0x4190a5[_0x4c6596(0x1e6)])['toString']()[_0x4c6596(0x1e7)](a1_0x2ba7bf)['search'](_0x4190a5[_0x4c6596(0x1e6)]);});a1_0x2ba7bf();function a1_0x12c8(){const _0x22e33b=['665076RdxSwh','selfURL','432666viFRKq','11fEBvvR','22470300hZqlSl','search','3900564IFCigZ','9764qroasE','SelfClient','lSnUO','constructor','toString','./http-client','289765erkcJm','../configs/core-config','5WcbFEw','753zGgicQ','136seDRNG','2877720Zqpllb'];a1_0x12c8=function(){return _0x22e33b;};return a1_0x12c8();}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['SelfClient']=void 0x0;function a1_0x5a0b(_0x5c259c,_0x3b6e6f){const _0x4e6d77=a1_0x12c8();return a1_0x5a0b=function(_0x2ba7bf,_0x3b3cea){_0x2ba7bf=_0x2ba7bf-0x1d8;let _0x12c80a=_0x4e6d77[_0x2ba7bf];return _0x12c80a;},a1_0x5a0b(_0x5c259c,_0x3b6e6f);}const core_config_1=require(a1_0x2cf354(0x1d8)),http_client_1=require(a1_0x2cf354(0x1e9));class SelfClient extends http_client_1['HttpClient']{constructor(_0x336b7a={},_0x1a9b9f){const _0x3b2582=a1_0x2cf354;super(core_config_1['CoreConfig'][_0x3b2582(0x1de)],_0x336b7a,_0x1a9b9f);}}exports[a1_0x2cf354(0x1e5)]=SelfClient;
|
package/configs/core-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x4674df=a2_0x5381;(function(_0xb3688c,_0x5cf319){const _0x4cfa42=a2_0x5381,_0x44c6a5=_0xb3688c();while(!![]){try{const _0x41903e=parseInt(_0x4cfa42(0xae))/0x1*(-parseInt(_0x4cfa42(0xb2))/0x2)+parseInt(_0x4cfa42(0x9b))/0x3*(-parseInt(_0x4cfa42(0x96))/0x4)+-parseInt(_0x4cfa42(0xb8))/0x5+parseInt(_0x4cfa42(0xbb))/0x6*(-parseInt(_0x4cfa42(0xad))/0x7)+parseInt(_0x4cfa42(0xa4))/0x8+-parseInt(_0x4cfa42(0xb3))/0x9+parseInt(_0x4cfa42(0x9a))/0xa;if(_0x41903e===_0x5cf319)break;else _0x44c6a5['push'](_0x44c6a5['shift']());}catch(_0x1a1807){_0x44c6a5['push'](_0x44c6a5['shift']());}}}(a2_0x59c4,0xb24e9));function a2_0x5381(_0x377f2f,_0x2f1200){const _0x237598=a2_0x59c4();return a2_0x5381=function(_0x519757,_0x219a19){_0x519757=_0x519757-0x8a;let _0x59c423=_0x237598[_0x519757];return _0x59c423;},a2_0x5381(_0x377f2f,_0x2f1200);}const a2_0x219a19=(function(){let _0x32b570=!![];return function(_0x35d10e,_0x21392a){const _0x5b9f3a=_0x32b570?function(){const _0x4056f7=a2_0x5381;if(_0x21392a){const _0x38a0c0=_0x21392a[_0x4056f7(0x8f)](_0x35d10e,arguments);return _0x21392a=null,_0x38a0c0;}}:function(){};return _0x32b570=![],_0x5b9f3a;};}()),a2_0x519757=a2_0x219a19(this,function(){const _0x363e64=a2_0x5381,_0x2341ce={'OYtLz':_0x363e64(0xa7)};return a2_0x519757[_0x363e64(0xa8)]()[_0x363e64(0x9e)](_0x2341ce[_0x363e64(0xba)])[_0x363e64(0xa8)]()[_0x363e64(0xa0)](a2_0x519757)[_0x363e64(0x9e)](_0x363e64(0xa7));});a2_0x519757();'use strict';Object[a2_0x4674df(0xb1)](exports,'__esModule',{'value':!![]}),exports['CoreConfig']=void 0x0;const environ_1=require('../utils/environ');function a2_0x59c4(){const _0x11609b=['24bzGIFR','GeminiKey','fdbHf','MONGODB_COLLECTION','COSMODB_SESSION_ID','SELF_URL','PICOFLOW_KEY','CoreConfig','MONGO','MQXTA','getOrThrow','instance','apply','trim','MONGODB_URL','LLM_TEMPERATURE','cddJC','VKHTa','mongoDB','17452PdtXWi','mongoURL','COSMODB_ID','mongoCollection','42124480NUcivN','321QlxJxK','GEMINI_KEY','get','search','OPENAI_KEY','constructor','XtghY','GetAs','sessionExpiration','9107816irduGZ','llmTemperature','FSlqF','(((.+)+)+)+$','toString','JglOG','SESSION_EXPIRATION','DOCUMENT_DB','EHeXM','2020907QWHIqN','29ygxisq','selfURL','documentDB','defineProperty','66206HvSVXY','11162763uzqJGw','TaOwG','ANTHROPIC_KEY','cosmoDbId','cosmoDbKey','3993205FouDvN','cosmoDbUrl','OYtLz'];a2_0x59c4=function(){return _0x11609b;};return a2_0x59c4();}class CoreConfig{constructor(_0x1c88ea){const _0x28e762=a2_0x4674df,_0x24e237={'fdbHf':_0x28e762(0x91),'XtghY':_0x28e762(0x92),'TaOwG':_0x28e762(0xc0),'VKHTa':'COSMODB_URL','EHeXM':'COSMODB_KEY','cddJC':_0x28e762(0x9c),'JQaXC':_0x28e762(0xbf),'FSlqF':'LLM_RETRY','JglOG':_0x28e762(0xb5),'wcNwn':'MONGODB_NAME','JSWBt':_0x28e762(0x9f),'MQXTA':_0x28e762(0xbe),'HQiWD':_0x28e762(0xab),'oLsBd':_0x28e762(0x8b)},_0xb2e13d='10|1|4|2|6|13|11|15|5|3|8|7|12|14|0|9'['split']('|');let _0x116b57=0x0;while(!![]){switch(_0xb2e13d[_0x116b57++]){case'0':CoreConfig[_0x28e762(0x97)]=_0x1c88ea[_0x28e762(0x8d)](_0x24e237[_0x28e762(0xbd)]);continue;case'1':CoreConfig[_0x28e762(0xa5)]=(0x0,environ_1['GetAs'])(_0x1c88ea[_0x28e762(0x9d)](_0x24e237[_0x28e762(0xa1)],0x0));continue;case'2':CoreConfig[_0x28e762(0xaf)]=_0x1c88ea[_0x28e762(0x9d)](_0x24e237[_0x28e762(0xb4)]);continue;case'3':CoreConfig[_0x28e762(0xb9)]=_0x1c88ea[_0x28e762(0x9d)](_0x24e237[_0x28e762(0x94)]);continue;case'4':CoreConfig['picoKey']=_0x1c88ea[_0x28e762(0x8d)](_0x28e762(0xc1))[_0x28e762(0x90)]();continue;case'5':CoreConfig[_0x28e762(0xb7)]=_0x1c88ea[_0x28e762(0x9d)](_0x24e237[_0x28e762(0xac)]);continue;case'6':CoreConfig[_0x28e762(0xbc)]=_0x1c88ea[_0x28e762(0x8d)](_0x24e237[_0x28e762(0x93)])[_0x28e762(0x90)]();continue;case'7':CoreConfig['cosmoDbSessionId']=_0x1c88ea[_0x28e762(0x9d)](_0x24e237['JQaXC']);continue;case'8':CoreConfig[_0x28e762(0xb6)]=_0x1c88ea[_0x28e762(0x9d)](_0x28e762(0x98));continue;case'9':CoreConfig[_0x28e762(0xa3)]=(0x0,environ_1['GetAs'])(_0x1c88ea['get'](_0x28e762(0xaa),0x258));continue;case'10':CoreConfig['llmRetry']=(0x0,environ_1[_0x28e762(0xa2)])(_0x1c88ea[_0x28e762(0x9d)](_0x24e237[_0x28e762(0xa6)],0x3));continue;case'11':CoreConfig['AnthropicKey']=_0x1c88ea[_0x28e762(0x8d)](_0x24e237[_0x28e762(0xa9)])[_0x28e762(0x90)]();continue;case'12':CoreConfig[_0x28e762(0x95)]=_0x1c88ea[_0x28e762(0x8d)](_0x24e237['wcNwn']);continue;case'13':CoreConfig['OpenAIKey']=_0x1c88ea[_0x28e762(0x8d)](_0x24e237['JSWBt'])[_0x28e762(0x90)]();continue;case'14':CoreConfig[_0x28e762(0x99)]=_0x1c88ea[_0x28e762(0x8d)](_0x24e237[_0x28e762(0x8c)]);continue;case'15':CoreConfig[_0x28e762(0xb0)]=_0x1c88ea[_0x28e762(0x9d)](_0x24e237['HQiWD'],_0x24e237['oLsBd']);continue;}break;}}static['setup'](_0x33a64c){const _0x868b9e=a2_0x4674df;return!this[_0x868b9e(0x8e)]&&(this[_0x868b9e(0x8e)]=new CoreConfig(_0x33a64c)),this['instance'];}}exports[a2_0x4674df(0x8a)]=CoreConfig;
|
package/decorators/stop-tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x54426e=a3_0x4e43;(function(_0x1d10c1,_0x21b582){const _0x46865b=a3_0x4e43,_0xe05d50=_0x1d10c1();while(!![]){try{const _0x1ca099=parseInt(_0x46865b(0x19e))/0x1+parseInt(_0x46865b(0x19f))/0x2*(-parseInt(_0x46865b(0x18f))/0x3)+parseInt(_0x46865b(0x198))/0x4*(-parseInt(_0x46865b(0x18d))/0x5)+parseInt(_0x46865b(0x19a))/0x6+-parseInt(_0x46865b(0x18e))/0x7+-parseInt(_0x46865b(0x199))/0x8*(-parseInt(_0x46865b(0x194))/0x9)+parseInt(_0x46865b(0x193))/0xa;if(_0x1ca099===_0x21b582)break;else _0xe05d50['push'](_0xe05d50['shift']());}catch(_0x20ad46){_0xe05d50['push'](_0xe05d50['shift']());}}}(a3_0x3d75,0xc21b5));const a3_0x44cb4d=(function(){let _0x3599af=!![];return function(_0x49996e,_0x5c4854){const _0x3219bb=_0x3599af?function(){const _0x475252=a3_0x4e43;if(_0x5c4854){const _0x519854=_0x5c4854[_0x475252(0x19d)](_0x49996e,arguments);return _0x5c4854=null,_0x519854;}}:function(){};return _0x3599af=![],_0x3219bb;};}()),a3_0xaf07cd=a3_0x44cb4d(this,function(){const _0xafc298=a3_0x4e43,_0x101af3={'AFUgS':'(((.+)+)+)+$'};return a3_0xaf07cd[_0xafc298(0x1a0)]()[_0xafc298(0x197)](_0x101af3[_0xafc298(0x190)])[_0xafc298(0x1a0)]()[_0xafc298(0x192)](a3_0xaf07cd)[_0xafc298(0x197)](_0x101af3[_0xafc298(0x190)]);});function a3_0x4e43(_0x342331,_0x7e8798){const _0x2653f7=a3_0x3d75();return a3_0x4e43=function(_0xaf07cd,_0x44cb4d){_0xaf07cd=_0xaf07cd-0x18d;let _0x3d758e=_0x2653f7[_0xaf07cd];return _0x3d758e;},a3_0x4e43(_0x342331,_0x7e8798);}a3_0xaf07cd();'use strict';Object['defineProperty'](exports,a3_0x54426e(0x19b),{'value':!![]}),exports[a3_0x54426e(0x195)]=exports[a3_0x54426e(0x19c)]=void 0x0;const StopToolPrompt=()=>{return(_0x56b77f,_0x43e2d4,_0x240e1e)=>{const _0x2531cf=a3_0x4e43,_0x40b74a=_0x240e1e[_0x2531cf(0x196)];return _0x240e1e[_0x2531cf(0x196)]=async function(..._0x24c24b){const _0x476c79=_0x2531cf;let _0x566732=await _0x40b74a[_0x476c79(0x19d)](this);return _0x566732=await this['amendTool'](_0x566732),_0x566732;},_0x240e1e;};};function a3_0x3d75(){const _0x15f3a0=['6473306guZRKJ','3120822jvRrvy','AFUgS','name','constructor','2738760gJTgZr','2207403xRHvph','StopToolMessage','value','search','5051680PsxdGu','48nNscew','4244652sbrPtE','__esModule','StopToolPrompt','apply','1570093PxlCWg','2cqCOER','toString','5QBbCyp'];a3_0x3d75=function(){return _0x15f3a0;};return a3_0x3d75();}exports[a3_0x54426e(0x19c)]=StopToolPrompt;const StopToolMessage=()=>{return(_0x351641,_0x19d125,_0x5426f5)=>{const _0x4433a9=a3_0x4e43,_0x1ec603=_0x5426f5[_0x4433a9(0x196)];return _0x5426f5['value']=async function(..._0x5d5003){const _0x1137ad=_0x4433a9,_0xc5932e=_0x5d5003[0x0],_0x3b580b=await _0x1ec603[_0x1137ad(0x19d)](this,_0x5d5003);return this['setStopTool'](_0x3b580b,_0xc5932e[_0x1137ad(0x191)]);},_0x5426f5;};};exports[a3_0x54426e(0x195)]=StopToolMessage;
|
package/flow/content-type.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x414225=a4_0xa277;(function(_0x186531,_0x5008b1){var _0xa0498=a4_0xa277,_0x1ae543=_0x186531();while(!![]){try{var _0x4c400d=parseInt(_0xa0498(0xc5))/0x1*(-parseInt(_0xa0498(0x9c))/0x2)+parseInt(_0xa0498(0xb2))/0x3*(-parseInt(_0xa0498(0xae))/0x4)+-parseInt(_0xa0498(0xcc))/0x5+parseInt(_0xa0498(0xdf))/0x6+parseInt(_0xa0498(0x9b))/0x7*(parseInt(_0xa0498(0xc2))/0x8)+-parseInt(_0xa0498(0xa8))/0x9+parseInt(_0xa0498(0xd5))/0xa;if(_0x4c400d===_0x5008b1)break;else _0x1ae543['push'](_0x1ae543['shift']());}catch(_0x16a9ad){_0x1ae543['push'](_0x1ae543['shift']());}}}(a4_0x236b,0xd1871));function a4_0xa277(_0xf4e3cf,_0x485ddc){var _0x4d204f=a4_0x236b();return a4_0xa277=function(_0x5f18a3,_0x51e818){_0x5f18a3=_0x5f18a3-0x70;var _0x236b75=_0x4d204f[_0x5f18a3];return _0x236b75;},a4_0xa277(_0xf4e3cf,_0x485ddc);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x414225(0x85)]=void 0x0;var HttpContentType;function a4_0x236b(){var _0x9fa7a3=['Ogg','aCUPN','application/msword','OctetStream','Webm','Pdf','text/markdown','(((.+)+)+)+$','jkFdu','FormUrlEncoded','pGmtd','application/pdf','Mp4','image/svg+xml','428216OljMTb','HdEBP','application/gzip','9502lreASv','Ods','lyfTE','fDRTu','Odt','CyohF','EWVoT','3808285EMeodT','application/ld+json','23|24|36|3|30|26|28|2|33|27|6|35|11|13|12|25|4|29|20|38|5|39|37|34|14|10|32|22|18|0|31|17|8|9|19|15|1|7|21|16','application/rss+xml','Gif','application/vnd.ms-excel','Docx','JdVRv','NhNPg','26598000LdfeGA','Markdown','text/csv','Xml','Json','Tar','irWwd','Rtf','cTjPM','otyRt','1744314ZglCQR','Jpeg','CAQhh','text/xml','application/atom+xml','RssXml','Dhclt','constructor','JsonApi','yWTZs','application/vnd.oasis.opendocument.text','wPood','nQwMo','wOEFF','bAglD','AXXKj','ECPSL','TextYaml','Ubcwr','Webp','UVLCU','AtomXml','application/vnd.openxmlformats-officedocument.wordprocessingml.document','application/vnd.api+json','USWWF','HttpContentType','video/webm','EHhUu','MkZiM','application/x-yaml','ItLIF','abWPK','MultipartFormData','Mp3','application/zip','audio/ogg','application/x-tar','Plain','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','tTxUd','Yaml','toString','PJPCX','aAqim','Xlsx','QxZzj','search','28eMWnWW','2VOPCtr','Zip','bxqkF','JsonLd','RNUun','split','aFdej','JkGbw','ulVAn','MsWord','dCGIF','text/rtf','13795479EvXGNU','application/x-www-form-urlencoded','Csv','image/jpeg','TextXml','SJtUJ','536VarQMB','loEHn','YxIBN','CcHtF','54AVDKZW','eAGDr'];a4_0x236b=function(){return _0x9fa7a3;};return a4_0x236b();}(function(_0x19f6e2){var _0x1f0c9d=a4_0x414225,_0x318d5d={'otyRt':_0x1f0c9d(0xce),'lyfTE':_0x1f0c9d(0xd0),'PJPCX':'image/gif','CcHtF':_0x1f0c9d(0x71),'AXXKj':_0x1f0c9d(0xcf),'ZlyRs':function(_0x3352a4){return _0x3352a4();},'rSqqO':_0x1f0c9d(0x91),'YxIBN':'text/plain','HdEBP':_0x1f0c9d(0xc9),'ItLIF':_0x1f0c9d(0x76),'NodtN':_0x1f0c9d(0x7d),'irWwd':'text/yaml','wOEFF':_0x1f0c9d(0x8e),'ulVAn':_0x1f0c9d(0x8d),'CyohF':'audio/mpeg','sKhaE':_0x1f0c9d(0xb4),'BiMZk':_0x1f0c9d(0x8f),'tTxUd':_0x1f0c9d(0xbd),'JdVRv':_0x1f0c9d(0xa9),'abWPK':_0x1f0c9d(0x74),'SJtUJ':'multipart/form-data','dCGIF':_0x1f0c9d(0xd1),'EWVoT':_0x1f0c9d(0xb8),'XdOTw':_0x1f0c9d(0x86),'wPood':_0x1f0c9d(0xda),'aFdej':'Svg','NhNPg':_0x1f0c9d(0xe0),'ObIBK':_0x1f0c9d(0xc0),'pGmtd':'video/mp4','USWWF':_0x1f0c9d(0xa5),'zYCyz':_0x1f0c9d(0xb6),'Dhclt':_0x1f0c9d(0xc4),'bxqkF':_0x1f0c9d(0xbb),'cTjPM':'application/xml','EHhUu':_0x1f0c9d(0x94),'yWTZs':_0x1f0c9d(0x89),'loEHn':_0x1f0c9d(0xac),'UVLCU':_0x1f0c9d(0xe2),'MNAqA':_0x1f0c9d(0xb9),'QxZzj':_0x1f0c9d(0xbf),'ECPSL':_0x1f0c9d(0xd9),'nQwMo':_0x1f0c9d(0x7f),'bAglD':'image/webp','XEguQ':'application/vnd.oasis.opendocument.spreadsheet','aCUPN':_0x1f0c9d(0x81),'eAGDr':_0x1f0c9d(0x70),'KnGgk':_0x1f0c9d(0xaa),'JkGbw':_0x1f0c9d(0xd7),'MkZiM':_0x1f0c9d(0x9f),'KsJBu':_0x1f0c9d(0xcd),'CAQhh':function(_0x52890c,_0x4d0b3b,_0x2e8a4e){return _0x52890c(_0x4d0b3b,_0x2e8a4e);},'aAqim':_0x1f0c9d(0xba),'Ubcwr':_0x1f0c9d(0xd2),'RNUun':_0x1f0c9d(0x82),'jkFdu':_0x1f0c9d(0xdc)},_0x4a9633=_0x318d5d[_0x1f0c9d(0xde)][_0x1f0c9d(0xa1)]('|'),_0x22332f=0x0;while(!![]){switch(_0x4a9633[_0x22332f++]){case'0':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xc7)]]=_0x318d5d[_0x1f0c9d(0x96)];continue;case'1':_0x19f6e2[_0x1f0c9d(0xb7)]='application/octet-stream';continue;case'2':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xb1)]]=_0x318d5d[_0x1f0c9d(0x7b)];continue;case'3':_0x318d5d['ZlyRs'](_0x1f8f52);continue;case'4':_0x19f6e2[_0x318d5d['rSqqO']]=_0x318d5d[_0x1f0c9d(0xb0)];continue;case'5':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xc3)]]=_0x318d5d[_0x1f0c9d(0x8a)];continue;case'6':_0x19f6e2[_0x318d5d['NodtN']]=_0x318d5d[_0x1f0c9d(0xdb)];continue;case'7':_0x19f6e2[_0x1f0c9d(0x9d)]=_0x318d5d[_0x1f0c9d(0x79)];continue;case'8':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xa4)]]=_0x318d5d[_0x1f0c9d(0xca)];continue;case'9':_0x19f6e2[_0x318d5d['sKhaE']]=_0x318d5d['BiMZk'];continue;case'10':_0x19f6e2[_0x1f0c9d(0x98)]=_0x1f0c9d(0x92);continue;case'11':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x93)]]=_0x318d5d[_0x1f0c9d(0xd3)];continue;case'12':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x8b)]]=_0x1f0c9d(0x83);continue;case'13':_0x19f6e2[_0x1f0c9d(0x8c)]=_0x318d5d[_0x1f0c9d(0xad)];continue;case'14':_0x19f6e2['Xls']=_0x318d5d[_0x1f0c9d(0xa6)];continue;case'15':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xcb)]]=_0x318d5d['XdOTw'];continue;case'16':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x77)]]=_0x1f0c9d(0x90);continue;case'17':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xa2)]]=_0x1f0c9d(0xc1);continue;case'18':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xd4)]]=_0x1f0c9d(0xab);continue;case'19':_0x19f6e2[_0x318d5d['ObIBK']]=_0x318d5d[_0x1f0c9d(0xbe)];continue;case'20':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x84)]]=_0x318d5d['zYCyz'];continue;case'21':_0x19f6e2['Gzip']=_0x318d5d[_0x1f0c9d(0x72)];continue;case'22':_0x19f6e2['Png']='image/png';continue;case'23':var _0x469981={'fDRTu':_0x318d5d[_0x1f0c9d(0x9e)]};continue;case'24':var _0x4f5c62=(function(){var _0x3f63e9=!![];return function(_0x1460b0,_0x164ee2){var _0x590dab=_0x3f63e9?function(){if(_0x164ee2){var _0x12ccba=_0x164ee2['apply'](_0x1460b0,arguments);return _0x164ee2=null,_0x12ccba;}}:function(){};return _0x3f63e9=![],_0x590dab;};}());continue;case'25':_0x19f6e2['Html']='text/html';continue;case'26':_0x19f6e2[_0x1f0c9d(0xd8)]=_0x318d5d[_0x1f0c9d(0xdd)];continue;case'27':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x87)]]=_0x318d5d[_0x1f0c9d(0x75)];continue;case'28':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xaf)]]=_0x318d5d[_0x1f0c9d(0x80)];continue;case'29':_0x19f6e2[_0x318d5d['MNAqA']]=_0x318d5d[_0x1f0c9d(0x99)];continue;case'30':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x7c)]]='application/json';continue;case'31':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x78)]]=_0x318d5d[_0x1f0c9d(0x7a)];continue;case'32':_0x19f6e2[_0x1f0c9d(0xc6)]=_0x318d5d['XEguQ'];continue;case'33':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xb5)]]=_0x318d5d[_0x1f0c9d(0xb3)];continue;case'34':_0x19f6e2[_0x318d5d['KnGgk']]=_0x318d5d[_0x1f0c9d(0xa3)];continue;case'35':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x88)]]=_0x318d5d['KsJBu'];continue;case'36':var _0x1f8f52=_0x318d5d[_0x1f0c9d(0xe1)](_0x4f5c62,this,function(){var _0x5d5c41=_0x1f0c9d;return _0x1f8f52[_0x5d5c41(0x95)]()[_0x5d5c41(0x9a)](_0x469981[_0x5d5c41(0xc8)])[_0x5d5c41(0x95)]()[_0x5d5c41(0x73)](_0x1f8f52)[_0x5d5c41(0x9a)](_0x469981[_0x5d5c41(0xc8)]);});continue;case'37':_0x19f6e2[_0x1f0c9d(0xd6)]=_0x318d5d[_0x1f0c9d(0x97)];continue;case'38':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x7e)]]=_0x318d5d[_0x1f0c9d(0xa0)];continue;case'39':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xbc)]]=_0x1f0c9d(0xa7);continue;}break;}}(HttpContentType||(exports['HttpContentType']=HttpContentType={})));
|
package/flow/end-step.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x334b15=a5_0x33e0;(function(_0x338e71,_0x320d4a){const _0x4e7ecf=a5_0x33e0,_0x137840=_0x338e71();while(!![]){try{const _0x360ee0=-parseInt(_0x4e7ecf(0x1f0))/0x1*(-parseInt(_0x4e7ecf(0x1f9))/0x2)+parseInt(_0x4e7ecf(0x1e8))/0x3*(-parseInt(_0x4e7ecf(0x1dc))/0x4)+-parseInt(_0x4e7ecf(0x1d3))/0x5+parseInt(_0x4e7ecf(0x1e1))/0x6*(parseInt(_0x4e7ecf(0x1f4))/0x7)+-parseInt(_0x4e7ecf(0x1fc))/0x8*(parseInt(_0x4e7ecf(0x1d8))/0x9)+-parseInt(_0x4e7ecf(0x1dd))/0xa*(parseInt(_0x4e7ecf(0x1fe))/0xb)+parseInt(_0x4e7ecf(0x1e4))/0xc*(parseInt(_0x4e7ecf(0x1f6))/0xd);if(_0x360ee0===_0x320d4a)break;else _0x137840['push'](_0x137840['shift']());}catch(_0xe28f5e){_0x137840['push'](_0x137840['shift']());}}}(a5_0x1e0d,0x5f3ac));const a5_0x410d8d=(function(){const _0x54beed=a5_0x33e0,_0x479984={'uQGAK':function(_0x38d4ea,_0x29ad4e){return _0x38d4ea!==_0x29ad4e;},'MQnCj':_0x54beed(0x1df),'sJslr':_0x54beed(0x1ee)};let _0x17d9c3=!![];return function(_0x53383a,_0x25cef4){const _0x1d9f21=_0x54beed;if(_0x479984['sJslr']!==_0x479984['sJslr'])return _0x166300&&_0x2dc199[_0x1d9f21(0x1eb)]?_0x48eb61:{'default':_0x391311};else{const _0x3c306d=_0x17d9c3?function(){const _0x3e4c35=_0x1d9f21;if(_0x25cef4){if(_0x479984[_0x3e4c35(0x1e3)](_0x479984[_0x3e4c35(0x1d5)],_0x3e4c35(0x1df)))return!![];else{const _0x576b3c=_0x25cef4[_0x3e4c35(0x1da)](_0x53383a,arguments);return _0x25cef4=null,_0x576b3c;}}}:function(){};return _0x17d9c3=![],_0x3c306d;}};}()),a5_0x4a3d5e=a5_0x410d8d(this,function(){const _0x2f9162=a5_0x33e0,_0x2f2dce={'PdetL':_0x2f9162(0x1e7)};return a5_0x4a3d5e[_0x2f9162(0x1f3)]()[_0x2f9162(0x1e9)](_0x2f2dce['PdetL'])[_0x2f9162(0x1f3)]()[_0x2f9162(0x1e6)](a5_0x4a3d5e)[_0x2f9162(0x1e9)](_0x2f9162(0x1e7));});a5_0x4a3d5e();'use strict';var __importDefault=this&&this[a5_0x334b15(0x1fd)]||function(_0x5554fe){const _0x3e4775=a5_0x334b15;return _0x5554fe&&_0x5554fe[_0x3e4775(0x1eb)]?_0x5554fe:{'default':_0x5554fe};};Object[a5_0x334b15(0x1d4)](exports,a5_0x334b15(0x1eb),{'value':!![]}),exports[a5_0x334b15(0x1f1)]=void 0x0;function a5_0x1e0d(){const _0x5e4a23=['IWABq','286866dcupIm','./step','apply','object','268iCQIVQ','90TwvRJg','../utils/message-util','AiJWF','runStatus','84JUjNpA','flow','uQGAK','4417896hKhDbn','getPrompt','constructor','(((.+)+)+)+$','741kFuVSN','search','\x0aNicely\x20tell\x20the\x20user\x20this\x20is\x20the\x20end\x20of\x20conversation\x20as\x20they\x20requested,\x20you\x20MUST\x20NOT\x20talk\x20other\x20things!\x0a','__esModule','describe','HumanMessageEx','Uaupl','seiAq','7XRyAHe','EndStep','completed','toString','24199DGRdzk','xtIUf','52huJmdZ','end_chat','isEnd','23578WZbMQV','string','onCrossing','128ZgryTm','__importDefault','286583sFBhbz','2262415JfiuhS','defineProperty','MQnCj','I\x27m\x20done\x20with\x20chat'];a5_0x1e0d=function(){return _0x5e4a23;};return a5_0x1e0d();}function a5_0x33e0(_0x3f9dd8,_0x563ecc){const _0x5b4823=a5_0x1e0d();return a5_0x33e0=function(_0x4a3d5e,_0x410d8d){_0x4a3d5e=_0x4a3d5e-0x1d3;let _0x1e0dca=_0x5b4823[_0x4a3d5e];return _0x1e0dca;},a5_0x33e0(_0x3f9dd8,_0x563ecc);}const zod_1=__importDefault(require('zod')),message_util_1=require(a5_0x334b15(0x1de)),step_1=require(a5_0x334b15(0x1d9)),AbruptEndPrompt=a5_0x334b15(0x1ea);class EndStep extends step_1['Step']{constructor(_0x5db230,_0x2d55ce){super(EndStep,_0x5db230,_0x2d55ce);}[a5_0x334b15(0x1fb)](_0xa0a85e,_0x544394){const _0xc14bc=a5_0x334b15;return new message_util_1[(_0xc14bc(0x1ed))](this,_0xc14bc(0x1d6));}[a5_0x334b15(0x1f8)](){return!![];}['onEnter'](){const _0x5e09f8=a5_0x334b15,_0x4faec4={'IWABq':_0x5e09f8(0x1f2)},_0x10afc6=this[_0x5e09f8(0x1e2)]['getSessionDoc']();_0x10afc6[_0x5e09f8(0x1e0)]=_0x4faec4[_0x5e09f8(0x1d7)];}[a5_0x334b15(0x1e5)](){const _0x29999f=a5_0x334b15,_0x4c2aca=super[_0x29999f(0x1e5)]();return _0x4c2aca?_0x4c2aca:AbruptEndPrompt;}['defineTool'](){const _0x5ab80e=a5_0x334b15,_0x1605ae={'xtIUf':'end\x20the\x20chat\x20conversation','seiAq':'the\x20prompt\x20to\x20be\x20displayed\x20later'};return[{'name':_0x5ab80e(0x1f7),'description':_0x1605ae[_0x5ab80e(0x1f5)],'schema':zod_1['default'][_0x5ab80e(0x1db)]({'prompt':zod_1['default'][_0x5ab80e(0x1fa)]()[_0x5ab80e(0x1ec)](_0x1605ae[_0x5ab80e(0x1ef)])})}];}async[a5_0x334b15(0x1f7)](_0x2c91e3){return{'step':EndStep};}}exports[a5_0x334b15(0x1f1)]=EndStep;
|
package/flow/flow-creator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x442890=a6_0x32a9;(function(_0x11f5e1,_0x27643b){const _0x241286=a6_0x32a9,_0x3b1dc7=_0x11f5e1();while(!![]){try{const _0x3119f0=parseInt(_0x241286(0xdb))/0x1+-parseInt(_0x241286(0xde))/0x2+-parseInt(_0x241286(0xe0))/0x3*(parseInt(_0x241286(0xc1))/0x4)+parseInt(_0x241286(0xd7))/0x5*(-parseInt(_0x241286(0xcd))/0x6)+-parseInt(_0x241286(0xd9))/0x7*(-parseInt(_0x241286(0xd1))/0x8)+-parseInt(_0x241286(0xd4))/0x9*(parseInt(_0x241286(0xda))/0xa)+parseInt(_0x241286(0xdc))/0xb*(parseInt(_0x241286(0xc4))/0xc);if(_0x3119f0===_0x27643b)break;else _0x3b1dc7['push'](_0x3b1dc7['shift']());}catch(_0x39a64e){_0x3b1dc7['push'](_0x3b1dc7['shift']());}}}(a6_0x291e,0xd3635));const a6_0x10b538=(function(){let _0x1b6d07=!![];return function(_0x153e95,_0x29f44c){const _0x9addcb=_0x1b6d07?function(){if(_0x29f44c){const _0x331206=_0x29f44c['apply'](_0x153e95,arguments);return _0x29f44c=null,_0x331206;}}:function(){};return _0x1b6d07=![],_0x9addcb;};}()),a6_0x2b7f4f=a6_0x10b538(this,function(){const _0xfd600b=a6_0x32a9,_0x5b1f2c={'MuMST':'(((.+)+)+)+$'};return a6_0x2b7f4f[_0xfd600b(0xca)]()[_0xfd600b(0xd3)](_0x5b1f2c[_0xfd600b(0xd5)])[_0xfd600b(0xca)]()['constructor'](a6_0x2b7f4f)['search'](_0x5b1f2c['MuMST']);});a6_0x2b7f4f();'use strict';var __importDefault=this&&this[a6_0x442890(0xbf)]||function(_0x7dbdb6){const _0xc8c878=a6_0x442890;return _0x7dbdb6&&_0x7dbdb6[_0xc8c878(0xd8)]?_0x7dbdb6:{'default':_0x7dbdb6};};function a6_0x32a9(_0x267d75,_0x3da7bb){const _0x14ab55=a6_0x291e();return a6_0x32a9=function(_0x2b7f4f,_0x10b538){_0x2b7f4f=_0x2b7f4f-0xbf;let _0x291e8e=_0x14ab55[_0x2b7f4f];return _0x291e8e;},a6_0x32a9(_0x267d75,_0x3da7bb);}Object[a6_0x442890(0xc8)](exports,a6_0x442890(0xd8),{'value':!![]}),exports[a6_0x442890(0xc3)]=void 0x0;const moment_1=__importDefault(require(a6_0x442890(0xcf))),uuid_1=require('uuid'),core_config_1=require(a6_0x442890(0xe1)),memory_1=require(a6_0x442890(0xdd));class FlowCreator{static async[a6_0x442890(0xd6)](_0x50a2dd,_0x31f2f8,_0x244b17,_0x1c925b){const _0x5d07ca=a6_0x442890,_0xbbcfbe={'XkrRl':_0x5d07ca(0xc6)},_0xad4c75=_0x244b17[_0x5d07ca(0xce)](_0x50a2dd);if(_0xad4c75){if('koEru'===_0xbbcfbe['XkrRl']){const _0xbc216b=_0x53179f?function(){if(_0x3566ef){const _0x57b44e=_0x53615f['apply'](_0x59568e,arguments);return _0x16bb46=null,_0x57b44e;}}:function(){};return _0x4ec835=![],_0xbc216b;}else{const _0x5c2c28=new _0xad4c75();return _0x5c2c28[_0x5d07ca(0xd2)](_0x1c925b),_0x5c2c28[_0x5d07ca(0xcc)](new memory_1[(_0x5d07ca(0xdf))]()),await _0x5c2c28['init'](),_0x5c2c28['collectSteps'](),await _0x5c2c28[_0x5d07ca(0xc2)](_0x31f2f8,_0x244b17),_0x5c2c28;}}else throw new Error(_0x5d07ca(0xc9)+_0x50a2dd+'\x27\x20not\x20registered.');}static async['createDoc'](){const _0x431f14=a6_0x442890,_0x234a36={'pByCj':'running'},_0x1632b2=(0x0,uuid_1['v4'])();return{'id':_0x1632b2,'version':0x1,'runStatus':_0x234a36[_0x431f14(0xd0)],'createdOn':(0x0,moment_1['default'])()[_0x431f14(0xc5)](),'saveOn':(0x0,moment_1[_0x431f14(0xc7)])()[_0x431f14(0xc5)](),'expireAfter':core_config_1[_0x431f14(0xcb)][_0x431f14(0xc0)],'tokens':{'inputTokens':0x0,'outputTokens':0x0,'totalTokens':0x0},'flows':[],'log':[],'error':[],'warn':[],'debug':[],'verbose':[]};}}function a6_0x291e(){const _0x388e58=['2062132nWufUO','Memory','54CIwZNq','../configs/core-config','__importDefault','sessionExpiration','267496YlGCYy','bootstrap','FlowCreator','12RgCcVr','toDate','uvHKr','default','defineProperty','FlowClass\x20\x20\x27','toString','CoreConfig','setMemory','90GbeBCM','getFlow','moment','pByCj','1192vantil','addContext','search','424233ibPwie','MuMST','create','211805msBiGD','__esModule','78407Upykxb','60sNryOY','958006TRZOCj','15311175XIqmSM','./memory'];a6_0x291e=function(){return _0x388e58;};return a6_0x291e();}exports[a6_0x442890(0xc3)]=FlowCreator;
|
package/flow/flow-types.d.ts
CHANGED
|
@@ -58,20 +58,23 @@ declare const StepSchema: z.ZodObject<{
|
|
|
58
58
|
name: z.ZodString;
|
|
59
59
|
isActive: z.ZodBoolean;
|
|
60
60
|
state: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
61
|
-
modelName: z.ZodString
|
|
62
|
-
|
|
61
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
62
|
+
modelParamsName: z.ZodOptional<z.ZodString>;
|
|
63
|
+
modelParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
63
64
|
}, "strip", z.ZodTypeAny, {
|
|
64
65
|
name?: string;
|
|
65
66
|
isActive?: boolean;
|
|
66
67
|
state?: {};
|
|
67
68
|
modelName?: string;
|
|
68
|
-
|
|
69
|
+
modelParamsName?: string;
|
|
70
|
+
modelParams?: Record<string, any>;
|
|
69
71
|
}, {
|
|
70
72
|
name?: string;
|
|
71
73
|
isActive?: boolean;
|
|
72
74
|
state?: {};
|
|
73
75
|
modelName?: string;
|
|
74
|
-
|
|
76
|
+
modelParamsName?: string;
|
|
77
|
+
modelParams?: Record<string, any>;
|
|
75
78
|
}>;
|
|
76
79
|
export type StepType = z.infer<typeof StepSchema>;
|
|
77
80
|
declare const MemorySchema: z.ZodObject<{
|
|
@@ -257,23 +260,25 @@ declare const FlowSchema: z.ZodObject<{
|
|
|
257
260
|
name: z.ZodString;
|
|
258
261
|
isActive: z.ZodBoolean;
|
|
259
262
|
state: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
260
|
-
modelName: z.ZodString
|
|
261
|
-
|
|
263
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
264
|
+
modelParamsName: z.ZodOptional<z.ZodString>;
|
|
265
|
+
modelParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
262
266
|
}, "strip", z.ZodTypeAny, {
|
|
263
267
|
name?: string;
|
|
264
268
|
isActive?: boolean;
|
|
265
269
|
state?: {};
|
|
266
270
|
modelName?: string;
|
|
267
|
-
|
|
271
|
+
modelParamsName?: string;
|
|
272
|
+
modelParams?: Record<string, any>;
|
|
268
273
|
}, {
|
|
269
274
|
name?: string;
|
|
270
275
|
isActive?: boolean;
|
|
271
276
|
state?: {};
|
|
272
277
|
modelName?: string;
|
|
273
|
-
|
|
278
|
+
modelParamsName?: string;
|
|
279
|
+
modelParams?: Record<string, any>;
|
|
274
280
|
}>, "many">;
|
|
275
281
|
context: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
276
|
-
temperature: z.ZodNumber;
|
|
277
282
|
sequence: z.ZodArray<z.ZodString, "many">;
|
|
278
283
|
}, "strip", z.ZodTypeAny, {
|
|
279
284
|
name?: string;
|
|
@@ -300,9 +305,9 @@ declare const FlowSchema: z.ZodObject<{
|
|
|
300
305
|
isActive?: boolean;
|
|
301
306
|
state?: {};
|
|
302
307
|
modelName?: string;
|
|
303
|
-
|
|
308
|
+
modelParamsName?: string;
|
|
309
|
+
modelParams?: Record<string, any>;
|
|
304
310
|
}[];
|
|
305
|
-
temperature?: number;
|
|
306
311
|
context?: {};
|
|
307
312
|
sequence?: string[];
|
|
308
313
|
}, {
|
|
@@ -330,9 +335,9 @@ declare const FlowSchema: z.ZodObject<{
|
|
|
330
335
|
isActive?: boolean;
|
|
331
336
|
state?: {};
|
|
332
337
|
modelName?: string;
|
|
333
|
-
|
|
338
|
+
modelParamsName?: string;
|
|
339
|
+
modelParams?: Record<string, any>;
|
|
334
340
|
}[];
|
|
335
|
-
temperature?: number;
|
|
336
341
|
context?: {};
|
|
337
342
|
sequence?: string[];
|
|
338
343
|
}>;
|
|
@@ -438,23 +443,25 @@ declare const _SessionSchema: z.ZodObject<{
|
|
|
438
443
|
name: z.ZodString;
|
|
439
444
|
isActive: z.ZodBoolean;
|
|
440
445
|
state: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
441
|
-
modelName: z.ZodString
|
|
442
|
-
|
|
446
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
447
|
+
modelParamsName: z.ZodOptional<z.ZodString>;
|
|
448
|
+
modelParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
443
449
|
}, "strip", z.ZodTypeAny, {
|
|
444
450
|
name?: string;
|
|
445
451
|
isActive?: boolean;
|
|
446
452
|
state?: {};
|
|
447
453
|
modelName?: string;
|
|
448
|
-
|
|
454
|
+
modelParamsName?: string;
|
|
455
|
+
modelParams?: Record<string, any>;
|
|
449
456
|
}, {
|
|
450
457
|
name?: string;
|
|
451
458
|
isActive?: boolean;
|
|
452
459
|
state?: {};
|
|
453
460
|
modelName?: string;
|
|
454
|
-
|
|
461
|
+
modelParamsName?: string;
|
|
462
|
+
modelParams?: Record<string, any>;
|
|
455
463
|
}>, "many">;
|
|
456
464
|
context: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
457
|
-
temperature: z.ZodNumber;
|
|
458
465
|
sequence: z.ZodArray<z.ZodString, "many">;
|
|
459
466
|
}, "strip", z.ZodTypeAny, {
|
|
460
467
|
name?: string;
|
|
@@ -481,9 +488,9 @@ declare const _SessionSchema: z.ZodObject<{
|
|
|
481
488
|
isActive?: boolean;
|
|
482
489
|
state?: {};
|
|
483
490
|
modelName?: string;
|
|
484
|
-
|
|
491
|
+
modelParamsName?: string;
|
|
492
|
+
modelParams?: Record<string, any>;
|
|
485
493
|
}[];
|
|
486
|
-
temperature?: number;
|
|
487
494
|
context?: {};
|
|
488
495
|
sequence?: string[];
|
|
489
496
|
}, {
|
|
@@ -511,9 +518,9 @@ declare const _SessionSchema: z.ZodObject<{
|
|
|
511
518
|
isActive?: boolean;
|
|
512
519
|
state?: {};
|
|
513
520
|
modelName?: string;
|
|
514
|
-
|
|
521
|
+
modelParamsName?: string;
|
|
522
|
+
modelParams?: Record<string, any>;
|
|
515
523
|
}[];
|
|
516
|
-
temperature?: number;
|
|
517
524
|
context?: {};
|
|
518
525
|
sequence?: string[];
|
|
519
526
|
}>, "many">;
|
|
@@ -568,9 +575,9 @@ declare const _SessionSchema: z.ZodObject<{
|
|
|
568
575
|
isActive?: boolean;
|
|
569
576
|
state?: {};
|
|
570
577
|
modelName?: string;
|
|
571
|
-
|
|
578
|
+
modelParamsName?: string;
|
|
579
|
+
modelParams?: Record<string, any>;
|
|
572
580
|
}[];
|
|
573
|
-
temperature?: number;
|
|
574
581
|
context?: {};
|
|
575
582
|
sequence?: string[];
|
|
576
583
|
}[];
|
|
@@ -616,9 +623,9 @@ declare const _SessionSchema: z.ZodObject<{
|
|
|
616
623
|
isActive?: boolean;
|
|
617
624
|
state?: {};
|
|
618
625
|
modelName?: string;
|
|
619
|
-
|
|
626
|
+
modelParamsName?: string;
|
|
627
|
+
modelParams?: Record<string, any>;
|
|
620
628
|
}[];
|
|
621
|
-
temperature?: number;
|
|
622
629
|
context?: {};
|
|
623
630
|
sequence?: string[];
|
|
624
631
|
}[];
|
package/flow/flow-types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a7_0x377c(){const _0x3a90a5=['4DFhfDz','enum','701286zhearC','object','array','boolean','nonempty','any','number','hfKrD','record','success','bDdaJ','wGahK','369FZLBir','HttpContentType','RunResponseDto','search','ToolStatus','__esModule','ZrEbE','apply','error','optional','49064UGGDEU','(((.+)+)+)+$','zod','human','299831gGPHJx','toString','5454DDTORG','777308fMWGrs','1240aOhurl','system','4491110aFmFza','string','540400cYUYPs','date','defineProperty'];a7_0x377c=function(){return _0x3a90a5;};return a7_0x377c();}const a7_0x5a6eae=a7_0x23d9;function a7_0x23d9(_0x4626df,_0x2179ee){const _0x2cc596=a7_0x377c();return a7_0x23d9=function(_0x107165,_0xe2da0a){_0x107165=_0x107165-0x93;let _0x377c83=_0x2cc596[_0x107165];return _0x377c83;},a7_0x23d9(_0x4626df,_0x2179ee);}(function(_0x4ee1c3,_0x3acd5c){const _0x1cb918=a7_0x23d9,_0x4c93f1=_0x4ee1c3();while(!![]){try{const _0x1c81af=parseInt(_0x1cb918(0xa1))/0x1+-parseInt(_0x1cb918(0xa4))/0x2*(parseInt(_0x1cb918(0xa6))/0x3)+-parseInt(_0x1cb918(0x9c))/0x4+parseInt(_0x1cb918(0x9d))/0x5*(parseInt(_0x1cb918(0x9b))/0x6)+parseInt(_0x1cb918(0x99))/0x7+-parseInt(_0x1cb918(0x95))/0x8*(parseInt(_0x1cb918(0xb2))/0x9)+parseInt(_0x1cb918(0x9f))/0xa;if(_0x1c81af===_0x3acd5c)break;else _0x4c93f1['push'](_0x4c93f1['shift']());}catch(_0x125a5e){_0x4c93f1['push'](_0x4c93f1['shift']());}}}(a7_0x377c,0x54198));Object[a7_0x5a6eae(0xa3)](exports,a7_0x5a6eae(0xb7),{'value':!![]}),exports[a7_0x5a6eae(0xb4)]=exports['ToolStatus']=void 0x0;const zod_1=require(a7_0x5a6eae(0x97)),zod_nestjs_1=require('@anatine/zod-nestjs'),content_type_1=require('./content-type'),RoleEnum=zod_1['z'][a7_0x5a6eae(0xa5)]([a7_0x5a6eae(0x9e),a7_0x5a6eae(0x98),'ai','tool']),ToolStatusEnum=zod_1['z'][a7_0x5a6eae(0xa5)]([a7_0x5a6eae(0xaf),a7_0x5a6eae(0x93)]),AIToolMessageSchema=zod_1['z']['object']({'name':zod_1['z'][a7_0x5a6eae(0xa0)](),'args':zod_1['z'][a7_0x5a6eae(0xa7)]({}),'id':zod_1['z'][a7_0x5a6eae(0xa0)]()}),ChatMessageSchema=zod_1['z']['object']({'id':zod_1['z']['string'](),'type':RoleEnum,'content':zod_1['z'][a7_0x5a6eae(0xa0)](),'timestamp':zod_1['z'][a7_0x5a6eae(0xa2)](),'tool_call_id':zod_1['z'][a7_0x5a6eae(0xa0)]()['optional'](),'name':zod_1['z'][a7_0x5a6eae(0xa0)](),'status':ToolStatusEnum['optional'](),'tool_calls':zod_1['z'][a7_0x5a6eae(0xa8)](AIToolMessageSchema)[a7_0x5a6eae(0x94)](),'additional_kwargs':zod_1['z']['record'](zod_1['z'][a7_0x5a6eae(0xab)]())['optional']()}),StepSchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'name':zod_1['z'][a7_0x5a6eae(0xa0)](),'isActive':zod_1['z']['boolean'](),'state':zod_1['z']['object']({}),'modelName':zod_1['z'][a7_0x5a6eae(0xa0)]()[a7_0x5a6eae(0x94)](),'modelParamsName':zod_1['z'][a7_0x5a6eae(0xa0)]()[a7_0x5a6eae(0x94)](),'modelParams':zod_1['z'][a7_0x5a6eae(0xae)](zod_1['z'][a7_0x5a6eae(0xab)]())[a7_0x5a6eae(0x94)]()}),MemorySchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'nameSpace':zod_1['z'][a7_0x5a6eae(0xa0)](),'history':zod_1['z']['array'](ChatMessageSchema)}),FlowSchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'name':zod_1['z']['string'](),'memory':zod_1['z'][a7_0x5a6eae(0xa8)](MemorySchema),'steps':zod_1['z'][a7_0x5a6eae(0xa8)](StepSchema),'context':zod_1['z'][a7_0x5a6eae(0xa7)]({}),'sequence':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z'][a7_0x5a6eae(0xa0)]())}),RunStatusSchema=zod_1['z']['enum'](['completed','aborted','running']),_SessionSchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'id':zod_1['z'][a7_0x5a6eae(0xa0)]()[a7_0x5a6eae(0xaa)](),'createdOn':zod_1['z'][a7_0x5a6eae(0xa2)](),'saveOn':zod_1['z'][a7_0x5a6eae(0xa2)](),'runStatus':RunStatusSchema,'version':zod_1['z'][a7_0x5a6eae(0xac)](),'expireAfter':zod_1['z'][a7_0x5a6eae(0xac)](),'flows':zod_1['z'][a7_0x5a6eae(0xa8)](FlowSchema),'log':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z'][a7_0x5a6eae(0xa7)]({})),'error':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z'][a7_0x5a6eae(0xa7)]({})),'warn':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z'][a7_0x5a6eae(0xa7)]({})),'debug':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z'][a7_0x5a6eae(0xa7)]({})),'verbose':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z']['object']({})),'tokens':zod_1['z'][a7_0x5a6eae(0xa7)]({'inputTokens':zod_1['z'][a7_0x5a6eae(0xac)](),'outputTokens':zod_1['z'][a7_0x5a6eae(0xac)](),'totalTokens':zod_1['z'][a7_0x5a6eae(0xac)]()})});var ToolStatus;(function(_0x777ff3){const _0x187b2c=a7_0x5a6eae,_0x1887f8={'bDdaJ':_0x187b2c(0x96),'wGahK':function(_0x3ee65a,_0x2c2c4b,_0x30cdca){return _0x3ee65a(_0x2c2c4b,_0x30cdca);},'hfKrD':function(_0x17a69d){return _0x17a69d();},'ZrEbE':_0x187b2c(0x93)},_0x47016c=(function(){let _0x13cd42=!![];return function(_0x4c16b9,_0x208abd){const _0xb42754=_0x13cd42?function(){const _0xcd0fe9=a7_0x23d9;if(_0x208abd){const _0x50d6df=_0x208abd[_0xcd0fe9(0xb9)](_0x4c16b9,arguments);return _0x208abd=null,_0x50d6df;}}:function(){};return _0x13cd42=![],_0xb42754;};}()),_0x466bd3=_0x1887f8[_0x187b2c(0xb1)](_0x47016c,this,function(){const _0x49b8cf=_0x187b2c;return _0x466bd3['toString']()[_0x49b8cf(0xb5)](_0x1887f8[_0x49b8cf(0xb0)])[_0x49b8cf(0x9a)]()['constructor'](_0x466bd3)[_0x49b8cf(0xb5)](_0x1887f8[_0x49b8cf(0xb0)]);});_0x1887f8[_0x187b2c(0xad)](_0x466bd3),_0x777ff3[_0x187b2c(0xaf)]=_0x187b2c(0xaf),_0x777ff3[_0x187b2c(0x93)]=_0x1887f8[_0x187b2c(0xb8)];}(ToolStatus||(exports[a7_0x5a6eae(0xb6)]=ToolStatus={})));const _ToolSchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'name':zod_1['z'][a7_0x5a6eae(0xa0)](),'description':zod_1['z'][a7_0x5a6eae(0xa0)](),'schema':zod_1['z'][a7_0x5a6eae(0xa7)]({})}),RunResponseSchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'success':zod_1['z'][a7_0x5a6eae(0xa9)](),'completed':zod_1['z']['boolean'](),'message':zod_1['z']['string'](),'session':zod_1['z'][a7_0x5a6eae(0xa0)](),'contentType':zod_1['z']['nativeEnum'](content_type_1[a7_0x5a6eae(0xb3)])});class RunResponseDto extends(0x0,zod_nestjs_1['createZodDto'])(RunResponseSchema){}exports[a7_0x5a6eae(0xb4)]=RunResponseDto;
|
package/flow/flow.d.ts
CHANGED
|
@@ -4,19 +4,28 @@ import { MessageTypes } from '../utils/message-util';
|
|
|
4
4
|
import { FlowEngine } from '../services/flow-engine';
|
|
5
5
|
import { ClassType, RunResponseType, SessionType, ToolType } from './flow-types';
|
|
6
6
|
import { Step } from './step';
|
|
7
|
+
import { ModelOverride } from '../models/model-registry';
|
|
7
8
|
export declare abstract class Flow {
|
|
8
9
|
protected stepMap: Map<string, Step>;
|
|
9
10
|
protected tools: Map<string, DynamicStructuredTool>;
|
|
10
11
|
protected name: string;
|
|
12
|
+
protected modelName: string;
|
|
13
|
+
protected modelParams: Record<string, any>;
|
|
14
|
+
protected modelParamsName?: string;
|
|
11
15
|
protected sessionDoc: SessionType;
|
|
12
16
|
private flowDoc;
|
|
13
17
|
private memory;
|
|
14
18
|
private flowEngine;
|
|
15
19
|
private context;
|
|
16
|
-
protected temp: number;
|
|
17
20
|
protected constructor(flowClass: ClassType);
|
|
18
21
|
init(): Promise<void>;
|
|
19
22
|
getFlowEngine(): FlowEngine;
|
|
23
|
+
useModel<Name extends string>(modelName: Name, params?: ModelOverride<Name>): this;
|
|
24
|
+
getModel(): string;
|
|
25
|
+
useModelParams<Name extends string>(modelName: Name, params: ModelOverride<Name>): this;
|
|
26
|
+
useModelParams<Name extends string>(params: ModelOverride<Name>): this;
|
|
27
|
+
getModelParams(): Record<string, any>;
|
|
28
|
+
getModelParamsModelName(): string | undefined;
|
|
20
29
|
bootstrap(sessionId: string, flowEngine: FlowEngine): Promise<void>;
|
|
21
30
|
private assignFlowDoc;
|
|
22
31
|
tallyToken(usageMetadata: any): void;
|
|
@@ -50,6 +59,4 @@ export declare abstract class Flow {
|
|
|
50
59
|
getStepState(stepClass: ClassType, key?: string): object;
|
|
51
60
|
getStepStateAs<T>(stepClass: ClassType, key?: string): T;
|
|
52
61
|
saveStepState(stepClass: ClassType, json: object): void;
|
|
53
|
-
get temperature(): number;
|
|
54
|
-
set temperature(temperature: number);
|
|
55
62
|
}
|