@picoflow/core 1.0.9 → 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/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 +1 -1
- 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/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
|
-
|
|
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
|
-
|
|
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';function
|
|
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
|
-
|
|
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_0x3a04b3=a8_0x5233;function a8_0x5013(){const _0x5500f5=['getStepState','\x20completed.','Error\x20batch\x20process\x20flow:\x20','kmPAd','error','getModel','776265azUtku','nNkjy','stepMap','2060gearqD','input_tokens','assignFlowDoc','sessionDoc','4|3|0|1|2','VhZkW','DTlLk','slice','getSessionDoc','total_tokens','Pcxsn','GpQEo','output_tokens','eyLTn','defineSteps','YvnxN','ziWqp','RQqph','name','saveStepState','21554856fXHwdW','flowDoc','fetch','XKUlj','5127GntLlf','getModelName','NQHbO','getMessages','ITyzR','flows','blvNJ','tools','toString','UYZPU','floor','JYLPn','LrjlK','setMemory','getFlowEngine','getSessionId','mkGmE','message','search','merge','eoRLZ','split','all','totalTokens','getStep','bVslW','cjoIz','temp','ceil','xTJPH','active',',\x20error:','contentType','MhyEk','XSauo','getStateAs','readDoc','defineTool','saveState','./end-step','constructor','set','DynamicStructuredTool','config._concurrent','mZlBb','collectSteps','jhnpA','run','getName','Fxmmc','outputTokens','WmoKI','__esModule','context','getState','yTgBs','tallyToken','Processing\x20batch\x20','oAwym','get','ZHpQr','tokens','spawnSteps','setContext','SessionLogger','hSTdr','IrpFX','post','activateByName','bootstrap','lodash','EmROr','getTool','183317jWmBco','filter','xJrLp','hDtxH','1863835RHVsGb','inputTokens','@langchain/core/tools','getActiveStep','apply','kRGHJ','log','gmDIb','vObdv','rHliZ','save','1167446KLuele','memory','composeTool','rtsQY','getFlowSession','../clients/self-client','EndStep','temperature','(((.+)+)+)+$','YuXPF','fHbvS','XPjcH','length','useMemory','createDoc','writeDoc','flowEngine','ZTKyf','lsEiD','createOoc','getMemory','brhPE','JHNah','push','Flow','getContext','isEnd','yHQbb','\x20(batch\x20size:','QOiPT','QJUkW','Batch\x20','concurrentSteps','tmzRC','steps','sequence','7003884MmtKPd','../session/session-logger','mQSyC','useModel','map'];a8_0x5013=function(){return _0x5500f5;};return a8_0x5013();}(function(_0xc8ee53,_0x5e2a48){const _0x4c40eb=a8_0x5233,_0x4f8f73=_0xc8ee53();while(!![]){try{const _0x32e07b=parseInt(_0x4c40eb(0x11b))/0x1+parseInt(_0x4c40eb(0x12a))/0x2+parseInt(_0x4c40eb(0xd2))/0x3*(parseInt(_0x4c40eb(0xba))/0x4)+parseInt(_0x4c40eb(0x11f))/0x5+parseInt(_0x4c40eb(0xac))/0x6+parseInt(_0x4c40eb(0xb7))/0x7+-parseInt(_0x4c40eb(0xce))/0x8;if(_0x32e07b===_0x5e2a48)break;else _0x4f8f73['push'](_0x4f8f73['shift']());}catch(_0x5c1962){_0x4f8f73['push'](_0x4f8f73['shift']());}}}(a8_0x5013,0x93692));const a8_0x4d828e=(function(){const _0x572b9e=a8_0x5233,_0x35b2c0={'blvNJ':_0x572b9e(0xe3),'LEqcB':function(_0x144611,_0x1fc602){return _0x144611!==_0x1fc602;},'nNkjy':'gHsLD','LrjlK':function(_0x3bb0b0,_0x41f231){return _0x3bb0b0===_0x41f231;},'ITyzR':'jPvFF'};let _0x49c2b7=!![];return function(_0x4ea5ce,_0x7bb375){const _0x15aef8=_0x572b9e,_0x217cf7={'kmPAd':_0x35b2c0[_0x15aef8(0xd8)],'JHNah':function(_0x30adea,_0x13aab2){return _0x35b2c0['LEqcB'](_0x30adea,_0x13aab2);},'ZAVcy':_0x15aef8(0xae),'rHliZ':_0x35b2c0[_0x15aef8(0xb8)],'brhPE':'IrpFX'};if(_0x35b2c0[_0x15aef8(0xde)](_0x35b2c0[_0x15aef8(0xd6)],_0x35b2c0[_0x15aef8(0xd6)])){const _0x3dcd2d=_0x49c2b7?function(){const _0x3d4e50=_0x15aef8;if(_0x217cf7[_0x3d4e50(0x9e)](_0x217cf7['ZAVcy'],_0x217cf7[_0x3d4e50(0x128)])){if(_0x7bb375){if(_0x217cf7[_0x3d4e50(0x9d)]!==_0x3d4e50(0x114)){const _0x4e8042=_0x3d4e50(0xb3)+this[_0x3d4e50(0xcc)]+_0x3d4e50(0xf1)+_0x34457c[_0x217cf7[_0x3d4e50(0xb4)]];new _0x3d01bc[(_0x3d4e50(0x112))](this[_0x3d4e50(0xc2)]())['error'](_0x4e8042),_0x1b3ee0[_0x3d4e50(0xb5)](_0x4e8042);}else{const _0x23ac88=_0x7bb375[_0x3d4e50(0x123)](_0x4ea5ce,arguments);return _0x7bb375=null,_0x23ac88;}}}else this[_0x3d4e50(0xed)]=_0x3265ca;}:function(){};return _0x49c2b7=![],_0x3dcd2d;}else return(0x0,_0x4fc523[_0x15aef8(0x10d)])(this[_0x15aef8(0x107)],_0x4b202c);};}()),a8_0x2ed309=a8_0x4d828e(this,function(){const _0x5ce9b6=a8_0x5233,_0x315231={'lsEiD':_0x5ce9b6(0x90)};return a8_0x2ed309[_0x5ce9b6(0xda)]()[_0x5ce9b6(0xe4)](_0x315231[_0x5ce9b6(0x9a)])[_0x5ce9b6(0xda)]()[_0x5ce9b6(0xfa)](a8_0x2ed309)[_0x5ce9b6(0xe4)](_0x315231['lsEiD']);});a8_0x2ed309();'use strict';function a8_0x5233(_0x4b3f14,_0x1c6ac9){const _0xaccf2a=a8_0x5013();return a8_0x5233=function(_0x2ed309,_0x4d828e){_0x2ed309=_0x2ed309-0x8a;let _0x5013df=_0xaccf2a[_0x2ed309];return _0x5013df;},a8_0x5233(_0x4b3f14,_0x1c6ac9);}Object['defineProperty'](exports,a8_0x3a04b3(0x106),{'value':!![]}),exports[a8_0x3a04b3(0xa0)]=void 0x0;const tools_1=require(a8_0x3a04b3(0x121)),lodash_1=require(a8_0x3a04b3(0x118)),end_step_1=require(a8_0x3a04b3(0xf9)),self_client_1=require(a8_0x3a04b3(0x8d)),session_logger_1=require(a8_0x3a04b3(0xad));class Flow{constructor(_0x4688a1){const _0x3cc384=a8_0x3a04b3,_0x358a10={'tmzRC':_0x3cc384(0xbe)},_0x4990ae=_0x358a10[_0x3cc384(0xa9)][_0x3cc384(0xe7)]('|');let _0xbed75a=0x0;while(!![]){switch(_0x4990ae[_0xbed75a++]){case'0':this[_0x3cc384(0xed)]=-0x1;continue;case'1':this['name']=_0x4688a1[_0x3cc384(0xcc)];continue;case'2':this['context']={};continue;case'3':this[_0x3cc384(0xd9)]=new Map();continue;case'4':this[_0x3cc384(0xb9)]=new Map();continue;}break;}}async['init'](){}[a8_0x3a04b3(0xe0)](){const _0x46f147=a8_0x3a04b3;return this[_0x46f147(0x98)];}async[a8_0x3a04b3(0x117)](_0x1cedb9,_0x88db9b){const _0x5290e4=a8_0x3a04b3,_0x4fa3ca={'XSauo':function(_0x39ef35,_0x274b14){return _0x39ef35===_0x274b14;},'QVvmT':function(_0x2d3be6,_0x289396){return _0x2d3be6===_0x289396;},'BhAsw':_0x5290e4(0xd4)};this[_0x5290e4(0x98)]=_0x88db9b;for(const [,_0x1c71a3]of this[_0x5290e4(0xb9)]){const _0x58f34e=_0x1c71a3[_0x5290e4(0xb6)]();if(!_0x58f34e){const _0x81b651=this[_0x5290e4(0xe0)]()[_0x5290e4(0xd3)]();_0x1c71a3[_0x5290e4(0xaf)](_0x81b651);}}const _0x2078c6=_0x88db9b[_0x5290e4(0x8c)](),[_0x40e195,_0xacd103]=await _0x2078c6[_0x5290e4(0xd0)](_0x1cedb9);if(_0x40e195){if(_0x4fa3ca['QVvmT'](_0x5290e4(0x93),_0x4fa3ca['BhAsw'])){const _0x2b75c9=this['sessionDoc']['flows']['filter'](_0x356742=>{const _0x4d0dca=_0x5290e4;if(_0x4fa3ca[_0x4d0dca(0xf4)](_0x356742[_0x4d0dca(0xcc)],this[_0x4d0dca(0xcc)]))return!![];return![];});this[_0x5290e4(0xcf)]=_0x2b75c9[0x0],this[_0x5290e4(0xcf)][_0x5290e4(0xab)]=this['flowDoc']['sequence']||[];}else this[_0x5290e4(0xbd)]=this[_0x5290e4(0x96)](_0xacd103),this[_0x5290e4(0xbc)](),this['saveSession']();}else this['sessionDoc']=_0xacd103,this['assignFlowDoc'](),this[_0x5290e4(0xf6)]();if(this[_0x5290e4(0xcf)][_0x5290e4(0xab)]['length']===0x0){const _0x46dcdf=this[_0x5290e4(0x122)]();_0x46dcdf&&this[_0x5290e4(0xcf)][_0x5290e4(0xab)]['push'](_0x46dcdf[_0x5290e4(0x102)]());}this[_0x5290e4(0x8a)]();}['assignFlowDoc'](){const _0x983cd4=a8_0x3a04b3,_0x507abd={'xTJPH':function(_0x78ccc6,_0x4edda7){return _0x78ccc6===_0x4edda7;},'ZHpQr':_0x983cd4(0xa6),'GpQEo':function(_0x333bd8,_0x8b759b){return _0x333bd8===_0x8b759b;},'RQqph':function(_0x1798ce,_0x4990b4){return _0x1798ce!==_0x4990b4;},'hSTdr':_0x983cd4(0xa5)},_0x189ef3=this[_0x983cd4(0xbd)][_0x983cd4(0xd7)][_0x983cd4(0x11c)](_0x4c4af9=>{const _0x1b533c=_0x983cd4;if(_0x507abd[_0x1b533c(0xef)](_0x507abd[_0x1b533c(0x10e)],_0x507abd[_0x1b533c(0x10e)])){if(_0x507abd[_0x1b533c(0xc5)](_0x4c4af9[_0x1b533c(0xcc)],this[_0x1b533c(0xcc)]))return _0x507abd[_0x1b533c(0xcb)](_0x507abd[_0x1b533c(0x113)],_0x507abd[_0x1b533c(0x113)])?this[_0x1b533c(0x98)]:!![];return![];}else _0xf923be['push'](_0x8a9855['createDoc']());});this[_0x983cd4(0xcf)]=_0x189ef3[0x0],this[_0x983cd4(0xcf)][_0x983cd4(0xab)]=this[_0x983cd4(0xcf)][_0x983cd4(0xab)]||[];}[a8_0x3a04b3(0x10a)](_0x15ac2f){const _0x2dfd00=a8_0x3a04b3,_0x5308ad={'hDtxH':function(_0x1020e2,_0x420430){return _0x1020e2!==_0x420430;},'oAwym':_0x2dfd00(0xfe),'YuXPF':_0x2dfd00(0xc6)};if(_0x15ac2f){if(_0x5308ad[_0x2dfd00(0x11e)](_0x2dfd00(0x100),_0x5308ad[_0x2dfd00(0x10c)])){const _0x319b74=_0x15ac2f[_0x2dfd00(0xbb)],_0x3e37dc=_0x15ac2f[_0x5308ad[_0x2dfd00(0x91)]],_0x9db8bf=_0x15ac2f[_0x2dfd00(0xc3)];_0x319b74&&(this[_0x2dfd00(0xbd)]['tokens'][_0x2dfd00(0x120)]+=_0x319b74),_0x3e37dc&&(this[_0x2dfd00(0xbd)]['tokens']['outputTokens']+=_0x3e37dc),_0x9db8bf&&(this[_0x2dfd00(0xbd)][_0x2dfd00(0x10f)][_0x2dfd00(0xe9)]+=_0x9db8bf);}else{const _0xedbc5=_0x589be7[_0x2dfd00(0x123)](_0x5b446b,arguments);return _0x566752=null,_0xedbc5;}}}[a8_0x3a04b3(0xff)](){const _0x234c66=a8_0x3a04b3,_0x4a6d85=this[_0x234c66(0xc8)]();for(const _0xc0c537 of _0x4a6d85){this[_0x234c66(0xb9)]['set'](_0xc0c537[_0x234c66(0x102)](),_0xc0c537);}}[a8_0x3a04b3(0xc8)](){const _0x47c587=a8_0x3a04b3,_0x840700={'EmROr':_0x47c587(0xed)};return[new end_step_1[(_0x47c587(0x8e))](this)[_0x47c587(0x95)](_0x840700[_0x47c587(0x119)])];}[a8_0x3a04b3(0x96)](_0x3b8270){const _0x3512a4=a8_0x3a04b3,_0x32b50e={'fHbvS':_0x3512a4(0x124)},_0x56336d=[];for(const [,_0x287642]of this['stepMap']){if(_0x3512a4(0xdd)!==_0x32b50e[_0x3512a4(0x92)])_0x56336d[_0x3512a4(0x9f)](_0x287642[_0x3512a4(0x96)]());else return _0x3edca6[_0x3512a4(0xf8)](_0x23d579);}const _0x500122={'name':this[_0x3512a4(0xcc)],'memory':this[_0x3512a4(0x12b)]['createOoc'](),'steps':_0x56336d,'context':this[_0x3512a4(0x107)]};return _0x3b8270[_0x3512a4(0xd7)][_0x3512a4(0x9f)](_0x500122),_0x3b8270;}[a8_0x3a04b3(0xf6)](){const _0x39979f=a8_0x3a04b3;this[_0x39979f(0x12b)][_0x39979f(0xf6)](this['flowDoc'][_0x39979f(0x12b)]);for(const [,_0x2ea494]of this[_0x39979f(0xb9)]){_0x2ea494['readDoc'](this[_0x39979f(0xcf)][_0x39979f(0xaa)]);}this[_0x39979f(0x107)]=this[_0x39979f(0xcf)][_0x39979f(0x107)];}[a8_0x3a04b3(0xe1)](){const _0x594816=a8_0x3a04b3;return this[_0x594816(0xbd)]['id'];}async['saveSession'](){const _0x17a93c=a8_0x3a04b3,_0x3d9a21={'Pcxsn':function(_0x2971b2,_0x3f84d8){return _0x2971b2===_0x3f84d8;},'WmoKI':_0x17a93c(0xc7)};this[_0x17a93c(0x12b)][_0x17a93c(0x97)](this['flowDoc'][_0x17a93c(0x12b)]);for(const [,_0x52bedb]of this[_0x17a93c(0xb9)]){if(_0x3d9a21[_0x17a93c(0xc4)](_0x3d9a21[_0x17a93c(0x105)],_0x3d9a21[_0x17a93c(0x105)]))_0x52bedb['writeDoc'](this[_0x17a93c(0xcf)]['steps']);else{const _0x3361a5=[];for(const [,_0x1f328f]of this[_0x17a93c(0xb9)]){_0x3361a5['push'](_0x1f328f[_0x17a93c(0x96)]());}const _0x2354a8={'name':this[_0x17a93c(0xcc)],'memory':this['memory'][_0x17a93c(0x9b)](),'steps':_0x3361a5,'context':this[_0x17a93c(0x107)]};return _0x1d0a48['flows']['push'](_0x2354a8),_0x408ce1;}}this[_0x17a93c(0xcf)][_0x17a93c(0x107)]=this[_0x17a93c(0x107)],this[_0x17a93c(0xcf)]['temperature']=this[_0x17a93c(0xed)],await this[_0x17a93c(0x98)][_0x17a93c(0x8c)]()[_0x17a93c(0x129)](this[_0x17a93c(0xbd)]);}[a8_0x3a04b3(0x122)](){const _0x3494b5=a8_0x3a04b3,_0x162da1={'wMslr':function(_0x39befc,_0x56590f){return _0x39befc===_0x56590f;},'vObdv':'jbdkc'};for(const [_0x26f348,_0xb99bec]of this[_0x3494b5(0xb9)]){if(_0x162da1['wMslr'](_0x162da1[_0x3494b5(0x127)],_0x162da1[_0x3494b5(0x127)])){if(_0xb99bec['active'])return _0xb99bec;}else{const _0x17a157=(0x0,_0x17bd49['merge'])({},_0x292cca,{'func':null});this[_0x3494b5(0xd9)]['set'](_0x3253e8[_0x3494b5(0xcc)],new _0x133394[(_0x3494b5(0xfc))](_0x17a157));}}return null;}[a8_0x3a04b3(0xea)](_0x379246){const _0x41d585=a8_0x3a04b3;return this[_0x41d585(0xb9)][_0x41d585(0x10d)](_0x379246);}[a8_0x3a04b3(0xf7)](){return null;}async['run'](_0x46a025){const _0x3d0618=a8_0x3a04b3,_0x5684e4={'QkPRt':_0x3d0618(0xfd)},_0x307206=this['getContext'](_0x5684e4['QkPRt']);let _0x56d798,_0x2a0204;return _0x307206?_0x56d798=await this[_0x3d0618(0x110)]():(_0x2a0204=this[_0x3d0618(0x122)](),_0x56d798=await _0x2a0204[_0x3d0618(0x101)](_0x46a025)),_0x2a0204=this[_0x3d0618(0x122)](),{'success':!![],'completed':_0x2a0204[_0x3d0618(0xa2)](),'message':_0x56d798,'session':this[_0x3d0618(0xbd)]['id'],'contentType':_0x2a0204[_0x3d0618(0xf2)]};}async['spawnSteps'](){return'';}async[a8_0x3a04b3(0xa8)]({items:_0x12d1b9,batchSize:_0x58a26a,onConfig:_0x454168,onBotResponse:_0x3bde1c}){const _0x4c29fa=a8_0x3a04b3,_0x55f74b={'VhZkW':function(_0x737f5,_0x4496c9){return _0x737f5===_0x4496c9;},'xJrLp':'rkApz','XKUlj':function(_0xe41b21,_0x3dced8){return _0xe41b21(_0x3dced8);},'mkGmE':'message','KtKAD':function(_0x14945a,_0x356f41){return _0x14945a===_0x356f41;},'yTgBs':'jJeQg','bVslW':function(_0x1b1f6b,_0x1cabef){return _0x1b1f6b+_0x1cabef;},'yHQbb':function(_0x231f8e,_0x55f56d){return _0x231f8e/_0x55f56d;},'UYZPU':function(_0x41a074,_0x22b190){return _0x41a074+_0x22b190;}},_0x53c4c2=new self_client_1['SelfClient']();for(let _0x215437=0x0;_0x215437<_0x12d1b9[_0x4c29fa(0x94)];_0x215437+=_0x58a26a){if(_0x55f74b['KtKAD'](_0x55f74b[_0x4c29fa(0x109)],_0x55f74b[_0x4c29fa(0x109)])){const _0x44cf19=_0x12d1b9[_0x4c29fa(0xc1)](_0x215437,_0x215437+_0x58a26a),_0x35daed=_0x4c29fa(0x10b)+_0x55f74b[_0x4c29fa(0xeb)](Math['floor'](_0x55f74b[_0x4c29fa(0xa3)](_0x215437,_0x58a26a)),0x1)+'/'+Math[_0x4c29fa(0xee)](_0x55f74b['yHQbb'](_0x12d1b9[_0x4c29fa(0x94)],_0x58a26a))+_0x4c29fa(0xa4)+_0x44cf19[_0x4c29fa(0x94)]+')';new session_logger_1['SessionLogger'](this['getSessionDoc']())['log'](_0x35daed),console[_0x4c29fa(0x125)](_0x35daed);const _0x5a66a0=_0x44cf19[_0x4c29fa(0xb0)](async _0x249781=>{const _0x210d12=_0x4c29fa;if(_0x55f74b[_0x210d12(0xbf)]('rkApz',_0x55f74b[_0x210d12(0x11d)])){const _0x500710={'flowName':this[_0x210d12(0xcc)],'config':{..._0x55f74b[_0x210d12(0xd1)](_0x454168,_0x249781)}};try{const _0x2a6115=await _0x53c4c2[_0x210d12(0x115)]('',_0x500710);_0x3bde1c(_0x249781,_0x2a6115);}catch(_0x2bed89){const _0x5d2b4f=_0x210d12(0xb3)+this[_0x210d12(0xcc)]+_0x210d12(0xf1)+_0x2bed89[_0x55f74b[_0x210d12(0xe2)]];new session_logger_1[(_0x210d12(0x112))](this[_0x210d12(0xc2)]())[_0x210d12(0xb5)](_0x5d2b4f),console[_0x210d12(0xb5)](_0x5d2b4f);}}else this[_0x210d12(0xbd)][_0x210d12(0x10f)][_0x210d12(0x104)]+=_0x5170c1;});await Promise[_0x4c29fa(0xe8)](_0x5a66a0);const _0x1e9651=_0x4c29fa(0xa7)+_0x55f74b[_0x4c29fa(0xdb)](Math[_0x4c29fa(0xdc)](_0x215437/_0x58a26a),0x1)+_0x4c29fa(0xb2);new session_logger_1[(_0x4c29fa(0x112))](this[_0x4c29fa(0xc2)]())[_0x4c29fa(0x125)](_0x1e9651),console[_0x4c29fa(0x125)](_0x1e9651);}else this['flowDoc']['sequence'][_0x4c29fa(0x9f)](_0x1781ab[_0x4c29fa(0x102)]());}}[a8_0x3a04b3(0xdf)](_0x1d1b65){const _0x357f0b=a8_0x3a04b3;this[_0x357f0b(0x12b)]=_0x1d1b65;}[a8_0x3a04b3(0x9c)](_0x434695){const _0x1f7943=a8_0x3a04b3;return this[_0x1f7943(0x12b)][_0x1f7943(0xd5)](_0x434695);}[a8_0x3a04b3(0x111)](_0x50ef8a){const _0xbb9ef6=a8_0x3a04b3;this[_0xbb9ef6(0x107)]=_0x50ef8a;}['addContext'](_0x150679){const _0x1f0550=a8_0x3a04b3;(0x0,lodash_1[_0x1f0550(0xe5)])(this[_0x1f0550(0x107)],_0x150679);}[a8_0x3a04b3(0xa1)](_0xf09f8c){const _0x33205d=a8_0x3a04b3;return(0x0,lodash_1[_0x33205d(0x10d)])(this['context'],_0xf09f8c);}async['activate'](_0x3d1cd0){const _0x291256=a8_0x3a04b3;return await this[_0x291256(0x116)](_0x3d1cd0[_0x291256(0xcc)]);}async[a8_0x3a04b3(0x116)](_0x40d343){const _0x93e8d0=a8_0x3a04b3,_0x283165={'mLygx':function(_0x121e13,_0x23e146){return _0x121e13!==_0x23e146;},'cjoIz':_0x93e8d0(0x8b),'gmDIb':function(_0x442ae4,_0x2622cb){return _0x442ae4===_0x2622cb;},'DTlLk':'TTqdc','hJrUN':'ZZJXd','SOnIP':function(_0x1febda,_0x256ef7){return _0x1febda===_0x256ef7;},'MhyEk':'ziWqp'},_0x1c4449=this[_0x93e8d0(0xb9)]['get'](_0x40d343);if(_0x1c4449[_0x93e8d0(0x102)]()===_0x40d343&&_0x1c4449['active']){if(_0x283165['mLygx'](_0x93e8d0(0xe6),_0x283165[_0x93e8d0(0xec)]))return _0x1c4449;else this[_0x93e8d0(0x107)]=_0x1068c0;}else{if(_0x283165[_0x93e8d0(0x126)](_0x283165[_0x93e8d0(0xc0)],_0x283165['hJrUN']))return this['stepMap'][_0x93e8d0(0x10d)](_0x438aed);else{for(const [_0x3d2880,_0x57e4ac]of this['stepMap']){if(_0x283165['SOnIP'](_0x93e8d0(0xca),_0x283165[_0x93e8d0(0xf3)])){if(_0x57e4ac[_0x93e8d0(0xf0)]){_0x57e4ac[_0x93e8d0(0xf0)]=![];break;}}else{const _0x302765=this['stepMap']['get'](_0x35ea95[_0x93e8d0(0xcc)]);if(_0x302765)return _0x302765[_0x93e8d0(0xf8)](_0x2eee59);}}return this[_0x93e8d0(0xcf)][_0x93e8d0(0xab)][_0x93e8d0(0x9f)](_0x40d343),_0x1c4449[_0x93e8d0(0xf0)]=!![],_0x1c4449;}}}[a8_0x3a04b3(0x11a)](_0x2e7487){const _0x5239fc=a8_0x3a04b3;return this[_0x5239fc(0xd9)][_0x5239fc(0x10d)](_0x2e7487);}[a8_0x3a04b3(0x8a)](){const _0xa905b6=a8_0x3a04b3,_0x1cbf37={'YvnxN':function(_0xaa20b7,_0x1f12c9){return _0xaa20b7!==_0x1f12c9;},'Fxmmc':'zNDuv','ZTKyf':'PJpXz'},_0x2fbe08=[];for(const [_0x2fb944,_0x46dafa]of this[_0xa905b6(0xb9)]){const _0x7a3625=_0x46dafa['defineTool']();_0x7a3625&&_0x2fbe08['push'](..._0x7a3625);}const _0x330094=this[_0xa905b6(0xf7)]();_0x330094&&(_0x1cbf37[_0xa905b6(0xc9)]('KJQzr',_0x1cbf37[_0xa905b6(0x103)])?_0x2fbe08[_0xa905b6(0x9f)](..._0x330094):this['sessionDoc'][_0xa905b6(0x10f)]['totalTokens']+=_0x5ad3fb);for(const _0x2c1592 of _0x2fbe08){if(_0x1cbf37[_0xa905b6(0xc9)](_0x1cbf37[_0xa905b6(0x99)],_0x1cbf37['ZTKyf']))this[_0xa905b6(0x12b)]=_0x51d9c;else{const _0x5bb189=(0x0,lodash_1[_0xa905b6(0xe5)])({},_0x2c1592,{'func':null});this[_0xa905b6(0xd9)][_0xa905b6(0xfb)](_0x2c1592[_0xa905b6(0xcc)],new tools_1['DynamicStructuredTool'](_0x5bb189));}}}[a8_0x3a04b3(0xc2)](){const _0x17067=a8_0x3a04b3;return this[_0x17067(0xbd)];}[a8_0x3a04b3(0xb1)](_0x533c1b,_0x4539b9){const _0x5500b6=a8_0x3a04b3,_0x39d536=this[_0x5500b6(0xb9)][_0x5500b6(0x10d)](_0x533c1b['name']);return _0x39d536[_0x5500b6(0x108)](_0x4539b9);}['getStepStateAs'](_0xd6b4b1,_0x3edc3c){const _0x1d463d=a8_0x3a04b3,_0x5cea45=this[_0x1d463d(0xb9)][_0x1d463d(0x10d)](_0xd6b4b1[_0x1d463d(0xcc)]);return _0x5cea45[_0x1d463d(0xf5)](_0x3edc3c);}[a8_0x3a04b3(0xcd)](_0x3f7e31,_0x2a42fd){const _0x555410=a8_0x3a04b3,_0x1ee54e=this['stepMap'][_0x555410(0x10d)](_0x3f7e31[_0x555410(0xcc)]);if(_0x1ee54e)return _0x1ee54e[_0x555410(0xf8)](_0x2a42fd);}get[a8_0x3a04b3(0x8f)](){const _0x22e4a4=a8_0x3a04b3;return this[_0x22e4a4(0xed)];}set[a8_0x3a04b3(0x8f)](_0x269464){const _0x339b33=a8_0x3a04b3;this[_0x339b33(0xed)]=_0x269464;}}exports['Flow']=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;
|