@picoflow/core 1.0.7 → 1.0.10
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 -4
- 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.js +1 -1
- 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.js +1 -1
- package/package.json +6 -2
- package/prompt/flow-prompt.js +1 -1
- package/prompt/prompt-util.js +1 -1
- package/services/flow-engine.d.ts +2 -1
- 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.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
|
@@ -29,10 +29,6 @@ We will be happy to provide a short term license key for evaluation purposes.
|
|
|
29
29
|
|
|
30
30
|
For more detailed documentation, please refer to the [doc](./doc) folder.
|
|
31
31
|
|
|
32
|
-
## Keywords
|
|
33
|
-
|
|
34
|
-
llm, langchain, flow, ai, chatbot , agent, purposeful, conversational
|
|
35
|
-
|
|
36
32
|
## License
|
|
37
33
|
|
|
38
34
|
Proprietarily Licensed. Copyright (c) 2026 picoflow.io
|
package/clients/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3a4859=a0_0x337a;(function(_0x4c505f,_0x21fc62){const _0x150c75=a0_0x337a,_0x12bfd5=_0x4c505f();while(!![]){try{const _0x4346a1=parseInt(_0x150c75(0xe3))/0x1+parseInt(_0x150c75(0x126))/0x2*(parseInt(_0x150c75(0x110))/0x3)+parseInt(_0x150c75(0xe9))/0x4+-parseInt(_0x150c75(0x11f))/0x5*(parseInt(_0x150c75(0x10a))/0x6)+parseInt(_0x150c75(0x114))/0x7+parseInt(_0x150c75(0x10e))/0x8+parseInt(_0x150c75(0x10d))/0x9*(-parseInt(_0x150c75(0x111))/0xa);if(_0x4346a1===_0x21fc62)break;else _0x12bfd5['push'](_0x12bfd5['shift']());}catch(_0x5c852f){_0x12bfd5['push'](_0x12bfd5['shift']());}}}(a0_0x1478,0xd9389));const a0_0x33f1a9=(function(){const _0x42188e=a0_0x337a,_0x5a6604={'xtxRv':function(_0x3afd53,_0x59c1a9){return _0x3afd53===_0x59c1a9;},'jVHwJ':_0x42188e(0x107)};let _0x5e19bf=!![];return function(_0x378edc,_0x368044){const _0xd14118=_0x5e19bf?function(){const _0x4bcb51=a0_0x337a;if(_0x5a6604[_0x4bcb51(0xe4)](_0x5a6604[_0x4bcb51(0xf6)],'sloaW')){if(_0x35527b){const _0x519535=_0x4de03a[_0x4bcb51(0xfe)](_0x39a5d9,arguments);return _0x54c8a5=null,_0x519535;}}else{if(_0x368044){const _0xe2fbd8=_0x368044[_0x4bcb51(0xfe)](_0x378edc,arguments);return _0x368044=null,_0xe2fbd8;}}}:function(){};return _0x5e19bf=![],_0xd14118;};}()),a0_0x37cb63=a0_0x33f1a9(this,function(){const _0x579a74=a0_0x337a,_0x12809e={'ZrOpa':_0x579a74(0x119)};return a0_0x37cb63[_0x579a74(0x11b)]()['search'](_0x12809e[_0x579a74(0x117)])[_0x579a74(0x11b)]()[_0x579a74(0xfa)](a0_0x37cb63)[_0x579a74(0xfc)](_0x12809e[_0x579a74(0x117)]);});a0_0x37cb63();'use strict';var __importDefault=this&&this[a0_0x3a4859(0x113)]||function(_0x335135){const _0x4e8b16=a0_0x3a4859;return _0x335135&&_0x335135[_0x4e8b16(0xe8)]?_0x335135:{'default':_0x335135};};Object[a0_0x3a4859(0xed)](exports,a0_0x3a4859(0xe8),{'value':!![]}),exports[a0_0x3a4859(0xf3)]=void 0x0;const common_1=require(a0_0x3a4859(0xe5)),axios_1=__importDefault(require(a0_0x3a4859(0x10c)));function a0_0x337a(_0xd7065a,_0x22ba17){const _0x375249=a0_0x1478();return a0_0x337a=function(_0x37cb63,_0x33f1a9){_0x37cb63=_0x37cb63-0xe3;let _0x1478c7=_0x375249[_0x37cb63];return _0x1478c7;},a0_0x337a(_0xd7065a,_0x22ba17);}class HttpClient{constructor(_0x4bd3b6,_0x4f1126={},_0x420130){const _0xd6a68c=a0_0x3a4859,_0x137cf1={'yEScL':'Yzkpt','QrnBK':function(_0x390fcd,_0x394786){return _0x390fcd===_0x394786;},'sSuZZ':_0xd6a68c(0x122)};this[_0xd6a68c(0x104)]=axios_1[_0xd6a68c(0xf5)]['create']({'baseURL':_0x4bd3b6,'timeout':_0x420130,'headers':_0x4f1126}),this[_0xd6a68c(0x104)][_0xd6a68c(0xf4)][_0xd6a68c(0xea)][_0xd6a68c(0x11a)](_0x5c7526=>{const _0x1b6b50=_0xd6a68c;return _0x137cf1[_0x1b6b50(0x115)]===_0x1b6b50(0x121)?this[_0x1b6b50(0xf1)](this[_0x1b6b50(0x104)]['put'],_0x1e7279,_0x13b108,_0x3adb78):_0x5c7526;},_0xd45a61=>Promise[_0xd6a68c(0x112)](_0xd45a61)),this['client']['interceptors'][_0xd6a68c(0x100)][_0xd6a68c(0x11a)](_0x33e5ba=>_0x33e5ba[_0xd6a68c(0x10b)],_0xbfef68=>{const _0x302507=_0xd6a68c;if(_0x137cf1[_0x302507(0x109)]('MHPfM',_0x137cf1[_0x302507(0x103)])){const _0x4ae961=_0xbfef68['response']?.[_0x302507(0x10b)]?.['message']||_0xbfef68[_0x302507(0x123)];return Promise[_0x302507(0x112)](new Error(_0x4ae961));}else{const _0x4b1ed1=_0x539e7a?function(){if(_0x17fe2c){const _0x2e1836=_0x4bb5ac['apply'](_0x5f5dec,arguments);return _0x2fae32=null,_0x2e1836;}}:function(){};return _0x423905=![],_0x4b1ed1;}});}async[a0_0x3a4859(0x11c)](_0x47c2eb,_0x3531a8={},_0x13cb23){const _0x35c19d=a0_0x3a4859,_0x1b29d6={'MvTTl':function(_0x5ad1c8,_0x3a9861){return _0x5ad1c8>=_0x3a9861;},'VvxKG':function(_0x4cc84d,_0x3d657d){return _0x4cc84d!==_0x3d657d;},'ddeVo':_0x35c19d(0x120),'YUWfa':function(_0x2f11a2,_0x5717ee){return _0x2f11a2===_0x5717ee;},'SjMFh':'MZIJv','cgNjK':_0x35c19d(0xef)};let _0x34cc6d=common_1[_0x35c19d(0xeb)]['OK'];const _0x257fe8=_0x13cb23??{};_0x257fe8[_0x35c19d(0xfb)]=_0x1ac836=>{const _0x2e62bb=_0x35c19d;return _0x34cc6d=_0x1ac836,_0x1b29d6['MvTTl'](_0x1ac836,common_1[_0x2e62bb(0xeb)]['OK'])&&_0x1ac836<0x12c;};try{if(_0x1b29d6[_0x35c19d(0x116)]('CqBta',_0x1b29d6['ddeVo'])){const _0x53e6d1=await this[_0x35c19d(0x104)]['get'](_0x47c2eb,{'params':_0x3531a8,..._0x257fe8});return _0x53e6d1;}else this[_0x35c19d(0x104)][_0x35c19d(0x118)][_0x35c19d(0xff)]['common'][_0x340998]=_0x29db91;}catch(_0xe014b0){if(_0x1b29d6[_0x35c19d(0xe6)](_0x1b29d6[_0x35c19d(0x125)],_0x1b29d6[_0x35c19d(0xf9)]))return _0x19eb28&&_0x26bc8f['__esModule']?_0x5d877c:{'default':_0x1e938f};else{_0xe014b0[_0x35c19d(0xf8)]=_0x34cc6d;throw _0xe014b0;}}}async[a0_0x3a4859(0x106)](_0x1610dc,_0x1b52ce={},_0x355619){const _0x4a6a5b=a0_0x3a4859;return this['setup'](this[_0x4a6a5b(0x104)][_0x4a6a5b(0x106)],_0x1610dc,_0x1b52ce,_0x355619);}async['put'](_0x164b8b,_0x1ca5d8={},_0x1da464){const _0x43c729=a0_0x3a4859;return this[_0x43c729(0xf1)](this[_0x43c729(0x104)][_0x43c729(0xf7)],_0x164b8b,_0x1ca5d8,_0x1da464);}async[a0_0x3a4859(0xf2)](_0x957f31,_0x2e52cd){const _0xf5acfa=a0_0x3a4859;let _0x270839=common_1[_0xf5acfa(0xeb)]['OK'];const _0x8ea5db=_0x2e52cd??{};_0x8ea5db[_0xf5acfa(0xfb)]=_0x25ccd2=>{const _0x251b84=_0xf5acfa;return _0x270839=_0x25ccd2,_0x25ccd2>=common_1[_0x251b84(0xeb)]['OK']&&_0x25ccd2<0x12c;};try{const _0x738fca=await this['client'][_0xf5acfa(0xf2)](_0x957f31,{..._0x2e52cd});return _0x738fca;}catch(_0x5423d6){_0x5423d6[_0xf5acfa(0xf8)]=_0x270839;throw _0x5423d6;}}async[a0_0x3a4859(0x108)](_0x52678c,_0x5bc8f7={},_0x3d56d5){const _0x289320=a0_0x3a4859;return this[_0x289320(0xf1)](this['client'][_0x289320(0x108)],_0x52678c,_0x5bc8f7,_0x3d56d5);}[a0_0x3a4859(0x124)](_0x5e6b6a,_0x51466b){const _0x5c92bb=a0_0x3a4859;this[_0x5c92bb(0x104)][_0x5c92bb(0x118)]['headers'][_0x5c92bb(0xf0)][_0x5e6b6a]=_0x51466b;}[a0_0x3a4859(0xec)](_0x2669eb){const _0x28d5e5=a0_0x3a4859;delete this[_0x28d5e5(0x104)][_0x28d5e5(0x118)]['headers'][_0x28d5e5(0xf0)][_0x2669eb];}async[a0_0x3a4859(0xf1)](_0x32330e,_0x2b0ccf,_0x5b942b={},_0x429f90){const _0x59c48f=a0_0x3a4859,_0x487ba2={'lfKKl':'hzISU','tqQTO':'ASIPc','NNmtV':function(_0x55a845,_0x4e9e82){return _0x55a845??_0x4e9e82;},'MOFwq':function(_0xb83564,_0x286c68,_0x4625cd,_0x33f0c2){return _0xb83564(_0x286c68,_0x4625cd,_0x33f0c2);},'JcVNv':function(_0x84c24c,_0x4297f3){return _0x84c24c===_0x4297f3;},'TvvOb':_0x59c48f(0x101),'lsTnu':_0x59c48f(0x102)};let _0xd013e4=common_1[_0x59c48f(0xeb)]['OK'];const _0x3f065c=_0x487ba2[_0x59c48f(0x10f)](_0x429f90,{});_0x3f065c[_0x59c48f(0xfb)]=_0x2566ef=>{const _0x59e26e=_0x59c48f;if(_0x487ba2[_0x59e26e(0x11d)]===_0x487ba2[_0x59e26e(0x11e)])delete this[_0x59e26e(0x104)][_0x59e26e(0x118)]['headers'][_0x59e26e(0xf0)][_0x2d7e6d];else return _0xd013e4=_0x2566ef,_0x2566ef>=common_1[_0x59e26e(0xeb)]['OK']&&_0x2566ef<0x12c;};try{const _0x6c99dc=await _0x487ba2[_0x59c48f(0xfd)](_0x32330e,_0x2b0ccf,_0x5b942b,{..._0x3f065c});return _0x6c99dc;}catch(_0x204246){if(_0x487ba2[_0x59c48f(0xee)](_0x487ba2[_0x59c48f(0xe7)],_0x487ba2[_0x59c48f(0x105)])){const _0x916e34=_0x2defe0['apply'](_0x58fb8d,arguments);return _0x52727e=null,_0x916e34;}else{_0x204246[_0x59c48f(0xf8)]=_0xd013e4;throw _0x204246;}}}}exports[a0_0x3a4859(0xf3)]=HttpClient;function a0_0x1478(){const _0x253bde=['HyICf','MHPfM','message','setHeader','SjMFh','98xdDOht','1712928QIBqyB','xtxRv','@nestjs/common','YUWfa','TvvOb','__esModule','976932bFAQDA','request','HttpStatus','removeHeader','defineProperty','JcVNv','wvdyX','common','setup','delete','HttpClient','interceptors','default','jVHwJ','put','statusCode','cgNjK','constructor','validateStatus','search','MOFwq','apply','headers','response','UGTkU','fyZtH','sSuZZ','client','lsTnu','post','kdkfJ','patch','QrnBK','3582qVaSQM','data','axios','45tPXaOr','4145616CvCzoq','NNmtV','1233GrBWoj','5944210vpWrxt','reject','__importDefault','11440751jmHVdS','yEScL','VvxKG','ZrOpa','defaults','(((.+)+)+)+$','use','toString','get','lfKKl','tqQTO','2245wqklow','oTFfz'];a0_0x1478=function(){return _0x253bde;};return a0_0x1478();}
|
package/clients/self-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x194df6=a1_0x5ac4;(function(_0x55ac68,_0x9c3b6){const _0x4c0fbe=a1_0x5ac4,_0x10e696=_0x55ac68();while(!![]){try{const _0x1f3926=parseInt(_0x4c0fbe(0xe9))/0x1*(parseInt(_0x4c0fbe(0xe1))/0x2)+parseInt(_0x4c0fbe(0xef))/0x3*(-parseInt(_0x4c0fbe(0xde))/0x4)+parseInt(_0x4c0fbe(0xe0))/0x5+-parseInt(_0x4c0fbe(0xe3))/0x6+-parseInt(_0x4c0fbe(0xeb))/0x7*(-parseInt(_0x4c0fbe(0xda))/0x8)+parseInt(_0x4c0fbe(0xed))/0x9*(-parseInt(_0x4c0fbe(0xe8))/0xa)+-parseInt(_0x4c0fbe(0xf0))/0xb*(parseInt(_0x4c0fbe(0xe7))/0xc);if(_0x1f3926===_0x9c3b6)break;else _0x10e696['push'](_0x10e696['shift']());}catch(_0x51af48){_0x10e696['push'](_0x10e696['shift']());}}}(a1_0x2639,0xc4291));const a1_0xfa7e0c=(function(){let _0x375803=!![];return function(_0xd695af,_0x2e71b9){const _0x5a6b6b=_0x375803?function(){const _0x36fcab=a1_0x5ac4;if(_0x2e71b9){const _0x3bd196=_0x2e71b9[_0x36fcab(0xf2)](_0xd695af,arguments);return _0x2e71b9=null,_0x3bd196;}}:function(){};return _0x375803=![],_0x5a6b6b;};}()),a1_0xd67f5f=a1_0xfa7e0c(this,function(){const _0x53e9da=a1_0x5ac4,_0x594afa={'jcGZk':'(((.+)+)+)+$'};return a1_0xd67f5f[_0x53e9da(0xdb)]()[_0x53e9da(0xec)](_0x594afa[_0x53e9da(0xe5)])[_0x53e9da(0xdb)]()[_0x53e9da(0xea)](a1_0xd67f5f)['search'](_0x594afa[_0x53e9da(0xe5)]);});a1_0xd67f5f();function a1_0x5ac4(_0x167f4d,_0x5ed975){const _0x832c4e=a1_0x2639();return a1_0x5ac4=function(_0xd67f5f,_0xfa7e0c){_0xd67f5f=_0xd67f5f-0xda;let _0x26397c=_0x832c4e[_0xd67f5f];return _0x26397c;},a1_0x5ac4(_0x167f4d,_0x5ed975);}function a1_0x2639(){const _0x2ee8b9=['938439HjYoCu','./http-client','3dbIaEd','60654KZBsAB','__esModule','apply','1736VAkUai','toString','HttpClient','defineProperty','1025812dZQbCJ','selfURL','3803150CrFCxm','2514cIZgCe','../configs/core-config','2993694unvVwe','SelfClient','jcGZk','CoreConfig','564iUTfDp','10FdFaiA','307YAXElb','constructor','25025prjBUr','search'];a1_0x2639=function(){return _0x2ee8b9;};return a1_0x2639();}'use strict';Object[a1_0x194df6(0xdd)](exports,a1_0x194df6(0xf1),{'value':!![]}),exports[a1_0x194df6(0xe4)]=void 0x0;const core_config_1=require(a1_0x194df6(0xe2)),http_client_1=require(a1_0x194df6(0xee));class SelfClient extends http_client_1[a1_0x194df6(0xdc)]{constructor(_0x5885ae={},_0x19a79c){const _0xf49fc2=a1_0x194df6;super(core_config_1[_0xf49fc2(0xe6)][_0xf49fc2(0xdf)],_0x5885ae,_0x19a79c);}}exports[a1_0x194df6(0xe4)]=SelfClient;
|
package/configs/core-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x1f0dcc=a2_0xe7be;(function(_0x30ee9c,_0x26bf2f){const _0x194755=a2_0xe7be,_0x2341c2=_0x30ee9c();while(!![]){try{const _0x4ed7e4=parseInt(_0x194755(0x1ea))/0x1+-parseInt(_0x194755(0x1f9))/0x2+parseInt(_0x194755(0x1e5))/0x3+-parseInt(_0x194755(0x1ed))/0x4*(-parseInt(_0x194755(0x20f))/0x5)+-parseInt(_0x194755(0x209))/0x6+-parseInt(_0x194755(0x206))/0x7+-parseInt(_0x194755(0x1fe))/0x8;if(_0x4ed7e4===_0x26bf2f)break;else _0x2341c2['push'](_0x2341c2['shift']());}catch(_0x120699){_0x2341c2['push'](_0x2341c2['shift']());}}}(a2_0x4fe7,0xa4faa));const a2_0x1cd15d=(function(){const _0x317988={'xmPEb':function(_0x5366f2,_0x2969b6){return _0x5366f2===_0x2969b6;}};let _0x10259f=!![];return function(_0x56ab2b,_0x215343){const _0x52766d={'OfwNt':function(_0x2c1935,_0x2bd634){return _0x317988['xmPEb'](_0x2c1935,_0x2bd634);},'BfxWR':'HvxlE'},_0x5342c6=_0x10259f?function(){const _0x1e3123=a2_0xe7be;if(_0x215343){if(_0x52766d[_0x1e3123(0x217)](_0x52766d[_0x1e3123(0x1f1)],_0x52766d[_0x1e3123(0x1f1)])){const _0x270224=_0x215343[_0x1e3123(0x1f3)](_0x56ab2b,arguments);return _0x215343=null,_0x270224;}else return!this[_0x1e3123(0x1f7)]&&(this['instance']=new _0x1b4f49(_0x50a1e3)),this[_0x1e3123(0x1f7)];}}:function(){};return _0x10259f=![],_0x5342c6;};}()),a2_0x57701a=a2_0x1cd15d(this,function(){const _0x3b7d4a=a2_0xe7be,_0x19d425={'AjRTV':_0x3b7d4a(0x1f5)};return a2_0x57701a[_0x3b7d4a(0x1de)]()[_0x3b7d4a(0x1f2)](_0x19d425[_0x3b7d4a(0x20d)])[_0x3b7d4a(0x1de)]()[_0x3b7d4a(0x1dc)](a2_0x57701a)[_0x3b7d4a(0x1f2)](_0x3b7d4a(0x1f5));});a2_0x57701a();'use strict';function a2_0x4fe7(){const _0x4e3418=['OPENAI_KEY','OfwNt','LLM_TEMPERATURE','trim','FJruX','constructor','defineProperty','toString','xGDAL','SxyWO','../utils/environ','split','documentDB','CoreConfig','2482938dIbFVE','RcUbr','LLM_RETRY','PkBap','zTpIl','1141321vzxsmo','getOrThrow','ltPNU','5329124vxWPsW','cosmoDbId','get','nDmNR','BfxWR','search','apply','MONGODB_COLLECTION','(((.+)+)+)+$','selfURL','instance','ANTHROPIC_KEY','2181090bSsLld','COSMODB_URL','wqCWZ','NlmhQ','OpenAIKey','4317208qhKYcI','sessionExpiration','llmRetry','MONGODB_NAME','cosmoDbKey','AhQPe','setup','ILkXY','3584091QInfTG','xUxZY','GEMINI_KEY','2899710CeJfAn','mongoURL','agMms','DOCUMENT_DB','AjRTV','GeminiKey','5Mgrvzq','GetAs','MONGO','picoKey','mciua','13|9|3|8|7|15|5|0|4|1|10|11|14|2|12|6','cosmoDbUrl'];a2_0x4fe7=function(){return _0x4e3418;};return a2_0x4fe7();}Object[a2_0x1f0dcc(0x1dd)](exports,'__esModule',{'value':!![]}),exports['CoreConfig']=void 0x0;const environ_1=require(a2_0x1f0dcc(0x1e1));class CoreConfig{constructor(_0x79066){const _0x20c1c2=a2_0x1f0dcc,_0x19191b={'GViCB':_0x20c1c2(0x214),'ILkXY':_0x20c1c2(0x20c),'ltPNU':_0x20c1c2(0x1fa),'AhQPe':_0x20c1c2(0x1f4),'NlmhQ':'PICOFLOW_KEY','wHQEh':'COSMODB_KEY','zTpIl':_0x20c1c2(0x1f8),'wqCWZ':'SESSION_EXPIRATION','tSPHr':_0x20c1c2(0x208),'FJruX':'SELF_URL','xUxZY':'COSMODB_ID','mciua':'COSMODB_SESSION_ID','RcUbr':'MONGODB_URL','PkBap':_0x20c1c2(0x1e7),'SxyWO':_0x20c1c2(0x201),'EtthD':_0x20c1c2(0x216)},_0x41da01=_0x19191b['GViCB'][_0x20c1c2(0x1e2)]('|');let _0x400a69=0x0;while(!![]){switch(_0x41da01[_0x400a69++]){case'0':CoreConfig[_0x20c1c2(0x1e3)]=_0x79066[_0x20c1c2(0x1ef)](_0x19191b[_0x20c1c2(0x205)],_0x20c1c2(0x211));continue;case'1':CoreConfig[_0x20c1c2(0x215)]=_0x79066[_0x20c1c2(0x1ef)](_0x19191b[_0x20c1c2(0x1ec)]);continue;case'2':CoreConfig['mongoCollection']=_0x79066[_0x20c1c2(0x1eb)](_0x19191b[_0x20c1c2(0x203)]);continue;case'3':CoreConfig[_0x20c1c2(0x212)]=_0x79066[_0x20c1c2(0x1eb)](_0x19191b[_0x20c1c2(0x1fc)])['trim']();continue;case'4':CoreConfig[_0x20c1c2(0x202)]=_0x79066[_0x20c1c2(0x1ef)](_0x19191b['wHQEh']);continue;case'5':CoreConfig['AnthropicKey']=_0x79066[_0x20c1c2(0x1eb)](_0x19191b[_0x20c1c2(0x1e9)])[_0x20c1c2(0x219)]();continue;case'6':CoreConfig[_0x20c1c2(0x1ff)]=(0x0,environ_1[_0x20c1c2(0x210)])(_0x79066[_0x20c1c2(0x1ef)](_0x19191b[_0x20c1c2(0x1fb)],0x258));continue;case'7':CoreConfig[_0x20c1c2(0x20e)]=_0x79066[_0x20c1c2(0x1eb)](_0x19191b['tSPHr'])[_0x20c1c2(0x219)]();continue;case'8':CoreConfig[_0x20c1c2(0x1f6)]=_0x79066['get'](_0x19191b[_0x20c1c2(0x1db)]);continue;case'9':CoreConfig['llmTemperature']=(0x0,environ_1['GetAs'])(_0x79066['get'](_0x20c1c2(0x218),0x0));continue;case'10':CoreConfig[_0x20c1c2(0x1ee)]=_0x79066[_0x20c1c2(0x1ef)](_0x19191b[_0x20c1c2(0x207)]);continue;case'11':CoreConfig['cosmoDbSessionId']=_0x79066[_0x20c1c2(0x1ef)](_0x19191b[_0x20c1c2(0x213)]);continue;case'12':CoreConfig[_0x20c1c2(0x20a)]=_0x79066[_0x20c1c2(0x1eb)](_0x19191b[_0x20c1c2(0x1e6)]);continue;case'13':CoreConfig[_0x20c1c2(0x200)]=(0x0,environ_1[_0x20c1c2(0x210)])(_0x79066[_0x20c1c2(0x1ef)](_0x19191b[_0x20c1c2(0x1e8)],0x3));continue;case'14':CoreConfig['mongoDB']=_0x79066[_0x20c1c2(0x1eb)](_0x19191b[_0x20c1c2(0x1e0)]);continue;case'15':CoreConfig[_0x20c1c2(0x1fd)]=_0x79066[_0x20c1c2(0x1eb)](_0x19191b['EtthD'])[_0x20c1c2(0x219)]();continue;}break;}}static[a2_0x1f0dcc(0x204)](_0xce93d4){const _0x333053=a2_0x1f0dcc,_0x1463f3={'agMms':_0x333053(0x1f5),'xGDAL':_0x333053(0x1f0)};if(!this[_0x333053(0x1f7)]){if(_0x1463f3[_0x333053(0x1df)]!==_0x1463f3[_0x333053(0x1df)])return _0x515b06[_0x333053(0x1de)]()[_0x333053(0x1f2)](riJRrx['agMms'])[_0x333053(0x1de)]()[_0x333053(0x1dc)](_0x4f537b)[_0x333053(0x1f2)](riJRrx[_0x333053(0x20b)]);else this[_0x333053(0x1f7)]=new CoreConfig(_0xce93d4);}return this['instance'];}}function a2_0xe7be(_0x1f0bd8,_0x1ffd31){const _0x417264=a2_0x4fe7();return a2_0xe7be=function(_0x57701a,_0x1cd15d){_0x57701a=_0x57701a-0x1db;let _0x4fe72d=_0x417264[_0x57701a];return _0x4fe72d;},a2_0xe7be(_0x1f0bd8,_0x1ffd31);}exports[a2_0x1f0dcc(0x1e4)]=CoreConfig;
|
package/decorators/stop-tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x215cf6=a3_0x3117;(function(_0x5a6208,_0x294532){const _0x34cf7f=a3_0x3117,_0x46916a=_0x5a6208();while(!![]){try{const _0x45ef45=-parseInt(_0x34cf7f(0x1cc))/0x1+-parseInt(_0x34cf7f(0x1c3))/0x2+parseInt(_0x34cf7f(0x1c0))/0x3*(-parseInt(_0x34cf7f(0x1cb))/0x4)+parseInt(_0x34cf7f(0x1b5))/0x5*(-parseInt(_0x34cf7f(0x1b9))/0x6)+-parseInt(_0x34cf7f(0x1bf))/0x7*(-parseInt(_0x34cf7f(0x1c6))/0x8)+parseInt(_0x34cf7f(0x1b7))/0x9*(parseInt(_0x34cf7f(0x1b4))/0xa)+-parseInt(_0x34cf7f(0x1c8))/0xb*(-parseInt(_0x34cf7f(0x1bb))/0xc);if(_0x45ef45===_0x294532)break;else _0x46916a['push'](_0x46916a['shift']());}catch(_0x3772c9){_0x46916a['push'](_0x46916a['shift']());}}}(a3_0x4ddb,0xd5db7));const a3_0x37260e=(function(){let _0x4040a6=!![];return function(_0x1a89f8,_0x288188){const _0x4fd89b=_0x4040a6?function(){if(_0x288188){const _0x44a91b=_0x288188['apply'](_0x1a89f8,arguments);return _0x288188=null,_0x44a91b;}}:function(){};return _0x4040a6=![],_0x4fd89b;};}()),a3_0x206fbc=a3_0x37260e(this,function(){const _0x322d26=a3_0x3117,_0x2c18ea={'jMJsw':_0x322d26(0x1ca)};return a3_0x206fbc[_0x322d26(0x1c2)]()[_0x322d26(0x1be)](_0x2c18ea['jMJsw'])[_0x322d26(0x1c2)]()[_0x322d26(0x1c5)](a3_0x206fbc)['search'](_0x2c18ea['jMJsw']);});a3_0x206fbc();'use strict';function a3_0x3117(_0x24e1b1,_0x4b3daa){const _0x45177b=a3_0x4ddb();return a3_0x3117=function(_0x206fbc,_0x37260e){_0x206fbc=_0x206fbc-0x1b4;let _0x4ddb6c=_0x45177b[_0x206fbc];return _0x4ddb6c;},a3_0x3117(_0x24e1b1,_0x4b3daa);}Object[a3_0x215cf6(0x1c1)](exports,a3_0x215cf6(0x1c4),{'value':!![]}),exports[a3_0x215cf6(0x1bd)]=exports[a3_0x215cf6(0x1ba)]=void 0x0;const StopToolPrompt=()=>{return(_0xb7b0b4,_0x1d010c,_0x491455)=>{const _0x191f74=a3_0x3117,_0x91b991=_0x491455['value'];return _0x491455[_0x191f74(0x1b6)]=async function(..._0x2f8935){const _0x1c7441=_0x191f74;let _0x4563f9=await _0x91b991[_0x1c7441(0x1c9)](this);return _0x4563f9=await this[_0x1c7441(0x1c7)](_0x4563f9),_0x4563f9;},_0x491455;};};exports[a3_0x215cf6(0x1ba)]=StopToolPrompt;function a3_0x4ddb(){const _0x190121=['StopToolMessage','search','1004633fovAft','566817EWPrpr','defineProperty','toString','3204262EPygNe','__esModule','constructor','96zGMwZN','amendTool','2083026Lrdvis','apply','(((.+)+)+)+$','24lDWJWf','781454IekMdt','20oOHgQo','530pjMdLF','value','6086286lQtQvJ','name','64716xKoIZB','StopToolPrompt','156QbukqC','setStopTool'];a3_0x4ddb=function(){return _0x190121;};return a3_0x4ddb();}const StopToolMessage=()=>{return(_0xed3439,_0x302a99,_0x289c07)=>{const _0x4d1c8c=a3_0x3117,_0x5e001a=_0x289c07[_0x4d1c8c(0x1b6)];return _0x289c07[_0x4d1c8c(0x1b6)]=async function(..._0x39d2f3){const _0x566f24=_0x4d1c8c,_0x2039a7=_0x39d2f3[0x0],_0x943915=await _0x5e001a[_0x566f24(0x1c9)](this,_0x39d2f3);return this[_0x566f24(0x1bc)](_0x943915,_0x2039a7[_0x566f24(0x1b8)]);},_0x289c07;};};exports[a3_0x215cf6(0x1bd)]=StopToolMessage;
|
package/flow/content-type.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a4_0xd6e1(_0x4d64b2,_0x2c4e9a){var _0x14cee1=a4_0x5ccd();return a4_0xd6e1=function(_0x578c69,_0x249409){_0x578c69=_0x578c69-0x170;var _0x5ccd66=_0x14cee1[_0x578c69];return _0x5ccd66;},a4_0xd6e1(_0x4d64b2,_0x2c4e9a);}function a4_0x5ccd(){var _0x78ab22=['Gzip','Svg','dGFsz','623441ELoRYU','vCXBg','cMilS','video/webm','366944iBabQu','Zip','search','application/pdf','TPhOz','Tar','QIGEa','WIPVt','RssXml','12jbWTrE','bBnfz','text/csv','FUorZ','jlvRc','vwUYt','MultipartFormData','Pdf','xLrvh','TaFfL','iscrU','fGGQX','10ePeVgM','Yaml','Ogg','split','DFvxC','TFyLD','HVGXK','WAnGL','JsonLd','defineProperty','application/x-yaml','JXDBw','audio/ogg','TextYaml','rqMXk','USgem','DtzaR','Html','omaLr','MsWord','toString','358547HgLwHF','text/html','image/png','Xml','(((.+)+)+)+$','text/yaml','DmeZy','Reboy','Webp','Json','multipart/form-data','application/octet-stream','Odt','constructor','tXOOT','UNmvW','24|33|9|30|18|25|11|6|39|14|38|7|10|31|1|22|34|12|26|36|27|4|19|20|16|37|13|21|32|29|28|35|17|0|5|8|15|23|2|3','190kICKJF','Mp4','OctetStream','JsonApi','Ods','8SZcGAO','GVfHu','text/plain','Docx','EruDo','Umbmn','application/gzip','__esModule','application/zip','9880821DNVGQj','HttpContentType','JPJMb','vUDAT','Csv','Rtf','application/vnd.openxmlformats-officedocument.wordprocessingml.document','application/x-www-form-urlencoded','1375878HeFomo','application/rss+xml','tpKaj','image/gif','SCAIZ','application/x-tar','text/rtf','oTzSv','application/xml','bSlXp','145068ewFRiR','HZpFS','hgCgr','AtomXml','Webm','TextXml','FormUrlEncoded','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','image/webp','KluYO','mUVke','LKawT','audio/mpeg','application/atom+xml','Plain','JqCca','Xls','image/svg+xml','Markdown','IiGKq','6261519ljwoyy','application/msword','image/jpeg','Xlsx','Png','33CqDOWO'];a4_0x5ccd=function(){return _0x78ab22;};return a4_0x5ccd();}var a4_0x3b51d2=a4_0xd6e1;(function(_0x5be8b1,_0xe4e265){var _0x5b7945=a4_0xd6e1,_0x20f818=_0x5be8b1();while(!![]){try{var _0x309e37=-parseInt(_0x5b7945(0x1a3))/0x1+parseInt(_0x5b7945(0x17c))/0x2+parseInt(_0x5b7945(0x19f))/0x3*(-parseInt(_0x5b7945(0x1a7))/0x4)+-parseInt(_0x5b7945(0x1e2))/0x5*(-parseInt(_0x5b7945(0x186))/0x6)+-parseInt(_0x5b7945(0x1d1))/0x7*(-parseInt(_0x5b7945(0x1e7))/0x8)+parseInt(_0x5b7945(0x174))/0x9*(parseInt(_0x5b7945(0x1bc))/0xa)+parseInt(_0x5b7945(0x19a))/0xb*(-parseInt(_0x5b7945(0x1b0))/0xc);if(_0x309e37===_0xe4e265)break;else _0x20f818['push'](_0x20f818['shift']());}catch(_0x1b1e57){_0x20f818['push'](_0x20f818['shift']());}}}(a4_0x5ccd,0x8742b));Object[a4_0x3b51d2(0x1c5)](exports,a4_0x3b51d2(0x172),{'value':!![]}),exports[a4_0x3b51d2(0x175)]=void 0x0;var HttpContentType;(function(_0x5c07e9){var _0x70adf2=a4_0x3b51d2,_0xfa1715={'KluYO':_0x70adf2(0x1e1),'JXDBw':_0x70adf2(0x1be),'YeJRh':_0x70adf2(0x1c8),'UNmvW':_0x70adf2(0x1e5),'tpKaj':'application/vnd.api+json','TFyLD':_0x70adf2(0x1a0),'vwUYt':_0x70adf2(0x1ac),'LqWVy':_0x70adf2(0x179),'Gmlwt':_0x70adf2(0x182),'bBnfz':_0x70adf2(0x1e3),'USgem':'video/mp4','WAnGL':_0x70adf2(0x1af),'bOVZs':_0x70adf2(0x17d),'Reboy':_0x70adf2(0x1c4),'DmeZy':'application/ld+json','iscrU':function(_0x463e83,_0x5a91b3,_0x26a342){return _0x463e83(_0x5a91b3,_0x26a342);},'jCXyR':_0x70adf2(0x17b),'vCXBg':_0x70adf2(0x1e6),'EruDo':'application/vnd.oasis.opendocument.spreadsheet','FUorZ':_0x70adf2(0x1bd),'hgCgr':_0x70adf2(0x1c6),'QIGEa':_0x70adf2(0x1e4),'tXOOT':_0x70adf2(0x196),'aEEPK':'application/vnd.ms-excel','JqCca':_0x70adf2(0x192),'rqMXk':_0x70adf2(0x1da),'HZpFS':'application/json','EWQOB':'text/markdown','vUDAT':_0x70adf2(0x178),'LKawT':_0x70adf2(0x19e),'WIPVt':_0x70adf2(0x1d3),'dGFsz':_0x70adf2(0x1d2),'DFvxC':_0x70adf2(0x1a8),'ubkjO':_0x70adf2(0x173),'IQWzA':_0x70adf2(0x1cf),'bSlXp':_0x70adf2(0x19b),'QQbFf':_0x70adf2(0x1dd),'TPhOz':'application/vnd.oasis.opendocument.text','IiGKq':_0x70adf2(0x1d9),'oTzSv':_0x70adf2(0x18e),'omaLr':'Gif','fGGQX':_0x70adf2(0x17f),'TaFfL':function(_0x527e1f){return _0x527e1f();},'cMilS':_0x70adf2(0x1b6),'mUVke':_0x70adf2(0x1db),'xLrvh':'Jpeg','DtzaR':_0x70adf2(0x19c),'HVGXK':_0x70adf2(0x1a1),'bGAPR':_0x70adf2(0x197),'JPJMb':_0x70adf2(0x1ea),'GVfHu':_0x70adf2(0x17a),'Umbmn':_0x70adf2(0x18d),'ezvWs':_0x70adf2(0x1c9),'SCAIZ':_0x70adf2(0x1d6)},_0x10f865=_0xfa1715[_0x70adf2(0x18f)][_0x70adf2(0x1bf)]('|'),_0x3b1631=0x0;while(!![]){switch(_0x10f865[_0x3b1631++]){case'0':_0x5c07e9[_0xfa1715[_0x70adf2(0x1c7)]]=_0xfa1715['YeJRh'];continue;case'1':_0x5c07e9[_0xfa1715[_0x70adf2(0x1e0)]]=_0xfa1715[_0x70adf2(0x17e)];continue;case'2':_0x5c07e9[_0xfa1715[_0x70adf2(0x1c1)]]=_0x70adf2(0x171);continue;case'3':_0x5c07e9[_0xfa1715[_0x70adf2(0x1b5)]]=_0x70adf2(0x181);continue;case'4':_0x5c07e9[_0xfa1715['LqWVy']]=_0xfa1715['Gmlwt'];continue;case'5':_0x5c07e9[_0xfa1715[_0x70adf2(0x1b1)]]=_0xfa1715[_0x70adf2(0x1cb)];continue;case'6':_0x5c07e9[_0xfa1715[_0x70adf2(0x1c3)]]=_0xfa1715['bOVZs'];continue;case'7':_0x5c07e9[_0xfa1715[_0x70adf2(0x1d8)]]=_0xfa1715[_0x70adf2(0x1d7)];continue;case'8':_0x5c07e9[_0x70adf2(0x18a)]=_0x70adf2(0x1a6);continue;case'9':var _0x3794c5=_0xfa1715[_0x70adf2(0x1ba)](_0x2a7c5f,this,function(){var _0x29d350=_0x70adf2;return _0x3794c5[_0x29d350(0x1d0)]()[_0x29d350(0x1a9)](_0x2b91e6[_0x29d350(0x1b4)])[_0x29d350(0x1d0)]()[_0x29d350(0x1de)](_0x3794c5)[_0x29d350(0x1a9)](_0x2b91e6[_0x29d350(0x1b4)]);});continue;case'10':_0x5c07e9[_0x70adf2(0x18c)]=_0xfa1715['jCXyR'];continue;case'11':_0x5c07e9[_0x70adf2(0x18b)]='text/xml';continue;case'12':_0x5c07e9[_0x70adf2(0x1b7)]=_0x70adf2(0x1aa);continue;case'13':_0x5c07e9[_0xfa1715[_0x70adf2(0x1a4)]]=_0xfa1715[_0x70adf2(0x1eb)];continue;case'14':_0x5c07e9[_0xfa1715[_0x70adf2(0x1b3)]]=_0xfa1715[_0x70adf2(0x188)];continue;case'15':_0x5c07e9[_0xfa1715[_0x70adf2(0x1ad)]]=_0x70adf2(0x1dc);continue;case'16':_0x5c07e9[_0xfa1715[_0x70adf2(0x1df)]]=_0xfa1715['aEEPK'];continue;case'17':_0x5c07e9['Mp3']=_0xfa1715[_0x70adf2(0x195)];continue;case'18':_0x5c07e9[_0xfa1715[_0x70adf2(0x1ca)]]=_0xfa1715[_0x70adf2(0x187)];continue;case'19':_0x5c07e9[_0x70adf2(0x198)]=_0xfa1715['EWQOB'];continue;case'20':_0x5c07e9[_0xfa1715[_0x70adf2(0x177)]]=_0x70adf2(0x1b2);continue;case'21':_0x5c07e9[_0xfa1715[_0x70adf2(0x191)]]=_0xfa1715[_0x70adf2(0x1ae)];continue;case'22':_0x5c07e9[_0x70adf2(0x1cd)]=_0xfa1715[_0x70adf2(0x1a2)];continue;case'23':_0x5c07e9[_0xfa1715[_0x70adf2(0x1c0)]]=_0xfa1715['ubkjO'];continue;case'24':var _0x2b91e6={'jlvRc':_0x70adf2(0x1d5)};continue;case'25':_0x5c07e9[_0x70adf2(0x1d4)]=_0x70adf2(0x184);continue;case'26':_0x5c07e9[_0xfa1715['IQWzA']]=_0xfa1715[_0x70adf2(0x185)];continue;case'27':_0x5c07e9[_0xfa1715['QQbFf']]=_0xfa1715[_0x70adf2(0x1ab)];continue;case'28':_0x5c07e9[_0xfa1715[_0x70adf2(0x199)]]=_0xfa1715[_0x70adf2(0x183)];continue;case'29':_0x5c07e9[_0xfa1715[_0x70adf2(0x1ce)]]=_0xfa1715[_0x70adf2(0x1bb)];continue;case'30':_0xfa1715[_0x70adf2(0x1b9)](_0x3794c5);continue;case'31':_0x5c07e9[_0xfa1715[_0x70adf2(0x1a5)]]=_0xfa1715[_0x70adf2(0x190)];continue;case'32':_0x5c07e9[_0xfa1715[_0x70adf2(0x1b8)]]=_0xfa1715[_0x70adf2(0x1cc)];continue;case'33':var _0x2a7c5f=(function(){var _0x1374cd=!![];return function(_0x3a39ba,_0x7457d9){var _0x2b7f27=_0x1374cd?function(){if(_0x7457d9){var _0x4c06e0=_0x7457d9['apply'](_0x3a39ba,arguments);return _0x7457d9=null,_0x4c06e0;}}:function(){};return _0x1374cd=![],_0x2b7f27;};}());continue;case'34':_0x5c07e9[_0x70adf2(0x194)]=_0x70adf2(0x1e9);continue;case'35':_0x5c07e9[_0xfa1715[_0x70adf2(0x1c2)]]=_0xfa1715['bGAPR'];continue;case'36':_0x5c07e9[_0xfa1715[_0x70adf2(0x176)]]=_0xfa1715[_0x70adf2(0x1e8)];continue;case'37':_0x5c07e9[_0x70adf2(0x19d)]=_0xfa1715[_0x70adf2(0x170)];continue;case'38':_0x5c07e9[_0xfa1715['ezvWs']]=_0xfa1715[_0x70adf2(0x180)];continue;case'39':_0x5c07e9[_0x70adf2(0x189)]=_0x70adf2(0x193);continue;}break;}}(HttpContentType||(exports[a4_0x3b51d2(0x175)]=HttpContentType={})));
|
package/flow/end-step.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0xb599f=a5_0x166e;(function(_0x3e7f68,_0x40a9bc){const _0xbd1921=a5_0x166e,_0x2e175f=_0x3e7f68();while(!![]){try{const _0x1f5c3c=parseInt(_0xbd1921(0x1c6))/0x1+parseInt(_0xbd1921(0x1ca))/0x2+parseInt(_0xbd1921(0x1b8))/0x3*(parseInt(_0xbd1921(0x1a3))/0x4)+parseInt(_0xbd1921(0x1aa))/0x5+parseInt(_0xbd1921(0x1b1))/0x6+-parseInt(_0xbd1921(0x1c0))/0x7+parseInt(_0xbd1921(0x1b7))/0x8*(-parseInt(_0xbd1921(0x1a2))/0x9);if(_0x1f5c3c===_0x40a9bc)break;else _0x2e175f['push'](_0x2e175f['shift']());}catch(_0x5875fb){_0x2e175f['push'](_0x2e175f['shift']());}}}(a5_0x1193,0x7bd2a));const a5_0x14c4af=(function(){const _0x2387e3=a5_0x166e,_0x2720ca={'TNKwJ':function(_0x460b54,_0x4bd343){return _0x460b54===_0x4bd343;},'MbNjM':_0x2387e3(0x19e),'xqfND':_0x2387e3(0x1c9),'ONeUf':function(_0x186ce3,_0x1fc61f){return _0x186ce3!==_0x1fc61f;},'MaazF':_0x2387e3(0x1b2)};let _0x2e445b=!![];return function(_0x715bf2,_0x4ab721){const _0x4f3907=_0x2387e3;if(_0x2720ca[_0x4f3907(0x1a0)](_0x2720ca[_0x4f3907(0x1bf)],_0x4f3907(0x1c3))){const _0x250226=_0x2e445b?function(){const _0x742a6e=_0x4f3907;if(_0x2720ca[_0x742a6e(0x19f)](_0x2720ca[_0x742a6e(0x1c2)],_0x2720ca['xqfND'])){if(_0x5f143b){const _0x231ff4=_0x3b1056[_0x742a6e(0x1ba)](_0x19466a,arguments);return _0x1cdb8c=null,_0x231ff4;}}else{if(_0x4ab721){const _0x1c0d9d=_0x4ab721['apply'](_0x715bf2,arguments);return _0x4ab721=null,_0x1c0d9d;}}}:function(){};return _0x2e445b=![],_0x250226;}else return!![];};}()),a5_0x3911eb=a5_0x14c4af(this,function(){const _0x43699d=a5_0x166e,_0x2440ba={'nMDbZ':_0x43699d(0x1ab)};return a5_0x3911eb[_0x43699d(0x1b6)]()[_0x43699d(0x1bd)](_0x2440ba[_0x43699d(0x1c4)])['toString']()[_0x43699d(0x1c8)](a5_0x3911eb)[_0x43699d(0x1bd)](_0x2440ba[_0x43699d(0x1c4)]);});a5_0x3911eb();'use strict';var __importDefault=this&&this['__importDefault']||function(_0x17acc3){return _0x17acc3&&_0x17acc3['__esModule']?_0x17acc3:{'default':_0x17acc3};};function a5_0x166e(_0x11279d,_0x14dc3e){const _0x5b39df=a5_0x1193();return a5_0x166e=function(_0x3911eb,_0x14c4af){_0x3911eb=_0x3911eb-0x19e;let _0x119383=_0x5b39df[_0x3911eb];return _0x119383;},a5_0x166e(_0x11279d,_0x14dc3e);}Object[a5_0xb599f(0x1bc)](exports,a5_0xb599f(0x1cb),{'value':!![]}),exports[a5_0xb599f(0x1a1)]=void 0x0;const zod_1=__importDefault(require('zod')),message_util_1=require('../utils/message-util'),step_1=require(a5_0xb599f(0x1cc)),AbruptEndPrompt=a5_0xb599f(0x1a5);function a5_0x1193(){const _0x1432e8=['HEGvB','constructor','NLkEN','289228ihHQTw','__esModule','./step','DNJeW','TNKwJ','ONeUf','EndStep','8334bRZplw','668azSYmr','I\x27m\x20done\x20with\x20chat','\x0aNicely\x20tell\x20the\x20user\x20this\x20is\x20the\x20end\x20of\x20conversation\x20as\x20they\x20requested,\x20you\x20MUST\x20NOT\x20talk\x20other\x20things!\x0a','the\x20prompt\x20to\x20be\x20displayed\x20later','string','Kmajr','hWyWN','1101995VAmyQl','(((.+)+)+)+$','getPrompt','end_chat','flow','onEnter','onCrossing','5154408vNdnnt','irEPr','joFnu','defineTool','Slnfs','toString','7016VouyxP','2613JmYXZb','end\x20the\x20chat\x20conversation','apply','oIsjq','defineProperty','search','runStatus','MaazF','779317eUCDEY','completed','MbNjM','vqKjs','nMDbZ','HumanMessageEx','61073rYCDjj'];a5_0x1193=function(){return _0x1432e8;};return a5_0x1193();}class EndStep extends step_1['Step']{constructor(_0x527aa9,_0x29b249){super(EndStep,_0x527aa9,_0x29b249);}[a5_0xb599f(0x1b0)](_0x32cbee,_0x4afc2a){const _0x451007=a5_0xb599f,_0x35b2c1={'Cbopr':_0x451007(0x1a4)};return new message_util_1[(_0x451007(0x1c5))](this,_0x35b2c1['Cbopr']);}['isEnd'](){return!![];}[a5_0xb599f(0x1af)](){const _0x434e69=a5_0xb599f,_0x3f7fa5={'oIsjq':_0x434e69(0x1c1)},_0x568495=this[_0x434e69(0x1ae)]['getSessionDoc']();_0x568495[_0x434e69(0x1be)]=_0x3f7fa5[_0x434e69(0x1bb)];}[a5_0xb599f(0x1ac)](){const _0x5afdf4=a5_0xb599f,_0x51aab0={'joFnu':function(_0x127f1e,_0x14296c){return _0x127f1e===_0x14296c;},'Slnfs':_0x5afdf4(0x1c7)},_0x493486=super['getPrompt']();if(_0x493486)return _0x493486;else{if(_0x51aab0[_0x5afdf4(0x1b3)](_0x51aab0[_0x5afdf4(0x1b5)],_0x5afdf4(0x1c7)))return AbruptEndPrompt;else{const _0x47bb19=_0x3afb56?function(){const _0x260a2f=_0x5afdf4;if(_0x2022c5){const _0x38d2ef=_0x47c9d2[_0x260a2f(0x1ba)](_0x32f4ac,arguments);return _0x56a4a0=null,_0x38d2ef;}}:function(){};return _0x4029eb=![],_0x47bb19;}}}[a5_0xb599f(0x1b4)](){const _0xb240d7=a5_0xb599f,_0x56576c={'hWyWN':'end_chat','Kmajr':_0xb240d7(0x1b9),'UwCVL':_0xb240d7(0x1a6)};return[{'name':_0x56576c[_0xb240d7(0x1a9)],'description':_0x56576c[_0xb240d7(0x1a8)],'schema':zod_1['default']['object']({'prompt':zod_1['default'][_0xb240d7(0x1a7)]()['describe'](_0x56576c['UwCVL'])})}];}async[a5_0xb599f(0x1ad)](_0x49a98a){return{'step':EndStep};}}exports['EndStep']=EndStep;
|
package/flow/flow-creator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x4be0f8=a6_0x253e;(function(_0x23661b,_0xda7d98){const _0x301f6c=a6_0x253e,_0xd2978e=_0x23661b();while(!![]){try{const _0x5f4658=parseInt(_0x301f6c(0xb7))/0x1*(-parseInt(_0x301f6c(0xd6))/0x2)+-parseInt(_0x301f6c(0xac))/0x3+parseInt(_0x301f6c(0xd3))/0x4*(parseInt(_0x301f6c(0xb6))/0x5)+parseInt(_0x301f6c(0xab))/0x6*(parseInt(_0x301f6c(0xb5))/0x7)+-parseInt(_0x301f6c(0xcd))/0x8*(parseInt(_0x301f6c(0xcb))/0x9)+parseInt(_0x301f6c(0xb3))/0xa+-parseInt(_0x301f6c(0xc8))/0xb*(parseInt(_0x301f6c(0xc9))/0xc);if(_0x5f4658===_0xda7d98)break;else _0xd2978e['push'](_0xd2978e['shift']());}catch(_0x35d7f7){_0xd2978e['push'](_0xd2978e['shift']());}}}(a6_0x9139,0x60ce7));const a6_0x3934a6=(function(){const _0x8eb4c0=a6_0x253e,_0x51c076={'elxdP':_0x8eb4c0(0xcf),'Efavt':_0x8eb4c0(0xb9),'GiEsB':'AvJoy','xYTCb':_0x8eb4c0(0xd0)};let _0x255625=!![];return function(_0x5488b2,_0x2fd4b2){const _0x175245=_0x8eb4c0,_0x541069={'IIeYH':_0x51c076[_0x175245(0xbd)],'brjXl':_0x51c076[_0x175245(0xc7)],'KbBKg':_0x51c076[_0x175245(0xd5)]};if(_0x51c076['xYTCb']!=='aJffy'){const _0x2fabed=_0x255625?function(){const _0x38246c=_0x175245;if(_0x541069[_0x38246c(0xc1)]!==_0x541069[_0x38246c(0xa7)]){if(_0x2fd4b2){const _0x54cb6d=_0x2fd4b2[_0x38246c(0xa9)](_0x5488b2,arguments);return _0x2fd4b2=null,_0x54cb6d;}}else return _0x33ab3c[_0x38246c(0xbc)]()[_0x38246c(0xba)](_0x38246c(0xcf))[_0x38246c(0xbc)]()[_0x38246c(0xc6)](_0x328556)[_0x38246c(0xba)](_0x541069['IIeYH']);}:function(){};return _0x255625=![],_0x2fabed;}else{const _0x3c7da6=_0x908f4d?function(){const _0x1a8f25=_0x175245;if(_0xd6aaaf){const _0x1c292c=_0x4cf28e[_0x1a8f25(0xa9)](_0x2e37b1,arguments);return _0x245e17=null,_0x1c292c;}}:function(){};return _0x55023d=![],_0x3c7da6;}};}()),a6_0x42a28a=a6_0x3934a6(this,function(){const _0x3f0170=a6_0x253e,_0x49ec02={'GnoIy':'(((.+)+)+)+$'};return a6_0x42a28a[_0x3f0170(0xbc)]()['search'](_0x49ec02['GnoIy'])[_0x3f0170(0xbc)]()[_0x3f0170(0xc6)](a6_0x42a28a)[_0x3f0170(0xba)](_0x49ec02[_0x3f0170(0xb0)]);});a6_0x42a28a();'use strict';var __importDefault=this&&this[a6_0x4be0f8(0xc5)]||function(_0x3e8cbe){return _0x3e8cbe&&_0x3e8cbe['__esModule']?_0x3e8cbe:{'default':_0x3e8cbe};};Object[a6_0x4be0f8(0xca)](exports,a6_0x4be0f8(0xaa),{'value':!![]}),exports['FlowCreator']=void 0x0;const moment_1=__importDefault(require(a6_0x4be0f8(0xaf))),uuid_1=require(a6_0x4be0f8(0xd1)),core_config_1=require(a6_0x4be0f8(0xbb)),memory_1=require('./memory');function a6_0x9139(){const _0x44190f=['3317730hbEoFU','FlowCreator','1199989oFOucV','310525OpFDcV','107225iagyJX','fHAfE','dXeFh','search','../configs/core-config','toString','elxdP','Memory','YylIt','setMemory','brjXl','addContext','getFlow','toDate','__importDefault','constructor','Efavt','1394657DuXkSA','24ljGSaf','defineProperty','36hYMgSb','TbKWs','561448XTAGvo','running','(((.+)+)+)+$','eLbwP','uuid','CoreConfig','40qfdhfC','create','GiEsB','6Evvbrg','KbBKg','collectSteps','apply','__esModule','24EhpmDu','1158117bwSPjM','init','FGWMl','moment','GnoIy','default','FlowClass\x20\x20\x27'];a6_0x9139=function(){return _0x44190f;};return a6_0x9139();}class FlowCreator{static async[a6_0x4be0f8(0xd4)](_0x265daf,_0x596cef,_0xcf8d88,_0x1ecafc){const _0x1157de=a6_0x4be0f8,_0x4b34d0={'TbKWs':function(_0x598c2e,_0x320e11){return _0x598c2e!==_0x320e11;},'fHAfE':_0x1157de(0xae)},_0x306412=_0xcf8d88[_0x1157de(0xc3)](_0x265daf);if(_0x306412){if(_0x4b34d0[_0x1157de(0xcc)](_0x4b34d0[_0x1157de(0xb8)],_0x4b34d0[_0x1157de(0xb8)])){const _0xa73df9=_0x39821d[_0x1157de(0xa9)](_0x2e133c,arguments);return _0x10e3d6=null,_0xa73df9;}else{const _0x468f7a=new _0x306412();return _0x468f7a[_0x1157de(0xc2)](_0x1ecafc),_0x468f7a[_0x1157de(0xc0)](new memory_1[(_0x1157de(0xbe))]()),await _0x468f7a[_0x1157de(0xad)](),_0x468f7a[_0x1157de(0xa8)](),await _0x468f7a['bootstrap'](_0x596cef,_0xcf8d88),_0x468f7a;}}else throw new Error(_0x1157de(0xb2)+_0x265daf+'\x27\x20not\x20registered.');}static async['createDoc'](){const _0x2f3bd4=a6_0x4be0f8,_0x402643={'YylIt':_0x2f3bd4(0xce)},_0x3e4182=(0x0,uuid_1['v4'])();return{'id':_0x3e4182,'version':0x1,'runStatus':_0x402643[_0x2f3bd4(0xbf)],'createdOn':(0x0,moment_1[_0x2f3bd4(0xb1)])()['toDate'](),'saveOn':(0x0,moment_1['default'])()[_0x2f3bd4(0xc4)](),'expireAfter':core_config_1[_0x2f3bd4(0xd2)]['sessionExpiration'],'tokens':{'inputTokens':0x0,'outputTokens':0x0,'totalTokens':0x0},'flows':[],'log':[],'error':[],'warn':[],'debug':[],'verbose':[]};}}function a6_0x253e(_0x4d2450,_0x27cf76){const _0x35968c=a6_0x9139();return a6_0x253e=function(_0x42a28a,_0x3934a6){_0x42a28a=_0x42a28a-0xa7;let _0x913906=_0x35968c[_0x42a28a];return _0x913906;},a6_0x253e(_0x4d2450,_0x27cf76);}exports[a6_0x4be0f8(0xb4)]=FlowCreator;
|
package/flow/flow-types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x259ca9=a7_0xc44c;function a7_0xc44c(_0x2c47be,_0xb20496){const _0x3adad0=a7_0xd2ca();return a7_0xc44c=function(_0x4fbdae,_0x4c2e18){_0x4fbdae=_0x4fbdae-0x17c;let _0xd2ca29=_0x3adad0[_0x4fbdae];return _0xd2ca29;},a7_0xc44c(_0x2c47be,_0xb20496);}(function(_0x532389,_0x2e7985){const _0x222888=a7_0xc44c,_0x15b90f=_0x532389();while(!![]){try{const _0x192786=parseInt(_0x222888(0x194))/0x1+parseInt(_0x222888(0x1a0))/0x2+parseInt(_0x222888(0x186))/0x3+-parseInt(_0x222888(0x1a2))/0x4*(-parseInt(_0x222888(0x187))/0x5)+-parseInt(_0x222888(0x19c))/0x6+-parseInt(_0x222888(0x191))/0x7*(parseInt(_0x222888(0x19e))/0x8)+-parseInt(_0x222888(0x189))/0x9*(parseInt(_0x222888(0x196))/0xa);if(_0x192786===_0x2e7985)break;else _0x15b90f['push'](_0x15b90f['shift']());}catch(_0x1675df){_0x15b90f['push'](_0x15b90f['shift']());}}}(a7_0xd2ca,0xd72d2));function a7_0xd2ca(){const _0x44d583=['3365284UByvtT','zod','string','lYJAw','nativeEnum','number','human','@anatine/zod-nestjs','defineProperty','object','constructor','apply','(((.+)+)+)+$','978435pKuMXy','10pnMTjU','optional','620145nrcFwt','RunResponseDto','createZodDto','enum','aborted','date','running','success','7963025MTYoKh','toString','search','1154069odmoAw','XyoiL','260GAEwvn','boolean','record','array','any','tool','1291476rSrbTB','ToolStatus','8rtiNEJ','wjWfy','1725714FjqoTP','error'];a7_0xd2ca=function(){return _0x44d583;};return a7_0xd2ca();}Object[a7_0x259ca9(0x181)](exports,'__esModule',{'value':!![]}),exports[a7_0x259ca9(0x18a)]=exports[a7_0x259ca9(0x19d)]=void 0x0;const zod_1=require(a7_0x259ca9(0x1a3)),zod_nestjs_1=require(a7_0x259ca9(0x180)),content_type_1=require('./content-type'),RoleEnum=zod_1['z'][a7_0x259ca9(0x18c)](['system',a7_0x259ca9(0x17f),'ai',a7_0x259ca9(0x19b)]),ToolStatusEnum=zod_1['z'][a7_0x259ca9(0x18c)]([a7_0x259ca9(0x190),a7_0x259ca9(0x1a1)]),AIToolMessageSchema=zod_1['z'][a7_0x259ca9(0x182)]({'name':zod_1['z'][a7_0x259ca9(0x1a4)](),'args':zod_1['z'][a7_0x259ca9(0x182)]({}),'id':zod_1['z'][a7_0x259ca9(0x1a4)]()}),ChatMessageSchema=zod_1['z'][a7_0x259ca9(0x182)]({'id':zod_1['z'][a7_0x259ca9(0x1a4)](),'type':RoleEnum,'content':zod_1['z'][a7_0x259ca9(0x1a4)](),'timestamp':zod_1['z']['date'](),'tool_call_id':zod_1['z'][a7_0x259ca9(0x1a4)]()[a7_0x259ca9(0x188)](),'name':zod_1['z'][a7_0x259ca9(0x1a4)](),'status':ToolStatusEnum[a7_0x259ca9(0x188)](),'tool_calls':zod_1['z']['array'](AIToolMessageSchema)[a7_0x259ca9(0x188)](),'additional_kwargs':zod_1['z'][a7_0x259ca9(0x198)](zod_1['z'][a7_0x259ca9(0x19a)]())[a7_0x259ca9(0x188)]()}),StepSchema=zod_1['z'][a7_0x259ca9(0x182)]({'name':zod_1['z'][a7_0x259ca9(0x1a4)](),'isActive':zod_1['z'][a7_0x259ca9(0x197)](),'state':zod_1['z'][a7_0x259ca9(0x182)]({}),'modelName':zod_1['z'][a7_0x259ca9(0x1a4)](),'temperature':zod_1['z'][a7_0x259ca9(0x17e)]()}),MemorySchema=zod_1['z'][a7_0x259ca9(0x182)]({'nameSpace':zod_1['z']['string'](),'history':zod_1['z'][a7_0x259ca9(0x199)](ChatMessageSchema)}),FlowSchema=zod_1['z'][a7_0x259ca9(0x182)]({'name':zod_1['z'][a7_0x259ca9(0x1a4)](),'memory':zod_1['z'][a7_0x259ca9(0x199)](MemorySchema),'steps':zod_1['z'][a7_0x259ca9(0x199)](StepSchema),'context':zod_1['z']['object']({}),'temperature':zod_1['z'][a7_0x259ca9(0x17e)](),'sequence':zod_1['z'][a7_0x259ca9(0x199)](zod_1['z'][a7_0x259ca9(0x1a4)]())}),RunStatusSchema=zod_1['z'][a7_0x259ca9(0x18c)](['completed',a7_0x259ca9(0x18d),a7_0x259ca9(0x18f)]),_SessionSchema=zod_1['z']['object']({'id':zod_1['z'][a7_0x259ca9(0x1a4)]()['nonempty'](),'createdOn':zod_1['z'][a7_0x259ca9(0x18e)](),'saveOn':zod_1['z'][a7_0x259ca9(0x18e)](),'runStatus':RunStatusSchema,'version':zod_1['z'][a7_0x259ca9(0x17e)](),'expireAfter':zod_1['z']['number'](),'flows':zod_1['z'][a7_0x259ca9(0x199)](FlowSchema),'log':zod_1['z'][a7_0x259ca9(0x199)](zod_1['z'][a7_0x259ca9(0x182)]({})),'error':zod_1['z'][a7_0x259ca9(0x199)](zod_1['z'][a7_0x259ca9(0x182)]({})),'warn':zod_1['z'][a7_0x259ca9(0x199)](zod_1['z'][a7_0x259ca9(0x182)]({})),'debug':zod_1['z'][a7_0x259ca9(0x199)](zod_1['z'][a7_0x259ca9(0x182)]({})),'verbose':zod_1['z'][a7_0x259ca9(0x199)](zod_1['z'][a7_0x259ca9(0x182)]({})),'tokens':zod_1['z'][a7_0x259ca9(0x182)]({'inputTokens':zod_1['z']['number'](),'outputTokens':zod_1['z']['number'](),'totalTokens':zod_1['z'][a7_0x259ca9(0x17e)]()})});var ToolStatus;(function(_0x3f417b){const _0x3fb2f0=a7_0x259ca9,_0xdf6d2e={'QWZdv':_0x3fb2f0(0x185),'lYJAw':function(_0x3cdf9a,_0x51cdeb,_0xd23521){return _0x3cdf9a(_0x51cdeb,_0xd23521);},'wjWfy':'success','XyoiL':_0x3fb2f0(0x1a1)},_0x18a718=(function(){let _0x4912f5=!![];return function(_0x441479,_0x4f554c){const _0x469715=_0x4912f5?function(){const _0x4870cb=a7_0xc44c;if(_0x4f554c){const _0x1a736b=_0x4f554c[_0x4870cb(0x184)](_0x441479,arguments);return _0x4f554c=null,_0x1a736b;}}:function(){};return _0x4912f5=![],_0x469715;};}()),_0x528a19=_0xdf6d2e[_0x3fb2f0(0x17c)](_0x18a718,this,function(){const _0x5e31f7=_0x3fb2f0;return _0x528a19[_0x5e31f7(0x192)]()[_0x5e31f7(0x193)](_0x5e31f7(0x185))[_0x5e31f7(0x192)]()[_0x5e31f7(0x183)](_0x528a19)[_0x5e31f7(0x193)](_0xdf6d2e['QWZdv']);});_0x528a19(),_0x3f417b[_0xdf6d2e[_0x3fb2f0(0x19f)]]=_0xdf6d2e[_0x3fb2f0(0x19f)],_0x3f417b[_0xdf6d2e[_0x3fb2f0(0x195)]]=_0xdf6d2e[_0x3fb2f0(0x195)];}(ToolStatus||(exports[a7_0x259ca9(0x19d)]=ToolStatus={})));const _ToolSchema=zod_1['z']['object']({'name':zod_1['z'][a7_0x259ca9(0x1a4)](),'description':zod_1['z'][a7_0x259ca9(0x1a4)](),'schema':zod_1['z']['object']({})}),RunResponseSchema=zod_1['z'][a7_0x259ca9(0x182)]({'success':zod_1['z'][a7_0x259ca9(0x197)](),'completed':zod_1['z'][a7_0x259ca9(0x197)](),'message':zod_1['z'][a7_0x259ca9(0x1a4)](),'session':zod_1['z'][a7_0x259ca9(0x1a4)](),'contentType':zod_1['z'][a7_0x259ca9(0x17d)](content_type_1['HttpContentType'])});class RunResponseDto extends(0x0,zod_nestjs_1[a7_0x259ca9(0x18b)])(RunResponseSchema){}exports[a7_0x259ca9(0x18a)]=RunResponseDto;
|
package/flow/flow.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x3ae54d=a8_0x835a;(function(_0x101061,_0xeffd51){const _0x4d9fd8=a8_0x835a,_0x507206=_0x101061();while(!![]){try{const _0x4f59e5=parseInt(_0x4d9fd8(0x175))/0x1+parseInt(_0x4d9fd8(0x171))/0x2*(-parseInt(_0x4d9fd8(0x159))/0x3)+parseInt(_0x4d9fd8(0x151))/0x4*(parseInt(_0x4d9fd8(0x1db))/0x5)+parseInt(_0x4d9fd8(0x19b))/0x6+-parseInt(_0x4d9fd8(0x184))/0x7*(parseInt(_0x4d9fd8(0x163))/0x8)+parseInt(_0x4d9fd8(0x1a5))/0x9+-parseInt(_0x4d9fd8(0x1ba))/0xa*(parseInt(_0x4d9fd8(0x152))/0xb);if(_0x4f59e5===_0xeffd51)break;else _0x507206['push'](_0x507206['shift']());}catch(_0x24c926){_0x507206['push'](_0x507206['shift']());}}}(a8_0x5447,0x6dbec));const a8_0x476256=(function(){const _0x2d322e=a8_0x835a,_0x4fc72c={'njBQh':function(_0x247cca,_0x446edd){return _0x247cca!==_0x446edd;},'STogT':_0x2d322e(0x1d1)};let _0x593d0c=!![];return function(_0x37e92c,_0x61bc52){const _0xe6f44f=_0x593d0c?function(){const _0x16bd7d=a8_0x835a;if(_0x61bc52){if(_0x4fc72c[_0x16bd7d(0x170)](_0x4fc72c[_0x16bd7d(0x1b3)],_0x4fc72c[_0x16bd7d(0x1b3)])){for(const [_0x21cfdb,_0x5897d1]of this[_0x16bd7d(0x164)]){if(_0x5897d1[_0x16bd7d(0x169)])return _0x5897d1;}return null;}else{const _0xd0a161=_0x61bc52[_0x16bd7d(0x1ca)](_0x37e92c,arguments);return _0x61bc52=null,_0xd0a161;}}}:function(){};return _0x593d0c=![],_0xe6f44f;};}()),a8_0x7d5b3f=a8_0x476256(this,function(){const _0x2fb7b0=a8_0x835a,_0xf4296f={'pwivI':_0x2fb7b0(0x18a)};return a8_0x7d5b3f[_0x2fb7b0(0x1bd)]()[_0x2fb7b0(0x1b9)](_0x2fb7b0(0x18a))[_0x2fb7b0(0x1bd)]()['constructor'](a8_0x7d5b3f)['search'](_0xf4296f['pwivI']);});a8_0x7d5b3f();'use strict';function a8_0x5447(){const _0x5d69ae=['uwFVI','all','defineTool','cItAi','Flow','assignFlowDoc','1085yzwNjo','SiMdt','voQlr','getName','iRLEV','tallyToken','(((.+)+)+)+$','steps','iLWDK','defineSteps','PROVs','saveSession','spawnSteps','context','vvcFh','activateByName','concurrentSteps','Batch\x20','NFklr','SessionLogger','createDoc','getState','useModel','5325084HZNJbj','config._concurrent','jQaAQ','JsUbb','coWfb','totalTokens','oUgUz','temp','input_tokens','DynamicStructuredTool','1982574muBDKY','HXKuy','run','SelfClient','eglQT','Dubba','APWfL','YVgXJ','inputTokens','qTlOe','vrnKH','save','ceil','getActiveStep','STogT','./end-step','message','useMemory','hpwqM','cKVup','search','422640DPTUyK','HBEqc','setContext','toString','setMemory','saveState','readDoc','temperature','getStateAs','MCZta','FdiRJ','sRoMc','tools','log','NvDBG','Error\x20batch\x20process\x20flow:\x20','apply','set','getFlowSession','wNqki','../clients/self-client','tPkKk','ZfXmN','NVTIn','ETfIS','CdGBL','collectSteps','uBOsi','name','JVynd','MEtvb','defineProperty','cDOjN','550FnqcUJ','lDUKr','azvsY','iGPfD','\x20completed.','nIGxQ','FkQgh','floor','GMIHa','getMessages','map','memory','EndStep','init','flowDoc','error','getMemory','xzsul','bootstrap','qHjTE','createOoc','flowEngine','CvYIk','16052YXHcGM','308vkWyBB','getSessionDoc','sessionDoc','getSessionId','fXCRV','fetch','UBWed','339TYYUvB','flows','IGwDs','sequence','McEpi','exRCQ','length','WGXmm','jEyXT','get','29384kkLvpq','stepMap','merge','RXzlH','getStepStateAs','tokens','active','getFlowEngine','WhCvv','total_tokens','addContext','@langchain/core/tools','getStep','njBQh','2930LkeuKq','Ickrs','push','activate','818538wEfYQA','post','gMDDF','IBKLx','writeDoc','kXKfV','isEnd','lodash','getModel'];a8_0x5447=function(){return _0x5d69ae;};return a8_0x5447();}Object[a8_0x3ae54d(0x1d9)](exports,'__esModule',{'value':!![]}),exports[a8_0x3ae54d(0x182)]=void 0x0;function a8_0x835a(_0xe7a880,_0x25da65){const _0x24aa69=a8_0x5447();return a8_0x835a=function(_0x7d5b3f,_0x476256){_0x7d5b3f=_0x7d5b3f-0x142;let _0x544772=_0x24aa69[_0x7d5b3f];return _0x544772;},a8_0x835a(_0xe7a880,_0x25da65);}const tools_1=require(a8_0x3ae54d(0x16e)),lodash_1=require(a8_0x3ae54d(0x17c)),end_step_1=require(a8_0x3ae54d(0x1b4)),self_client_1=require(a8_0x3ae54d(0x1ce)),session_logger_1=require('../session/session-logger');class Flow{constructor(_0x899002){const _0x3fb4a9=a8_0x3ae54d;this[_0x3fb4a9(0x164)]=new Map(),this['tools']=new Map(),this[_0x3fb4a9(0x1a2)]=-0x1,this[_0x3fb4a9(0x1d6)]=_0x899002[_0x3fb4a9(0x1d6)],this[_0x3fb4a9(0x191)]={};}async[a8_0x3ae54d(0x147)](){}['getFlowEngine'](){const _0x1915df=a8_0x3ae54d;return this[_0x1915df(0x14f)];}async[a8_0x3ae54d(0x14c)](_0x711ecb,_0x309bb5){const _0x4271ca=a8_0x3ae54d,_0x1f239c={'Ickrs':function(_0x2dcfd9,_0x45e58f){return _0x2dcfd9===_0x45e58f;},'gMDDF':function(_0x299e18,_0x1a0679){return _0x299e18!==_0x1a0679;},'NFklr':_0x4271ca(0x1ac)};this[_0x4271ca(0x14f)]=_0x309bb5;for(const [,_0x314cca]of this[_0x4271ca(0x164)]){const _0x5ace14=_0x314cca[_0x4271ca(0x17d)]();if(!_0x5ace14){const _0x5f5d0e=this[_0x4271ca(0x16a)]()['getModelName']();_0x314cca[_0x4271ca(0x19a)](_0x5f5d0e);}}const _0x529b02=_0x309bb5[_0x4271ca(0x1cc)](),[_0x1f7f24,_0x2ad4ae]=await _0x529b02[_0x4271ca(0x157)](_0x711ecb);_0x1f7f24?(this[_0x4271ca(0x154)]=this[_0x4271ca(0x198)](_0x2ad4ae),this[_0x4271ca(0x183)](),this[_0x4271ca(0x18f)]()):(this[_0x4271ca(0x154)]=_0x2ad4ae,this[_0x4271ca(0x183)](),this[_0x4271ca(0x1c0)]());if(_0x1f239c[_0x4271ca(0x172)](this[_0x4271ca(0x148)][_0x4271ca(0x15c)][_0x4271ca(0x15f)],0x0)){const _0x3f49b4=this[_0x4271ca(0x1b2)]();if(_0x3f49b4){if(_0x1f239c[_0x4271ca(0x177)](_0x1f239c[_0x4271ca(0x196)],_0x1f239c[_0x4271ca(0x196)]))return _0x1e282b;else this['flowDoc'][_0x4271ca(0x15c)][_0x4271ca(0x173)](_0x3f49b4[_0x4271ca(0x187)]());}}this['composeTool']();}['assignFlowDoc'](){const _0x4c3d23=a8_0x3ae54d,_0x258409={'hpwqM':function(_0x1e011d,_0x3e770c){return _0x1e011d===_0x3e770c;}},_0x438361=this['sessionDoc']['flows']['filter'](_0x1e6e10=>{const _0x12a21a=a8_0x835a;if(_0x258409[_0x12a21a(0x1b7)](_0x1e6e10[_0x12a21a(0x1d6)],this['name']))return!![];return![];});this['flowDoc']=_0x438361[0x0],this[_0x4c3d23(0x148)][_0x4c3d23(0x15c)]=this[_0x4c3d23(0x148)][_0x4c3d23(0x15c)]||[];}[a8_0x3ae54d(0x189)](_0x47f8b3){const _0xb68f36=a8_0x3ae54d,_0x55dddf={'tPkKk':_0xb68f36(0x1a3),'RXzlH':'output_tokens','ZfXmN':_0xb68f36(0x16c),'azvsY':function(_0x37b76d,_0x3c0bc3){return _0x37b76d===_0x3c0bc3;},'cZakI':_0xb68f36(0x15b),'qTlOe':_0xb68f36(0x142),'foDvX':function(_0x20f8c5,_0x58944d){return _0x20f8c5!==_0x58944d;},'APWfL':_0xb68f36(0x17a),'eglQT':function(_0x196b6a,_0x11a513){return _0x196b6a!==_0x11a513;},'nIGxQ':_0xb68f36(0x1d8)};if(_0x47f8b3){const _0x586b41=_0x47f8b3[_0x55dddf['tPkKk']],_0x27e961=_0x47f8b3[_0x55dddf['RXzlH']],_0x139b8c=_0x47f8b3[_0x55dddf[_0xb68f36(0x1d0)]];if(_0x586b41){if(_0x55dddf[_0xb68f36(0x1dd)](_0x55dddf['cZakI'],_0x55dddf[_0xb68f36(0x1ae)]))return(0x0,_0x348a99[_0xb68f36(0x162)])(this[_0xb68f36(0x191)],_0xffd992);else this[_0xb68f36(0x154)]['tokens'][_0xb68f36(0x1ad)]+=_0x586b41;}_0x27e961&&(_0x55dddf['foDvX'](_0x55dddf[_0xb68f36(0x1ab)],_0x55dddf[_0xb68f36(0x1ab)])?this[_0xb68f36(0x145)]=_0x8f9d6f:this['sessionDoc'][_0xb68f36(0x168)]['outputTokens']+=_0x27e961);if(_0x139b8c){if(_0x55dddf[_0xb68f36(0x1a9)](_0x55dddf[_0xb68f36(0x1e0)],_0x55dddf['nIGxQ'])){const _0x37da34=_0x3dc65c[_0x55dddf[_0xb68f36(0x1cf)]],_0x4468a4=_0x456b54[_0x55dddf[_0xb68f36(0x166)]],_0x3a9917=_0x384451[_0xb68f36(0x16c)];_0x37da34&&(this[_0xb68f36(0x154)]['tokens'][_0xb68f36(0x1ad)]+=_0x37da34),_0x4468a4&&(this[_0xb68f36(0x154)][_0xb68f36(0x168)]['outputTokens']+=_0x4468a4),_0x3a9917&&(this[_0xb68f36(0x154)][_0xb68f36(0x168)][_0xb68f36(0x1a0)]+=_0x3a9917);}else this[_0xb68f36(0x154)][_0xb68f36(0x168)]['totalTokens']+=_0x139b8c;}}}[a8_0x3ae54d(0x1d4)](){const _0x433e24=a8_0x3ae54d,_0x388d4a={'PROVs':function(_0x23d24c,_0x48eee1){return _0x23d24c===_0x48eee1;},'voQlr':_0x433e24(0x1de),'sRoMc':_0x433e24(0x15e)},_0x317c42=this['defineSteps']();for(const _0x85810 of _0x317c42){if(_0x388d4a[_0x433e24(0x18e)](_0x388d4a[_0x433e24(0x186)],_0x388d4a[_0x433e24(0x1c5)])){const _0x1e70f4=this[_0x433e24(0x164)][_0x433e24(0x162)](_0x595ceb[_0x433e24(0x1d6)]);if(_0x1e70f4)return _0x1e70f4[_0x433e24(0x1bf)](_0x5c6f68);}else this['stepMap'][_0x433e24(0x1cb)](_0x85810[_0x433e24(0x187)](),_0x85810);}}[a8_0x3ae54d(0x18d)](){const _0x94dd5e=a8_0x3ae54d;return[new end_step_1[(_0x94dd5e(0x146))](this)[_0x94dd5e(0x1b6)](_0x94dd5e(0x1a2))];}[a8_0x3ae54d(0x198)](_0x3cb115){const _0x1ef754=a8_0x3ae54d,_0xc63a81=[];for(const [,_0x1f56a1]of this['stepMap']){_0xc63a81[_0x1ef754(0x173)](_0x1f56a1['createDoc']());}const _0x45ff77={'name':this[_0x1ef754(0x1d6)],'memory':this[_0x1ef754(0x145)][_0x1ef754(0x14e)](),'steps':_0xc63a81,'context':this[_0x1ef754(0x191)]};return _0x3cb115[_0x1ef754(0x15a)][_0x1ef754(0x173)](_0x45ff77),_0x3cb115;}['readDoc'](){const _0x19fbbd=a8_0x3ae54d,_0x187052={'JVynd':function(_0x3a4167,_0x680079){return _0x3a4167===_0x680079;},'cDOjN':_0x19fbbd(0x192),'fXCRV':_0x19fbbd(0x1e1)};this[_0x19fbbd(0x145)]['readDoc'](this[_0x19fbbd(0x148)][_0x19fbbd(0x145)]);for(const [,_0x34e925]of this['stepMap']){if(_0x187052[_0x19fbbd(0x1d7)](_0x187052[_0x19fbbd(0x1da)],_0x187052[_0x19fbbd(0x156)]))return this[_0x19fbbd(0x14f)];else _0x34e925[_0x19fbbd(0x1c0)](this[_0x19fbbd(0x148)][_0x19fbbd(0x18b)]);}this[_0x19fbbd(0x191)]=this[_0x19fbbd(0x148)][_0x19fbbd(0x191)];}[a8_0x3ae54d(0x155)](){const _0x2795b7=a8_0x3ae54d;return this[_0x2795b7(0x154)]['id'];}async[a8_0x3ae54d(0x18f)](){const _0x1a2833=a8_0x3ae54d,_0x580828={'CdGBL':function(_0x9bf7f7,_0x402fb7){return _0x9bf7f7===_0x402fb7;},'NvDBG':'QHLqK','LzqOV':_0x1a2833(0x185)};this[_0x1a2833(0x145)][_0x1a2833(0x179)](this['flowDoc'][_0x1a2833(0x145)]);for(const [,_0x44cd40]of this[_0x1a2833(0x164)]){_0x580828[_0x1a2833(0x1d3)](_0x580828[_0x1a2833(0x1c8)],_0x580828['LzqOV'])?this[_0x1a2833(0x154)][_0x1a2833(0x168)][_0x1a2833(0x1ad)]+=_0x1125b6:_0x44cd40[_0x1a2833(0x179)](this[_0x1a2833(0x148)]['steps']);}this[_0x1a2833(0x148)][_0x1a2833(0x191)]=this[_0x1a2833(0x191)],this[_0x1a2833(0x148)][_0x1a2833(0x1c1)]=this[_0x1a2833(0x1a2)],await this[_0x1a2833(0x14f)][_0x1a2833(0x1cc)]()[_0x1a2833(0x1b0)](this[_0x1a2833(0x154)]);}[a8_0x3ae54d(0x1b2)](){const _0x4b02ef=a8_0x3ae54d,_0x57be46={'JsUbb':function(_0x217a81,_0x5a8c31){return _0x217a81===_0x5a8c31;},'IBKLx':_0x4b02ef(0x1c4)};for(const [_0x1d7f82,_0x54fbac]of this['stepMap']){if(_0x54fbac[_0x4b02ef(0x169)]){if(_0x57be46[_0x4b02ef(0x19e)](_0x4b02ef(0x1c4),_0x57be46[_0x4b02ef(0x178)]))return _0x54fbac;else _0x59fad9[_0x4b02ef(0x179)](this[_0x4b02ef(0x148)][_0x4b02ef(0x18b)]);}}return null;}[a8_0x3ae54d(0x16f)](_0xa640db){const _0xe05fea=a8_0x3ae54d;return this[_0xe05fea(0x164)][_0xe05fea(0x162)](_0xa640db);}[a8_0x3ae54d(0x180)](){return null;}async['run'](_0x1e3532){const _0x368318=a8_0x3ae54d,_0x3ff73f={'iLWDK':function(_0x13e3f0,_0x4068dc){return _0x13e3f0!==_0x4068dc;},'WhCvv':_0x368318(0x19f)},_0x552f73=this['getContext'](_0x368318(0x19c));let _0x57a54d,_0x473b48;if(_0x552f73){if(_0x3ff73f[_0x368318(0x18c)](_0x368318(0x19f),_0x3ff73f[_0x368318(0x16b)])){const _0x1b6a66=this[_0x368318(0x164)][_0x368318(0x162)](_0x50d5b7['name']);return _0x1b6a66[_0x368318(0x199)](_0x44ba32);}else _0x57a54d=await this[_0x368318(0x190)]();}else _0x473b48=this[_0x368318(0x1b2)](),_0x57a54d=await _0x473b48[_0x368318(0x1a7)](_0x1e3532);return _0x473b48=this[_0x368318(0x1b2)](),{'success':!![],'completed':_0x473b48[_0x368318(0x17b)](),'message':_0x57a54d,'session':this['sessionDoc']['id'],'contentType':_0x473b48['contentType']};}async['spawnSteps'](){return'';}async[a8_0x3ae54d(0x194)]({items:_0x1a1b6c,batchSize:_0x15006c,onConfig:_0x4eacec,onBotResponse:_0x34f64b}){const _0x1c8a26=a8_0x3ae54d,_0x19b1a7={'cItAi':function(_0x5601dc,_0x4f94c3){return _0x5601dc(_0x4f94c3);},'ydzgx':function(_0x37de2a,_0x42af42,_0x523c35){return _0x37de2a(_0x42af42,_0x523c35);},'HBEqc':function(_0x34c56e,_0x253d78){return _0x34c56e===_0x253d78;},'CvYIk':_0x1c8a26(0x1c3),'uwFVI':_0x1c8a26(0x1b5),'IfuMp':function(_0x33cc91,_0x150e15){return _0x33cc91<_0x150e15;},'WGXmm':function(_0x4b8efb,_0x3aa6e4){return _0x4b8efb+_0x3aa6e4;},'HXKuy':function(_0x401fc5,_0x2743c5){return _0x401fc5/_0x2743c5;},'DtEmE':function(_0x52712e,_0x2e1725){return _0x52712e/_0x2e1725;}},_0x170b21=new self_client_1[(_0x1c8a26(0x1a8))]();for(let _0x3cd0b9=0x0;_0x19b1a7['IfuMp'](_0x3cd0b9,_0x1a1b6c[_0x1c8a26(0x15f)]);_0x3cd0b9+=_0x15006c){const _0x26ec91=_0x1a1b6c['slice'](_0x3cd0b9,_0x19b1a7['WGXmm'](_0x3cd0b9,_0x15006c)),_0x2b53d4='Processing\x20batch\x20'+_0x19b1a7['WGXmm'](Math[_0x1c8a26(0x1e2)](_0x19b1a7['HXKuy'](_0x3cd0b9,_0x15006c)),0x1)+'/'+Math[_0x1c8a26(0x1b1)](_0x19b1a7['DtEmE'](_0x1a1b6c[_0x1c8a26(0x15f)],_0x15006c))+'\x20(batch\x20size:'+_0x26ec91['length']+')';new session_logger_1[(_0x1c8a26(0x197))](this[_0x1c8a26(0x153)]())[_0x1c8a26(0x1c7)](_0x2b53d4),console[_0x1c8a26(0x1c7)](_0x2b53d4);const _0x178438=_0x26ec91[_0x1c8a26(0x144)](async _0x2ac5be=>{const _0x17a78d=_0x1c8a26,_0x4d1f1c={'flowName':this[_0x17a78d(0x1d6)],'config':{..._0x19b1a7[_0x17a78d(0x181)](_0x4eacec,_0x2ac5be)}};try{const _0x24fd31=await _0x170b21[_0x17a78d(0x176)]('',_0x4d1f1c);_0x19b1a7['ydzgx'](_0x34f64b,_0x2ac5be,_0x24fd31);}catch(_0x2359c6){if(_0x19b1a7[_0x17a78d(0x1bb)](_0x17a78d(0x161),_0x19b1a7[_0x17a78d(0x150)])){const _0x17e145=(0x0,_0x184896[_0x17a78d(0x165)])({},_0xb17cbe,{'func':null});this['tools'][_0x17a78d(0x1cb)](_0x4e09b9['name'],new _0x9b185f[(_0x17a78d(0x1a4))](_0x17e145));}else{const _0x3e2fec=_0x17a78d(0x1c9)+this[_0x17a78d(0x1d6)]+',\x20error:'+_0x2359c6[_0x19b1a7[_0x17a78d(0x17e)]];new session_logger_1[(_0x17a78d(0x197))](this[_0x17a78d(0x153)]())[_0x17a78d(0x149)](_0x3e2fec),console[_0x17a78d(0x149)](_0x3e2fec);}}});await Promise[_0x1c8a26(0x17f)](_0x178438);const _0x5a8eb9=_0x1c8a26(0x195)+_0x19b1a7[_0x1c8a26(0x160)](Math[_0x1c8a26(0x1e2)](_0x19b1a7[_0x1c8a26(0x1a6)](_0x3cd0b9,_0x15006c)),0x1)+_0x1c8a26(0x1df);new session_logger_1['SessionLogger'](this[_0x1c8a26(0x153)]())[_0x1c8a26(0x1c7)](_0x5a8eb9),console[_0x1c8a26(0x1c7)](_0x5a8eb9);}}[a8_0x3ae54d(0x1be)](_0x154b6d){const _0x5254c9=a8_0x3ae54d;this[_0x5254c9(0x145)]=_0x154b6d;}[a8_0x3ae54d(0x14a)](_0x59570c){const _0x3e9f80=a8_0x3ae54d;return this['memory'][_0x3e9f80(0x143)](_0x59570c);}[a8_0x3ae54d(0x1bc)](_0x5b1ff7){const _0xba3ad6=a8_0x3ae54d;this[_0xba3ad6(0x191)]=_0x5b1ff7;}[a8_0x3ae54d(0x16d)](_0x4ed4c8){const _0x2fa36d=a8_0x3ae54d;(0x0,lodash_1[_0x2fa36d(0x165)])(this['context'],_0x4ed4c8);}['getContext'](_0x4f5faf){const _0x434fd2=a8_0x3ae54d;return(0x0,lodash_1['get'])(this[_0x434fd2(0x191)],_0x4f5faf);}async[a8_0x3ae54d(0x174)](_0xdb3dfa){const _0x20ba45=a8_0x3ae54d;return await this[_0x20ba45(0x193)](_0xdb3dfa[_0x20ba45(0x1d6)]);}async['activateByName'](_0x5767f5){const _0x59f2c9=a8_0x3ae54d,_0x332ce8={'McEpi':function(_0x483da5,_0x2e0262){return _0x483da5===_0x2e0262;},'ZceQc':_0x59f2c9(0x158)},_0x37a74c=this[_0x59f2c9(0x164)][_0x59f2c9(0x162)](_0x5767f5);if(_0x332ce8['McEpi'](_0x37a74c[_0x59f2c9(0x187)](),_0x5767f5)&&_0x37a74c['active'])return _0x37a74c;else{for(const [_0x94f781,_0x1a05e2]of this[_0x59f2c9(0x164)]){if(_0x1a05e2[_0x59f2c9(0x169)]){if(_0x332ce8[_0x59f2c9(0x15d)](_0x332ce8['ZceQc'],_0x59f2c9(0x188)))return!![];else{_0x1a05e2['active']=![];break;}}}return this[_0x59f2c9(0x148)][_0x59f2c9(0x15c)][_0x59f2c9(0x173)](_0x5767f5),_0x37a74c[_0x59f2c9(0x169)]=!![],_0x37a74c;}}['getTool'](_0x5220f1){const _0x1b825c=a8_0x3ae54d;return this[_0x1b825c(0x1c6)][_0x1b825c(0x162)](_0x5220f1);}['composeTool'](){const _0x37467a=a8_0x3ae54d,_0x14590e={'jQaAQ':function(_0x46d149,_0xa3e3b){return _0x46d149!==_0xa3e3b;},'ETfIS':_0x37467a(0x14d),'oUgUz':_0x37467a(0x1dc),'ucQrd':function(_0x532acb,_0x41c94e){return _0x532acb===_0x41c94e;},'xzsul':_0x37467a(0x1d5),'vrnKH':_0x37467a(0x1b8)},_0x24cb3c=[];for(const [_0x1c6efa,_0xe9cc2c]of this[_0x37467a(0x164)]){if(_0x14590e[_0x37467a(0x19d)](_0x14590e[_0x37467a(0x1d2)],_0x14590e[_0x37467a(0x1a1)])){const _0x3fe976=_0xe9cc2c[_0x37467a(0x180)]();if(_0x3fe976){if(_0x37467a(0x1cd)==='yVweW')return this['sessionDoc'];else _0x24cb3c['push'](..._0x3fe976);}}else(0x0,_0x1b0d07[_0x37467a(0x165)])(this[_0x37467a(0x191)],_0x1ef8bd);}const _0x358d69=this['defineTool']();_0x358d69&&_0x24cb3c[_0x37467a(0x173)](..._0x358d69);for(const _0x458152 of _0x24cb3c){if(_0x14590e['ucQrd'](_0x14590e[_0x37467a(0x14b)],_0x14590e[_0x37467a(0x1af)])){const _0x4d4af3=_0x7f738?function(){const _0xfe5a47=_0x37467a;if(_0x564f8b){const _0x2cf34e=_0x41811a[_0xfe5a47(0x1ca)](_0x5c8426,arguments);return _0x44fde0=null,_0x2cf34e;}}:function(){};return _0x4b9bd8=![],_0x4d4af3;}else{const _0x5c2f73=(0x0,lodash_1['merge'])({},_0x458152,{'func':null});this[_0x37467a(0x1c6)][_0x37467a(0x1cb)](_0x458152[_0x37467a(0x1d6)],new tools_1['DynamicStructuredTool'](_0x5c2f73));}}}['getSessionDoc'](){const _0x51838b=a8_0x3ae54d;return this[_0x51838b(0x154)];}['getStepState'](_0x541c5b,_0x41d44d){const _0x44075b=a8_0x3ae54d,_0x9cd228=this[_0x44075b(0x164)][_0x44075b(0x162)](_0x541c5b[_0x44075b(0x1d6)]);return _0x9cd228[_0x44075b(0x199)](_0x41d44d);}[a8_0x3ae54d(0x167)](_0x5460d0,_0x5c4e2c){const _0x3f1c92=a8_0x3ae54d,_0x3df02d=this[_0x3f1c92(0x164)][_0x3f1c92(0x162)](_0x5460d0[_0x3f1c92(0x1d6)]);return _0x3df02d[_0x3f1c92(0x1c2)](_0x5c4e2c);}['saveStepState'](_0x345ab5,_0xc837a5){const _0x59ac21=a8_0x3ae54d,_0x36d38a=this[_0x59ac21(0x164)][_0x59ac21(0x162)](_0x345ab5['name']);if(_0x36d38a){if(_0x59ac21(0x1aa)==='Dubba')return _0x36d38a[_0x59ac21(0x1bf)](_0xc837a5);else this[_0x59ac21(0x164)]=new _0x4a2614(),this[_0x59ac21(0x1c6)]=new _0x5b9712(),this[_0x59ac21(0x1a2)]=-0x1,this[_0x59ac21(0x1d6)]=_0x475582['name'],this[_0x59ac21(0x191)]={};}}get[a8_0x3ae54d(0x1c1)](){const _0xdab9fe=a8_0x3ae54d;return this[_0xdab9fe(0x1a2)];}set[a8_0x3ae54d(0x1c1)](_0x3856f3){const _0x52762e=a8_0x3ae54d;this[_0x52762e(0x1a2)]=_0x3856f3;}}exports[a8_0x3ae54d(0x182)]=Flow;
|
|
1
|
+
const a8_0x358a3d=a8_0x1268;(function(_0x3b74aa,_0x144ab2){const _0x5e0de8=a8_0x1268,_0x25d220=_0x3b74aa();while(!![]){try{const _0x38d6f=-parseInt(_0x5e0de8(0x189))/0x1*(parseInt(_0x5e0de8(0x179))/0x2)+parseInt(_0x5e0de8(0x19e))/0x3+parseInt(_0x5e0de8(0x1e5))/0x4+-parseInt(_0x5e0de8(0x1b7))/0x5*(-parseInt(_0x5e0de8(0x18d))/0x6)+-parseInt(_0x5e0de8(0x169))/0x7+parseInt(_0x5e0de8(0x196))/0x8*(parseInt(_0x5e0de8(0x1dd))/0x9)+-parseInt(_0x5e0de8(0x1e1))/0xa;if(_0x38d6f===_0x144ab2)break;else _0x25d220['push'](_0x25d220['shift']());}catch(_0x2b5829){_0x25d220['push'](_0x25d220['shift']());}}}(a8_0x14a7,0x9bd0a));function a8_0x1268(_0x19c90c,_0x58d0ce){const _0x2d9d0e=a8_0x14a7();return a8_0x1268=function(_0x4ec022,_0xa76f38){_0x4ec022=_0x4ec022-0x144;let _0x14a78d=_0x2d9d0e[_0x4ec022];return _0x14a78d;},a8_0x1268(_0x19c90c,_0x58d0ce);}const a8_0xa76f38=(function(){const _0x41c5ea=a8_0x1268,_0x563ed4={'CvsEp':_0x41c5ea(0x18a)};let _0x360739=!![];return function(_0x2da7ae,_0x5856d9){const _0xa0aef0=_0x41c5ea;if(_0x563ed4[_0xa0aef0(0x1db)]===_0x563ed4[_0xa0aef0(0x1db)]){const _0x4f8a6c=_0x360739?function(){const _0x12c6eb=_0xa0aef0;if(_0x5856d9){const _0x5476e3=_0x5856d9[_0x12c6eb(0x1d4)](_0x2da7ae,arguments);return _0x5856d9=null,_0x5476e3;}}:function(){};return _0x360739=![],_0x4f8a6c;}else return'';};}()),a8_0x4ec022=a8_0xa76f38(this,function(){const _0xa1bab5=a8_0x1268,_0x413ca0={'OOHPZ':_0xa1bab5(0x17f)};return a8_0x4ec022['toString']()[_0xa1bab5(0x1c7)](_0x413ca0[_0xa1bab5(0x18c)])[_0xa1bab5(0x1cb)]()['constructor'](a8_0x4ec022)[_0xa1bab5(0x1c7)](_0x413ca0[_0xa1bab5(0x18c)]);});a8_0x4ec022();'use strict';Object[a8_0x358a3d(0x1bc)](exports,'__esModule',{'value':!![]}),exports[a8_0x358a3d(0x146)]=void 0x0;const tools_1=require(a8_0x358a3d(0x1c0)),lodash_1=require('lodash'),end_step_1=require(a8_0x358a3d(0x17e)),self_client_1=require('../clients/self-client'),session_logger_1=require(a8_0x358a3d(0x1aa));class Flow{constructor(_0x2bdcfd){const _0x1ef805=a8_0x358a3d,_0x1c7548=_0x1ef805(0x181)['split']('|');let _0x3da901=0x0;while(!![]){switch(_0x1c7548[_0x3da901++]){case'0':this[_0x1ef805(0x158)]=new Map();continue;case'1':this[_0x1ef805(0x168)]=_0x2bdcfd['name'];continue;case'2':this[_0x1ef805(0x1a0)]={};continue;case'3':this[_0x1ef805(0x14f)]=-0x1;continue;case'4':this['tools']=new Map();continue;}break;}}async[a8_0x358a3d(0x171)](){}[a8_0x358a3d(0x175)](){return this['flowEngine'];}async[a8_0x358a3d(0x18b)](_0x22c2ad,_0x298e03){const _0x1e52e5=a8_0x358a3d,_0x3b5fea={'gLRxw':function(_0x21944f,_0x267007){return _0x21944f===_0x267007;},'rkWUz':_0x1e52e5(0x197),'zQjEZ':_0x1e52e5(0x1d9),'jzzAg':function(_0x28f95f,_0x2f1d9e){return _0x28f95f!==_0x2f1d9e;},'skQSn':_0x1e52e5(0x19a),'afWEE':'rPjFT','tmJMD':function(_0x23ff74,_0x1f8289){return _0x23ff74===_0x1f8289;},'qWfWm':function(_0x3ab7d3,_0x5724be){return _0x3ab7d3!==_0x5724be;},'vgkmL':_0x1e52e5(0x1de),'MfBHL':_0x1e52e5(0x1ca)};this[_0x1e52e5(0x1cc)]=_0x298e03;for(const [,_0x2ec85a]of this['stepMap']){if(_0x3b5fea[_0x1e52e5(0x14e)](_0x3b5fea[_0x1e52e5(0x1b5)],_0x3b5fea['zQjEZ']))this[_0x1e52e5(0x17b)][_0x1e52e5(0x1b0)]['inputTokens']+=_0x3595ef;else{const _0x2ed85b=_0x2ec85a['getModel']();if(!_0x2ed85b){if(_0x3b5fea[_0x1e52e5(0x147)](_0x3b5fea['skQSn'],_0x3b5fea[_0x1e52e5(0x161)])){const _0x217810=this['getFlowEngine']()[_0x1e52e5(0x14a)]();_0x2ec85a['useModel'](_0x217810);}else{const _0x2a29b2=this['stepMap'][_0x1e52e5(0x1d5)](_0x5cf1f1[_0x1e52e5(0x168)]);return _0x2a29b2[_0x1e52e5(0x145)](_0x52a3a4);}}}}const _0x283ec7=_0x298e03[_0x1e52e5(0x1a3)](),[_0x255408,_0x381eb5]=await _0x283ec7[_0x1e52e5(0x1d2)](_0x22c2ad);_0x255408?(this['sessionDoc']=this['createDoc'](_0x381eb5),this[_0x1e52e5(0x187)](),this[_0x1e52e5(0x170)]()):(this[_0x1e52e5(0x17b)]=_0x381eb5,this['assignFlowDoc'](),this[_0x1e52e5(0x18f)]());if(_0x3b5fea[_0x1e52e5(0x178)](this[_0x1e52e5(0x185)][_0x1e52e5(0x151)]['length'],0x0)){const _0x5240d6=this['getActiveStep']();if(_0x5240d6){if(_0x3b5fea[_0x1e52e5(0x15c)](_0x3b5fea[_0x1e52e5(0x1d8)],_0x3b5fea[_0x1e52e5(0x1d0)]))this[_0x1e52e5(0x185)]['sequence'][_0x1e52e5(0x1e3)](_0x5240d6[_0x1e52e5(0x1d7)]());else{const _0x105653=this[_0x1e52e5(0x182)]();_0x105653&&this[_0x1e52e5(0x185)][_0x1e52e5(0x151)][_0x1e52e5(0x1e3)](_0x105653[_0x1e52e5(0x1d7)]());}}}this[_0x1e52e5(0x16d)]();}[a8_0x358a3d(0x187)](){const _0x269f77=a8_0x358a3d,_0x42d7d4={'XMiSf':_0x269f77(0x180),'WhUSA':'total_tokens','nbTjU':'(((.+)+)+)+$','owYOt':function(_0x2930ed,_0x10bc64){return _0x2930ed===_0x10bc64;},'qEGlW':_0x269f77(0x1c9),'fVvZE':function(_0x330957,_0x3280ca){return _0x330957===_0x3280ca;},'vEdrg':function(_0x4a01f9,_0x2ca4ea){return _0x4a01f9!==_0x2ca4ea;},'cKhWp':'SyFYm','WCbUK':_0x269f77(0x193)},_0xe693bc=this['sessionDoc'][_0x269f77(0x1a7)][_0x269f77(0x1bf)](_0x296029=>{const _0x5e9e09=_0x269f77;if(_0x42d7d4['owYOt'](_0x42d7d4[_0x5e9e09(0x15f)],_0x42d7d4[_0x5e9e09(0x15f)])){if(_0x42d7d4[_0x5e9e09(0x191)](_0x296029[_0x5e9e09(0x168)],this[_0x5e9e09(0x168)])){if(_0x42d7d4[_0x5e9e09(0x190)](_0x42d7d4[_0x5e9e09(0x148)],_0x42d7d4['WCbUK']))return!![];else{const _0x33a9d4=_0x1f7224[_0x42d7d4[_0x5e9e09(0x1a9)]],_0x4a17aa=_0xbea00d['output_tokens'],_0x5bdd94=_0x359b2b[_0x42d7d4[_0x5e9e09(0x1df)]];_0x33a9d4&&(this[_0x5e9e09(0x17b)]['tokens']['inputTokens']+=_0x33a9d4),_0x4a17aa&&(this[_0x5e9e09(0x17b)][_0x5e9e09(0x1b0)][_0x5e9e09(0x174)]+=_0x4a17aa),_0x5bdd94&&(this[_0x5e9e09(0x17b)]['tokens'][_0x5e9e09(0x16e)]+=_0x5bdd94);}}return![];}else return _0x2ede43[_0x5e9e09(0x1cb)]()[_0x5e9e09(0x1c7)](IPzqab[_0x5e9e09(0x1a8)])['toString']()['constructor'](_0xc7a998)[_0x5e9e09(0x1c7)](IPzqab[_0x5e9e09(0x1a8)]);});this[_0x269f77(0x185)]=_0xe693bc[0x0],this[_0x269f77(0x185)][_0x269f77(0x151)]=this['flowDoc'][_0x269f77(0x151)]||[];}[a8_0x358a3d(0x17c)](_0x4edc27){const _0x30ea34=a8_0x358a3d,_0x5b85a1={'efuQO':function(_0xc844f,_0x208f24){return _0xc844f===_0x208f24;},'lLkUD':'JTKGS','rRUKO':_0x30ea34(0x162),'RfzNw':_0x30ea34(0x1c5)};if(_0x4edc27){if(_0x5b85a1[_0x30ea34(0x16f)](_0x5b85a1['lLkUD'],_0x5b85a1[_0x30ea34(0x1be)]))_0x45b2d6[_0x30ea34(0x1e3)](..._0x7ede98);else{const _0x1099db=_0x4edc27[_0x30ea34(0x180)],_0x2a96fa=_0x4edc27[_0x30ea34(0x186)],_0x3ae993=_0x4edc27[_0x5b85a1[_0x30ea34(0x188)]];_0x1099db&&(this[_0x30ea34(0x17b)]['tokens']['inputTokens']+=_0x1099db),_0x2a96fa&&(this[_0x30ea34(0x17b)][_0x30ea34(0x1b0)][_0x30ea34(0x174)]+=_0x2a96fa),_0x3ae993&&(this[_0x30ea34(0x17b)][_0x30ea34(0x1b0)]['totalTokens']+=_0x3ae993);}}}[a8_0x358a3d(0x1b8)](){const _0x1e7704=a8_0x358a3d,_0xc0291d={'FoQlJ':function(_0x1cdd26,_0x5505da){return _0x1cdd26!==_0x5505da;},'cafZN':_0x1e7704(0x194),'dodxp':_0x1e7704(0x165)},_0x33c84=this[_0x1e7704(0x14b)]();for(const _0x49fcad of _0x33c84){if(_0xc0291d[_0x1e7704(0x17d)](_0xc0291d['cafZN'],_0xc0291d['dodxp']))this[_0x1e7704(0x158)]['set'](_0x49fcad[_0x1e7704(0x1d7)](),_0x49fcad);else return this[_0x1e7704(0x144)][_0x1e7704(0x1b6)](_0x344158);}}[a8_0x358a3d(0x14b)](){return[new end_step_1['EndStep'](this)['useMemory']('temp')];}['createDoc'](_0x525d31){const _0x50f333=a8_0x358a3d,_0x35aa19={'LWRJd':_0x50f333(0x155)},_0x5cf9fa=[];for(const [,_0x3ec501]of this[_0x50f333(0x158)]){if(_0x35aa19['LWRJd']!==_0x35aa19[_0x50f333(0x14c)]){const _0xe63c93=(0x0,_0x1b958c['merge'])({},_0x855c7f,{'func':null});this[_0x50f333(0x1ce)]['set'](_0x5daddf[_0x50f333(0x168)],new _0x21e50a[(_0x50f333(0x1ad))](_0xe63c93));}else _0x5cf9fa[_0x50f333(0x1e3)](_0x3ec501[_0x50f333(0x1cd)]());}const _0x27b51d={'name':this[_0x50f333(0x168)],'memory':this[_0x50f333(0x144)][_0x50f333(0x167)](),'steps':_0x5cf9fa,'context':this[_0x50f333(0x1a0)]};return _0x525d31[_0x50f333(0x1a7)][_0x50f333(0x1e3)](_0x27b51d),_0x525d31;}[a8_0x358a3d(0x18f)](){const _0x2e635b=a8_0x358a3d,_0x5d19a1={'QeDzs':function(_0x29e87b,_0x10f810){return _0x29e87b===_0x10f810;},'GMexv':_0x2e635b(0x1af)};this[_0x2e635b(0x144)][_0x2e635b(0x18f)](this[_0x2e635b(0x185)][_0x2e635b(0x144)]);for(const [,_0x138c5e]of this[_0x2e635b(0x158)]){if(_0x5d19a1[_0x2e635b(0x15a)](_0x5d19a1[_0x2e635b(0x1bd)],_0x5d19a1[_0x2e635b(0x1bd)]))_0x138c5e[_0x2e635b(0x18f)](this['flowDoc'][_0x2e635b(0x16b)]);else return _0x59272d[_0x2e635b(0x1b9)](_0x641244);}this['context']=this[_0x2e635b(0x185)][_0x2e635b(0x1a0)];}['getSessionId'](){return this['sessionDoc']['id'];}async[a8_0x358a3d(0x170)](){const _0x4ce008=a8_0x358a3d;this['memory'][_0x4ce008(0x1ba)](this[_0x4ce008(0x185)][_0x4ce008(0x144)]);for(const [,_0x8606cc]of this[_0x4ce008(0x158)]){_0x8606cc[_0x4ce008(0x1ba)](this[_0x4ce008(0x185)][_0x4ce008(0x16b)]);}this[_0x4ce008(0x185)][_0x4ce008(0x1a0)]=this[_0x4ce008(0x1a0)],this[_0x4ce008(0x185)][_0x4ce008(0x19b)]=this['temp'],await this[_0x4ce008(0x1cc)][_0x4ce008(0x1a3)]()[_0x4ce008(0x159)](this[_0x4ce008(0x17b)]);}[a8_0x358a3d(0x182)](){const _0x96c2f3=a8_0x358a3d,_0x553d0b={'GhDjA':_0x96c2f3(0x1cf)};for(const [_0x3219c7,_0x393d03]of this[_0x96c2f3(0x158)]){if(_0x393d03['active'])return _0x96c2f3(0x1d3)===_0x553d0b['GhDjA']?(0x0,_0x44ee8d[_0x96c2f3(0x1d5)])(this['context'],_0x294650):_0x393d03;}return null;}['getStep'](_0x22f37a){const _0x3fae60=a8_0x358a3d;return this[_0x3fae60(0x158)][_0x3fae60(0x1d5)](_0x22f37a);}['defineTool'](){return null;}async['run'](_0x5250ef){const _0x375475=a8_0x358a3d,_0x1c75e5={'aRxTr':_0x375475(0x156),'nYlid':function(_0x281be2,_0x4f9b19){return _0x281be2===_0x4f9b19;},'ZzQDp':_0x375475(0x177)},_0x1e6e1a=this[_0x375475(0x192)](_0x1c75e5[_0x375475(0x1c2)]);let _0x2adc7c,_0x365e84;if(_0x1e6e1a){if(_0x1c75e5[_0x375475(0x1d6)](_0x375475(0x19f),_0x1c75e5[_0x375475(0x1da)])){const _0x3c6f3c=_0x2a86bf[_0x375475(0x1c8)]();_0x3c6f3c&&_0x4c4a68['push'](..._0x3c6f3c);}else _0x2adc7c=await this['spawnSteps']();}else _0x365e84=this[_0x375475(0x182)](),_0x2adc7c=await _0x365e84['run'](_0x5250ef);return _0x365e84=this[_0x375475(0x182)](),{'success':!![],'completed':_0x365e84[_0x375475(0x1c3)](),'message':_0x2adc7c,'session':this[_0x375475(0x17b)]['id'],'contentType':_0x365e84[_0x375475(0x198)]};}async[a8_0x358a3d(0x199)](){return'';}async['concurrentSteps']({items:_0x543f8c,batchSize:_0x3da92b,onConfig:_0x2b602d,onBotResponse:_0x1c4d45}){const _0xef6907=a8_0x358a3d,_0x393c83={'KilBP':function(_0x5af186,_0x400b7e){return _0x5af186===_0x400b7e;},'GWKGk':function(_0x31506b,_0xf509e9){return _0x31506b(_0xf509e9);},'FqUON':_0xef6907(0x1b2),'QUfdZ':_0xef6907(0x1a2),'KioNZ':function(_0x40a242,_0x29eb76){return _0x40a242<_0x29eb76;},'UYorI':_0xef6907(0x1e0),'PKMvI':function(_0x5a8e93,_0x4bb874){return _0x5a8e93+_0x4bb874;},'JVLko':function(_0x3dab40,_0x393e76){return _0x3dab40/_0x393e76;}},_0x515852=new self_client_1[(_0xef6907(0x1c1))]();for(let _0x5da50a=0x0;_0x393c83[_0xef6907(0x152)](_0x5da50a,_0x543f8c['length']);_0x5da50a+=_0x3da92b){if(_0xef6907(0x1e0)===_0x393c83[_0xef6907(0x1c6)]){const _0x541a02=_0x543f8c[_0xef6907(0x1ae)](_0x5da50a,_0x5da50a+_0x3da92b),_0x162bd4=_0xef6907(0x150)+_0x393c83[_0xef6907(0x16a)](Math[_0xef6907(0x183)](_0x393c83['JVLko'](_0x5da50a,_0x3da92b)),0x1)+'/'+Math[_0xef6907(0x1a4)](_0x393c83[_0xef6907(0x176)](_0x543f8c['length'],_0x3da92b))+_0xef6907(0x1a6)+_0x541a02['length']+')';new session_logger_1[(_0xef6907(0x149))](this[_0xef6907(0x1ac)]())[_0xef6907(0x1e2)](_0x162bd4),console[_0xef6907(0x1e2)](_0x162bd4);const _0x4be601=_0x541a02[_0xef6907(0x18e)](async _0xc66b4d=>{const _0x167d46=_0xef6907,_0x2901a6={'flowName':this[_0x167d46(0x168)],'config':{..._0x393c83['GWKGk'](_0x2b602d,_0xc66b4d)}};try{if(_0x393c83['FqUON']===_0x393c83[_0x167d46(0x16c)]){const _0x581025=await _0x515852[_0x167d46(0x14d)]('',_0x2901a6);_0x1c4d45(_0xc66b4d,_0x581025);}else{const _0xdad543={'QerYQ':function(_0x5de0d3,_0x570ade){const _0x32a6b3=_0x167d46;return _0x393c83[_0x32a6b3(0x1b1)](_0x5de0d3,_0x570ade);}},_0x32f0b2=this['sessionDoc'][_0x167d46(0x1a7)][_0x167d46(0x1bf)](_0x49a7fa=>{const _0x58708d=_0x167d46;if(_0xdad543['QerYQ'](_0x49a7fa[_0x58708d(0x168)],this[_0x58708d(0x168)]))return!![];return![];});this[_0x167d46(0x185)]=_0x32f0b2[0x0],this[_0x167d46(0x185)][_0x167d46(0x151)]=this[_0x167d46(0x185)][_0x167d46(0x151)]||[];}}catch(_0x30dc0e){const _0x1e303e=_0x167d46(0x163)+this[_0x167d46(0x168)]+',\x20error:'+_0x30dc0e[_0x393c83[_0x167d46(0x160)]];new session_logger_1[(_0x167d46(0x149))](this[_0x167d46(0x1ac)]())['error'](_0x1e303e),console[_0x167d46(0x19d)](_0x1e303e);}});await Promise[_0xef6907(0x1a5)](_0x4be601);const _0x1889b8=_0xef6907(0x15e)+_0x393c83[_0xef6907(0x16a)](Math[_0xef6907(0x183)](_0x393c83['JVLko'](_0x5da50a,_0x3da92b)),0x1)+_0xef6907(0x15b);new session_logger_1[(_0xef6907(0x149))](this['getSessionDoc']())[_0xef6907(0x1e2)](_0x1889b8),console[_0xef6907(0x1e2)](_0x1889b8);}else return _0x20049d;}}[a8_0x358a3d(0x15d)](_0x162e6b){const _0x3b9026=a8_0x358a3d;this[_0x3b9026(0x144)]=_0x162e6b;}[a8_0x358a3d(0x153)](_0x2e04a4){const _0x2ec4f8=a8_0x358a3d;return this[_0x2ec4f8(0x144)][_0x2ec4f8(0x1b6)](_0x2e04a4);}[a8_0x358a3d(0x164)](_0x9990a5){const _0x5f3e78=a8_0x358a3d;this[_0x5f3e78(0x1a0)]=_0x9990a5;}[a8_0x358a3d(0x172)](_0x34c0d8){const _0x4cc7c3=a8_0x358a3d;(0x0,lodash_1[_0x4cc7c3(0x1d1)])(this[_0x4cc7c3(0x1a0)],_0x34c0d8);}[a8_0x358a3d(0x192)](_0x4e2c96){const _0x6cef72=a8_0x358a3d;return(0x0,lodash_1[_0x6cef72(0x1d5)])(this[_0x6cef72(0x1a0)],_0x4e2c96);}async['activate'](_0x52da43){const _0x32fd36=a8_0x358a3d;return await this[_0x32fd36(0x157)](_0x52da43[_0x32fd36(0x168)]);}async[a8_0x358a3d(0x157)](_0x544916){const _0x121033=a8_0x358a3d,_0x4b9c94={'xjblQ':function(_0x586146,_0xbce86a){return _0x586146===_0xbce86a;},'FGAWK':function(_0x4c4eac,_0x2a2410){return _0x4c4eac!==_0x2a2410;},'uAJcY':'HKzfO','tAEMD':_0x121033(0x1b3)},_0x1e4b48=this[_0x121033(0x158)][_0x121033(0x1d5)](_0x544916);if(_0x4b9c94[_0x121033(0x19c)](_0x1e4b48[_0x121033(0x1d7)](),_0x544916)&&_0x1e4b48[_0x121033(0x1a1)]){if(_0x4b9c94[_0x121033(0x1dc)](_0x4b9c94['uAJcY'],_0x4b9c94[_0x121033(0x173)]))_0x5e4110[_0x121033(0x18f)](this['flowDoc'][_0x121033(0x16b)]);else return _0x1e4b48;}else{for(const [_0x37df95,_0x1da89c]of this[_0x121033(0x158)]){if(_0x4b9c94[_0x121033(0x19c)](_0x4b9c94[_0x121033(0x1c4)],_0x4b9c94[_0x121033(0x1c4)])){if(_0x1da89c[_0x121033(0x1a1)]){_0x1da89c[_0x121033(0x1a1)]=![];break;}}else this[_0x121033(0x17b)][_0x121033(0x1b0)][_0x121033(0x16e)]+=_0x4caf2e;}return this[_0x121033(0x185)][_0x121033(0x151)][_0x121033(0x1e3)](_0x544916),_0x1e4b48['active']=!![],_0x1e4b48;}}['getTool'](_0x59f3f5){const _0x2f1b03=a8_0x358a3d;return this['tools'][_0x2f1b03(0x1d5)](_0x59f3f5);}['composeTool'](){const _0x1fb159=a8_0x358a3d,_0x516ec4={'oWCce':function(_0x35a5ef,_0xdfe093){return _0x35a5ef!==_0xdfe093;},'JXzfO':_0x1fb159(0x184),'yEUbL':function(_0x4761b9,_0x23096d){return _0x4761b9!==_0x23096d;},'ltVcU':_0x1fb159(0x195)},_0x63ab1f=[];for(const [_0x546699,_0x2d44bd]of this[_0x1fb159(0x158)]){const _0x28d9f8=_0x2d44bd[_0x1fb159(0x1c8)]();if(_0x28d9f8){if(_0x516ec4['oWCce'](_0x516ec4[_0x1fb159(0x1bb)],_0x1fb159(0x1ab)))_0x63ab1f['push'](..._0x28d9f8);else return this[_0x1fb159(0x14f)];}}const _0x1bf16f=this[_0x1fb159(0x1c8)]();_0x1bf16f&&_0x63ab1f[_0x1fb159(0x1e3)](..._0x1bf16f);for(const _0x44fba9 of _0x63ab1f){if(_0x516ec4[_0x1fb159(0x166)](_0x516ec4['ltVcU'],_0x1fb159(0x195))){const _0x11c465=this[_0x1fb159(0x158)]['get'](_0x474307['name']);return _0x11c465[_0x1fb159(0x154)](_0x5822fc);}else{const _0xb3044a=(0x0,lodash_1[_0x1fb159(0x1d1)])({},_0x44fba9,{'func':null});this['tools']['set'](_0x44fba9[_0x1fb159(0x168)],new tools_1[(_0x1fb159(0x1ad))](_0xb3044a));}}}[a8_0x358a3d(0x1ac)](){const _0x16e766=a8_0x358a3d;return this[_0x16e766(0x17b)];}[a8_0x358a3d(0x1e4)](_0x1b5243,_0x379763){const _0x561bbf=a8_0x358a3d,_0x441593=this[_0x561bbf(0x158)][_0x561bbf(0x1d5)](_0x1b5243[_0x561bbf(0x168)]);return _0x441593[_0x561bbf(0x154)](_0x379763);}['getStepStateAs'](_0x160e56,_0x283c99){const _0x30ffe8=a8_0x358a3d,_0x38f16d=this[_0x30ffe8(0x158)][_0x30ffe8(0x1d5)](_0x160e56[_0x30ffe8(0x168)]);return _0x38f16d[_0x30ffe8(0x145)](_0x283c99);}['saveStepState'](_0x397d49,_0x50a526){const _0x49936c=a8_0x358a3d,_0x56cf1d={'xRJPi':function(_0x375eed,_0x2ace18){return _0x375eed===_0x2ace18;},'StUOO':_0x49936c(0x17a)},_0x36de83=this[_0x49936c(0x158)]['get'](_0x397d49[_0x49936c(0x168)]);if(_0x36de83)return _0x56cf1d['xRJPi'](_0x56cf1d[_0x49936c(0x1b4)],_0x56cf1d[_0x49936c(0x1b4)])?_0x36de83[_0x49936c(0x1b9)](_0x50a526):this[_0x49936c(0x158)][_0x49936c(0x1d5)](_0x5e4cc7);}get['temperature'](){const _0x34f249=a8_0x358a3d;return this[_0x34f249(0x14f)];}set[a8_0x358a3d(0x19b)](_0x26877e){this['temp']=_0x26877e;}}function a8_0x14a7(){const _0x515687=['nwMiS','tmJMD','515758bvLbJI','pmmcA','sessionDoc','tallyToken','FoQlJ','./end-step','(((.+)+)+)+$','input_tokens','0|4|3|1|2','getActiveStep','floor','hEidH','flowDoc','output_tokens','assignFlowDoc','RfzNw','3FsapPk','SkirF','bootstrap','OOHPZ','702veshCe','map','readDoc','vEdrg','fVvZE','getContext','mPZEE','sXfYu','WWetW','1560872hrmDKP','JDsgZ','contentType','spawnSteps','pABJu','temperature','xjblQ','error','1036158JDBWRU','fNfvx','context','active','message','getFlowSession','ceil','all','\x20(batch\x20size:','flows','nbTjU','XMiSf','../session/session-logger','ueIxB','getSessionDoc','DynamicStructuredTool','slice','LMmNj','tokens','KilBP','NUlUt','VsDia','StUOO','rkWUz','getMessages','47970bheuaS','collectSteps','saveState','writeDoc','JXzfO','defineProperty','GMexv','rRUKO','filter','@langchain/core/tools','SelfClient','aRxTr','isEnd','tAEMD','total_tokens','UYorI','search','defineTool','sdFVz','mMgtc','toString','flowEngine','createDoc','tools','yoFVt','MfBHL','merge','fetch','YOuhd','apply','get','nYlid','getName','vgkmL','aaVDX','ZzQDp','CvsEp','FGAWK','36ReEsNB','LnmUd','WhUSA','OMHkj','4168300hFvwdp','log','push','getStepState','706896nLzPfX','memory','getStateAs','Flow','jzzAg','cKhWp','SessionLogger','getModelName','defineSteps','LWRJd','post','gLRxw','temp','Processing\x20batch\x20','sequence','KioNZ','getMemory','getState','Mxheb','config._concurrent','activateByName','stepMap','save','QeDzs','\x20completed.','qWfWm','setMemory','Batch\x20','qEGlW','QUfdZ','afWEE','SuLyS','Error\x20batch\x20process\x20flow:\x20','setContext','kZpbM','yEUbL','createOoc','name','4174513weuZHv','PKMvI','steps','FqUON','composeTool','totalTokens','efuQO','saveSession','init','addContext','uAJcY','outputTokens','getFlowEngine','JVLko'];a8_0x14a7=function(){return _0x515687;};return a8_0x14a7();}exports[a8_0x358a3d(0x146)]=Flow;
|