@picoflow/core 1.0.16 → 1.0.18
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 +1 -1
- package/clients/http-client.js +1 -1
- package/clients/self-client.js +1 -1
- package/configs/core-config.d.ts +1 -0
- 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.d.ts +1 -1
- package/flow/end-step.js +1 -1
- package/flow/flow-creator.js +1 -1
- package/flow/flow-types.d.ts +108 -48
- package/flow/flow-types.js +1 -1
- package/flow/flow.d.ts +14 -4
- package/flow/flow.js +1 -1
- package/flow/llm-runner.d.ts +3 -1
- package/flow/llm-runner.js +1 -1
- package/flow/logic-runner.d.ts +2 -1
- package/flow/logic-runner.js +1 -1
- package/flow/logic-step.js +1 -1
- package/flow/memory.js +1 -1
- package/flow/step.d.ts +26 -7
- package/flow/step.js +1 -1
- package/index.d.ts +38 -33
- package/models/default-models.d.ts +1 -1
- package/models/default-models.js +1 -1
- package/models/model-registry.d.ts +22 -2
- package/models/model-registry.js +1 -1
- package/package.json +9 -9
- package/prompt/flow-prompt.js +1 -1
- package/prompt/prompt-util.js +1 -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/session/sqlite-session.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/environ.js +1 -1
- package/utils/errors.js +1 -1
- package/utils/license-util.js +1 -1
- package/utils/llm-file.d.ts +2 -0
- package/utils/llm-file.js +1 -1
- package/utils/logic.js +1 -1
- package/utils/message-util.d.ts +3 -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/flow/step.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13_0x1b6103=a13_0x1b71;(function(_0x1d85ae,_0x15704f){const _0x4d595d=a13_0x1b71,_0x21cf5e=_0x1d85ae();while(!![]){try{const _0x3fe34c=-parseInt(_0x4d595d(0x138))/0x1+parseInt(_0x4d595d(0x175))/0x2+parseInt(_0x4d595d(0x15b))/0x3*(parseInt(_0x4d595d(0x110))/0x4)+-parseInt(_0x4d595d(0x18e))/0x5*(parseInt(_0x4d595d(0x194))/0x6)+parseInt(_0x4d595d(0x127))/0x7+parseInt(_0x4d595d(0x135))/0x8*(parseInt(_0x4d595d(0x167))/0x9)+parseInt(_0x4d595d(0x116))/0xa*(-parseInt(_0x4d595d(0x109))/0xb);if(_0x3fe34c===_0x15704f)break;else _0x21cf5e['push'](_0x21cf5e['shift']());}catch(_0x41909b){_0x21cf5e['push'](_0x21cf5e['shift']());}}}(a13_0x4517,0xd145d));const a13_0x206f1b=(function(){const _0xf14833=a13_0x1b71,_0x733e90={'DljQb':function(_0x6d567a,_0x3683be){return _0x6d567a!==_0x3683be;},'NIYpu':_0xf14833(0x128),'kokCs':_0xf14833(0x15c),'luHBb':'QOkvJ'};let _0x36624b=!![];return function(_0x57390e,_0x7eb98a){const _0x589203=_0x36624b?function(){const _0x439e57=a13_0x1b71;if(_0x733e90['DljQb'](_0x733e90['NIYpu'],_0x733e90[_0x439e57(0x15d)]))return null;else{if(_0x7eb98a){if(_0x733e90[_0x439e57(0x100)]===_0x733e90[_0x439e57(0x17d)])_0x51cdc6[_0x439e57(0x12b)](new _0xe7be62['SystemMessage']({'content':'','id':this[_0x439e57(0x140)]()}));else{const _0x464076=_0x7eb98a[_0x439e57(0xf7)](_0x57390e,arguments);return _0x7eb98a=null,_0x464076;}}}}:function(){};return _0x36624b=![],_0x589203;};}()),a13_0x1db7fd=a13_0x206f1b(this,function(){const _0x4517b0=a13_0x1b71,_0x1e2742={'VPOrm':_0x4517b0(0x162)};return a13_0x1db7fd[_0x4517b0(0x10b)]()[_0x4517b0(0x169)](_0x4517b0(0x162))[_0x4517b0(0x10b)]()['constructor'](a13_0x1db7fd)[_0x4517b0(0x169)](_0x1e2742['VPOrm']);});function a13_0x4517(){const _0x3e4a9b=['setStopTool','./llm-runner','XOxVb','activateByName','85296bqUFrx','modelParams','run','244432FYxVLZ','getLastMessage','Plain','uzpmP','merge','bomKH','csSPk','claude','genMessageId','__importDefault','MerXS','LlmRunner','stopTool','kfZQa','myFtS','nDLvf','yRBtW','ouwlx','temperature','eraseMemory','isActive','UUeGk','additional_kwargs','invokeTool','UNSUPPORTED','HttpContentType','YYYY-MM-DDTHH:mm:ss.SSS[Z]','getMemory','PbWHW','getModel','HumanMessageEx','startsWith','getLLMType','dHjoq','NatQH','545037dGDaOs','zfzei','NIYpu','get','completed','keys','__esModule','(((.+)+)+)+$','readDoc','HGxEW','../utils/constants','getContext','1413rXROIc','getSessionDoc','search','NqJsl','bcoYR','UCIEG','GBYOi','getName','**Important:**\x20After\x20collecting\x20data,\x20call\x20tool\x20','contentType','lPMzw','floor','FLoFU','RGxnv','1175896zODktW','GEMINI','KAplz','utc','function','HPGej','onCrossing','modelParamsName','luHBb','map','writeDoc','flow','active','split','isLogic','_stopTool','defineProperty','yQQIu','getPrompt','toLowerCase','replace','useModel','getStopTool','getTool','createDoc','35ZDzvxV','sAIwD','length','removeState','iUbVB','nHBGr','1310622QEgtBB','runStatus','cRsIk','_prompt','format','AmYPR','omit','zsdLj','apply','upBud','isToolAvailable','saveState','onEnter','LgEci','defineTool','\x20to\x20ensure\x20the\x20tool\x20is\x20triggered.','default','kokCs','send','ApWkL','getModelParams','klScf','../utils/llm-file.js','FenJS','memorySpace','icIZy','17567fKAvUD','GaUfv','toString','ACPNB','jJsHQ','getState','trim','4zfEtau','ctType','Syaiy','getModelParamsModelName','mCztS','./content-type','7390ctvOQh','random10Digits','toDate','ANTHROPIC','name','LOBmu','SystemMessage','IamWZ','SfjaJ','vsDwB','hDncj','state','TRANSIENT','EPzgv','moment','LLMType','onExit','9571058DsMfIH','ErWWW','Step','gemini','push','mrRtU','tSQBZ','modelName','NNNxZ','seTJC'];a13_0x4517=function(){return _0x3e4a9b;};return a13_0x4517();}a13_0x1db7fd();'use strict';function a13_0x1b71(_0x22f8f6,_0x2fa668){const _0x25a9c9=a13_0x4517();return a13_0x1b71=function(_0x1db7fd,_0x206f1b){_0x1db7fd=_0x1db7fd-0xf7;let _0x451769=_0x25a9c9[_0x1db7fd];return _0x451769;},a13_0x1b71(_0x22f8f6,_0x2fa668);}var __importDefault=this&&this[a13_0x1b6103(0x141)]||function(_0x4536a7){const _0x2e454b=a13_0x1b6103;return _0x4536a7&&_0x4536a7[_0x2e454b(0x161)]?_0x4536a7:{'default':_0x4536a7};};Object[a13_0x1b6103(0x185)](exports,a13_0x1b6103(0x161),{'value':!![]}),exports['Step']=void 0x0;const lodash_1=require('lodash'),moment_1=__importDefault(require(a13_0x1b6103(0x124))),messages_1=require('@langchain/core/messages'),llm_runner_1=require(a13_0x1b6103(0x132)),message_util_1=require('../utils/message-util'),content_type_1=require(a13_0x1b6103(0x115)),llm_file_js_1=require(a13_0x1b6103(0x105)),constants_1=require(a13_0x1b6103(0x165));class Step{constructor(_0x105d94,_0x468a00,_0x435693=![]){const _0x207f34=a13_0x1b6103,_0x3d119c={'AHVYP':'2|3|1|5|8|6|0|7|4'},_0x51299c=_0x3d119c['AHVYP'][_0x207f34(0x182)]('|');let _0x22f00a=0x0;while(!![]){switch(_0x51299c[_0x22f00a++]){case'0':this[_0x207f34(0x180)]=_0x468a00;continue;case'1':this[_0x207f34(0x12e)]=undefined;continue;case'2':this['isActive']=![];continue;case'3':this[_0x207f34(0x121)]={};continue;case'4':this[_0x207f34(0x107)]=_0x105d94[_0x207f34(0x11a)];continue;case'5':this[_0x207f34(0x136)]={};continue;case'6':this[_0x207f34(0x11a)]=_0x105d94[_0x207f34(0x11a)];continue;case'7':this[_0x207f34(0x14c)]=_0x435693;continue;case'8':this[_0x207f34(0x111)]=content_type_1[_0x207f34(0x151)][_0x207f34(0x13a)];continue;}break;}}[a13_0x1b6103(0x16e)](){const _0x392980=a13_0x1b6103;return this[_0x392980(0x11a)];}[a13_0x1b6103(0xfb)](){}[a13_0x1b6103(0x126)](){}['onResponse'](_0x4d43dd){return _0x4d43dd;}get['active'](){const _0xd9a6e9=a13_0x1b6103;return this[_0xd9a6e9(0x14c)];}['isLogic'](){return![];}set[a13_0x1b6103(0x181)](_0x556b04){const _0x428434=a13_0x1b6103;!this[_0x428434(0x14c)]&&_0x556b04&&this[_0x428434(0xfb)](),this['isActive']&&!_0x556b04&&this[_0x428434(0x126)](),this[_0x428434(0x14c)]=_0x556b04;}get[a13_0x1b6103(0x170)](){const _0x1818f0=a13_0x1b6103;return this[_0x1818f0(0x111)];}set[a13_0x1b6103(0x170)](_0x34fe1b){const _0x57aae7=a13_0x1b6103;this[_0x57aae7(0x111)]=_0x34fe1b;}['getState'](_0x350a9d,_0x1b1518=![]){const _0x109d68=a13_0x1b6103,_0x271b35=_0x1b1518?(0x0,lodash_1[_0x109d68(0x15e)])(this['state'],constants_1['K']['TRANSIENT'],{}):this[_0x109d68(0x121)];if(_0x350a9d)return(0x0,lodash_1[_0x109d68(0x15e)])(_0x271b35,_0x350a9d);return _0x271b35;}['getStateAs'](_0x1b1e3e,_0x1b4e1c=![]){const _0x5783f5=a13_0x1b6103,_0x44c6de=_0x1b4e1c?(0x0,lodash_1['get'])(this[_0x5783f5(0x121)],constants_1['K']['TRANSIENT'],{}):this[_0x5783f5(0x121)];if(_0x1b1e3e)return(0x0,lodash_1[_0x5783f5(0x15e)])(_0x44c6de,_0x1b1e3e);return _0x44c6de;}[a13_0x1b6103(0xfa)](_0x44e311,_0x5ba11e=![]){const _0xc3bcc=a13_0x1b6103,_0x30d00f={'vyxug':function(_0x436659,_0x24ac70){return _0x436659===_0x24ac70;},'ZVpZP':'HCQpq'};if(_0x44e311){const _0x3676b1=Object[_0xc3bcc(0x160)](_0x44e311)[0x0];if(_0x5ba11e){if(_0x30d00f['vyxug'](_0xc3bcc(0xf8),_0x30d00f['ZVpZP']))return[];else{const _0x3858a3=(0x0,lodash_1[_0xc3bcc(0x19a)])((0x0,lodash_1[_0xc3bcc(0x15e)])(this[_0xc3bcc(0x121)],constants_1['K']['TRANSIENT'],{}),_0x3676b1);this[_0xc3bcc(0x121)]=(0x0,lodash_1['merge'])({},this[_0xc3bcc(0x121)],{[constants_1['K'][_0xc3bcc(0x122)]]:(0x0,lodash_1[_0xc3bcc(0x13c)])({},_0x3858a3,_0x44e311)});}}else this['state']=(0x0,lodash_1[_0xc3bcc(0x19a)])(this['state'],_0x3676b1),this[_0xc3bcc(0x121)]=(0x0,lodash_1[_0xc3bcc(0x13c)])({},this[_0xc3bcc(0x121)],_0x44e311);this[_0xc3bcc(0x121)]=(0x0,lodash_1[_0xc3bcc(0x13c)])(this[_0xc3bcc(0x121)],{'_saveOn':(0x0,moment_1['default'])()[_0xc3bcc(0x118)]()});}}['sessionCompleted'](){const _0x5067d4=a13_0x1b6103,_0x58c918={'sAIwD':_0x5067d4(0x15f)},_0x56cd6d=this[_0x5067d4(0x180)]['getSessionDoc']();_0x56cd6d[_0x5067d4(0x195)]=_0x58c918[_0x5067d4(0x18f)];}[a13_0x1b6103(0x166)](_0x4e6395){const _0x339fd7=a13_0x1b6103;return this[_0x339fd7(0x180)][_0x339fd7(0x166)](_0x4e6395);}[a13_0x1b6103(0x191)](_0x50a229){const _0xa78eca=a13_0x1b6103;this[_0xa78eca(0x121)]=(0x0,lodash_1[_0xa78eca(0x19a)])(this[_0xa78eca(0x121)],_0x50a229);}[a13_0x1b6103(0x187)](){const _0x3eca9f=a13_0x1b6103,_0x4349e=this[_0x3eca9f(0x10e)](_0x3eca9f(0x197));return _0x4349e?_0x4349e['toString']():null;}[a13_0x1b6103(0x17b)](_0x2e0ecb,_0x3b5ab7){const _0x3dac80=a13_0x1b6103,_0x2d8db1={'myFtS':'vvceR','FLoFU':_0x3dac80(0x10d),'mCztS':function(_0x3f3e03,_0x519712){return _0x3f3e03===_0x519712;},'bomKH':function(_0x301723,_0x907a6f){return _0x301723!==_0x907a6f;},'Syaiy':_0x3dac80(0x154),'TcgYQ':'Start'};if(!_0x2e0ecb){if(_0x2d8db1[_0x3dac80(0x146)]!==_0x2d8db1[_0x3dac80(0x173)]){const _0x5abc82=this[_0x3dac80(0x153)]();_0x2d8db1[_0x3dac80(0x114)](_0x5abc82[_0x3dac80(0x190)],0x1)&&(_0x2d8db1[_0x3dac80(0x13d)](_0x2d8db1[_0x3dac80(0x112)],_0x2d8db1[_0x3dac80(0x112)])?this[_0x3dac80(0x136)][_0x3dac80(0x14a)]=_0x2db65a:_0x2e0ecb=new message_util_1[(_0x3dac80(0x156))](this,_0x2d8db1['TcgYQ']));}else return![];}return _0x2e0ecb;}['getMemory'](){const _0x1ee7c8=a13_0x1b6103,_0x25efd2={'PKtvA':function(_0xf8beb2,_0x2bef10){return _0xf8beb2===_0x2bef10;}},_0x4c44a8=this[_0x1ee7c8(0x180)][_0x1ee7c8(0x153)](this[_0x1ee7c8(0x107)]);return _0x25efd2['PKtvA'](_0x4c44a8[_0x1ee7c8(0x190)],0x0)&&_0x4c44a8['push'](new messages_1[(_0x1ee7c8(0x11c))]({'content':'','id':this['genMessageId']()})),_0x4c44a8;}[a13_0x1b6103(0x139)](){const _0x58e26b=a13_0x1b6103,_0x3f94ea={'VZHfb':_0x58e26b(0x184),'MerXS':function(_0x5e1044,_0x3bb323){return _0x5e1044>_0x3bb323;},'bcoYR':function(_0x609d39,_0x218511){return _0x609d39!==_0x218511;},'ouwlx':_0x58e26b(0x17a),'NatQH':_0x58e26b(0x174),'nDLvf':function(_0x36a6fd,_0x2d4497){return _0x36a6fd-_0x2d4497;}},_0x5990df=this['flow'][_0x58e26b(0x153)](this['memorySpace']);if(_0x3f94ea[_0x58e26b(0x142)](_0x5990df[_0x58e26b(0x190)],0x0)){if(_0x3f94ea[_0x58e26b(0x16b)](_0x3f94ea[_0x58e26b(0x149)],_0x3f94ea[_0x58e26b(0x15a)]))return _0x5990df[_0x3f94ea[_0x58e26b(0x147)](_0x5990df[_0x58e26b(0x190)],0x1)];else{const _0xa12da4=this['getState'](_0x3f94ea['VZHfb'])[_0x303ae5],_0x285eca=_0x58e26b(0x16f)+_0x35114f+_0x58e26b(0xfe),_0x38439a=_0xa12da4?_0x285eca:'';_0x316541=_0x2cc5fe[_0x58e26b(0x189)]('{{'+_0x4a992e+'}}',_0x38439a);}}return null;}['useMemory'](_0x511d58){const _0x33c352=a13_0x1b6103;return this[_0x33c352(0x107)]=_0x511d58,this;}[a13_0x1b6103(0x18a)](_0x38fdfa,_0x230f6f){const _0xd9cde2=a13_0x1b6103;return this['modelName']=_0x38fdfa,this[_0xd9cde2(0x17c)]=_0x38fdfa,_0x230f6f&&this['useModelParams'](_0x230f6f),this;}['useModelParams'](_0x5dff33,_0x4ef481){const _0x39f2a1=a13_0x1b6103,_0x522296={'uzpmP':function(_0x909904,_0x4b3605){return _0x909904===_0x4b3605;},'XOxVb':'string','FenJS':function(_0x4c0242,_0x485af9){return _0x4c0242===_0x485af9;},'yQQIu':_0x39f2a1(0x19b),'UUeGk':_0x39f2a1(0x120),'bnDJM':function(_0x349bce,_0x26353f){return _0x349bce??_0x26353f;}};if(_0x522296[_0x39f2a1(0x13b)](typeof _0x5dff33,_0x522296[_0x39f2a1(0x133)])){if(_0x522296[_0x39f2a1(0x106)](_0x522296[_0x39f2a1(0x186)],_0x522296[_0x39f2a1(0x14d)])){if(_0x303bb6){const _0x2f9b26=_0x1ff338[_0x39f2a1(0x160)](_0xe05af2)[0x0];if(_0xed87e){const _0x34acf0=(0x0,_0x3c2fe4['omit'])((0x0,_0x4a3740['get'])(this[_0x39f2a1(0x121)],_0x1befdf['K']['TRANSIENT'],{}),_0x2f9b26);this[_0x39f2a1(0x121)]=(0x0,_0x46336e[_0x39f2a1(0x13c)])({},this[_0x39f2a1(0x121)],{[_0x539142['K'][_0x39f2a1(0x122)]]:(0x0,_0x5e967[_0x39f2a1(0x13c)])({},_0x34acf0,_0xf3c9e5)});}else this[_0x39f2a1(0x121)]=(0x0,_0x1fe635[_0x39f2a1(0x19a)])(this[_0x39f2a1(0x121)],_0x2f9b26),this[_0x39f2a1(0x121)]=(0x0,_0x340e3e['merge'])({},this[_0x39f2a1(0x121)],_0x4270c5);this[_0x39f2a1(0x121)]=(0x0,_0x126e83[_0x39f2a1(0x13c)])(this[_0x39f2a1(0x121)],{'_saveOn':(0x0,_0x503d44[_0x39f2a1(0xff)])()[_0x39f2a1(0x118)]()});}}else return this[_0x39f2a1(0x17c)]=_0x5dff33,this[_0x39f2a1(0x136)]=(0x0,lodash_1[_0x39f2a1(0x13c)])({},this[_0x39f2a1(0x136)],_0x522296['bnDJM'](_0x4ef481,{})),this;}return this[_0x39f2a1(0x17c)]=this[_0x39f2a1(0x12e)]??this[_0x39f2a1(0x180)]['getModel'](),this[_0x39f2a1(0x136)]=(0x0,lodash_1[_0x39f2a1(0x13c)])({},this[_0x39f2a1(0x136)],_0x5dff33),this;}[a13_0x1b6103(0x155)](){return this['modelName'];}[a13_0x1b6103(0x103)](){const _0x10f267=a13_0x1b6103;return this[_0x10f267(0x136)];}[a13_0x1b6103(0x113)](){const _0x42b317=a13_0x1b6103;return this[_0x42b317(0x17c)];}[a13_0x1b6103(0xfd)](){return null;}[a13_0x1b6103(0xf9)](_0x3426a2){const _0x1e5ef5=a13_0x1b6103;for(const _0x25f0ed of this[_0x1e5ef5(0x18c)]()){if(_0x25f0ed===_0x3426a2)return!![];}return![];}[a13_0x1b6103(0x18c)](){return[];}['getStopTool'](){return[];}['obtainTools'](){const _0x459c8a=a13_0x1b6103,_0x33b53e=this['getTool']();return _0x33b53e[_0x459c8a(0x17e)](_0x2fbe7e=>{const _0x13ff74=_0x459c8a;return this['flow'][_0x13ff74(0x18c)](_0x2fbe7e);});}['amendTool'](_0x5e811f){const _0x2c84af=a13_0x1b6103,_0x431acc={'EPzgv':'_stopTool'},_0x41de8f=this[_0x2c84af(0x18b)]();for(const _0xfb6a31 of _0x41de8f){const _0x40eeaa=this['getState'](_0x431acc[_0x2c84af(0x123)])[_0xfb6a31],_0x464d5d=_0x2c84af(0x16f)+_0xfb6a31+_0x2c84af(0xfe),_0x57850f=_0x40eeaa?_0x464d5d:'';_0x5e811f=_0x5e811f['replace']('{{'+_0xfb6a31+'}}',_0x57850f);}return _0x5e811f;}async[a13_0x1b6103(0x14f)](_0x4679fe){return null;}async[a13_0x1b6103(0x137)](_0x3f93ea){const _0x566e9b=a13_0x1b6103,_0xfd6f3c={'mrRtU':function(_0x520dd9,_0x5d220d){return _0x520dd9===_0x5d220d;},'GaUfv':function(_0x5a226a,_0x4fd6fe){return _0x5a226a!==_0x4fd6fe;},'cRsIk':_0x566e9b(0x192),'LgEci':'esSGr'};let _0x5a6c41;if(!_0x3f93ea)_0x5a6c41=this['onCrossing'](null);else{if(_0xfd6f3c[_0x566e9b(0x10a)](_0xfd6f3c[_0x566e9b(0x196)],_0xfd6f3c[_0x566e9b(0xfc)]))_0x5a6c41=new message_util_1['HumanMessageEx'](this,_0x3f93ea);else{for(const _0x1b6cbd of this['getTool']()){if(_0xfd6f3c[_0x566e9b(0x12c)](_0x1b6cbd,_0x2ce73f))return!![];}return![];}}const _0x36bd04=this[_0x566e9b(0x18b)]();for(const _0x5c1af2 of _0x36bd04){this[_0x566e9b(0xfa)]({'_stopTool':{[_0x5c1af2]:!![]}});}const _0x13300e=await llm_runner_1[_0x566e9b(0x143)][_0x566e9b(0x101)](this[_0x566e9b(0x180)],_0x5a6c41);return _0x13300e;}async['runStep'](_0x1f49ac,_0x17c1d4){const _0x415e1a=a13_0x1b6103,_0x1df889=await this[_0x415e1a(0x180)]['activate'](_0x1f49ac),_0x3403dd=await _0x1df889[_0x415e1a(0x137)](_0x17c1d4);return await this[_0x415e1a(0x180)][_0x415e1a(0x134)](this['name']),_0x3403dd;}['isEnd'](){const _0x588ae4=a13_0x1b6103,_0x3b6122={'icIZy':_0x588ae4(0x15f)};return this['flow'][_0x588ae4(0x168)]()[_0x588ae4(0x195)]===_0x3b6122[_0x588ae4(0x108)];}[a13_0x1b6103(0x17f)](_0x4ccd07){const _0x3d8e99=a13_0x1b6103,_0x1d3290={'nHBGr':function(_0x21ea5b,_0x5e1c31){return _0x21ea5b===_0x5e1c31;},'SfjaJ':function(_0x4429ba,_0x29d506){return _0x4429ba!==_0x29d506;},'seTJC':'completed','ACPNB':_0x3d8e99(0x145),'UCIEG':function(_0x827adc,_0x52052c){return _0x827adc===_0x52052c;},'klScf':'XOCnu','vsDwB':function(_0x4ac030,_0x292337){return _0x4ac030!==_0x292337;},'HGxEW':_0x3d8e99(0x12f)};for(const _0x30a4a4 of _0x4ccd07){if(_0x1d3290[_0x3d8e99(0x10c)]!=='kfZQa'){if(_0x1d3290[_0x3d8e99(0x193)](_0x75813f[_0x3d8e99(0x11a)],this[_0x3d8e99(0x11a)])){this[_0x3d8e99(0x14c)]=_0x2ec40b[_0x3d8e99(0x14c)],this['state']=_0x4220f6['state'];_0x1625b2[_0x3d8e99(0x12e)]&&(this[_0x3d8e99(0x12e)]=_0x48df33['modelName']);this[_0x3d8e99(0x17c)]=_0x3847cf[_0x3d8e99(0x17c)],this[_0x3d8e99(0x136)]=(0x0,_0x47d8d6['merge'])({},_0x6e8ddd[_0x3d8e99(0x136)]??{});const _0x3eb589=_0x2ca91d[_0x3d8e99(0x14a)];_0x1d3290[_0x3d8e99(0x11e)](_0x3eb589,_0x5adda6)&&this[_0x3d8e99(0x136)][_0x3d8e99(0x14a)]===_0x335052&&(this[_0x3d8e99(0x136)][_0x3d8e99(0x14a)]=_0x3eb589);}}else{if(_0x1d3290[_0x3d8e99(0x16c)](_0x30a4a4[_0x3d8e99(0x11a)],this[_0x3d8e99(0x11a)])){if(_0x1d3290[_0x3d8e99(0x11e)](_0x1d3290[_0x3d8e99(0x104)],_0x3d8e99(0x148))){_0x30a4a4[_0x3d8e99(0x14c)]=this[_0x3d8e99(0x14c)],_0x30a4a4[_0x3d8e99(0x121)]=(0x0,lodash_1['omit'])(this[_0x3d8e99(0x121)],constants_1['K'][_0x3d8e99(0x122)]);if(!this[_0x3d8e99(0x183)]()){if(_0x1d3290[_0x3d8e99(0x11f)](_0x1d3290[_0x3d8e99(0x164)],_0x1d3290[_0x3d8e99(0x164)])){const _0x5391b8=this[_0x3d8e99(0x180)]['getSessionDoc']();_0x5391b8['runStatus']=_0x1d3290[_0x3d8e99(0x130)];}else _0x30a4a4[_0x3d8e99(0x12e)]=this[_0x3d8e99(0x12e)],_0x30a4a4[_0x3d8e99(0x17c)]=this[_0x3d8e99(0x17c)],_0x30a4a4[_0x3d8e99(0x136)]=this['modelParams'];}}else _0xf7b2ff['modelName']=this['modelName'],_0x34df44[_0x3d8e99(0x17c)]=this[_0x3d8e99(0x17c)],_0x32b7ea['modelParams']=this[_0x3d8e99(0x136)];}}}}[a13_0x1b6103(0x163)](_0x2c5c4f){const _0x22b60e=a13_0x1b6103,_0x2120ca={'lPMzw':function(_0x28ee2a,_0x516654){return _0x28ee2a===_0x516654;},'LOBmu':function(_0x20e522,_0x546f22){return _0x20e522!==_0x546f22;},'csSPk':_0x22b60e(0x11d)};for(const _0xbdd10d of _0x2c5c4f){if(_0x2120ca[_0x22b60e(0x171)](_0xbdd10d['name'],this[_0x22b60e(0x11a)])){this[_0x22b60e(0x14c)]=_0xbdd10d['isActive'],this['state']=_0xbdd10d[_0x22b60e(0x121)];if(_0xbdd10d[_0x22b60e(0x12e)]){if(_0x2120ca[_0x22b60e(0x11b)](_0x2120ca[_0x22b60e(0x13e)],'IamWZ'))return(0x0,_0x7ee9b3[_0x22b60e(0x15e)])(_0x45c40c,_0x135f07);else this['modelName']=_0xbdd10d[_0x22b60e(0x12e)];}this[_0x22b60e(0x17c)]=_0xbdd10d[_0x22b60e(0x17c)],this[_0x22b60e(0x136)]=(0x0,lodash_1[_0x22b60e(0x13c)])({},_0xbdd10d[_0x22b60e(0x136)]??{});const _0x59d1a4=_0xbdd10d[_0x22b60e(0x14a)];_0x59d1a4!==undefined&&this['modelParams']['temperature']===undefined&&(this[_0x22b60e(0x136)][_0x22b60e(0x14a)]=_0x59d1a4);}}}[a13_0x1b6103(0x18d)](){const _0x1c9270=a13_0x1b6103;return{'name':this[_0x1c9270(0x11a)],'isActive':this['isActive'],'state':this[_0x1c9270(0x121)],'modelName':this[_0x1c9270(0x12e)],'modelParamsName':this[_0x1c9270(0x17c)],'modelParams':this[_0x1c9270(0x136)]};}[a13_0x1b6103(0x14b)](){const _0x51833a=a13_0x1b6103,_0x4d7ba6=this[_0x51833a(0x180)]['getMemory'](this[_0x51833a(0x107)]);return _0x4d7ba6[_0x51833a(0x190)]=0x0,_0x4d7ba6;}async['callStepTool'](_0x27e853,_0x135dcd){const _0x31590c=a13_0x1b6103,_0x3fed3e={'NqJsl':function(_0x1c5344,_0x2ce834){return _0x1c5344===_0x2ce834;},'KAplz':_0x31590c(0x179)},_0x276d7d=this[_0x31590c(0x180)]['getStep'](_0x27e853[_0x31590c(0x11a)]);return _0x3fed3e[_0x31590c(0x16a)](typeof this[_0x135dcd[_0x31590c(0x11a)]],_0x3fed3e[_0x31590c(0x177)])?await _0x276d7d[_0x135dcd['name']](_0x135dcd):_0x27e853;}[a13_0x1b6103(0x131)](_0x9e80e7){const _0xcb1639=a13_0x1b6103,_0x7829e5={'tSQBZ':_0xcb1639(0x144)},_0x5cdeb6=this[_0xcb1639(0x18b)]();for(const _0x1fab6e of _0x5cdeb6){this[_0xcb1639(0xfa)]({'_stopTool':{[_0x1fab6e]:![]}});}return _0x9e80e7[_0xcb1639(0x14e)][_0x7829e5[_0xcb1639(0x12d)]]=!![],_0x9e80e7;}['genMessageId'](){const _0x51e8fe=a13_0x1b6103,_0x3dd842={'gKMjD':_0x51e8fe(0x152)};return this[_0x51e8fe(0x11a)]+'|'+moment_1['default'][_0x51e8fe(0x178)]()[_0x51e8fe(0x198)](_0x3dd842['gKMjD'])+'|'+this[_0x51e8fe(0x117)]();}[a13_0x1b6103(0x117)](){const _0x2b50fb=a13_0x1b6103,_0x4dfcaa={'ApWkL':function(_0x4162bc,_0x19362e){return _0x4162bc+_0x19362e;},'AmYPR':function(_0x4ad8c0,_0x5254d3){return _0x4ad8c0*_0x5254d3;},'GBYOi':function(_0x2056ca,_0x48ad11){return _0x2056ca-_0x48ad11;}},_0x1a7f7a=0x3b9aca00,_0xfa8ace=0x2540be3ff;return _0x4dfcaa[_0x2b50fb(0x102)](Math[_0x2b50fb(0x172)](_0x4dfcaa[_0x2b50fb(0x199)](Math['random'](),_0x4dfcaa[_0x2b50fb(0x102)](_0x4dfcaa[_0x2b50fb(0x16d)](_0xfa8ace,_0x1a7f7a),0x1))),_0x1a7f7a);}[a13_0x1b6103(0x158)](){const _0x15e1c6=a13_0x1b6103,_0x14676f={'dHjoq':_0x15e1c6(0x12a),'aIvKn':'gpt'},_0x280089=this['modelName']||this[_0x15e1c6(0x180)]['getModel'](),_0xff5632=_0x280089[_0x15e1c6(0x10f)]()[_0x15e1c6(0x188)]();if(_0xff5632['startsWith'](_0x14676f[_0x15e1c6(0x159)]))return llm_file_js_1['LLMType'][_0x15e1c6(0x176)];if(_0xff5632[_0x15e1c6(0x157)](_0x14676f['aIvKn']))return llm_file_js_1[_0x15e1c6(0x125)]['OPENAI'];if(_0xff5632[_0x15e1c6(0x157)](_0x15e1c6(0x13f)))return llm_file_js_1[_0x15e1c6(0x125)][_0x15e1c6(0x119)];return llm_file_js_1[_0x15e1c6(0x125)][_0x15e1c6(0x150)];}['structOutputSchema'](){return null;}}exports[a13_0x1b6103(0x129)]=Step;
|
|
1
|
+
const a13_0x1cf326=a13_0x122c;(function(_0x87c90a,_0xfed7ab){const _0x216014=a13_0x122c,_0x1116b4=_0x87c90a();while(!![]){try{const _0x2b371b=parseInt(_0x216014(0x177))/0x1*(parseInt(_0x216014(0x1d5))/0x2)+-parseInt(_0x216014(0x195))/0x3*(-parseInt(_0x216014(0x21c))/0x4)+-parseInt(_0x216014(0x1cd))/0x5+parseInt(_0x216014(0x1eb))/0x6*(parseInt(_0x216014(0x1ee))/0x7)+parseInt(_0x216014(0x1ba))/0x8+-parseInt(_0x216014(0x22b))/0x9*(-parseInt(_0x216014(0x1fa))/0xa)+-parseInt(_0x216014(0x199))/0xb*(parseInt(_0x216014(0x1f1))/0xc);if(_0x2b371b===_0xfed7ab)break;else _0x1116b4['push'](_0x1116b4['shift']());}catch(_0x204a93){_0x1116b4['push'](_0x1116b4['shift']());}}}(a13_0x4c8d,0x26dc1));function a13_0x122c(_0x312bf8,_0x4f2757){const _0x31b384=a13_0x4c8d();return a13_0x122c=function(_0x40dc2f,_0x8ac5f1){_0x40dc2f=_0x40dc2f-0x167;let _0x4c8d11=_0x31b384[_0x40dc2f];return _0x4c8d11;},a13_0x122c(_0x312bf8,_0x4f2757);}const a13_0x8ac5f1=(function(){let _0x1b1c48=!![];return function(_0x368d4d,_0x9b3dd0){const _0x391de1=_0x1b1c48?function(){const _0x3cb88b=a13_0x122c;if(_0x9b3dd0){const _0x2d39dc=_0x9b3dd0[_0x3cb88b(0x181)](_0x368d4d,arguments);return _0x9b3dd0=null,_0x2d39dc;}}:function(){};return _0x1b1c48=![],_0x391de1;};}()),a13_0x40dc2f=a13_0x8ac5f1(this,function(){const _0x1ea2b0=a13_0x122c,_0x38dca5={'dfPoY':_0x1ea2b0(0x1ac)};return a13_0x40dc2f[_0x1ea2b0(0x17a)]()['search'](_0x38dca5[_0x1ea2b0(0x1c4)])[_0x1ea2b0(0x17a)]()[_0x1ea2b0(0x23a)](a13_0x40dc2f)[_0x1ea2b0(0x246)](_0x38dca5[_0x1ea2b0(0x1c4)]);});a13_0x40dc2f();'use strict';var __importDefault=this&&this[a13_0x1cf326(0x207)]||function(_0x766a00){const _0x25202c=a13_0x1cf326;return _0x766a00&&_0x766a00[_0x25202c(0x18e)]?_0x766a00:{'default':_0x766a00};};Object[a13_0x1cf326(0x1db)](exports,a13_0x1cf326(0x18e),{'value':!![]}),exports[a13_0x1cf326(0x16f)]=void 0x0;const lodash_1=require(a13_0x1cf326(0x189)),moment_1=__importDefault(require('moment')),flow_types_1=require(a13_0x1cf326(0x222)),messages_1=require(a13_0x1cf326(0x185)),node_async_hooks_1=require('node:async_hooks'),llm_runner_1=require(a13_0x1cf326(0x1b0)),message_util_1=require(a13_0x1cf326(0x1ff)),content_type_1=require(a13_0x1cf326(0x1b7)),llm_file_js_1=require(a13_0x1cf326(0x210)),constants_1=require(a13_0x1cf326(0x19e));class Step{constructor(_0x3c6ed0,_0x35f6b0,_0x27f3f1=![]){const _0x1d3c28=a13_0x1cf326,_0x322673={'uzrcU':'3|2|5|8|1|6|4|0|7'},_0x3851f4=_0x322673[_0x1d3c28(0x1ad)][_0x1d3c28(0x197)]('|');let _0xeefdda=0x0;while(!![]){switch(_0x3851f4[_0xeefdda++]){case'0':this[_0x1d3c28(0x1ce)]=_0x27f3f1;continue;case'1':this[_0x1d3c28(0x186)]=content_type_1[_0x1d3c28(0x236)]['Plain'];continue;case'2':this[_0x1d3c28(0x213)]={};continue;case'3':this[_0x1d3c28(0x1ce)]=![];continue;case'4':this[_0x1d3c28(0x247)]=_0x35f6b0;continue;case'5':this[_0x1d3c28(0x1f0)]=undefined;continue;case'6':this['name']=_0x3c6ed0[_0x1d3c28(0x21a)];continue;case'7':this[_0x1d3c28(0x18b)]=_0x3c6ed0['name'];continue;case'8':this[_0x1d3c28(0x1e2)]={};continue;}break;}}[a13_0x1cf326(0x1a9)](){const _0x21e702=a13_0x1cf326;return this[_0x21e702(0x21a)];}async[a13_0x1cf326(0x1b6)](){}async[a13_0x1cf326(0x176)](){}async[a13_0x1cf326(0x1d1)](){}async[a13_0x1cf326(0x17e)](){const _0x41172c=a13_0x1cf326;return await this[_0x41172c(0x1b6)](),this[_0x41172c(0x194)](null);}async[a13_0x1cf326(0x1b1)](_0x30b6f4){const _0x5eaa9f=a13_0x1cf326,_0x389299={'grDKe':function(_0x3b5618,_0x11dfc6){return _0x3b5618===_0x11dfc6;},'Fdyqq':'object'};if(_0x389299[_0x5eaa9f(0x1f6)](typeof _0x30b6f4,_0x389299[_0x5eaa9f(0x1f2)]))return JSON[_0x5eaa9f(0x1bb)](_0x30b6f4);return _0x30b6f4;}['checkResponse'](_0x144c81){return![];}get[a13_0x1cf326(0x216)](){const _0xf4a76b=a13_0x1cf326,_0x259f2e={'boIgP':function(_0x1f24db,_0x2b3638){return _0x1f24db===_0x2b3638;}},_0x483604=Step['getScopedActiveStep']();if(_0x483604!==undefined)return _0x259f2e['boIgP'](_0x483604,this);return this[_0xf4a76b(0x1ce)];}[a13_0x1cf326(0x1f9)](){return![];}set[a13_0x1cf326(0x216)](_0x27c6eb){const _0x480bf7=a13_0x1cf326;void this[_0x480bf7(0x22d)](_0x27c6eb);}async[a13_0x1cf326(0x22d)](_0x4ab540){const _0x33afa4=a13_0x1cf326,_0x1c6979={'xYwwb':'_stopTool','dJjEP':function(_0x4d2f1d,_0x232db1){return _0x4d2f1d===_0x232db1;},'iQmsK':_0x33afa4(0x1e4),'siCxO':function(_0x4429d2,_0x4116e3){return _0x4429d2+_0x4116e3;},'LMhWi':function(_0x486d93,_0x458b31){return _0x486d93*_0x458b31;},'NFsnz':function(_0x18ce97,_0x181cce){return _0x18ce97+_0x181cce;},'liitW':function(_0x1017e8,_0x417807){return _0x1017e8===_0x417807;},'reBvD':_0x33afa4(0x19c),'sjYJq':_0x33afa4(0x1de),'aTdoE':'VElvV'},_0x3896ca=Step[_0x33afa4(0x1d7)][_0x33afa4(0x202)]();if(_0x3896ca){if(_0x4ab540&&this[_0x33afa4(0x216)])return;if(_0x4ab540){if(_0x1c6979[_0x33afa4(0x1e9)](_0x33afa4(0x203),_0x1c6979[_0x33afa4(0x23f)])){const _0x42e551=this['getState'](_0x1c6979[_0x33afa4(0x1e6)])[_0x320a05],_0x4a244e='**Important:**\x20After\x20collecting\x20data,\x20call\x20tool\x20'+_0x1f384c+'\x20to\x20ensure\x20the\x20tool\x20is\x20triggered.',_0x6c2aa1=_0x42e551?_0x4a244e:'';_0x28bab1=_0x282f6d[_0x33afa4(0x1fc)]('{{'+_0xf5408e+'}}',_0x6c2aa1);}else await this[_0x33afa4(0x21e)]();}else this[_0x33afa4(0x216)]&&await Step['exitScopedActiveStep']();return;}if(!this['isActive']&&_0x4ab540){this[_0x33afa4(0x1ce)]=!![];try{await this[_0x33afa4(0x1b6)]();}catch(_0x5cf5c2){if(_0x33afa4(0x187)!==_0x1c6979[_0x33afa4(0x173)]){this['isActive']=![];throw _0x5cf5c2;}else{const _0x1be930=this[_0x33afa4(0x224)]();_0x1c6979[_0x33afa4(0x168)](_0x1be930[_0x33afa4(0x1e3)],0x1)&&(_0x360060=new _0x2c2ebf[(_0x33afa4(0x1b2))](this,_0x1c6979[_0x33afa4(0x223)]));}}return;}if(this[_0x33afa4(0x1ce)]&&!_0x4ab540)try{if(_0x33afa4(0x1b4)===_0x1c6979[_0x33afa4(0x1b8)])await this[_0x33afa4(0x176)]();else{const _0x20f4f9=0x3b9aca00,_0x3eb907=0x2540be3ff;return _0x1c6979['siCxO'](_0x390ab1['floor'](_0x1c6979['LMhWi'](_0x562035['random'](),_0x1c6979[_0x33afa4(0x1c9)](_0x3eb907-_0x20f4f9,0x1))),_0x20f4f9);}}finally{this[_0x33afa4(0x1ce)]=![];}}static async[a13_0x1cf326(0x1ed)](_0x2b6afb,_0x6ea5f6){const _0x3e69a8=a13_0x1cf326,_0x4e2b78={'LUran':function(_0x138abd,_0x1034b1){return _0x138abd!==_0x1034b1;},'WgzRx':function(_0x5f129b,_0x332a7e){return _0x5f129b-_0x332a7e;}},_0x481801=Step[_0x3e69a8(0x1d7)]['getStore'](),_0x9eef22=_0x481801?[..._0x481801[_0x3e69a8(0x244)]]:[];return _0x4e2b78[_0x3e69a8(0x200)](_0x9eef22[_0x4e2b78['WgzRx'](_0x9eef22['length'],0x1)],_0x2b6afb)&&_0x9eef22['push'](_0x2b6afb),await Step[_0x3e69a8(0x1d7)][_0x3e69a8(0x16c)]({'stack':_0x9eef22},_0x6ea5f6);}static[a13_0x1cf326(0x1f7)](){const _0x352b8e=a13_0x1cf326;return Step[_0x352b8e(0x1d7)][_0x352b8e(0x202)]()!==undefined;}static[a13_0x1cf326(0x235)](){const _0x31f8dd=a13_0x1cf326,_0x2a19c1={'knxeo':function(_0x33ee68,_0x40a80e){return _0x33ee68===_0x40a80e;},'svdse':'object','MJGxz':_0x31f8dd(0x229),'pqJqk':function(_0x28fdb8,_0xba16d6){return _0x28fdb8-_0xba16d6;}},_0x2c34d7=Step['activeStepScope'][_0x31f8dd(0x202)]();if(!_0x2c34d7){if(_0x31f8dd(0x1ae)!==_0x2a19c1[_0x31f8dd(0x184)])return undefined;else{if(_0x2a19c1[_0x31f8dd(0x1ea)](typeof _0x262937,_0x2a19c1['svdse']))return _0x5d2ce4[_0x31f8dd(0x1bb)](_0x44f016);return _0xe139fd;}}return _0x2c34d7[_0x31f8dd(0x244)][_0x2a19c1[_0x31f8dd(0x1e7)](_0x2c34d7[_0x31f8dd(0x244)]['length'],0x1)]??null;}async[a13_0x1cf326(0x1dc)](){const _0x37b21f=a13_0x1cf326,_0x130d78=Step['activeStepScope']['getStore']();if(!_0x130d78){await this[_0x37b21f(0x22d)](!![]);return;}_0x130d78['stack'][_0x37b21f(0x1cc)](this);try{await this[_0x37b21f(0x1b6)]();}catch(_0x1df3d3){_0x130d78[_0x37b21f(0x244)][_0x37b21f(0x17f)]();throw _0x1df3d3;}}async['replaceScopedActiveStep'](){const _0x5a9943=a13_0x1cf326,_0x3c6d8f={'gvWiM':function(_0x372bd2,_0x46fc2e){return _0x372bd2===_0x46fc2e;},'KoYkK':function(_0x375c76,_0x4258e3){return _0x375c76??_0x4258e3;},'SCDHG':function(_0x154882,_0x40b6ce){return _0x154882===_0x40b6ce;},'mMUUs':_0x5a9943(0x1c5),'qEvTS':function(_0x494625,_0x1ab6f7){return _0x494625===_0x1ab6f7;},'FVpvS':function(_0x5c4eb9,_0x9f0539){return _0x5c4eb9!==_0x9f0539;}},_0x5eae0d=Step[_0x5a9943(0x1d7)][_0x5a9943(0x202)]();if(!_0x5eae0d){if(_0x3c6d8f[_0x5a9943(0x196)]!==_0x3c6d8f[_0x5a9943(0x196)]){if(_0x3c6d8f['gvWiM'](typeof _0xdff55c,'string'))return this[_0x5a9943(0x172)]=_0x30bb2b,this[_0x5a9943(0x1e2)]=(0x0,_0x1b3632[_0x5a9943(0x241)])({},this['modelParams'],_0x3c6d8f['KoYkK'](_0x5c23c6,{})),this;return this[_0x5a9943(0x172)]=this['modelName']??this['flow'][_0x5a9943(0x22c)](),this[_0x5a9943(0x1e2)]=(0x0,_0x2229fa['merge'])({},this['modelParams'],_0x581dad),this;}else{await this[_0x5a9943(0x22d)](!![]);return;}}const _0x448e97=Step[_0x5a9943(0x235)]();_0x448e97&&(await _0x448e97['onExit'](),_0x3c6d8f[_0x5a9943(0x19b)](Step['getScopedActiveStep'](),_0x448e97)&&_0x5eae0d[_0x5a9943(0x244)]['pop']());_0x5eae0d[_0x5a9943(0x244)][_0x5a9943(0x1cc)](this);try{if(_0x3c6d8f[_0x5a9943(0x1d4)](_0x5a9943(0x1d2),_0x5a9943(0x1d2)))return _0x3c6d8f[_0x5a9943(0x220)](_0x40b0d1,this);else await this[_0x5a9943(0x1b6)]();}catch(_0x50ef4f){_0x3c6d8f['SCDHG'](Step[_0x5a9943(0x235)](),this)&&_0x5eae0d[_0x5a9943(0x244)][_0x5a9943(0x17f)]();throw _0x50ef4f;}}static async[a13_0x1cf326(0x1be)](){const _0x8de6ff=a13_0x1cf326,_0x4067b2={'mVycR':function(_0x3530e7,_0x412dee){return _0x3530e7||_0x412dee;},'kEiEL':function(_0x508935,_0x57bb03){return _0x508935===_0x57bb03;},'QMjoT':'bqKbj','PMNUW':_0x8de6ff(0x240)},_0xf16c84=Step[_0x8de6ff(0x1d7)][_0x8de6ff(0x202)](),_0x1f2de4=Step[_0x8de6ff(0x235)]();if(_0x4067b2[_0x8de6ff(0x167)](!_0xf16c84,!_0x1f2de4))return;try{await _0x1f2de4[_0x8de6ff(0x176)]();}finally{if(_0x4067b2['kEiEL'](Step[_0x8de6ff(0x235)](),_0x1f2de4)){if(_0x4067b2[_0x8de6ff(0x1e8)]!==_0x4067b2[_0x8de6ff(0x221)])_0xf16c84[_0x8de6ff(0x244)][_0x8de6ff(0x17f)]();else return this[_0x8de6ff(0x18b)]=_0x41e7e7,this;}}}get['contentType'](){return this['ctType'];}set[a13_0x1cf326(0x1a8)](_0x3593f0){const _0x19310a=a13_0x1cf326;this[_0x19310a(0x186)]=_0x3593f0;}['getState'](_0x466e67,_0x141ec2=flow_types_1[a13_0x1cf326(0x1c6)][a13_0x1cf326(0x1a4)]){const _0x81ecf0=a13_0x1cf326,_0x3080be={'ALHTO':function(_0x2a3dec,_0x4317d){return _0x2a3dec===_0x4317d;}},_0xc8d631=_0x3080be[_0x81ecf0(0x1a2)](_0x141ec2,flow_types_1['SaveStateType'][_0x81ecf0(0x242)])?(0x0,lodash_1[_0x81ecf0(0x18d)])(this[_0x81ecf0(0x213)],constants_1['K'][_0x81ecf0(0x228)],{}):this[_0x81ecf0(0x213)];return _0x466e67?(0x0,lodash_1[_0x81ecf0(0x18d)])(_0xc8d631,_0x466e67):_0xc8d631;}[a13_0x1cf326(0x22a)](_0x2d6f1e){const _0x5db8c5=a13_0x1cf326;return this['getState'](_0x2d6f1e,flow_types_1[_0x5db8c5(0x1c6)]['transient']);}[a13_0x1cf326(0x1b5)](_0xbf71b7,_0x1c67d8=flow_types_1[a13_0x1cf326(0x1c6)][a13_0x1cf326(0x1a4)]){const _0x63950d=a13_0x1cf326,_0x3620aa={'YvqWu':function(_0x103145,_0x1588bd){return _0x103145===_0x1588bd;}};if(_0xbf71b7){const _0x1bb59c=Object['keys'](_0xbf71b7)[0x0];if(_0x3620aa['YvqWu'](_0x1c67d8,flow_types_1[_0x63950d(0x1c6)][_0x63950d(0x242)])){const _0x275a8e=(0x0,lodash_1[_0x63950d(0x1c3)])((0x0,lodash_1[_0x63950d(0x18d)])(this[_0x63950d(0x213)],constants_1['K']['TRANSIENT'],{}),_0x1bb59c);this[_0x63950d(0x213)]=(0x0,lodash_1[_0x63950d(0x241)])({},this[_0x63950d(0x213)],{[constants_1['K'][_0x63950d(0x228)]]:(0x0,lodash_1[_0x63950d(0x241)])({},_0x275a8e,_0xbf71b7)});}else this[_0x63950d(0x213)]=(0x0,lodash_1['omit'])(this[_0x63950d(0x213)],_0x1bb59c),this[_0x63950d(0x213)]=(0x0,lodash_1[_0x63950d(0x241)])({},this[_0x63950d(0x213)],_0xbf71b7);this['state']=(0x0,lodash_1[_0x63950d(0x241)])(this[_0x63950d(0x213)],{'_saveOn':(0x0,moment_1[_0x63950d(0x16e)])()[_0x63950d(0x1d8)]()});}}[a13_0x1cf326(0x1bd)](_0x16a236){const _0x2d1ea6=a13_0x1cf326;return this[_0x2d1ea6(0x1b5)](_0x16a236,flow_types_1['SaveStateType'][_0x2d1ea6(0x242)]);}[a13_0x1cf326(0x174)](){const _0x25dde9=a13_0x1cf326,_0x4ecf83={'LSDHs':_0x25dde9(0x171)},_0x50cd80=this[_0x25dde9(0x247)][_0x25dde9(0x1a0)]();_0x50cd80[_0x25dde9(0x178)]=_0x4ecf83[_0x25dde9(0x1e1)];}[a13_0x1cf326(0x17b)](_0x10d34a){const _0x218572=a13_0x1cf326;return this[_0x218572(0x247)]['getContext'](_0x10d34a);}[a13_0x1cf326(0x215)](_0x49e228){const _0x469656=a13_0x1cf326;this[_0x469656(0x213)]=(0x0,lodash_1['omit'])(this['state'],_0x49e228);}[a13_0x1cf326(0x1aa)](){const _0xcb4d8b=a13_0x1cf326,_0x59cb58={'eLAjv':_0xcb4d8b(0x1fb)},_0x385560=this[_0xcb4d8b(0x231)](_0x59cb58['eLAjv']);return _0x385560?_0x385560[_0xcb4d8b(0x17a)]():null;}[a13_0x1cf326(0x194)](_0x59a45a,_0x4f68f1){const _0x2f4f4c=a13_0x1cf326,_0x4fb06d={'LbmKz':function(_0xc01643,_0x87da87){return _0xc01643!==_0x87da87;},'RYKyz':_0x2f4f4c(0x180),'LBJxz':_0x2f4f4c(0x1e4)};if(!_0x59a45a){if(_0x4fb06d[_0x2f4f4c(0x1f4)](_0x4fb06d[_0x2f4f4c(0x1d3)],_0x4fb06d[_0x2f4f4c(0x1d3)]))this[_0x2f4f4c(0x1b5)]({'_stopTool':{[_0x48d258]:![]}});else{const _0x132655=this[_0x2f4f4c(0x224)]();_0x132655[_0x2f4f4c(0x1e3)]===0x1&&(_0x59a45a=new message_util_1['HumanMessageEx'](this,_0x4fb06d[_0x2f4f4c(0x217)]));}}return _0x59a45a;}[a13_0x1cf326(0x224)](){const _0x52571f=a13_0x1cf326,_0x6571ea={'BbRqg':function(_0x5bf54e,_0x5b91cc){return _0x5bf54e===_0x5b91cc;}},_0x401e09=this[_0x52571f(0x247)][_0x52571f(0x224)](this[_0x52571f(0x18b)]);return _0x6571ea[_0x52571f(0x1fe)](_0x401e09[_0x52571f(0x1e3)],0x0)&&_0x401e09[_0x52571f(0x1cc)](new messages_1[(_0x52571f(0x1ec))]({'content':'','id':this[_0x52571f(0x227)]()})),_0x401e09;}['getLastMessage'](){const _0x3b4fdb=a13_0x1cf326,_0x40f3dc={'XwfRP':function(_0xa76d42,_0x2ba845){return _0xa76d42>_0x2ba845;},'xWamj':function(_0x145f58,_0x4f162b){return _0x145f58-_0x4f162b;}},_0x3d3398=this[_0x3b4fdb(0x247)]['getMemory'](this[_0x3b4fdb(0x18b)]);if(_0x40f3dc['XwfRP'](_0x3d3398[_0x3b4fdb(0x1e3)],0x0))return _0x3d3398[_0x40f3dc[_0x3b4fdb(0x1e5)](_0x3d3398[_0x3b4fdb(0x1e3)],0x1)];return null;}[a13_0x1cf326(0x1dd)](_0xe0d203){const _0x468937=a13_0x1cf326;return this[_0x468937(0x18b)]=_0xe0d203,this;}['useModel'](_0x46ee6c,_0x19a3d3){const _0x49298e=a13_0x1cf326;return this[_0x49298e(0x1f0)]=_0x46ee6c,this[_0x49298e(0x172)]=_0x46ee6c,_0x19a3d3&&this[_0x49298e(0x1f8)](_0x19a3d3),this;}[a13_0x1cf326(0x1f8)](_0x433975,_0x6afb52){const _0x18221d=a13_0x1cf326,_0x336225={'RrHoZ':function(_0x36bcf3,_0x3b3ee2){return _0x36bcf3===_0x3b3ee2;},'GzAzj':_0x18221d(0x20f),'ITorw':_0x18221d(0x1c7),'DnPAb':function(_0x54daa9,_0x1b11f5){return _0x54daa9??_0x1b11f5;}};if(_0x336225[_0x18221d(0x17d)](typeof _0x433975,_0x336225[_0x18221d(0x188)])){if(_0x336225[_0x18221d(0x190)]===_0x18221d(0x1c7))return this['modelParamsName']=_0x433975,this[_0x18221d(0x1e2)]=(0x0,lodash_1[_0x18221d(0x241)])({},this[_0x18221d(0x1e2)],_0x336225['DnPAb'](_0x6afb52,{})),this;else this[_0x18221d(0x1e2)][_0x18221d(0x19d)]=_0x17ee8f;}return this[_0x18221d(0x172)]=this[_0x18221d(0x1f0)]??this[_0x18221d(0x247)][_0x18221d(0x22c)](),this[_0x18221d(0x1e2)]=(0x0,lodash_1['merge'])({},this[_0x18221d(0x1e2)],_0x433975),this;}[a13_0x1cf326(0x22c)](){const _0x32e01f=a13_0x1cf326;return this[_0x32e01f(0x1f0)];}['getModelParams'](){const _0x50a756=a13_0x1cf326;return this[_0x50a756(0x1e2)];}[a13_0x1cf326(0x1f5)](){const _0x4b547c=a13_0x1cf326;return this[_0x4b547c(0x172)];}[a13_0x1cf326(0x234)](){return null;}['isToolAvailable'](_0x1c1a38){const _0x22a9b9=a13_0x1cf326,_0x31a805={'SxvxX':_0x22a9b9(0x1fd),'zOaBP':function(_0x4c5fd2,_0x2bf2a8){return _0x4c5fd2===_0x2bf2a8;},'ZvFWI':function(_0x217fed,_0x2b084a){return _0x217fed!==_0x2b084a;},'Atzpt':'PGpvt'};for(const _0x3c4bd7 of this['getTool']()){if(_0x31a805[_0x22a9b9(0x191)]===_0x31a805['SxvxX']){if(_0x31a805['zOaBP'](_0x3c4bd7,_0x1c1a38))return _0x31a805['ZvFWI'](_0x22a9b9(0x1cb),_0x31a805['Atzpt'])?[]:!![];}else _0x482aa0[_0x22a9b9(0x1f0)]=this[_0x22a9b9(0x1f0)],_0x140245[_0x22a9b9(0x172)]=this[_0x22a9b9(0x172)],_0x54af61[_0x22a9b9(0x1e2)]=this[_0x22a9b9(0x1e2)];}return![];}[a13_0x1cf326(0x1a3)](){return[];}[a13_0x1cf326(0x206)](){return[];}['obtainTools'](){const _0x4c1ae0=a13_0x1cf326,_0xfeb8ca=this[_0x4c1ae0(0x1a3)]();return _0xfeb8ca['map'](_0x4656fc=>{const _0x5876a6=_0x4c1ae0;return this[_0x5876a6(0x247)]['getTool'](_0x4656fc);});}[a13_0x1cf326(0x1c1)](_0xa75285){const _0x74f97c=a13_0x1cf326,_0x3b6c18={'Ijclw':'_stopTool'},_0x4c4e20=this['getStopTool']();for(const _0xf70e3a of _0x4c4e20){const _0x3497a0=this[_0x74f97c(0x231)](_0x3b6c18[_0x74f97c(0x20e)])[_0xf70e3a],_0x9513d9='**Important:**\x20After\x20collecting\x20data,\x20call\x20tool\x20'+_0xf70e3a+'\x20to\x20ensure\x20the\x20tool\x20is\x20triggered.',_0x350915=_0x3497a0?_0x9513d9:'';_0xa75285=_0xa75285['replace']('{{'+_0xf70e3a+'}}',_0x350915);}return _0xa75285;}async[a13_0x1cf326(0x19a)](_0x37986b){return null;}async[a13_0x1cf326(0x16c)](_0x5aab87){const _0x43233f=a13_0x1cf326,_0x271d04={'vMihV':function(_0x2f3dd5,_0x4e31dc){return _0x2f3dd5===_0x4e31dc;},'uqays':function(_0x268f2a,_0x464a8c){return _0x268f2a!==_0x464a8c;},'iJFVt':_0x43233f(0x249),'AQKLH':_0x43233f(0x23d)};let _0x448b0a;_0x5aab87&&(_0x448b0a=new message_util_1[(_0x43233f(0x1b2))](this,_0x5aab87));const _0x5d8061=this[_0x43233f(0x206)]();for(const _0x3312bf of _0x5d8061){if(_0x271d04[_0x43233f(0x23e)](_0x271d04[_0x43233f(0x20a)],_0x271d04[_0x43233f(0x1b9)]))this['saveState']({'_stopTool':{[_0x3312bf]:!![]}});else{for(const _0x45970b of this[_0x43233f(0x1a3)]()){if(_0x271d04[_0x43233f(0x226)](_0x45970b,_0xee299))return!![];}return![];}}const _0x51f258=await llm_runner_1[_0x43233f(0x18a)][_0x43233f(0x211)](this[_0x43233f(0x247)],this,_0x448b0a);return _0x51f258;}async[a13_0x1cf326(0x183)](_0x3c01fd,_0x17ac2b){const _0x3e2bf0=a13_0x1cf326,_0x247bbc={'URwlj':function(_0x2d9501,_0xffdee3){return _0x2d9501===_0xffdee3;},'zwRkz':_0x3e2bf0(0x1a5)};return await this[_0x3e2bf0(0x247)][_0x3e2bf0(0x1c0)](async()=>{const _0x387c30=_0x3e2bf0,_0x5c3cf2={'DDBvL':function(_0x4bfaa8,_0x52fe96){const _0x541611=a13_0x122c;return _0x247bbc[_0x541611(0x1cf)](_0x4bfaa8,_0x52fe96);},'MeQXy':_0x247bbc[_0x387c30(0x1df)]};return await Step['withActiveStepScope'](this,async()=>{const _0x1d5f51=_0x387c30;if(_0x5c3cf2[_0x1d5f51(0x18f)](_0x5c3cf2['MeQXy'],_0x1d5f51(0x20d)))return _0x52203e&&_0x20fdce[_0x1d5f51(0x18e)]?_0x41bf19:{'default':_0x422db2};else{const _0x5aec91=await this['flow'][_0x1d5f51(0x208)](_0x3c01fd);try{return await _0x5aec91['run'](_0x17ac2b);}finally{await Step[_0x1d5f51(0x1be)]();}}});});}async[a13_0x1cf326(0x1bf)](_0x55c580){const _0x178573=a13_0x1cf326,_0x310cd1={'rVjlX':function(_0x97925f,_0x201cdb){return _0x97925f===_0x201cdb;},'kubWA':_0x178573(0x1ca),'lxpjr':function(_0x1e34a7,_0x5beeee){return _0x1e34a7!==_0x5beeee;},'NXNtC':'UbVDZ'},_0x258a41=_0x55c580[_0x178573(0x1da)](({step:_0x3f4bd3,userMessage:_0x1fc9b0})=>{const _0x2aad09=_0x178573,_0x51646a={'jEOKk':function(_0x16d499,_0x24ec73){return _0x310cd1['rVjlX'](_0x16d499,_0x24ec73);},'pMRCj':_0x310cd1[_0x2aad09(0x23b)]};return _0x310cd1[_0x2aad09(0x21f)](_0x2aad09(0x214),_0x310cd1[_0x2aad09(0x218)])?this[_0x2aad09(0x247)][_0x2aad09(0x1c0)](async()=>{const _0x329ec0=_0x2aad09,_0x18bbaf={'bmRwz':function(_0x1cc9e7,_0xa185f3){const _0x124fe5=a13_0x122c;return _0x51646a[_0x124fe5(0x20c)](_0x1cc9e7,_0xa185f3);},'MKbxz':function(_0x53d1f3,_0x3e5312){const _0xc0b24f=a13_0x122c;return _0x51646a[_0xc0b24f(0x20c)](_0x53d1f3,_0x3e5312);},'IEarK':_0x51646a[_0x329ec0(0x1c2)]};return await Step[_0x329ec0(0x1ed)](this,async()=>{const _0x421c25=_0x329ec0,_0x2d8990=await this[_0x421c25(0x247)][_0x421c25(0x208)](_0x3f4bd3);try{if(_0x18bbaf[_0x421c25(0x237)](_0x421c25(0x1ca),_0x18bbaf[_0x421c25(0x17c)]))return await _0x2d8990[_0x421c25(0x16c)](_0x1fc9b0);else _0x18bbaf['bmRwz'](_0x30d778[_0x421c25(0x21a)],this['name'])&&(_0x465dd9[_0x421c25(0x1ce)]=this[_0x421c25(0x1ce)],_0x720841['state']=(0x0,_0x16c714[_0x421c25(0x1c3)])(this[_0x421c25(0x213)],_0x30feed['K']['TRANSIENT']),!this[_0x421c25(0x1f9)]()&&(_0xe9fa38['modelName']=this[_0x421c25(0x1f0)],_0x1f7f3c[_0x421c25(0x172)]=this[_0x421c25(0x172)],_0x348398[_0x421c25(0x1e2)]=this[_0x421c25(0x1e2)]));}finally{await Step[_0x421c25(0x1be)]();}});}):null;});return await Promise['all'](_0x258a41);}[a13_0x1cf326(0x1a1)](){const _0x5e0c2e=a13_0x1cf326,_0x442781={'RYUSf':function(_0x354139,_0x11764b){return _0x354139===_0x11764b;}};return _0x442781[_0x5e0c2e(0x16a)](this['flow']['getSessionDoc']()[_0x5e0c2e(0x178)],_0x5e0c2e(0x171));}[a13_0x1cf326(0x169)](_0x2bd6e6){const _0x396baa=a13_0x1cf326,_0x137ddc={'cIyav':function(_0xae00bc,_0x1334e4){return _0xae00bc===_0x1334e4;},'DjVFx':function(_0x2268d7,_0x38c8a7){return _0x2268d7===_0x38c8a7;}};for(const _0x189aba of _0x2bd6e6){if(_0x137ddc[_0x396baa(0x201)](_0x396baa(0x16b),_0x396baa(0x16b))){if(_0x137ddc[_0x396baa(0x201)](_0x189aba['name'],this['name'])){if(_0x137ddc[_0x396baa(0x1c8)](_0x396baa(0x209),'ezxUA'))_0x189aba[_0x396baa(0x1ce)]=this['isActive'],_0x189aba[_0x396baa(0x213)]=(0x0,lodash_1['omit'])(this[_0x396baa(0x213)],constants_1['K'][_0x396baa(0x228)]),!this[_0x396baa(0x1f9)]()&&(_0x189aba[_0x396baa(0x1f0)]=this[_0x396baa(0x1f0)],_0x189aba[_0x396baa(0x172)]=this[_0x396baa(0x172)],_0x189aba[_0x396baa(0x1e2)]=this[_0x396baa(0x1e2)]);else return this['getState'](_0x1b1b8b,_0x16a2e8['SaveStateType'][_0x396baa(0x242)]);}}else return this[_0x396baa(0x247)][_0x396baa(0x17b)](_0x44fca5);}}[a13_0x1cf326(0x23c)](_0x3c1bae){const _0x470c40=a13_0x1cf326,_0x41457d={'UcCjm':function(_0x53fde9,_0x549bce){return _0x53fde9!==_0x549bce;},'BuEik':'yNQUg','TWVAM':_0x470c40(0x1a7),'NlItP':function(_0x318c67,_0x42c42d){return _0x318c67===_0x42c42d;},'BfXrW':function(_0x170496,_0x3e26d4){return _0x170496!==_0x3e26d4;}};for(const _0x4e670d of _0x3c1bae){if(_0x41457d['UcCjm'](_0x41457d['BuEik'],_0x41457d[_0x470c40(0x22e)])){if(_0x41457d[_0x470c40(0x212)](_0x4e670d['name'],this['name'])){this[_0x470c40(0x1ce)]=_0x4e670d[_0x470c40(0x1ce)],this[_0x470c40(0x213)]=_0x4e670d['state'];_0x4e670d[_0x470c40(0x1f0)]&&(this[_0x470c40(0x1f0)]=_0x4e670d[_0x470c40(0x1f0)]);this[_0x470c40(0x172)]=_0x4e670d[_0x470c40(0x172)],this['modelParams']=(0x0,lodash_1[_0x470c40(0x241)])({},_0x4e670d[_0x470c40(0x1e2)]??{});const _0x27be59=_0x4e670d[_0x470c40(0x19d)];_0x41457d['BfXrW'](_0x27be59,undefined)&&_0x41457d['NlItP'](this[_0x470c40(0x1e2)]['temperature'],undefined)&&(this['modelParams'][_0x470c40(0x19d)]=_0x27be59);}}else{const _0x5ceb2c=this[_0x470c40(0x206)]();for(const _0x433274 of _0x5ceb2c){this[_0x470c40(0x1b5)]({'_stopTool':{[_0x433274]:![]}});}return _0x1cdc56[_0x470c40(0x205)][_0x470c40(0x204)]=!![],_0x32c0e2;}}}[a13_0x1cf326(0x198)](){const _0x46291c=a13_0x1cf326;return{'name':this[_0x46291c(0x21a)],'isActive':this['isActive'],'state':this[_0x46291c(0x213)],'modelName':this[_0x46291c(0x1f0)],'modelParamsName':this['modelParamsName'],'modelParams':this[_0x46291c(0x1e2)]};}[a13_0x1cf326(0x1bc)](){const _0x12a184=a13_0x1cf326,_0x2caa75=this[_0x12a184(0x247)][_0x12a184(0x224)](this[_0x12a184(0x18b)]);return _0x2caa75[_0x12a184(0x1e3)]=0x0,_0x2caa75;}async[a13_0x1cf326(0x238)](_0x38d2a8,_0x258a11){const _0xb1ed42=a13_0x1cf326,_0xd913a7={'UQGTT':function(_0x336c46,_0x31464d){return _0x336c46===_0x31464d;},'ILbZh':_0xb1ed42(0x1ef),'Kqdso':function(_0x1029fc,_0x4eb7e7){return _0x1029fc!==_0x4eb7e7;},'BUiax':_0xb1ed42(0x230),'BPYoF':_0xb1ed42(0x239)},_0x4059ad=this[_0xb1ed42(0x247)][_0xb1ed42(0x245)](_0x38d2a8[_0xb1ed42(0x21a)]);if(_0xd913a7[_0xb1ed42(0x248)](typeof this[_0x258a11[_0xb1ed42(0x21a)]],_0xd913a7[_0xb1ed42(0x193)]))return _0xb1ed42(0x170)!==_0xb1ed42(0x170)?[]:await _0x4059ad[_0x258a11['name']](_0x258a11);else{if(_0xd913a7[_0xb1ed42(0x192)](_0xd913a7[_0xb1ed42(0x232)],_0xd913a7[_0xb1ed42(0x1d6)]))return _0x38d2a8;else{if(_0x207c5d){const _0x599487=_0x4ffd06[_0xb1ed42(0x21d)](_0x3c7bdd)[0x0];if(_0xd913a7['UQGTT'](_0x593eff,_0x5686af['SaveStateType'][_0xb1ed42(0x242)])){const _0x5bbbf0=(0x0,_0x4a12cf[_0xb1ed42(0x1c3)])((0x0,_0xd91249[_0xb1ed42(0x18d)])(this[_0xb1ed42(0x213)],_0x2301d3['K'][_0xb1ed42(0x228)],{}),_0x599487);this['state']=(0x0,_0xa5ca55[_0xb1ed42(0x241)])({},this[_0xb1ed42(0x213)],{[_0x806adc['K'][_0xb1ed42(0x228)]]:(0x0,_0x172239[_0xb1ed42(0x241)])({},_0x5bbbf0,_0x371734)});}else this['state']=(0x0,_0x12323f[_0xb1ed42(0x1c3)])(this[_0xb1ed42(0x213)],_0x599487),this[_0xb1ed42(0x213)]=(0x0,_0x1df47d['merge'])({},this['state'],_0x168b0e);this[_0xb1ed42(0x213)]=(0x0,_0x2466b8[_0xb1ed42(0x241)])(this[_0xb1ed42(0x213)],{'_saveOn':(0x0,_0x3e748c[_0xb1ed42(0x16e)])()[_0xb1ed42(0x1d8)]()});}}}}[a13_0x1cf326(0x19f)](_0x4e2b82){const _0x426bf6=a13_0x1cf326,_0x46111a={'imipG':_0x426bf6(0x204)},_0x2af790=this['getStopTool']();for(const _0x11fe11 of _0x2af790){this[_0x426bf6(0x1b5)]({'_stopTool':{[_0x11fe11]:![]}});}return _0x4e2b82[_0x426bf6(0x205)][_0x46111a[_0x426bf6(0x1b3)]]=!![],_0x4e2b82;}['genMessageId'](){const _0x7cf5ed=a13_0x1cf326;return this[_0x7cf5ed(0x21a)]+'|'+moment_1[_0x7cf5ed(0x16e)][_0x7cf5ed(0x243)]()['format'](_0x7cf5ed(0x22f))+'|'+this[_0x7cf5ed(0x219)]();}[a13_0x1cf326(0x219)](){const _0x244383=a13_0x1cf326,_0x30a322={'GNxVR':function(_0x844ae7,_0x4e58c5){return _0x844ae7+_0x4e58c5;},'oHyBg':function(_0x216819,_0x1ef4ce){return _0x216819*_0x1ef4ce;},'wAFwT':function(_0x59af35,_0xdd089a){return _0x59af35+_0xdd089a;},'DFvuM':function(_0x575658,_0x2e16b6){return _0x575658-_0x2e16b6;}},_0x430c07=0x3b9aca00,_0x1f501f=0x2540be3ff;return _0x30a322[_0x244383(0x1a6)](Math[_0x244383(0x225)](_0x30a322[_0x244383(0x179)](Math['random'](),_0x30a322[_0x244383(0x16d)](_0x30a322[_0x244383(0x21b)](_0x1f501f,_0x430c07),0x1))),_0x430c07);}[a13_0x1cf326(0x18c)](){const _0x400d8f=a13_0x1cf326,_0x303e04={'rGaBz':'gemini','kMOzR':'gpt','tzRQY':_0x400d8f(0x1af)},_0x5ca5f3=this[_0x400d8f(0x1f0)]||this['flow'][_0x400d8f(0x22c)](),_0x2f027b=_0x5ca5f3['trim']()[_0x400d8f(0x1f3)]();if(_0x2f027b['startsWith'](_0x303e04[_0x400d8f(0x182)]))return llm_file_js_1['LLMType'][_0x400d8f(0x20b)];if(_0x2f027b[_0x400d8f(0x175)](_0x303e04[_0x400d8f(0x233)]))return llm_file_js_1['LLMType'][_0x400d8f(0x1d0)];if(_0x2f027b[_0x400d8f(0x175)](_0x303e04[_0x400d8f(0x1e0)]))return llm_file_js_1[_0x400d8f(0x1d9)]['ANTHROPIC'];return llm_file_js_1['LLMType'][_0x400d8f(0x1ab)];}['structOutputSchema'](){return null;}}exports[a13_0x1cf326(0x16f)]=Step,Step[a13_0x1cf326(0x1d7)]=new node_async_hooks_1['AsyncLocalStorage']();function a13_0x4c8d(){const _0x1f4bed=['createDoc','10538wAbkmF','invokeTool','qEvTS','EDGjT','temperature','../utils/constants','setStopTool','getSessionDoc','isEnd','ALHTO','getTool','persistent','UIyWz','GNxVR','GvzzR','contentType','getName','getPrompt','UNSUPPORTED','(((.+)+)+)+$','uzrcU','EXAQA','claude','./llm-runner','onResponse','HumanMessageEx','imipG','VElvV','saveState','onEnter','./content-type','aTdoE','AQKLH','2222312cyEWOp','stringify','eraseMemory','saveTransientState','exitScopedActiveStep','runSteps','withNestedSequence','amendTool','pMRCj','omit','dfPoY','iFIES','SaveStateType','hdFer','DjVFx','NFsnz','uggMx','PGpvt','push','868605JYrbdd','isActive','URwlj','OPENAI','onRestore','KKXpD','RYKyz','FVpvS','480974RZExua','BPYoF','activeStepScope','toDate','LLMType','map','defineProperty','pushScopedActiveStep','useMemory','CUlEb','zwRkz','tzRQY','LSDHs','modelParams','length','Start','xWamj','xYwwb','pqJqk','QMjoT','liitW','knxeo','18pwwDjJ','SystemMessage','withActiveStepScope','340137EuQnbE','function','modelName','9588mGeuDh','Fdyqq','toLowerCase','LbmKz','getModelParamsModelName','grDKe','hasActiveStepScope','useModelParams','isLogic','1732430otFdsX','_prompt','replace','bdlQi','BbRqg','../utils/message-util','LUran','cIyav','getStore','TNlyo','stopTool','additional_kwargs','getStopTool','__importDefault','activateNested','ezxUA','iJFVt','GEMINI','jEOKk','SQtxY','Ijclw','string','../utils/llm-file.js','send','NlItP','state','LsIHy','removeState','active','LBJxz','NXNtC','random10Digits','name','DFvuM','2080yhYLjH','keys','replaceScopedActiveStep','lxpjr','SCDHG','PMNUW','./flow-types','iQmsK','getMemory','floor','vMihV','genMessageId','TRANSIENT','wvdkS','getTransientState','9dikOBH','getModel','setActive','TWVAM','YYYY-MM-DDTHH:mm:ss.SSS[Z]','ZroEl','getState','BUiax','kMOzR','defineTool','getScopedActiveStep','HttpContentType','MKbxz','callStepTool','oRDuP','constructor','kubWA','readDoc','sXtBg','uqays','reBvD','FHcif','merge','transient','utc','stack','getStep','search','flow','UQGTT','uTFgo','mVycR','dJjEP','writeDoc','RYUSf','PLuAt','run','wAFwT','default','Step','pKxTk','completed','modelParamsName','sjYJq','sessionCompleted','startsWith','onExit','1qCezKG','runStatus','oHyBg','toString','getContext','IEarK','RrHoZ','onStart','pop','MgEzF','apply','rGaBz','runStep','MJGxz','@langchain/core/messages','ctType','XvYce','GzAzj','lodash','LlmRunner','memorySpace','getLLMType','get','__esModule','DDBvL','ITorw','SxvxX','Kqdso','ILbZh','onCrossing','1506NnIySn','mMUUs','split'];a13_0x4c8d=function(){return _0x1f4bed;};return a13_0x4c8d();}
|
package/index.d.ts
CHANGED
|
@@ -1,34 +1,39 @@
|
|
|
1
1
|
// PicoFlow - Type definitions
|
|
2
|
-
export { Flow } from
|
|
3
|
-
export { Step } from
|
|
4
|
-
export { LogicStep } from
|
|
5
|
-
export { EndStep } from
|
|
6
|
-
export { Memory } from
|
|
7
|
-
export { FlowCreator } from
|
|
8
|
-
export { HttpContentType } from
|
|
9
|
-
export * from
|
|
10
|
-
|
|
11
|
-
export { FlowEngine } from
|
|
12
|
-
|
|
13
|
-
export { FlowSession } from
|
|
14
|
-
export { SessionLogger } from
|
|
15
|
-
export { FileSession } from
|
|
16
|
-
export { MongoSession } from
|
|
17
|
-
export { CosmoSession } from
|
|
18
|
-
|
|
19
|
-
export { CoreConfig } from
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
export { Flow } from './flow/flow';
|
|
3
|
+
export { Step } from './flow/step';
|
|
4
|
+
export { LogicStep } from './flow/logic-step';
|
|
5
|
+
export { EndStep } from './flow/end-step';
|
|
6
|
+
export { Memory } from './flow/memory';
|
|
7
|
+
export { FlowCreator } from './flow/flow-creator';
|
|
8
|
+
export { HttpContentType } from './flow/content-type';
|
|
9
|
+
export * from './flow/flow-types';
|
|
10
|
+
|
|
11
|
+
export { FlowEngine } from './services/flow-engine';
|
|
12
|
+
|
|
13
|
+
export { FlowSession } from './session/flow-session';
|
|
14
|
+
export { SessionLogger } from './session/session-logger';
|
|
15
|
+
export { FileSession } from './session/file-session';
|
|
16
|
+
export { MongoSession } from './session/mongo-session';
|
|
17
|
+
export { CosmoSession } from './session/cosmo-session';
|
|
18
|
+
|
|
19
|
+
export { CoreConfig } from './configs/core-config';
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
MessageUtil,
|
|
23
|
+
MessageTypes,
|
|
24
|
+
ToolCallMessage,
|
|
25
|
+
ToolMessageOK,
|
|
26
|
+
ToolMessageInfo,
|
|
27
|
+
} from './utils/message-util';
|
|
28
|
+
export { ToolUtil } from './utils/tool-util';
|
|
29
|
+
export { StringUtil } from './utils/string-util';
|
|
30
|
+
export { Environ } from './utils/environ';
|
|
31
|
+
export { LlmFile } from './utils/llm-file';
|
|
32
|
+
export { K } from './utils/constants';
|
|
33
|
+
|
|
34
|
+
export { Prompt } from './prompt/prompt-util';
|
|
35
|
+
export { FlowPrompt } from './prompt/flow-prompt';
|
|
36
|
+
|
|
37
|
+
export { StopTool } from './decorators/stop-tool';
|
|
38
|
+
|
|
39
|
+
export { HttpClient } from './clients/http-client';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Model } from './model-registry';
|
|
2
|
-
export declare function createPopularModels(): (Model<"gpt-5.4"> | Model<"gpt-5"> | Model<"gpt-5-mini"> | Model<"gpt-5-nano"> | Model<"gpt-4.1"> | Model<"gpt-4.1-mini"> | Model<"gpt-4o"> | Model<"gpt-4o-mini"> | Model<"claude-opus-4-6"> | Model<"claude-opus-4-6-thinking"> | Model<"claude-sonnet-4-6"> | Model<"claude-sonnet-4-6-thinking"> | Model<"claude-haiku-4-5-20251001"> | Model<"claude-opus-4-1-20250805"> | Model<"claude-opus-4-1-20250805-thinking"> | Model<"claude-3-7-sonnet-latest"> | Model<"claude-3-7-sonnet-thinking"> | Model<"claude-3-5-haiku-latest"> | Model<"gemini-3.1-pro-preview"> | Model<"gemini-3-flash-preview"> | Model<"gemini-3.1-flash-lite-preview"> | Model<"gemini-2.5-pro"> | Model<"gemini-2.5-flash"> | Model<"gemini-2.5-flash-lite"> | Model<"qwen2.5:1.5b">)[];
|
|
2
|
+
export declare function createPopularModels(): (Model<"gpt-5.4"> | Model<"gpt-5"> | Model<"gpt-5-mini"> | Model<"gpt-5-nano"> | Model<"gpt-4.1"> | Model<"gpt-4.1-mini"> | Model<"gpt-4o"> | Model<"gpt-4o-mini"> | Model<"claude-opus-4-6"> | Model<"claude-opus-4-6-thinking"> | Model<"claude-sonnet-4-6"> | Model<"claude-sonnet-4-6-thinking"> | Model<"claude-haiku-4-5-20251001"> | Model<"claude-opus-4-1-20250805"> | Model<"claude-opus-4-1-20250805-thinking"> | Model<"claude-3-7-sonnet-latest"> | Model<"claude-3-7-sonnet-thinking"> | Model<"claude-3-5-haiku-latest"> | Model<"gemini-3.1-pro-preview"> | Model<"gemini-3-flash-preview"> | Model<"gemini-3.1-flash-lite-preview"> | Model<"gemini-2.5-pro"> | Model<"gemini-2.5-flash"> | Model<"gemini-2.5-flash-lite"> | Model<"nvidia-deepseek-v4-flash"> | Model<"nvidia-nemotron-3"> | Model<"qwen2.5:1.5b">)[];
|
package/models/default-models.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a14_0x36d3(_0x221925,_0x30ab4b){const _0x51517d=a14_0x44db();return a14_0x36d3=function(_0x306ca5,_0x480b06){_0x306ca5=_0x306ca5-0x198;let _0x44dbff=_0x51517d[_0x306ca5];return _0x44dbff;},a14_0x36d3(_0x221925,_0x30ab4b);}const a14_0x26d116=a14_0x36d3;(function(_0x590639,_0x569250){const _0x46d862=a14_0x36d3,_0x204958=_0x590639();while(!![]){try{const _0x2ec28e=-parseInt(_0x46d862(0x1b4))/0x1+parseInt(_0x46d862(0x1ec))/0x2+-parseInt(_0x46d862(0x1f8))/0x3+-parseInt(_0x46d862(0x1e8))/0x4*(parseInt(_0x46d862(0x19b))/0x5)+parseInt(_0x46d862(0x1f5))/0x6*(parseInt(_0x46d862(0x1ed))/0x7)+-parseInt(_0x46d862(0x1cb))/0x8+parseInt(_0x46d862(0x1ad))/0x9;if(_0x2ec28e===_0x569250)break;else _0x204958['push'](_0x204958['shift']());}catch(_0x55ddbe){_0x204958['push'](_0x204958['shift']());}}}(a14_0x44db,0x69f38));function a14_0x44db(){const _0x5b0b3a=['xHqNv','WfRZc','cucdr','claude-3-7-sonnet-latest','defineProperty','claude-opus-4-1-20250805','yMHLB','gemini-3.1-flash-lite-preview','wVDNV','gemini-2.5-pro','llmTemperature','ollama','Rpztu','gemini-3-flash-preview','../configs/core-config','WbRog','sfSvs','Gumhy','claude-haiku-4-5-20251001','gemini-2.5-flash','nVKFz','claude-sonnet-4-6','llmRetry','tqmxY','gAPgA','xJaAp','yBKkf','EBUrv','20JStGJT','PBFiJ','CoreConfig','Yehbu','28530ZWxVJw','180761MzaQcc','toString','GeminiKey','claude-opus-4-6-thinking','imtDF','./model-registry','claude-sonnet-4-6-thinking','yTIFD','54bitexc','bUvBc','gpt-4o-mini','1265982BLpkJm','mCMRw','FQPeC','lbZET','enabled','JMLXm','kioHm','ieroW','RTfxz','PDjEx','qwen2.5:1.5b','(((.+)+)+)+$','XgRzy','Model','17860YkFKAI','bcCpY','fElUr','EZVjI','sLYqy','WgPHM','LQxWM','JLNif','YDLAG','medium','SaYZk','Afjba','DCebY','ymxWm','eAjPz','claude-opus-4-6','eiurO','gemini-3.1-pro-preview','15520905BqlBWO','gpt-4.1-mini','uvChF','ksVxI','search','gpt-5-nano','oPkrf','426709vitBAu','QPOaL','claude-3-5-haiku-latest','gemini-2.5-flash-lite','claude-opus-4-1-20250805-thinking','claude-3-7-sonnet-thinking','YOGEE','TLKgA','DrBbg','AnthropicKey','cNoXP','OpenAIKey','kbYdM','rBVvS','gpt-5-mini','gpt-4o','gpt-4.1','uclcI','NdVPg','apply','LqRgk','zAAPc','yCkKC','5365424CWxmiw'];a14_0x44db=function(){return _0x5b0b3a;};return a14_0x44db();}const a14_0x480b06=(function(){const _0x57a4d2=a14_0x36d3,_0x3b87d0={'SaYZk':'gpt-5.4','Yehbu':_0x57a4d2(0x1a4),'xHqNv':_0x57a4d2(0x1c2),'XgRzy':_0x57a4d2(0x1b2),'cucdr':_0x57a4d2(0x1ae),'ymxWm':_0x57a4d2(0x1f7),'LqRgk':_0x57a4d2(0x1fc),'EZVjI':'claude-opus-4-6','Afjba':_0x57a4d2(0x1e1),'KCaPC':_0x57a4d2(0x1f3),'WfRZc':'claude-haiku-4-5-20251001','kioHm':_0x57a4d2(0x1b8),'LQxWM':'claude-3-7-sonnet-latest','Gumhy':'claude-3-5-haiku-latest','eAjPz':_0x57a4d2(0x1ac),'DrBbg':_0x57a4d2(0x1d9),'WbRog':_0x57a4d2(0x1df),'YOGEE':_0x57a4d2(0x1b7),'kbYdM':'qwen2.5:1.5b','xJaAp':_0x57a4d2(0x1fb),'DCebY':_0x57a4d2(0x1dc),'PDjEx':_0x57a4d2(0x19d)};let _0x12d425=!![];return function(_0xaa7300,_0x3bd98d){const _0x374c46=_0x57a4d2,_0x1baddd={'CTLlm':_0x3b87d0[_0x374c46(0x1a5)],'RTfxz':_0x3b87d0[_0x374c46(0x1eb)],'mKfdj':_0x3b87d0[_0x374c46(0x1cc)],'cNoXP':_0x3b87d0[_0x374c46(0x199)],'yMHLB':_0x374c46(0x1c4),'JMLXm':_0x3b87d0[_0x374c46(0x1ce)],'nVKFz':_0x3b87d0[_0x374c46(0x1a8)],'imtDF':_0x3b87d0[_0x374c46(0x1c8)],'uclcI':_0x3b87d0[_0x374c46(0x19e)],'zAAPc':_0x3b87d0[_0x374c46(0x1a6)],'tbJyd':_0x3b87d0['KCaPC'],'oPkrf':_0x3b87d0[_0x374c46(0x1cd)],'PBFiJ':'claude-opus-4-1-20250805','bcCpY':_0x3b87d0[_0x374c46(0x1fe)],'NsgEz':_0x374c46(0x1b9),'GjffT':_0x3b87d0[_0x374c46(0x1a1)],'mCMRw':_0x3b87d0[_0x374c46(0x1dd)],'ieroW':_0x3b87d0[_0x374c46(0x1a9)],'tqmxY':_0x3b87d0[_0x374c46(0x1bc)],'xaJcp':_0x374c46(0x1d3),'sLYqy':'gemini-2.5-pro','ljLaU':_0x3b87d0[_0x374c46(0x1db)],'HAZAU':_0x3b87d0[_0x374c46(0x1ba)],'FrKAU':_0x3b87d0[_0x374c46(0x1c0)],'JmsSA':_0x3b87d0[_0x374c46(0x1e5)],'uvChF':_0x3b87d0[_0x374c46(0x1a7)]};if(_0x3b87d0[_0x374c46(0x201)]!=='fElUr'){const _0x14668e=_0x3ac790[_0x374c46(0x1c7)](_0x5e729a,arguments);return _0x179485=null,_0x14668e;}else{const _0x2eb831=_0x12d425?function(){const _0x37b9fc=_0x374c46;if(_0x3bd98d){if(_0x1baddd['JmsSA']!==_0x1baddd[_0x37b9fc(0x1af)]){const _0x29b9bd=_0x3bd98d[_0x37b9fc(0x1c7)](_0xaa7300,arguments);return _0x3bd98d=null,_0x29b9bd;}else return[new _0x40e22f[(_0x37b9fc(0x19a))](_0x1baddd['CTLlm'],{'apiKey':_0x5174f1[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bf)],'maxRetries':_0x132276[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)],'reasoning':{'effort':_0x1baddd[_0x37b9fc(0x200)]}}),new _0x27771f[(_0x37b9fc(0x19a))]('gpt-5',{'apiKey':_0x50e27b['CoreConfig'][_0x37b9fc(0x1bf)],'maxRetries':_0x251244['CoreConfig'][_0x37b9fc(0x1e2)],'reasoning':{'effort':_0x1baddd[_0x37b9fc(0x200)]}}),new _0x3c3188[(_0x37b9fc(0x19a))](_0x1baddd['mKfdj'],{'apiKey':_0x54faa6[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bf)],'maxRetries':_0x1ec215['CoreConfig'][_0x37b9fc(0x1e2)],'reasoning':{'effort':'medium'}}),new _0x22e779[(_0x37b9fc(0x19a))](_0x1baddd[_0x37b9fc(0x1be)],{'apiKey':_0x1426da[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bf)],'maxRetries':_0x3e9a1e[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)],'reasoning':{'effort':_0x1baddd[_0x37b9fc(0x200)]}}),new _0x4fd1ab[(_0x37b9fc(0x19a))](_0x1baddd[_0x37b9fc(0x1d2)],{'temperature':_0x313f61[_0x37b9fc(0x1ea)][_0x37b9fc(0x1d6)],'apiKey':_0x50a540[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bf)],'maxRetries':_0x2636fd['CoreConfig']['llmRetry']}),new _0x513571[(_0x37b9fc(0x19a))](_0x1baddd[_0x37b9fc(0x1fd)],{'temperature':_0x48a363[_0x37b9fc(0x1ea)]['llmTemperature'],'apiKey':_0x3d2f17[_0x37b9fc(0x1ea)]['OpenAIKey'],'maxRetries':_0x5a7866[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x128a34[(_0x37b9fc(0x19a))](_0x37b9fc(0x1c3),{'temperature':_0x12834f[_0x37b9fc(0x1ea)][_0x37b9fc(0x1d6)],'apiKey':_0x8d1d8f[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bf)],'maxRetries':_0x1d6e31[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x4ae55c['Model'](_0x1baddd[_0x37b9fc(0x1e0)],{'temperature':_0x573a7e[_0x37b9fc(0x1ea)][_0x37b9fc(0x1d6)],'apiKey':_0x35189a[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bf)],'maxRetries':_0x119dbc[_0x37b9fc(0x1ea)]['llmRetry']}),new _0xdea8b9[(_0x37b9fc(0x19a))](_0x37b9fc(0x1aa),{'temperature':0x0,'apiKey':_0x2653d6[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bd)],'maxRetries':_0x35b0ac[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x2ff52f['Model'](_0x37b9fc(0x1f0),{'apiKey':_0xac869a[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bd)],'maxRetries':_0xa543c[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)],'thinking':{'type':_0x1baddd['imtDF'],'budget_tokens':0x800}},_0x1baddd[_0x37b9fc(0x1c5)]),new _0x348383[(_0x37b9fc(0x19a))](_0x1baddd[_0x37b9fc(0x1c9)],{'temperature':0x0,'apiKey':_0x277498[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bd)],'maxRetries':_0x21c573['CoreConfig']['llmRetry']}),new _0xfea753[(_0x37b9fc(0x19a))](_0x1baddd['tbJyd'],{'apiKey':_0x479853[_0x37b9fc(0x1ea)]['AnthropicKey'],'maxRetries':_0x2361ae['CoreConfig'][_0x37b9fc(0x1e2)],'thinking':{'type':_0x1baddd['imtDF'],'budget_tokens':0x800}},_0x1baddd[_0x37b9fc(0x1c9)]),new _0xf5bcbe[(_0x37b9fc(0x19a))](_0x1baddd[_0x37b9fc(0x1b3)],{'temperature':_0x1b79a4[_0x37b9fc(0x1ea)][_0x37b9fc(0x1d6)],'apiKey':_0x3885d4[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bd)],'maxRetries':_0xaeaff[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x29ca97['Model'](_0x1baddd[_0x37b9fc(0x1e9)],{'temperature':0x0,'apiKey':_0x36f8b8[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bd)],'maxRetries':_0x5c63cb[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x2f6a1f[(_0x37b9fc(0x19a))](_0x1baddd[_0x37b9fc(0x19c)],{'apiKey':_0x381260[_0x37b9fc(0x1ea)]['AnthropicKey'],'maxRetries':_0x60cdc9[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)],'thinking':{'type':_0x1baddd['imtDF'],'budget_tokens':0x800}},_0x1baddd[_0x37b9fc(0x1e9)]),new _0x153185['Model'](_0x37b9fc(0x1cf),{'temperature':0x0,'apiKey':_0x590937['CoreConfig'][_0x37b9fc(0x1bd)],'maxRetries':_0x5a4cd7['CoreConfig']['llmRetry']}),new _0x3e95b2[(_0x37b9fc(0x19a))](_0x1baddd['NsgEz'],{'apiKey':_0x4e5a62[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bd)],'maxRetries':_0x175f5d[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)],'thinking':{'type':_0x1baddd[_0x37b9fc(0x1f1)],'budget_tokens':0x800}},_0x1baddd['GjffT']),new _0x13779b[(_0x37b9fc(0x19a))](_0x1baddd[_0x37b9fc(0x1f9)],{'temperature':_0x3f6665['CoreConfig']['llmTemperature'],'apiKey':_0x46efb8[_0x37b9fc(0x1ea)][_0x37b9fc(0x1bd)],'maxRetries':_0x2edb91[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x3ee96c[(_0x37b9fc(0x19a))](_0x1baddd[_0x37b9fc(0x1ff)],{'temperature':_0x1509d5['CoreConfig'][_0x37b9fc(0x1d6)],'apiKey':_0x25f6e8[_0x37b9fc(0x1ea)][_0x37b9fc(0x1ef)],'maxRetries':_0x39f6df[_0x37b9fc(0x1ea)]['llmRetry']}),new _0x18a7c5[(_0x37b9fc(0x19a))](_0x1baddd[_0x37b9fc(0x1e3)],{'temperature':_0x5948b3['CoreConfig'][_0x37b9fc(0x1d6)],'apiKey':_0x2d518f[_0x37b9fc(0x1ea)][_0x37b9fc(0x1ef)],'maxRetries':_0x38dad7[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x559ea7['Model'](_0x1baddd['xaJcp'],{'temperature':_0x5f0357['CoreConfig'][_0x37b9fc(0x1d6)],'apiKey':_0x4a9575[_0x37b9fc(0x1ea)][_0x37b9fc(0x1ef)],'maxRetries':_0x37e9ea[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x53404e[(_0x37b9fc(0x19a))](_0x1baddd[_0x37b9fc(0x19f)],{'temperature':_0x263324[_0x37b9fc(0x1ea)][_0x37b9fc(0x1d6)],'apiKey':_0x499064[_0x37b9fc(0x1ea)][_0x37b9fc(0x1ef)],'maxRetries':_0x518f5b[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x5d8ae5[(_0x37b9fc(0x19a))](_0x1baddd['ljLaU'],{'temperature':_0x26c341[_0x37b9fc(0x1ea)]['llmTemperature'],'apiKey':_0x9fd7ce[_0x37b9fc(0x1ea)][_0x37b9fc(0x1ef)],'maxRetries':_0x2ba1dd[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x5663f7[(_0x37b9fc(0x19a))](_0x1baddd['HAZAU'],{'temperature':_0x1da6fa[_0x37b9fc(0x1ea)]['llmTemperature'],'apiKey':_0x56815c['CoreConfig']['GeminiKey'],'maxRetries':_0x588876[_0x37b9fc(0x1ea)][_0x37b9fc(0x1e2)]}),new _0x52b88d[(_0x37b9fc(0x19a))](_0x1baddd['FrKAU'],{'provider':'ollama','think':![],'maxRetries':_0x38face['CoreConfig'][_0x37b9fc(0x1e2)],'options':{'temperature':_0x1ae94f[_0x37b9fc(0x1ea)][_0x37b9fc(0x1d6)]}})];}}:function(){};return _0x12d425=![],_0x2eb831;}};}()),a14_0x306ca5=a14_0x480b06(this,function(){const _0x2a3955=a14_0x36d3,_0x58ccf9={'QPOaL':_0x2a3955(0x198)};return a14_0x306ca5[_0x2a3955(0x1ee)]()[_0x2a3955(0x1b1)](_0x58ccf9[_0x2a3955(0x1b5)])[_0x2a3955(0x1ee)]()['constructor'](a14_0x306ca5)[_0x2a3955(0x1b1)](_0x58ccf9[_0x2a3955(0x1b5)]);});a14_0x306ca5();'use strict';Object[a14_0x26d116(0x1d0)](exports,'__esModule',{'value':!![]}),exports['createPopularModels']=createPopularModels;const core_config_1=require(a14_0x26d116(0x1da)),model_registry_1=require(a14_0x26d116(0x1f2));function createPopularModels(){const _0x37ddc1=a14_0x26d116,_0x4f7870={'TLKgA':'gpt-5.4','URzzy':'gpt-5','YDLAG':'medium','HSXRw':'gpt-5-nano','yCkKC':'gpt-4.1','bUvBc':_0x37ddc1(0x1c3),'NdVPg':'gpt-4o-mini','yBKkf':'claude-opus-4-6-thinking','rBVvS':_0x37ddc1(0x1e1),'FQPeC':_0x37ddc1(0x1fc),'Rpztu':_0x37ddc1(0x1de),'ksVxI':_0x37ddc1(0x1d1),'TSQFp':_0x37ddc1(0x1cf),'ZFGVk':'claude-3-7-sonnet-thinking','EBUrv':_0x37ddc1(0x1b6),'yTIFD':'gemini-3.1-pro-preview','JUAiV':_0x37ddc1(0x1d9),'eiurO':_0x37ddc1(0x1d3),'wVDNV':_0x37ddc1(0x1d5),'JLNif':_0x37ddc1(0x1df),'WgPHM':_0x37ddc1(0x202),'gAPgA':_0x37ddc1(0x1d7)};return[new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870[_0x37ddc1(0x1bb)],{'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1bf)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1e2)],'reasoning':{'effort':_0x37ddc1(0x1a4)}}),new model_registry_1['Model'](_0x4f7870['URzzy'],{'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1bf)],'maxRetries':core_config_1['CoreConfig'][_0x37ddc1(0x1e2)],'reasoning':{'effort':_0x4f7870[_0x37ddc1(0x1a3)]}}),new model_registry_1['Model'](_0x37ddc1(0x1c2),{'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1bf)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)]['llmRetry'],'reasoning':{'effort':_0x4f7870[_0x37ddc1(0x1a3)]}}),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870['HSXRw'],{'apiKey':core_config_1[_0x37ddc1(0x1ea)]['OpenAIKey'],'maxRetries':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1e2)],'reasoning':{'effort':_0x4f7870[_0x37ddc1(0x1a3)]}}),new model_registry_1['Model'](_0x4f7870[_0x37ddc1(0x1ca)],{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)],'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1bf)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1e2)]}),new model_registry_1[(_0x37ddc1(0x19a))](_0x37ddc1(0x1ae),{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)],'apiKey':core_config_1[_0x37ddc1(0x1ea)]['OpenAIKey'],'maxRetries':core_config_1['CoreConfig'][_0x37ddc1(0x1e2)]}),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870[_0x37ddc1(0x1f6)],{'temperature':core_config_1['CoreConfig']['llmTemperature'],'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1bf)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)]['llmRetry']}),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870[_0x37ddc1(0x1c6)],{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)],'apiKey':core_config_1['CoreConfig'][_0x37ddc1(0x1bf)],'maxRetries':core_config_1['CoreConfig'][_0x37ddc1(0x1e2)]}),new model_registry_1[(_0x37ddc1(0x19a))](_0x37ddc1(0x1aa),{'temperature':0x0,'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1bd)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)]['llmRetry']}),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870[_0x37ddc1(0x1e6)],{'apiKey':core_config_1['CoreConfig']['AnthropicKey'],'maxRetries':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1e2)],'thinking':{'type':'enabled','budget_tokens':0x800}},'claude-opus-4-6'),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870[_0x37ddc1(0x1c1)],{'temperature':0x0,'apiKey':core_config_1[_0x37ddc1(0x1ea)]['AnthropicKey'],'maxRetries':core_config_1['CoreConfig'][_0x37ddc1(0x1e2)]}),new model_registry_1[(_0x37ddc1(0x19a))](_0x37ddc1(0x1f3),{'apiKey':core_config_1['CoreConfig']['AnthropicKey'],'maxRetries':core_config_1[_0x37ddc1(0x1ea)]['llmRetry'],'thinking':{'type':_0x4f7870[_0x37ddc1(0x1fa)],'budget_tokens':0x800}},_0x4f7870[_0x37ddc1(0x1c1)]),new model_registry_1['Model'](_0x4f7870[_0x37ddc1(0x1d8)],{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)],'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1bd)],'maxRetries':core_config_1['CoreConfig']['llmRetry']}),new model_registry_1['Model'](_0x4f7870[_0x37ddc1(0x1b0)],{'temperature':0x0,'apiKey':core_config_1['CoreConfig'][_0x37ddc1(0x1bd)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1e2)]}),new model_registry_1['Model'](_0x37ddc1(0x1b8),{'apiKey':core_config_1[_0x37ddc1(0x1ea)]['AnthropicKey'],'maxRetries':core_config_1[_0x37ddc1(0x1ea)]['llmRetry'],'thinking':{'type':_0x4f7870[_0x37ddc1(0x1fa)],'budget_tokens':0x800}},_0x4f7870[_0x37ddc1(0x1b0)]),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870['TSQFp'],{'temperature':0x0,'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1bd)],'maxRetries':core_config_1['CoreConfig'][_0x37ddc1(0x1e2)]}),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870['ZFGVk'],{'apiKey':core_config_1[_0x37ddc1(0x1ea)]['AnthropicKey'],'maxRetries':core_config_1['CoreConfig']['llmRetry'],'thinking':{'type':_0x4f7870[_0x37ddc1(0x1fa)],'budget_tokens':0x800}},_0x37ddc1(0x1cf)),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870[_0x37ddc1(0x1e7)],{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)],'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1bd)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1e2)]}),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870[_0x37ddc1(0x1f4)],{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)],'apiKey':core_config_1['CoreConfig'][_0x37ddc1(0x1ef)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)]['llmRetry']}),new model_registry_1['Model'](_0x4f7870['JUAiV'],{'temperature':core_config_1[_0x37ddc1(0x1ea)]['llmTemperature'],'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1ef)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)]['llmRetry']}),new model_registry_1['Model'](_0x4f7870[_0x37ddc1(0x1ab)],{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)],'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1ef)],'maxRetries':core_config_1['CoreConfig'][_0x37ddc1(0x1e2)]}),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870[_0x37ddc1(0x1d4)],{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)],'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1ef)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1e2)]}),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870[_0x37ddc1(0x1a2)],{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)],'apiKey':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1ef)],'maxRetries':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1e2)]}),new model_registry_1['Model'](_0x37ddc1(0x1b7),{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)],'apiKey':core_config_1['CoreConfig'][_0x37ddc1(0x1ef)],'maxRetries':core_config_1['CoreConfig'][_0x37ddc1(0x1e2)]}),new model_registry_1[(_0x37ddc1(0x19a))](_0x4f7870[_0x37ddc1(0x1a0)],{'provider':_0x4f7870[_0x37ddc1(0x1e4)],'think':![],'maxRetries':core_config_1['CoreConfig'][_0x37ddc1(0x1e2)],'options':{'temperature':core_config_1[_0x37ddc1(0x1ea)][_0x37ddc1(0x1d6)]}})];}
|
|
1
|
+
const a14_0x1a86b8=a14_0x5943;function a14_0x10bb(){const _0x5425f3=['4877865rhsqVJ','gemini-2.5-pro','llmRetry','438536fMFyOJ','CoreConfig','nvidia','Model','gpt-4.1-mini','GeminiKey','(((.+)+)+)+$','gemini-2.5-flash','5052oQkKux','gemini-3.1-flash-lite-preview','claude-opus-4-6','claude-opus-4-1-20250805-thinking','OtPsv','QSvkn','gpt-4.1','RKpUL','GvZdR','Ieuhz','AnthropicKey','XjyKs','nUFbT','createPopularModels','search','Pwkkl','high','llmTemperature','medium','348875olUHIj','WoJrt','gpt-5','claude-haiku-4-5-20251001','uIxJz','./model-registry','OpenAIKey','nvidia-deepseek-v4-flash','KWmIl','TfjPC','mNiXk','8LTrCfh','NQwpD','SJpTh','gFocW','gemini-3-flash-preview','claude-opus-4-1-20250805','GOfXd','toString','claude-sonnet-4-6-thinking','defineProperty','enabled','../configs/core-config','deepseek-ai/deepseek-v4-flash','189810JjyVjQ','claude-3-7-sonnet-thinking','ollama','1435xNKMUr','WpDtT','__esModule','apply','constructor','iJHbu','xHHQJ','MCMVd','UMjEH','gpt-4o-mini','220656zpmbyP','claude-sonnet-4-6','kDVbA','10BTHisM','claude-opus-4-6-thinking','PRoQf','511912gdNgFb'];a14_0x10bb=function(){return _0x5425f3;};return a14_0x10bb();}(function(_0x330b17,_0x5e8b07){const _0x4e606f=a14_0x5943,_0x2f3141=_0x330b17();while(!![]){try{const _0x15fe7d=-parseInt(_0x4e606f(0xbd))/0x1+parseInt(_0x4e606f(0xd4))/0x2+-parseInt(_0x4e606f(0xca))/0x3+-parseInt(_0x4e606f(0xfa))/0x4*(parseInt(_0x4e606f(0xef))/0x5)+-parseInt(_0x4e606f(0xdc))/0x6*(parseInt(_0x4e606f(0xc0))/0x7)+-parseInt(_0x4e606f(0xd0))/0x8+parseInt(_0x4e606f(0xd1))/0x9*(parseInt(_0x4e606f(0xcd))/0xa);if(_0x15fe7d===_0x5e8b07)break;else _0x2f3141['push'](_0x2f3141['shift']());}catch(_0x9eb70b){_0x2f3141['push'](_0x2f3141['shift']());}}}(a14_0x10bb,0x1db8e));const a14_0x238821=(function(){const _0x528cdd=a14_0x5943,_0xc30684={'Pwkkl':function(_0xc2c222,_0x1d6221){return _0xc2c222!==_0x1d6221;},'NQwpD':_0x528cdd(0xf0)};let _0x499499=!![];return function(_0x7f9c4c,_0x43627f){const _0x400f79=_0x499499?function(){const _0x543f8d=a14_0x5943;if(_0x43627f){if(_0xc30684[_0x543f8d(0xeb)](_0xc30684[_0x543f8d(0xfb)],'WoJrt')){const _0x231d1d=_0x53c3c3[_0x543f8d(0xc3)](_0x50ea95,arguments);return _0x525b0c=null,_0x231d1d;}else{const _0x31af53=_0x43627f['apply'](_0x7f9c4c,arguments);return _0x43627f=null,_0x31af53;}}}:function(){};return _0x499499=![],_0x400f79;};}()),a14_0x502e1a=a14_0x238821(this,function(){const _0x1e4935=a14_0x5943,_0x3147cd={'KWmIl':_0x1e4935(0xda)};return a14_0x502e1a[_0x1e4935(0xb7)]()[_0x1e4935(0xea)](_0x3147cd[_0x1e4935(0xf7)])['toString']()[_0x1e4935(0xc4)](a14_0x502e1a)[_0x1e4935(0xea)](_0x3147cd[_0x1e4935(0xf7)]);});a14_0x502e1a();'use strict';Object[a14_0x1a86b8(0xb9)](exports,a14_0x1a86b8(0xc2),{'value':!![]}),exports[a14_0x1a86b8(0xe9)]=createPopularModels;function a14_0x5943(_0x29ff49,_0xc028b1){const _0x46e052=a14_0x10bb();return a14_0x5943=function(_0x502e1a,_0x238821){_0x502e1a=_0x502e1a-0xb4;let _0x10bbe0=_0x46e052[_0x502e1a];return _0x10bbe0;},a14_0x5943(_0x29ff49,_0xc028b1);}const core_config_1=require(a14_0x1a86b8(0xbb)),model_registry_1=require(a14_0x1a86b8(0xf4));function createPopularModels(){const _0x897ad8=a14_0x1a86b8,_0x3db6e8={'MCMVd':'gpt-5.4','iJHbu':_0x897ad8(0xee),'CiJZg':_0x897ad8(0xf1),'nUFbT':'gpt-5-mini','cSzNi':'gpt-5-nano','oWHzz':_0x897ad8(0xe2),'Dgxct':_0x897ad8(0xd8),'kDVbA':'gpt-4o','YKoDM':_0x897ad8(0xc9),'Ieuhz':_0x897ad8(0xce),'wodEz':_0x897ad8(0xde),'PRoQf':_0x897ad8(0xcb),'GvZdR':_0x897ad8(0xb5),'xHHQJ':_0x897ad8(0xdf),'TfjPC':'claude-3-7-sonnet-latest','GOfXd':_0x897ad8(0xbe),'QSvkn':_0x897ad8(0xba),'OtPsv':'gemini-3.1-pro-preview','UMjEH':_0x897ad8(0xb4),'gFocW':_0x897ad8(0xdd),'RKpUL':_0x897ad8(0xdb),'XjyKs':'gemini-2.5-flash-lite','uIxJz':_0x897ad8(0xd6),'XRDyN':_0x897ad8(0xec),'WpDtT':_0x897ad8(0xbc),'SJpTh':'nvidia-nemotron-3','mNiXk':'nvidia/nemotron-3-ultra-550b-a55b'};return[new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xc7)],{'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xf5)],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)],'reasoning':{'effort':_0x3db6e8[_0x897ad8(0xc5)]},'useResponsesApi':!![]}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8['CiJZg'],{'apiKey':core_config_1[_0x897ad8(0xd5)]['OpenAIKey'],'maxRetries':core_config_1[_0x897ad8(0xd5)]['llmRetry'],'reasoning':{'effort':_0x3db6e8[_0x897ad8(0xc5)]},'useResponsesApi':!![]}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xe8)],{'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xf5)],'maxRetries':core_config_1[_0x897ad8(0xd5)]['llmRetry'],'reasoning':{'effort':_0x897ad8(0xee)},'useResponsesApi':!![]}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8['cSzNi'],{'apiKey':core_config_1['CoreConfig'][_0x897ad8(0xf5)],'maxRetries':core_config_1['CoreConfig']['llmRetry'],'reasoning':{'effort':_0x3db6e8['iJHbu']},'useResponsesApi':!![]}),new model_registry_1['Model'](_0x3db6e8['oWHzz'],{'temperature':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xed)],'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xf5)],'maxRetries':core_config_1[_0x897ad8(0xd5)]['llmRetry']}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8['Dgxct'],{'temperature':core_config_1['CoreConfig'][_0x897ad8(0xed)],'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xf5)],'maxRetries':core_config_1[_0x897ad8(0xd5)]['llmRetry']}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xcc)],{'temperature':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xed)],'apiKey':core_config_1['CoreConfig'][_0x897ad8(0xf5)],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)]}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8['YKoDM'],{'temperature':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xed)],'apiKey':core_config_1['CoreConfig'][_0x897ad8(0xf5)],'maxRetries':core_config_1[_0x897ad8(0xd5)]['llmRetry']}),new model_registry_1[(_0x897ad8(0xd7))]('claude-opus-4-6',{'temperature':0x0,'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xe6)],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)]}),new model_registry_1['Model'](_0x3db6e8[_0x897ad8(0xe5)],{'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xe6)],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)],'thinking':{'type':_0x897ad8(0xba),'budget_tokens':0x800}},_0x3db6e8['wodEz']),new model_registry_1['Model'](_0x3db6e8[_0x897ad8(0xcf)],{'temperature':0x0,'apiKey':core_config_1['CoreConfig'][_0x897ad8(0xe6)],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)]}),new model_registry_1[(_0x897ad8(0xd7))](_0x897ad8(0xb8),{'apiKey':core_config_1[_0x897ad8(0xd5)]['AnthropicKey'],'maxRetries':core_config_1[_0x897ad8(0xd5)]['llmRetry'],'thinking':{'type':_0x897ad8(0xba),'budget_tokens':0x800}},_0x3db6e8[_0x897ad8(0xcf)]),new model_registry_1[(_0x897ad8(0xd7))](_0x897ad8(0xf2),{'temperature':core_config_1[_0x897ad8(0xd5)]['llmTemperature'],'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xe6)],'maxRetries':core_config_1['CoreConfig'][_0x897ad8(0xd3)]}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xe4)],{'temperature':0x0,'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xe6)],'maxRetries':core_config_1['CoreConfig'][_0x897ad8(0xd3)]}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xc6)],{'apiKey':core_config_1['CoreConfig'][_0x897ad8(0xe6)],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)],'thinking':{'type':_0x897ad8(0xba),'budget_tokens':0x800}},_0x3db6e8[_0x897ad8(0xe4)]),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xf8)],{'temperature':0x0,'apiKey':core_config_1['CoreConfig'][_0x897ad8(0xe6)],'maxRetries':core_config_1[_0x897ad8(0xd5)]['llmRetry']}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xb6)],{'apiKey':core_config_1[_0x897ad8(0xd5)]['AnthropicKey'],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)],'thinking':{'type':_0x3db6e8[_0x897ad8(0xe1)],'budget_tokens':0x800}},_0x3db6e8[_0x897ad8(0xf8)]),new model_registry_1['Model']('claude-3-5-haiku-latest',{'temperature':core_config_1[_0x897ad8(0xd5)]['llmTemperature'],'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xe6)],'maxRetries':core_config_1['CoreConfig'][_0x897ad8(0xd3)]}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xe0)],{'temperature':core_config_1['CoreConfig'][_0x897ad8(0xed)],'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd9)],'maxRetries':core_config_1[_0x897ad8(0xd5)]['llmRetry']}),new model_registry_1['Model'](_0x3db6e8[_0x897ad8(0xc8)],{'temperature':core_config_1['CoreConfig']['llmTemperature'],'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd9)],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)]}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xfd)],{'temperature':core_config_1[_0x897ad8(0xd5)]['llmTemperature'],'apiKey':core_config_1['CoreConfig'][_0x897ad8(0xd9)],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)]}),new model_registry_1[(_0x897ad8(0xd7))](_0x897ad8(0xd2),{'temperature':core_config_1[_0x897ad8(0xd5)]['llmTemperature'],'apiKey':core_config_1[_0x897ad8(0xd5)]['GeminiKey'],'maxRetries':core_config_1['CoreConfig'][_0x897ad8(0xd3)]}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xe3)],{'temperature':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xed)],'apiKey':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd9)],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)]}),new model_registry_1[(_0x897ad8(0xd7))](_0x3db6e8[_0x897ad8(0xe7)],{'temperature':core_config_1['CoreConfig']['llmTemperature'],'apiKey':core_config_1['CoreConfig']['GeminiKey'],'maxRetries':core_config_1['CoreConfig'][_0x897ad8(0xd3)]}),new model_registry_1[(_0x897ad8(0xd7))](_0x897ad8(0xf6),{'provider':_0x3db6e8[_0x897ad8(0xf3)],'thinking':{'type':'enabled'},'reasoning_effort':_0x3db6e8['XRDyN'],'apiKey':core_config_1[_0x897ad8(0xd5)]['NvidiaKey'],'maxRetries':core_config_1['CoreConfig'][_0x897ad8(0xd3)]},_0x3db6e8[_0x897ad8(0xc1)]),new model_registry_1['Model'](_0x3db6e8[_0x897ad8(0xfc)],{'provider':_0x3db6e8['uIxJz'],'thinking':{'type':_0x897ad8(0xba)},'reasoning_effort':_0x897ad8(0xec),'apiKey':core_config_1['CoreConfig']['NvidiaKey'],'maxRetries':core_config_1[_0x897ad8(0xd5)]['llmRetry']},_0x3db6e8[_0x897ad8(0xf9)]),new model_registry_1[(_0x897ad8(0xd7))]('qwen2.5:1.5b',{'provider':_0x897ad8(0xbf),'think':![],'maxRetries':core_config_1[_0x897ad8(0xd5)][_0x897ad8(0xd3)],'options':{'temperature':core_config_1[_0x897ad8(0xd5)]['llmTemperature']}})];}
|
|
@@ -8,6 +8,7 @@ type OpenAIModelName = `gpt-${string}` | `o${number}${string}`;
|
|
|
8
8
|
type OpenAIReasoningModelName = `gpt-5${string}` | `o${number}${string}`;
|
|
9
9
|
type GeminiModelName = `gemini-${string}`;
|
|
10
10
|
type ClaudeModelName = `claude-${string}`;
|
|
11
|
+
type NvidiaModelName = `nvidia/${string}`;
|
|
11
12
|
type OpenAIModelConfig<Name extends OpenAIModelName> = Name extends OpenAIReasoningModelName ? Omit<ChatOpenAIFields, 'model' | 'temperature'> & {
|
|
12
13
|
provider?: 'openai';
|
|
13
14
|
temperature?: never;
|
|
@@ -31,8 +32,26 @@ type OllamaModelConfig = OllamaTopLevelConfig & {
|
|
|
31
32
|
provider: 'ollama';
|
|
32
33
|
options?: OllamaOptionConfig;
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
type OpenAICompatibleModelBaseConfig = Omit<ChatOpenAIFields, 'model' | 'configuration'> & BaseChatModelParams & {
|
|
36
|
+
apiKey?: string;
|
|
37
|
+
temperature?: number;
|
|
38
|
+
topP?: number;
|
|
39
|
+
maxTokens?: number;
|
|
40
|
+
maxRetries?: number;
|
|
41
|
+
timeout?: number;
|
|
42
|
+
baseURL?: string;
|
|
43
|
+
baseUrl?: string;
|
|
44
|
+
configuration?: ChatOpenAIFields['configuration'];
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
};
|
|
47
|
+
type NvidiaModelConfig = OpenAICompatibleModelBaseConfig & {
|
|
48
|
+
provider?: 'nvidia';
|
|
49
|
+
};
|
|
50
|
+
type ExplicitNvidiaModelConfig = OpenAICompatibleModelBaseConfig & {
|
|
51
|
+
provider: 'nvidia';
|
|
52
|
+
};
|
|
53
|
+
export type ModelConfig<Name extends string> = Name extends OpenAIModelName ? OpenAIModelConfig<Name> : Name extends GeminiModelName ? GeminiModelConfig : Name extends ClaudeModelName ? AnthropicModelConfig : Name extends NvidiaModelName ? NvidiaModelConfig : AzureOpenAIModelConfig | OllamaModelConfig | ExplicitNvidiaModelConfig;
|
|
54
|
+
export type ModelProvider = 'openai' | 'azure-openai' | 'google' | 'anthropic' | 'ollama' | 'nvidia';
|
|
36
55
|
export type SupportedChatModel = ChatGoogleGenerativeAI | ChatOpenAI | AzureChatOpenAI | ChatAnthropic | ChatOllama;
|
|
37
56
|
type Primitive = string | number | boolean | null | undefined;
|
|
38
57
|
export type DeepPartial<T> = T extends Primitive ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : {
|
|
@@ -51,6 +70,7 @@ export declare class Model<Name extends string = string> {
|
|
|
51
70
|
useTools(llm: SupportedChatModel, tools?: DynamicStructuredTool[]): SupportedChatModel;
|
|
52
71
|
private buildParams;
|
|
53
72
|
private buildOllamaParams;
|
|
73
|
+
private buildOpenAICompatibleParams;
|
|
54
74
|
private getModelClass;
|
|
55
75
|
private static detectProvider;
|
|
56
76
|
private static isOpenAIModel;
|
package/models/model-registry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15_0x1becd5=a15_0x5c9b;(function(_0xda4d95,_0x1f8960){const _0x1222c6=a15_0x5c9b,_0x2e6268=_0xda4d95();while(!![]){try{const _0x620f60=-parseInt(_0x1222c6(0xa9))/0x1+-parseInt(_0x1222c6(0xd6))/0x2*(-parseInt(_0x1222c6(0xb8))/0x3)+parseInt(_0x1222c6(0xd0))/0x4*(parseInt(_0x1222c6(0xd4))/0x5)+parseInt(_0x1222c6(0xd7))/0x6*(-parseInt(_0x1222c6(0xa2))/0x7)+-parseInt(_0x1222c6(0x8c))/0x8*(parseInt(_0x1222c6(0xa4))/0x9)+parseInt(_0x1222c6(0xaa))/0xa*(-parseInt(_0x1222c6(0x9c))/0xb)+-parseInt(_0x1222c6(0xb0))/0xc*(-parseInt(_0x1222c6(0x88))/0xd);if(_0x620f60===_0x1f8960)break;else _0x2e6268['push'](_0x2e6268['shift']());}catch(_0x3a5988){_0x2e6268['push'](_0x2e6268['shift']());}}}(a15_0x37e9,0x2a48d));const a15_0x58e12e=(function(){const _0x22a289=a15_0x5c9b,_0x1d7cc8={'XAfYa':function(_0x4b25f5,_0x334a9d){return _0x4b25f5===_0x334a9d;},'okdcz':_0x22a289(0xc3),'paUDR':_0x22a289(0x81),'IiMfE':function(_0x56833e,_0x384305){return _0x56833e===_0x384305;},'rSRVr':_0x22a289(0x7b),'bRolF':function(_0x291bf2,_0x89af96){return _0x291bf2!==_0x89af96;},'hsLYU':_0x22a289(0xbd),'KYlIU':'zUYbZ'};let _0x123c7b=!![];return function(_0x2eb56b,_0x556486){const _0x22f24a=_0x22a289;if(_0x1d7cc8['bRolF'](_0x1d7cc8[_0x22f24a(0x89)],_0x1d7cc8[_0x22f24a(0xa1)])){const _0x2f336d=_0x123c7b?function(){const _0x3e24bc=_0x22f24a;if(_0x1d7cc8['XAfYa'](_0x1d7cc8[_0x3e24bc(0xce)],_0x1d7cc8[_0x3e24bc(0x95)]))this[_0x3e24bc(0x79)]=new _0x423e48();else{if(_0x556486){const _0xefe1f9=_0x556486[_0x3e24bc(0xcb)](_0x2eb56b,arguments);return _0x556486=null,_0xefe1f9;}}}:function(){};return _0x123c7b=![],_0x2f336d;}else{if(!_0x26847c||_0x3d8d78[_0x22f24a(0x78)]===0x0)return _0x30e8ea;if(_0x1d7cc8[_0x22f24a(0xb3)](this[_0x22f24a(0xc8)],_0x1d7cc8[_0x22f24a(0xc9)]))return _0x4cd3c7[_0x22f24a(0x93)]({'tools':_0x62ea11});return _0x1dbb41['bindTools'](_0x3101e2);}};}()),a15_0x525391=a15_0x58e12e(this,function(){const _0x4bd629=a15_0x5c9b,_0x258ad5={'LPGIU':'(((.+)+)+)+$'};return a15_0x525391[_0x4bd629(0xad)]()[_0x4bd629(0xbb)](_0x258ad5['LPGIU'])[_0x4bd629(0xad)]()[_0x4bd629(0xd3)](a15_0x525391)['search'](_0x258ad5[_0x4bd629(0xd5)]);});a15_0x525391();'use strict';Object['defineProperty'](exports,a15_0x1becd5(0x8d),{'value':!![]}),exports['ModelRegistry']=exports['Model']=void 0x0;function a15_0x5c9b(_0x263003,_0x39673d){const _0x5745fa=a15_0x37e9();return a15_0x5c9b=function(_0x525391,_0x58e12e){_0x525391=_0x525391-0x77;let _0x37e930=_0x5745fa[_0x525391];return _0x37e930;},a15_0x5c9b(_0x263003,_0x39673d);}const lodash_1=require(a15_0x1becd5(0x9d)),anthropic_1=require(a15_0x1becd5(0x7d)),google_genai_1=require(a15_0x1becd5(0xc0)),ollama_1=require(a15_0x1becd5(0xbf)),openai_1=require(a15_0x1becd5(0x7e));class Model{constructor(_0x30d3c8,_0x23160d,_0x4b3ae5){const _0x17f539=a15_0x1becd5,_0x281d0d={'WcrTy':function(_0x7b7ff2,_0x329cb8){return _0x7b7ff2??_0x329cb8;}};this[_0x17f539(0xa0)]=_0x30d3c8,this['config']=_0x23160d,this['targetName']=_0x281d0d[_0x17f539(0x9e)](_0x4b3ae5,_0x30d3c8),this[_0x17f539(0xc8)]=Model[_0x17f539(0xbc)](_0x30d3c8,_0x23160d);}[a15_0x1becd5(0x91)](){const _0x5e9434=a15_0x1becd5;return!Model[_0x5e9434(0xc2)](this['name']);}[a15_0x1becd5(0x9a)](_0x3d157a){const _0x510919=a15_0x1becd5,_0x317060=this[_0x510919(0xcc)](_0x3d157a),_0x2548d3=this['getModelClass']();return new _0x2548d3(_0x317060);}[a15_0x1becd5(0x86)](_0x4e4a9){const _0x18e484=a15_0x1becd5,_0x47262b={'rGmAj':function(_0x33a78e,_0x4aadcc){return _0x33a78e===_0x4aadcc;},'GPhqP':_0x18e484(0x7b),'PlSUP':function(_0x46bf57,_0x209af1){return _0x46bf57!==_0x209af1;},'bwGjN':'mjTvo','WUwWX':_0x18e484(0xc5)};if(_0x47262b[_0x18e484(0x92)](this[_0x18e484(0xc8)],_0x47262b['GPhqP']))return _0x47262b[_0x18e484(0xc1)](_0x47262b['bwGjN'],_0x47262b[_0x18e484(0xaf)])?{'options':{'temperature':_0x4e4a9}}:{'options':{'temperature':_0x52874b}};return{'temperature':_0x4e4a9};}[a15_0x1becd5(0xd1)](_0x47c0bc,_0x12395b){const _0x2e67f3=a15_0x1becd5,_0xf0647b={'glLan':function(_0x4b2bc2,_0x34a37e){return _0x4b2bc2===_0x34a37e;},'wjMqO':_0x2e67f3(0xc6)};if(!_0x12395b||_0x12395b['length']===0x0)return _0x47c0bc;if(this['provider']===_0x2e67f3(0x7b)){if(_0xf0647b['glLan'](_0xf0647b['wjMqO'],_0x2e67f3(0xc6)))return _0x47c0bc['bind']({'tools':_0x12395b});else throw new _0x5a1252('Model\x20\x27'+_0x567caf+_0x2e67f3(0xa8));}return _0x47c0bc['bindTools'](_0x12395b);}[a15_0x1becd5(0xcc)](_0x2c7ef3){const _0x193205=a15_0x1becd5,_0x450cf1={'xDvNn':function(_0x3b0aed,_0x2b0fe9){return _0x3b0aed===_0x2b0fe9;},'DKNLR':'ollama'},_0x3a7faf=_0x450cf1[_0x193205(0xd2)](this[_0x193205(0xc8)],_0x450cf1['DKNLR'])?this[_0x193205(0x7c)]():{...this[_0x193205(0x94)],'model':this['targetName']},_0x3761aa=(0x0,lodash_1[_0x193205(0xcf)])({},_0x3a7faf,_0x2c7ef3??{});return delete _0x3761aa[_0x193205(0xc8)],!this[_0x193205(0x91)]()&&delete _0x3761aa[_0x193205(0x99)],_0x3761aa;}[a15_0x1becd5(0x7c)](){const _0x128e9e=a15_0x1becd5,_0x9a6e46=this[_0x128e9e(0x94)],{options:_0x42ef0a,..._0x4b75d4}=_0x9a6e46;return{..._0x4b75d4,..._0x42ef0a,'model':this[_0x128e9e(0xb2)]};}[a15_0x1becd5(0x8f)](){const _0x153ced=a15_0x1becd5,_0x53cf60={'OvfQI':_0x153ced(0xb7),'tdtXf':_0x153ced(0xc7),'YSJfB':'anthropic','AGkPL':_0x153ced(0x7b)};switch(this[_0x153ced(0xc8)]){case _0x153ced(0x90):return openai_1['ChatOpenAI'];case _0x53cf60[_0x153ced(0xb1)]:return openai_1[_0x153ced(0x9b)];case _0x53cf60[_0x153ced(0xa6)]:return google_genai_1[_0x153ced(0x87)];case _0x53cf60[_0x153ced(0x96)]:return anthropic_1[_0x153ced(0x83)];case _0x53cf60['AGkPL']:return ollama_1[_0x153ced(0xc4)];}}static['detectProvider'](_0x17020e,_0xf33656){const _0x3b406e=a15_0x1becd5,_0x11a5fb={'WdVZH':function(_0x5a9363,_0x47f388){return _0x5a9363 in _0x47f388;},'lcuHS':_0x3b406e(0xc8),'pCwBC':function(_0x385ebf,_0x343def){return _0x385ebf===_0x343def;},'uehTF':'dHtdh','UVQlu':_0x3b406e(0x8e),'UsWtf':_0x3b406e(0xc7),'TOpdn':_0x3b406e(0x9f)};if(_0x11a5fb[_0x3b406e(0x84)](_0x11a5fb['lcuHS'],_0xf33656)&&_0xf33656[_0x3b406e(0xc8)])return _0xf33656[_0x3b406e(0xc8)];if(Model['isOpenAIModel'](_0x17020e))return _0x3b406e(0x90);if(_0x17020e[_0x3b406e(0xba)]('gemini-'))return _0x11a5fb[_0x3b406e(0x7a)](_0x11a5fb[_0x3b406e(0xac)],_0x11a5fb[_0x3b406e(0xb9)])?/^gpt-|^o\d/[_0x3b406e(0xab)](_0x547f0e):_0x11a5fb[_0x3b406e(0xb6)];if(_0x17020e[_0x3b406e(0xba)](_0x11a5fb[_0x3b406e(0x80)]))return _0x3b406e(0x8b);throw new Error(_0x3b406e(0xb4)+_0x17020e+_0x3b406e(0xbe));}static[a15_0x1becd5(0x7f)](_0x290875){const _0x562271=a15_0x1becd5;return/^gpt-|^o\d/[_0x562271(0xab)](_0x290875);}static['isOpenAIReasoningModel'](_0x4f1a1b){const _0x2310b0=a15_0x1becd5;return/^gpt-5(?:$|[-:])|^o\d/[_0x2310b0(0xab)](_0x4f1a1b);}}exports[a15_0x1becd5(0xb5)]=Model;class ModelRegistry{constructor(){this['models']=new Map();}[a15_0x1becd5(0x85)](_0x476bf7,_0x3b9d70=![]){const _0x5df625=a15_0x1becd5,_0x5ce166={'ouASD':'(((.+)+)+)+$','FRFeV':function(_0x1c9de3,_0x547c87){return _0x1c9de3!==_0x547c87;},'oeatq':'oQuSr'};if(this[_0x5df625(0x79)][_0x5df625(0x77)](_0x476bf7[_0x5df625(0xa0)])&&!_0x3b9d70)return _0x5ce166[_0x5df625(0xcd)](_0x5ce166['oeatq'],_0x5df625(0xae))?this[_0x5df625(0x79)][_0x5df625(0xca)](_0x476bf7['name']):_0x4edf27[_0x5df625(0xad)]()['search'](qRvyaJ['ouASD'])[_0x5df625(0xad)]()[_0x5df625(0xd3)](_0x4c5329)[_0x5df625(0xbb)](qRvyaJ['ouASD']);return this[_0x5df625(0x79)][_0x5df625(0xa7)](_0x476bf7['name'],_0x476bf7),_0x476bf7;}[a15_0x1becd5(0x8a)](_0x251030,_0x169cc8=![]){const _0x229391=a15_0x1becd5;for(const _0xcfa8cc of _0x251030){this[_0x229391(0x85)](_0xcfa8cc,_0x169cc8);}}[a15_0x1becd5(0xca)](_0x43466a){const _0x4720ea=a15_0x1becd5,_0x526685={'HYZlT':_0x4720ea(0xa5)};if(!_0x43466a){const _0x20cc5e=this[_0x4720ea(0x79)][_0x4720ea(0x82)]()['next']()['value'];if(!_0x20cc5e)throw new Error(_0x4720ea(0xd8));return _0x20cc5e;}const _0x346053=this[_0x4720ea(0x79)][_0x4720ea(0xca)](_0x43466a);if(!_0x346053){if(_0x526685[_0x4720ea(0x97)]!==_0x526685[_0x4720ea(0x97)])return this[_0x4720ea(0xca)](_0x13b8f4)['name'];else throw new Error(_0x4720ea(0x98)+_0x43466a+'\x27\x20not\x20registered.');}return _0x346053;}[a15_0x1becd5(0xa3)](_0x323412){const _0x26aa13=a15_0x1becd5;return this[_0x26aa13(0xca)](_0x323412)['name'];}}function a15_0x37e9(){const _0x4fa919=['ChatOllama','DrkPw','bdNxd','google','provider','rSRVr','get','apply','buildParams','FRFeV','okdcz','merge','822580vESPhB','useTools','xDvNn','constructor','5vQcmrH','LPGIU','2hilZbU','6bjokrd','No\x20model\x20registered','has','length','models','pCwBC','ollama','buildOllamaParams','@langchain/anthropic','@langchain/openai','isOpenAIModel','TOpdn','LLtFA','values','ChatAnthropic','WdVZH','register','temperatureOverride','ChatGoogleGenerativeAI','525577goBlFP','hsLYU','registerMany','anthropic','8104JvctDY','__esModule','prhyh','getModelClass','openai','supportsTemperatureOverride','rGmAj','bind','config','paUDR','YSJfB','HYZlT','Model\x20\x27','temperature','createInstance','AzureChatOpenAI','297099QEZxog','lodash','WcrTy','claude-','name','KYlIU','587321cZmthr','getName','2853XgeVCm','MkMZf','tdtXf','set','\x27\x20not\x20registered.','62582fQHHhO','90AmikpH','test','uehTF','toString','MnDCf','WUwWX','192MoKOjk','OvfQI','targetName','IiMfE','Cannot\x20infer\x20provider\x20for\x20model\x20\x27','Model','UsWtf','azure-openai','94125sShtwv','UVQlu','startsWith','search','detectProvider','yngiN','\x27.\x20Set\x20config.provider\x20explicitly.','@langchain/ollama','@langchain/google-genai','PlSUP','isOpenAIReasoningModel','EyJJb'];a15_0x37e9=function(){return _0x4fa919;};return a15_0x37e9();}exports['ModelRegistry']=ModelRegistry;
|
|
1
|
+
const a15_0x4f4ccb=a15_0x3389;(function(_0x3d542b,_0x2b924f){const _0x2d18d6=a15_0x3389,_0x4a788c=_0x3d542b();while(!![]){try{const _0x5f0b47=-parseInt(_0x2d18d6(0x1e4))/0x1*(parseInt(_0x2d18d6(0x1bd))/0x2)+-parseInt(_0x2d18d6(0x1f1))/0x3*(parseInt(_0x2d18d6(0x1f2))/0x4)+parseInt(_0x2d18d6(0x1c4))/0x5*(-parseInt(_0x2d18d6(0x1ba))/0x6)+-parseInt(_0x2d18d6(0x1c5))/0x7*(parseInt(_0x2d18d6(0x203))/0x8)+parseInt(_0x2d18d6(0x207))/0x9*(parseInt(_0x2d18d6(0x1d7))/0xa)+-parseInt(_0x2d18d6(0x1e9))/0xb+parseInt(_0x2d18d6(0x1e6))/0xc;if(_0x5f0b47===_0x2b924f)break;else _0x4a788c['push'](_0x4a788c['shift']());}catch(_0x1c78f8){_0x4a788c['push'](_0x4a788c['shift']());}}}(a15_0x26a4,0x2dab7));const a15_0x152cb8=(function(){let _0x3ca51d=!![];return function(_0x12e1a2,_0x3aec67){const _0x1d8e86=_0x3ca51d?function(){const _0x4f0e67=a15_0x3389;if(_0x3aec67){const _0x493a45=_0x3aec67[_0x4f0e67(0x1c6)](_0x12e1a2,arguments);return _0x3aec67=null,_0x493a45;}}:function(){};return _0x3ca51d=![],_0x1d8e86;};}()),a15_0x4fa754=a15_0x152cb8(this,function(){const _0x1dd91e=a15_0x3389,_0x39fc27={'RkTeG':'(((.+)+)+)+$'};return a15_0x4fa754[_0x1dd91e(0x200)]()[_0x1dd91e(0x226)](_0x39fc27[_0x1dd91e(0x214)])[_0x1dd91e(0x200)]()[_0x1dd91e(0x21c)](a15_0x4fa754)[_0x1dd91e(0x226)](_0x39fc27[_0x1dd91e(0x214)]);});function a15_0x26a4(){const _0x1afd88=['buildOllamaParams','buildParams','ChatOllama','anthropic','GXUZd','AjBgE','register','OArnI','set','TnPEg','temperature','3107120evSkUR','vxymh','isOpenAIReasoningModel','models','cimts','name','gpsok','@langchain/google-genai','Model','qonAu','zxiMN','IHqEQ','YiNEx','1ALaTwx','XwXCx','4755012CETkhy','nsnSr','bindTools','2395118LJkFmf','value','XTpRK','aabGP','@langchain/anthropic','next','merge','has','642oMbaLm','1304CBHufr','ollama','nvidia','vYfut','Cannot\x20infer\x20provider\x20for\x20model\x20\x27','get','ChatGoogleGenerativeAI','temperatureOverride','gZTGS','nvidia/','useTools','targetName','test','BFpqe','toString','buildOpenAICompatibleParams','Model\x20\x27','1099144nUCzLj','supportsTemperatureOverride','ModelRegistry','NmjmX','9ZrMkwb','FXohA','getModelClass','dmIva','length','GRnuI','config','openai','avoJr','\x27\x20not\x20registered.','provider','JIHzC','pArvh','RkTeG','ZEelv','GlbUS','startsWith','qxyHX','sIDjj','JkCZM','\x27.\x20Set\x20config.provider\x20explicitly.','constructor','FPmTy','MCkTe','google','ChatOpenAI','No\x20model\x20registered','SjpmF','https://integrate.api.nvidia.com/v1','qZWfF','SEDfL','search','HAKhe','KMWdG','AzureChatOpenAI','8814xktale','Uqtfo','JrENu','63676HxUIMh','azure-openai','isOpenAIModel','ChatAnthropic','detectProvider','bind','values','215mdtgyZ','7KDFeRY','apply','WZFfa','OfUcB','registerMany','createInstance','vshfV'];a15_0x26a4=function(){return _0x1afd88;};return a15_0x26a4();}a15_0x4fa754();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a15_0x4f4ccb(0x205)]=exports[a15_0x4f4ccb(0x1df)]=void 0x0;function a15_0x3389(_0x4d33ea,_0x73ca8f){const _0x1bc422=a15_0x26a4();return a15_0x3389=function(_0x4fa754,_0x152cb8){_0x4fa754=_0x4fa754-0x1ba;let _0x26a404=_0x1bc422[_0x4fa754];return _0x26a404;},a15_0x3389(_0x4d33ea,_0x73ca8f);}const lodash_1=require('lodash'),anthropic_1=require(a15_0x4f4ccb(0x1ed)),google_genai_1=require(a15_0x4f4ccb(0x1de)),ollama_1=require('@langchain/ollama'),openai_1=require('@langchain/openai'),NVIDIA_OPENAI_BASE_URL=a15_0x4f4ccb(0x223);class Model{constructor(_0x40393a,_0x16e1ac,_0x4c949d){const _0x49c109=a15_0x4f4ccb,_0x595fc7={'NmjmX':function(_0xfc5262,_0x515243){return _0xfc5262??_0x515243;}};this[_0x49c109(0x1dc)]=_0x40393a,this['config']=_0x16e1ac,this[_0x49c109(0x1fd)]=_0x595fc7[_0x49c109(0x206)](_0x4c949d,_0x40393a),this['provider']=Model[_0x49c109(0x1c1)](_0x40393a,_0x16e1ac);}[a15_0x4f4ccb(0x204)](){const _0x296b0f=a15_0x4f4ccb;return!Model[_0x296b0f(0x1d9)](this[_0x296b0f(0x1dc)]);}[a15_0x4f4ccb(0x1ca)](_0x15f24b){const _0x58d567=a15_0x4f4ccb,_0x11eea0=this['buildParams'](_0x15f24b),_0x47dbc0=this[_0x58d567(0x209)]();return new _0x47dbc0(_0x11eea0);}[a15_0x4f4ccb(0x1f9)](_0x435a49){const _0x71406c=a15_0x4f4ccb,_0x6fb908={'qZWfF':function(_0xb3189f,_0x3125e6){return _0xb3189f===_0x3125e6;},'YiNEx':_0x71406c(0x1f3),'ZEelv':function(_0x47c390,_0xed7765){return _0x47c390===_0xed7765;},'JkCZM':'yEXAr'};if(_0x6fb908[_0x71406c(0x224)](this[_0x71406c(0x211)],_0x6fb908[_0x71406c(0x1e3)])){if(_0x6fb908[_0x71406c(0x215)](_0x6fb908[_0x71406c(0x21a)],_0x6fb908['JkCZM']))return{'options':{'temperature':_0x435a49}};else{const _0x51cb0e=this['config'],{options:_0x187e7a,..._0x513177}=_0x51cb0e;return{..._0x513177,..._0x187e7a,'model':this['targetName']};}}return{'temperature':_0x435a49};}[a15_0x4f4ccb(0x1fc)](_0x2d7e6d,_0x2359e4){const _0x3fe1cf=a15_0x4f4ccb,_0x12a444={'zxiMN':function(_0x228ba3,_0x52a77c){return _0x228ba3===_0x52a77c;},'avoJr':_0x3fe1cf(0x1f3)};if(!_0x2359e4||_0x12a444[_0x3fe1cf(0x1e1)](_0x2359e4[_0x3fe1cf(0x20b)],0x0))return _0x2d7e6d;if(_0x12a444[_0x3fe1cf(0x1e1)](this[_0x3fe1cf(0x211)],_0x12a444[_0x3fe1cf(0x20f)]))return _0x2d7e6d[_0x3fe1cf(0x1c2)]({'tools':_0x2359e4});return _0x2d7e6d['bindTools'](_0x2359e4);}[a15_0x4f4ccb(0x1cd)](_0x3de202){const _0x53422f=a15_0x4f4ccb,_0x2c2318={'XwXCx':'nvidia','KMWdG':function(_0x51e279,_0x2537c2){return _0x51e279===_0x2537c2;},'TnPEg':'ollama','OfUcB':function(_0x3ed35a,_0x268dc3){return _0x3ed35a??_0x268dc3;}},_0x5b2e09=this[_0x53422f(0x211)]===_0x2c2318[_0x53422f(0x1e5)]?this[_0x53422f(0x201)](NVIDIA_OPENAI_BASE_URL,_0x3de202):(0x0,lodash_1[_0x53422f(0x1ef)])({},_0x2c2318[_0x53422f(0x228)](this[_0x53422f(0x211)],_0x2c2318[_0x53422f(0x1d5)])?this[_0x53422f(0x1cc)]():{...this[_0x53422f(0x20d)],'model':this[_0x53422f(0x1fd)]},_0x2c2318[_0x53422f(0x1c8)](_0x3de202,{}));return delete _0x5b2e09[_0x53422f(0x211)],!this[_0x53422f(0x204)]()&&delete _0x5b2e09[_0x53422f(0x1d6)],_0x5b2e09;}[a15_0x4f4ccb(0x1cc)](){const _0x304898=a15_0x4f4ccb,_0x262984=this['config'],{options:_0x3c5506,..._0x272814}=_0x262984;return{..._0x272814,..._0x3c5506,'model':this[_0x304898(0x1fd)]};}[a15_0x4f4ccb(0x201)](_0x5551f7,_0xb9ca0a){const _0x39b766=a15_0x4f4ccb,_0x151514={'JIHzC':function(_0x536cfe,_0xaeb0db){return _0x536cfe??_0xaeb0db;}},_0x41961c=(0x0,lodash_1['merge'])({},this[_0x39b766(0x20d)],_0x151514[_0x39b766(0x212)](_0xb9ca0a,{})),{baseURL:_0x34e0da,baseUrl:_0xa2db38,configuration:_0x458e33,..._0x1596fb}=_0x41961c,_0x473e94=_0x151514[_0x39b766(0x212)](_0x34e0da,_0xa2db38)??_0x458e33?.['baseURL']??_0x5551f7;return{..._0x1596fb,'model':this['targetName'],'configuration':{..._0x458e33,'baseURL':_0x473e94}};}[a15_0x4f4ccb(0x209)](){const _0x2bb5cc=a15_0x4f4ccb,_0x449d58={'lRIpf':_0x2bb5cc(0x20e),'SEDfL':_0x2bb5cc(0x1be),'nsnSr':_0x2bb5cc(0x1cf),'SjpmF':_0x2bb5cc(0x1f4)};switch(this['provider']){case _0x449d58['lRIpf']:return openai_1[_0x2bb5cc(0x220)];case _0x449d58[_0x2bb5cc(0x225)]:return openai_1[_0x2bb5cc(0x229)];case'google':return google_genai_1[_0x2bb5cc(0x1f8)];case _0x449d58[_0x2bb5cc(0x1e7)]:return anthropic_1[_0x2bb5cc(0x1c0)];case _0x2bb5cc(0x1f3):return ollama_1[_0x2bb5cc(0x1ce)];case _0x449d58[_0x2bb5cc(0x222)]:return openai_1[_0x2bb5cc(0x220)];}}static['detectProvider'](_0x44106d,_0x250464){const _0x456bac=a15_0x4f4ccb,_0x1993d9={'JrENu':function(_0x56d389,_0x5e2ceb){return _0x56d389 in _0x5e2ceb;},'FPmTy':_0x456bac(0x211),'AjBgE':function(_0x2dc2cd,_0x1ee1dd){return _0x2dc2cd!==_0x1ee1dd;},'BFpqe':_0x456bac(0x216),'gZTGS':'gemini-','XTRig':_0x456bac(0x21f),'FXohA':'claude-','XTpRK':'nvidia'};if(_0x1993d9[_0x456bac(0x1bc)](_0x1993d9[_0x456bac(0x21d)],_0x250464)&&_0x250464[_0x456bac(0x211)]){if(_0x1993d9[_0x456bac(0x1d1)](_0x1993d9[_0x456bac(0x1ff)],_0x1993d9[_0x456bac(0x1ff)]))throw new _0x17c2e8(_0x456bac(0x202)+_0x3315b5+_0x456bac(0x210));else return _0x250464['provider'];}if(Model[_0x456bac(0x1bf)](_0x44106d))return _0x456bac(0x20e);if(_0x44106d[_0x456bac(0x217)](_0x1993d9[_0x456bac(0x1fa)]))return _0x1993d9['XTRig'];if(_0x44106d[_0x456bac(0x217)](_0x1993d9[_0x456bac(0x208)]))return _0x456bac(0x1cf);if(_0x44106d['startsWith'](_0x456bac(0x1fb)))return _0x1993d9[_0x456bac(0x1eb)];throw new Error(_0x456bac(0x1f6)+_0x44106d+_0x456bac(0x21b));}static['isOpenAIModel'](_0x15b205){const _0x8fdff4=a15_0x4f4ccb;return/^gpt-|^o\d/[_0x8fdff4(0x1fe)](_0x15b205);}static[a15_0x4f4ccb(0x1d9)](_0x10595f){return/^gpt-5(?:$|[-:])|^o\d/['test'](_0x10595f);}}exports[a15_0x4f4ccb(0x1df)]=Model;class ModelRegistry{constructor(){const _0x196846=a15_0x4f4ccb;this[_0x196846(0x1da)]=new Map();}[a15_0x4f4ccb(0x1d2)](_0x2d5137,_0x3fa2b2=![]){const _0x3c70ad=a15_0x4f4ccb,_0x20b2b1={'hAEdz':_0x3c70ad(0x221),'qonAu':function(_0x31edee,_0x4a473a){return _0x31edee!==_0x4a473a;}};if(this[_0x3c70ad(0x1da)][_0x3c70ad(0x1f0)](_0x2d5137['name'])&&!_0x3fa2b2){if(_0x20b2b1[_0x3c70ad(0x1e0)](_0x3c70ad(0x20a),_0x3c70ad(0x213)))return this['models'][_0x3c70ad(0x1f7)](_0x2d5137[_0x3c70ad(0x1dc)]);else{if(!_0x35116e){const _0x4548fc=this[_0x3c70ad(0x1da)][_0x3c70ad(0x1c3)]()['next']()[_0x3c70ad(0x1ea)];if(!_0x4548fc)throw new _0x3bb53f(_0x20b2b1['hAEdz']);return _0x4548fc;}const _0x3d5521=this[_0x3c70ad(0x1da)][_0x3c70ad(0x1f7)](_0x207ee9);if(!_0x3d5521)throw new _0x334ac3(_0x3c70ad(0x202)+_0x13a94f+_0x3c70ad(0x210));return _0x3d5521;}}return this[_0x3c70ad(0x1da)][_0x3c70ad(0x1d4)](_0x2d5137[_0x3c70ad(0x1dc)],_0x2d5137),_0x2d5137;}[a15_0x4f4ccb(0x1c9)](_0x5712cc,_0x2eb67c=![]){const _0x43c96a=a15_0x4f4ccb,_0x17d4c6={'KNoDl':function(_0x2a397a,_0xb3cbaf){return _0x2a397a===_0xb3cbaf;},'MCkTe':_0x43c96a(0x1f3),'ZimJP':function(_0x51fa2e,_0x5b553b){return _0x51fa2e!==_0x5b553b;},'vxymh':_0x43c96a(0x1d3)};for(const _0x1ae6e5 of _0x5712cc){if(_0x17d4c6['ZimJP'](_0x17d4c6[_0x43c96a(0x1d8)],_0x43c96a(0x1c7)))this[_0x43c96a(0x1d2)](_0x1ae6e5,_0x2eb67c);else{if(_0x17d4c6['KNoDl'](this[_0x43c96a(0x211)],_0x17d4c6[_0x43c96a(0x21e)]))return{'options':{'temperature':_0x10eb42}};return{'temperature':_0x35a1da};}}}[a15_0x4f4ccb(0x1f7)](_0x5666d7){const _0xf32846=a15_0x4f4ccb,_0x3aca6b={'vYfut':function(_0x288eb1,_0x383e18){return _0x288eb1===_0x383e18;},'cimts':_0xf32846(0x1f3),'IHqEQ':_0xf32846(0x1cb),'qxyHX':_0xf32846(0x219),'Uqtfo':'HAKhe','GXUZd':'No\x20model\x20registered','gpsok':_0xf32846(0x1ec),'GRnuI':'MbEoL'};if(!_0x5666d7){if(_0x3aca6b['vYfut'](_0x3aca6b[_0xf32846(0x1e2)],_0x3aca6b[_0xf32846(0x218)])){if(this['models'][_0xf32846(0x1f0)](_0x25c544[_0xf32846(0x1dc)])&&!_0x4f4e4c)return this['models'][_0xf32846(0x1f7)](_0x448f39[_0xf32846(0x1dc)]);return this[_0xf32846(0x1da)][_0xf32846(0x1d4)](_0xe9c09f[_0xf32846(0x1dc)],_0x5a43b7),_0x480358;}else{const _0x1b5737=this[_0xf32846(0x1da)][_0xf32846(0x1c3)]()[_0xf32846(0x1ee)]()[_0xf32846(0x1ea)];if(!_0x1b5737){if(_0x3aca6b[_0xf32846(0x1f5)](_0xf32846(0x227),_0x3aca6b[_0xf32846(0x1bb)]))throw new Error(_0x3aca6b[_0xf32846(0x1d0)]);else{if(!_0x458767||_0x3aca6b[_0xf32846(0x1f5)](_0x3d4d55[_0xf32846(0x20b)],0x0))return _0xce708d;if(this[_0xf32846(0x211)]===_0x3aca6b[_0xf32846(0x1db)])return _0x206a27[_0xf32846(0x1c2)]({'tools':_0x13a65b});return _0x34ec73[_0xf32846(0x1e8)](_0x46c584);}}return _0x1b5737;}}const _0x3f72c9=this[_0xf32846(0x1da)][_0xf32846(0x1f7)](_0x5666d7);if(!_0x3f72c9){if(_0x3aca6b[_0xf32846(0x1f5)](_0x3aca6b[_0xf32846(0x1dd)],_0x3aca6b[_0xf32846(0x20c)]))this[_0xf32846(0x1d2)](_0x1cd629,_0x37b813);else throw new Error(_0xf32846(0x202)+_0x5666d7+_0xf32846(0x210));}return _0x3f72c9;}['getName'](_0x121622){const _0x4f7758=a15_0x4f4ccb;return this[_0x4f7758(0x1f7)](_0x121622)['name'];}}exports[a15_0x4f4ccb(0x205)]=ModelRegistry;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@picoflow/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "PicoFlow - Agentic Flow Framework",
|
|
5
5
|
"author": "picoflow.io LLC",
|
|
6
6
|
"license": "Proprietarily Licensed",
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
"@nestjs/config": "^4.0.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"openai": "^6.
|
|
35
|
-
"@google/genai": "^
|
|
36
|
-
"@langchain/anthropic": "1.
|
|
37
|
-
"@langchain/core": "1.
|
|
38
|
-
"@langchain/google-genai": "
|
|
39
|
-
"@langchain/ollama": "1.
|
|
40
|
-
"@langchain/openai": "1.
|
|
34
|
+
"openai": "^6.45.0",
|
|
35
|
+
"@google/genai": "^2.10.0",
|
|
36
|
+
"@langchain/anthropic": "1.5.1",
|
|
37
|
+
"@langchain/core": "1.2.1",
|
|
38
|
+
"@langchain/google-genai": "2.2.0",
|
|
39
|
+
"@langchain/ollama": "1.3.0",
|
|
40
|
+
"@langchain/openai": "1.5.3",
|
|
41
41
|
"@azure/cosmos": "^4.2.0",
|
|
42
42
|
"@azure/identity": "^4.5.0",
|
|
43
43
|
"mongodb": "^6.14.1",
|
|
44
44
|
"axios": "^1.7.7",
|
|
45
45
|
"lodash": "^4.17.21",
|
|
46
|
-
"zod": "^3.
|
|
46
|
+
"zod": "^3.25.76",
|
|
47
47
|
"tweetnacl": "^1.0.3"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/prompt/flow-prompt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x450044=a16_0x547c;(function(_0x415243,_0x1a811c){const _0x57e25a=a16_0x547c,_0x27dcc2=_0x415243();while(!![]){try{const _0x5ea25e=parseInt(_0x57e25a(0x11f))/0x1*(parseInt(_0x57e25a(0x12c))/0x2)+parseInt(_0x57e25a(0x12f))/0x3*(parseInt(_0x57e25a(0x126))/0x4)+parseInt(_0x57e25a(0x12b))/0x5+-parseInt(_0x57e25a(0x120))/0x6+-parseInt(_0x57e25a(0x127))/0x7*(parseInt(_0x57e25a(0x124))/0x8)+parseInt(_0x57e25a(0x11c))/0x9*(parseInt(_0x57e25a(0x12d))/0xa)+-parseInt(_0x57e25a(0x12a))/0xb;if(_0x5ea25e===_0x1a811c)break;else _0x27dcc2['push'](_0x27dcc2['shift']());}catch(_0x6e758){_0x27dcc2['push'](_0x27dcc2['shift']());}}}(a16_0x4a0c,0xe1bdb));const a16_0x54c3a9=(function(){let _0x1afc9c=!![];return function(_0x330533,_0x4805fd){const _0x2fe7c5=_0x1afc9c?function(){if(_0x4805fd){const _0x1094ba=_0x4805fd['apply'](_0x330533,arguments);return _0x4805fd=null,_0x1094ba;}}:function(){};return _0x1afc9c=![],_0x2fe7c5;};}()),a16_0xeff94f=a16_0x54c3a9(this,function(){const _0x39835d=a16_0x547c,_0x1701e3={'NfWbH':_0x39835d(0x125)};return a16_0xeff94f['toString']()[_0x39835d(0x11d)](_0x1701e3[_0x39835d(0x121)])[_0x39835d(0x123)]()[_0x39835d(0x12e)](a16_0xeff94f)['search'](_0x1701e3[_0x39835d(0x121)]);});a16_0xeff94f();function a16_0x4a0c(){const _0x513e05=['1295547ZUtCSd','2863145oipSQI','2557794fvDUnw','30PxVrns','constructor','41559Opzpjo','1187721FmJgeC','search','endchat.md','1icQkrz','7794864XdkzBB','NfWbH','FlowPrompt','toString','14736wWYxnY','(((.+)+)+)+$','116klaIVT','1169IizrxV','defineProperty','EndChat'];a16_0x4a0c=function(){return _0x513e05;};return a16_0x4a0c();}'use strict';Object[a16_0x450044(0x128)](exports,'__esModule',{'value':!![]}),exports['FlowPrompt']=void 0x0;const prompt_util_1=require('./prompt-util');class FlowPrompt{}function a16_0x547c(_0x20a6ff,_0x5e5fc2){const _0x430ec6=a16_0x4a0c();return a16_0x547c=function(_0xeff94f,_0x54c3a9){_0xeff94f=_0xeff94f-0x11c;let _0x4a0c44=_0x430ec6[_0xeff94f];return _0x4a0c44;},a16_0x547c(_0x20a6ff,_0x5e5fc2);}exports[a16_0x450044(0x122)]=FlowPrompt,FlowPrompt[a16_0x450044(0x129)]=prompt_util_1['Prompt']['file'](a16_0x450044(0x11e));
|
package/prompt/prompt-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a17_0x286a3b=a17_0x2b95;(function(_0x372821,_0x321bb6){const _0x50233b=a17_0x2b95,_0x296949=_0x372821();while(!![]){try{const _0x115318=parseInt(_0x50233b(0x179))/0x1*(-parseInt(_0x50233b(0x164))/0x2)+parseInt(_0x50233b(0x17f))/0x3+parseInt(_0x50233b(0x172))/0x4+-parseInt(_0x50233b(0x163))/0x5*(parseInt(_0x50233b(0x177))/0x6)+-parseInt(_0x50233b(0x17c))/0x7*(parseInt(_0x50233b(0x17d))/0x8)+-parseInt(_0x50233b(0x159))/0x9+parseInt(_0x50233b(0x16b))/0xa;if(_0x115318===_0x321bb6)break;else _0x296949['push'](_0x296949['shift']());}catch(_0x51a755){_0x296949['push'](_0x296949['shift']());}}}(a17_0x5a34,0xc8941));const a17_0x1888fa=(function(){const _0x37054f=a17_0x2b95,_0x5d7baa={'XsljD':_0x37054f(0x161),'gqDjr':_0x37054f(0x162),'svxJY':function(_0x1ac51c,_0xd914c6){return _0x1ac51c===_0xd914c6;},'QMrbq':_0x37054f(0x168)};let _0x291bd8=!![];return function(_0x329af4,_0x4e066e){const _0x4e316e=_0x37054f,_0x6cb817={'Bpykx':function(_0x708842,_0x37ca23){return _0x708842!==_0x37ca23;},'VNuZv':_0x5d7baa[_0x4e316e(0x182)],'ogyNI':_0x4e316e(0x165),'mlWSN':_0x5d7baa[_0x4e316e(0x15f)]};if(_0x5d7baa[_0x4e316e(0x180)](_0x5d7baa['QMrbq'],_0x5d7baa[_0x4e316e(0x185)])){const _0x1d78f4=_0x291bd8?function(){const _0x570880=_0x4e316e;if(_0x6cb817['Bpykx'](_0x570880(0x161),_0x6cb817['VNuZv'])){if(_0x188e6d){const _0x5d3753=_0x1f075a[_0x570880(0x15a)](_0x1335c5,arguments);return _0x44ffba=null,_0x5d3753;}}else{if(_0x4e066e){if('BOLZI'===_0x6cb817[_0x570880(0x183)]){const _0xf58064=_0x4e066e[_0x570880(0x15a)](_0x329af4,arguments);return _0x4e066e=null,_0xf58064;}else return this[_0x570880(0x176)][_0x570880(0x181)](_0x364bb4);}}}:function(){};return _0x291bd8=![],_0x1d78f4;}else return _0x9ae654['toString']()[_0x4e316e(0x173)](_0x6cb817[_0x4e316e(0x166)])[_0x4e316e(0x169)]()[_0x4e316e(0x160)](_0x2020e6)[_0x4e316e(0x173)](_0x6cb817[_0x4e316e(0x166)]);};}()),a17_0x266b2f=a17_0x1888fa(this,function(){const _0x3472de=a17_0x2b95,_0x4be48a={'RUVIf':_0x3472de(0x162)};return a17_0x266b2f[_0x3472de(0x169)]()[_0x3472de(0x173)](_0x4be48a[_0x3472de(0x175)])[_0x3472de(0x169)]()[_0x3472de(0x160)](a17_0x266b2f)[_0x3472de(0x173)](_0x4be48a[_0x3472de(0x175)]);});a17_0x266b2f();function a17_0x5a34(){const _0x2732b2=['37595rIOAZt','defineProperty','__importDefault','7mNwTZD','12982616PZhoPi','stack','429576vzvyMF','svxJY','get','XsljD','ogyNI','SoCMu','QMrbq','getCallerDir','13561245NVQnXS','apply','resolve','__esModule','pcdQO','default','gqDjr','constructor','sSaeE','(((.+)+)+)+$','10WWOvUD','76XXOTfl','BOLZI','mlWSN','prepareStackTrace','iajSR','toString','utf-8','58075800uLjZGH','getFileName','dirname','has','DFmnK','Prompt','path','814852oLMbUe','search','file','RUVIf','cache','2324022OLwzmt','replace'];a17_0x5a34=function(){return _0x2732b2;};return a17_0x5a34();}'use strict';var __importDefault=this&&this[a17_0x286a3b(0x17b)]||function(_0x321d83){const _0x3bcc5a=a17_0x286a3b;return _0x321d83&&_0x321d83[_0x3bcc5a(0x15c)]?_0x321d83:{'default':_0x321d83};};Object[a17_0x286a3b(0x17a)](exports,a17_0x286a3b(0x15c),{'value':!![]}),exports[a17_0x286a3b(0x170)]=void 0x0;const fs_1=require('fs'),path_1=__importDefault(require(a17_0x286a3b(0x171)));function a17_0x2b95(_0x535e58,_0x185b6b){const _0x7db0fe=a17_0x5a34();return a17_0x2b95=function(_0x266b2f,_0x1888fa){_0x266b2f=_0x266b2f-0x159;let _0x5a344d=_0x7db0fe[_0x266b2f];return _0x5a344d;},a17_0x2b95(_0x535e58,_0x185b6b);}class Prompt{static[a17_0x286a3b(0x174)](_0x36e5db){const _0x2b6fc9=a17_0x286a3b,_0x5102d9=this[_0x2b6fc9(0x186)](),_0x2c6e0b=path_1[_0x2b6fc9(0x15e)][_0x2b6fc9(0x15b)](_0x5102d9,_0x36e5db);if(this[_0x2b6fc9(0x176)][_0x2b6fc9(0x16e)](_0x2c6e0b))return this[_0x2b6fc9(0x176)][_0x2b6fc9(0x181)](_0x2c6e0b);const _0x31c4fd=(0x0,fs_1['readFileSync'])(_0x2c6e0b,_0x2b6fc9(0x16a));return this['cache']['set'](_0x2c6e0b,_0x31c4fd),_0x31c4fd;}static[a17_0x286a3b(0x186)](){const _0x237f56=a17_0x286a3b,_0x5a097d={'QvuEf':'Unable\x20to\x20determine\x20caller\x20file\x20path'},_0x5ed975=Error[_0x237f56(0x167)];Error[_0x237f56(0x167)]=(_0x801154,_0x13e88f)=>_0x13e88f;const _0x36b3a3=new Error(),_0x12ae25=_0x36b3a3[_0x237f56(0x17e)];Error[_0x237f56(0x167)]=_0x5ed975;const _0x1dc8b6=_0x12ae25?.[0x2]?.[_0x237f56(0x16c)]();if(!_0x1dc8b6)throw new Error(_0x5a097d['QvuEf']);return path_1[_0x237f56(0x15e)][_0x237f56(0x16d)](_0x1dc8b6);}static['set'](_0x538ff8,_0x58eeef,_0x584d38){const _0x24d1c1=a17_0x286a3b;return _0x538ff8[_0x24d1c1(0x178)]('{{'+_0x58eeef+'}}',_0x584d38);}static[a17_0x286a3b(0x178)](_0x50da82,_0x1292b6){const _0x20ade1=a17_0x286a3b,_0x33af5f={'DFmnK':function(_0xbf928e,_0x304139){return _0xbf928e!==_0x304139;},'SoCMu':'pcdQO'};return _0x50da82[_0x20ade1(0x178)](/{{(.*?)}}/g,(_0x36bf9c,_0x2305ff)=>{const _0x5ebef4=_0x20ade1;return _0x33af5f[_0x5ebef4(0x16f)](_0x5ebef4(0x15d),_0x33af5f[_0x5ebef4(0x184)])?_0x382e0d[_0x363562]||_0x3049f1:_0x1292b6[_0x2305ff]||_0x36bf9c;});}}exports[a17_0x286a3b(0x170)]=Prompt,Prompt[a17_0x286a3b(0x176)]=new Map();
|
package/services/flow-engine.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a18_0x13982c=a18_0x4608;(function(_0x393e75,_0x184250){const _0x11d2e0=a18_0x4608,_0x177c40=_0x393e75();while(!![]){try{const _0x37ab12=parseInt(_0x11d2e0(0x201))/0x1+parseInt(_0x11d2e0(0x223))/0x2*(parseInt(_0x11d2e0(0x22a))/0x3)+parseInt(_0x11d2e0(0x227))/0x4*(-parseInt(_0x11d2e0(0x24e))/0x5)+-parseInt(_0x11d2e0(0x20a))/0x6*(parseInt(_0x11d2e0(0x23b))/0x7)+-parseInt(_0x11d2e0(0x213))/0x8+-parseInt(_0x11d2e0(0x222))/0x9+parseInt(_0x11d2e0(0x1f5))/0xa;if(_0x37ab12===_0x184250)break;else _0x177c40['push'](_0x177c40['shift']());}catch(_0x46b03a){_0x177c40['push'](_0x177c40['shift']());}}}(a18_0x4d34,0xcebc4));const a18_0x10ffe2=(function(){const _0x25ee13=a18_0x4608,_0x10fdd7={'tvBRn':function(_0x546d75,_0x584863){return _0x546d75!==_0x584863;},'Shjvl':'jkTrX','mjIQU':_0x25ee13(0x1df),'CUeIL':function(_0x185d4f,_0x591806){return _0x185d4f!==_0x591806;},'skajn':_0x25ee13(0x204)};let _0x19a07d=!![];return function(_0x1d3e90,_0x3132c2){const _0x45ccaf=_0x25ee13;if(_0x10fdd7[_0x45ccaf(0x202)](_0x10fdd7[_0x45ccaf(0x203)],_0x10fdd7['skajn']))return this[_0x45ccaf(0x24b)];else{const _0x2e3468=_0x19a07d?function(){const _0x1e317c=_0x45ccaf;if(_0x3132c2){if(_0x10fdd7[_0x1e317c(0x211)](_0x10fdd7[_0x1e317c(0x1e9)],_0x10fdd7[_0x1e317c(0x23a)])){const _0x47d31a=_0x3132c2[_0x1e317c(0x1de)](_0x1d3e90,arguments);return _0x3132c2=null,_0x47d31a;}else this[_0x1e317c(0x1f7)]={...this[_0x1e317c(0x1f7)],..._0x4032f1};}}:function(){};return _0x19a07d=![],_0x2e3468;}};}()),a18_0x31470a=a18_0x10ffe2(this,function(){const _0x3d9079=a18_0x4608,_0x24e843={'qBXgM':'(((.+)+)+)+$'};return a18_0x31470a[_0x3d9079(0x240)]()[_0x3d9079(0x214)](_0x24e843[_0x3d9079(0x209)])['toString']()[_0x3d9079(0x246)](a18_0x31470a)[_0x3d9079(0x214)]('(((.+)+)+)+$');});function a18_0x4608(_0x2018f2,_0x512c2e){const _0x354ae6=a18_0x4d34();return a18_0x4608=function(_0x31470a,_0x10ffe2){_0x31470a=_0x31470a-0x1dd;let _0x4d3465=_0x354ae6[_0x31470a];return _0x4d3465;},a18_0x4608(_0x2018f2,_0x512c2e);}a18_0x31470a();'use strict';var __decorate=this&&this[a18_0x13982c(0x234)]||function(_0x1ad40d,_0x1341a3,_0x2a1483,_0x449c50){const _0x364017=a18_0x13982c,_0x36d3b5={'ZZRJq':function(_0x1f56ba,_0x542f55){return _0x1f56ba<_0x542f55;},'WMRhc':function(_0x5bfa59,_0x1fac10){return _0x5bfa59===_0x1fac10;},'hGIYf':function(_0x13cfee,_0x5f570a){return _0x13cfee===_0x5f570a;},'shaLd':'object','orxRD':function(_0x20741e,_0x4fed33){return _0x20741e===_0x4fed33;},'qfugI':_0x364017(0x245),'bKMzC':function(_0x2e63f1,_0x3bb72f){return _0x2e63f1-_0x3bb72f;},'wZYmM':function(_0x50bfe5,_0x486d0f){return _0x50bfe5>=_0x486d0f;},'hMpfI':function(_0x5d2adf,_0x28de46){return _0x5d2adf(_0x28de46);},'lHlwJ':function(_0xe1a527,_0x32c96d){return _0xe1a527>_0x32c96d;},'HfZgm':function(_0x1b066c,_0x1e11dc,_0x520a19){return _0x1b066c(_0x1e11dc,_0x520a19);},'xqIzH':function(_0x5e4b60,_0x365e85){return _0x5e4b60>_0x365e85;}};var _0x14a4ae=arguments['length'],_0x19e7b1=_0x36d3b5[_0x364017(0x238)](_0x14a4ae,0x3)?_0x1341a3:_0x36d3b5[_0x364017(0x1f8)](_0x449c50,null)?_0x449c50=Object[_0x364017(0x1ec)](_0x1341a3,_0x2a1483):_0x449c50,_0x418fc0;if(_0x36d3b5[_0x364017(0x1f3)](typeof Reflect,_0x36d3b5['shaLd'])&&_0x36d3b5[_0x364017(0x22e)](typeof Reflect['decorate'],_0x36d3b5['qfugI']))_0x19e7b1=Reflect[_0x364017(0x257)](_0x1ad40d,_0x1341a3,_0x2a1483,_0x449c50);else{for(var _0xc42eca=_0x36d3b5[_0x364017(0x208)](_0x1ad40d[_0x364017(0x216)],0x1);_0x36d3b5[_0x364017(0x1fc)](_0xc42eca,0x0);_0xc42eca--)if(_0x418fc0=_0x1ad40d[_0xc42eca])_0x19e7b1=(_0x14a4ae<0x3?_0x36d3b5[_0x364017(0x21e)](_0x418fc0,_0x19e7b1):_0x36d3b5[_0x364017(0x1ee)](_0x14a4ae,0x3)?_0x418fc0(_0x1341a3,_0x2a1483,_0x19e7b1):_0x36d3b5[_0x364017(0x1fb)](_0x418fc0,_0x1341a3,_0x2a1483))||_0x19e7b1;}return _0x36d3b5['xqIzH'](_0x14a4ae,0x3)&&_0x19e7b1&&Object['defineProperty'](_0x1341a3,_0x2a1483,_0x19e7b1),_0x19e7b1;},__metadata=this&&this[a18_0x13982c(0x23e)]||function(_0x42459b,_0x98e450){const _0x46cdab=a18_0x13982c,_0x4f1597={'riHBS':_0x46cdab(0x239)};if(typeof Reflect===_0x4f1597[_0x46cdab(0x252)]&&typeof Reflect[_0x46cdab(0x1f2)]===_0x46cdab(0x245))return Reflect[_0x46cdab(0x1f2)](_0x42459b,_0x98e450);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a18_0x13982c(0x247)]=void 0x0;const common_1=require(a18_0x13982c(0x1e3)),flow_creator_1=require(a18_0x13982c(0x1e2)),flow_session_1=require(a18_0x13982c(0x1eb)),session_logger_1=require(a18_0x13982c(0x244)),core_config_1=require('../configs/core-config'),config_1=require(a18_0x13982c(0x22b)),content_type_1=require(a18_0x13982c(0x20d)),constants_1=require(a18_0x13982c(0x21b)),model_registry_1=require(a18_0x13982c(0x237)),default_models_1=require(a18_0x13982c(0x231));let FlowEngine=class FlowEngine{constructor(_0x41f71b){const _0x17275b=a18_0x13982c;this[_0x17275b(0x1f7)]={},this[_0x17275b(0x230)]=new model_registry_1[(_0x17275b(0x1ea))](),core_config_1['CoreConfig'][_0x17275b(0x1e4)](_0x41f71b),this['flowSession']=new flow_session_1[(_0x17275b(0x229))](),this[_0x17275b(0x218)]((0x0,default_models_1[_0x17275b(0x200)])());}[a18_0x13982c(0x205)](){const _0x3d44ba=a18_0x13982c;return this[_0x3d44ba(0x24b)];}async['run'](_0x70c459,_0x402322,_0x187001,_0x3c3953,_0x174ae6){const _0x53b5c4=await this['runFlow'](_0x402322,_0x187001,_0x3c3953,{'config':_0x174ae6});await this['composeHttpResponse'](_0x53b5c4,_0x70c459);}async[a18_0x13982c(0x225)](_0x4fb543,_0x8628aa,_0x5328bb,_0x34326e){const _0x2bd5e3=a18_0x13982c,_0x2a5432={'MrFWI':function(_0x41a9b7,_0x1fbbaf){return _0x41a9b7<_0x1fbbaf;},'bFqLz':function(_0x4639d8,_0x12c456){return _0x4639d8===_0x12c456;},'hIVyh':_0x2bd5e3(0x239),'NSvTs':function(_0x14fa24,_0x5ee0e1){return _0x14fa24===_0x5ee0e1;},'sUyXl':_0x2bd5e3(0x245),'lSekB':function(_0x56d00d,_0x31d852){return _0x56d00d-_0x31d852;},'WqofM':function(_0x42583a,_0x19a6ff){return _0x42583a>=_0x19a6ff;},'eGQrr':function(_0x4dc564,_0x216554){return _0x4dc564>_0x216554;},'qDAUM':function(_0x17f37c,_0x40a923){return _0x17f37c===_0x40a923;},'ASCBg':'GGmzt','dEVLc':_0x2bd5e3(0x235)};let _0xd06be1;try{if(_0x2a5432[_0x2bd5e3(0x242)](_0x2a5432[_0x2bd5e3(0x1dd)],_0x2a5432[_0x2bd5e3(0x1dd)])){_0xd06be1=await flow_creator_1[_0x2bd5e3(0x250)][_0x2bd5e3(0x1fd)](_0x4fb543,_0x5328bb,this,_0x34326e),_0x5328bb=_0xd06be1[_0x2bd5e3(0x20b)]();const _0x113d23=await _0xd06be1[_0x2bd5e3(0x1e8)](_0x8628aa);return await _0xd06be1['saveSession'](),_0x113d23;}else return _0x3fa27a[_0x2bd5e3(0x1e1)](this[_0x2bd5e3(0x1f7)]);}catch(_0x237025){if(_0x2a5432[_0x2bd5e3(0x253)]===_0x2a5432[_0x2bd5e3(0x253)])return await this['handleException'](_0xd06be1,_0x5328bb,_0x237025);else{var _0x25b800=arguments[_0x2bd5e3(0x216)],_0x5a97a2=_0x2a5432[_0x2bd5e3(0x20c)](_0x25b800,0x3)?_0x5c4e03:_0x2a5432[_0x2bd5e3(0x1e0)](_0x48d8c9,null)?_0x1f7b1b=_0x4c7ab2['getOwnPropertyDescriptor'](_0x1ba352,_0x59b2a4):_0x30b6e8,_0x160396;if(_0x2a5432[_0x2bd5e3(0x1e0)](typeof _0x36febe,_0x2a5432[_0x2bd5e3(0x21f)])&&_0x2a5432['NSvTs'](typeof _0x2d5e3e['decorate'],_0x2a5432[_0x2bd5e3(0x1f0)]))_0x5a97a2=_0x216ea3['decorate'](_0x3bc2d3,_0x5e1ab3,_0x43d4df,_0x3e0c74);else{for(var _0x1ed367=_0x2a5432['lSekB'](_0x3b989d[_0x2bd5e3(0x216)],0x1);_0x2a5432[_0x2bd5e3(0x232)](_0x1ed367,0x0);_0x1ed367--)if(_0x160396=_0x4cbd7[_0x1ed367])_0x5a97a2=(_0x2a5432[_0x2bd5e3(0x20c)](_0x25b800,0x3)?_0x160396(_0x5a97a2):_0x25b800>0x3?_0x160396(_0x53db60,_0x10755f,_0x5a97a2):_0x160396(_0x6cfeb1,_0x1e5e0d))||_0x5a97a2;}return _0x2a5432[_0x2bd5e3(0x21c)](_0x25b800,0x3)&&_0x5a97a2&&_0x5c755b['defineProperty'](_0x4b43f0,_0x1bdce8,_0x5a97a2),_0x5a97a2;}}}[a18_0x13982c(0x248)](_0x2e6ea7,_0x17ffda){const _0x4df226=a18_0x13982c,_0x3437ea={'ZGrVf':function(_0x371b35,_0x29ee09){return _0x371b35!=_0x29ee09;},'eKRvE':_0x4df226(0x1ff),'xAIqh':function(_0x326456,_0x273652){return _0x326456!==_0x273652;},'xSlVw':_0x4df226(0x24c),'kFeYi':_0x4df226(0x217)};_0x17ffda[_0x4df226(0x210)](constants_1['K'][_0x4df226(0x1ed)],_0x2e6ea7['session']),!_0x2e6ea7['success']&&_0x17ffda[_0x4df226(0x1fa)](common_1[_0x4df226(0x22d)]['BAD_REQUEST']),_0x2e6ea7['contentType']&&_0x3437ea[_0x4df226(0x20f)](_0x2e6ea7[_0x4df226(0x206)],content_type_1[_0x4df226(0x220)][_0x4df226(0x23d)])?(_0x17ffda[_0x4df226(0x210)](_0x3437ea[_0x4df226(0x219)],_0x2e6ea7[_0x4df226(0x206)]),_0x17ffda[_0x4df226(0x224)](_0x2e6ea7[_0x4df226(0x1f1)])):_0x3437ea[_0x4df226(0x241)](_0x3437ea[_0x4df226(0x21a)],_0x3437ea['kFeYi'])?_0x17ffda[_0x4df226(0x224)](_0x2e6ea7):_0x48cd5a[_0x4df226(0x1fa)](_0x280d0f[_0x4df226(0x22d)]['BAD_REQUEST']);}async[a18_0x13982c(0x255)](_0x140440,_0x56def4,_0x488aac){const _0x211adc=a18_0x13982c,_0x2c1b1={'VpyQB':function(_0x309738,_0x59940a){return _0x309738===_0x59940a;},'NZwAk':_0x211adc(0x1fe),'CnyOa':_0x211adc(0x228)};if(_0x140440){if(_0x2c1b1[_0x211adc(0x243)](_0x2c1b1['NZwAk'],_0x211adc(0x1fe)))try{const _0x6a39d4=_0x140440[_0x211adc(0x24a)]();_0x6a39d4['runStatus']=_0x211adc(0x228),new session_logger_1[(_0x211adc(0x1e5))](_0x6a39d4)[_0x211adc(0x1e6)](_0x488aac?.['message']),await _0x140440['saveSession']();}catch(_0x37354d){}else{const _0x50a599=_0x4ac48d['apply'](_0x3c1d0d,arguments);return _0xb5c724=null,_0x50a599;}}else{const [_0x54b67a,_0x3fa2bf]=await this[_0x211adc(0x24b)][_0x211adc(0x226)](_0x56def4);_0x3fa2bf[_0x211adc(0x212)]=_0x2c1b1['CnyOa'],new session_logger_1[(_0x211adc(0x1e5))](_0x3fa2bf)[_0x211adc(0x1e6)](_0x488aac?.[_0x211adc(0x1f1)]),await this[_0x211adc(0x24b)]['save'](_0x3fa2bf);}return{'success':![],'message':_0x488aac[_0x211adc(0x1f1)],'completed':!![]};}async[a18_0x13982c(0x221)](_0x3c0370){const _0xa5675f=a18_0x13982c,_0x5a426e={'damfi':function(_0x2c43b3,_0x253f77){return _0x2c43b3!==_0x253f77;},'NXvKA':_0xa5675f(0x1f6),'JKSPa':_0xa5675f(0x23c),'nHJSr':function(_0x112605,_0x5f4308){return _0x112605===_0x5f4308;},'Jzpmp':_0xa5675f(0x1ef)};try{if(_0x5a426e[_0xa5675f(0x1f9)](_0x5a426e[_0xa5675f(0x215)],_0x5a426e[_0xa5675f(0x256)])){if(_0x3c0370){const _0x39704a=await this[_0xa5675f(0x24b)][_0xa5675f(0x1e7)](_0x3c0370);if(_0x39704a){if(_0x5a426e[_0xa5675f(0x23f)](_0xa5675f(0x1ef),_0x5a426e['Jzpmp']))await this[_0xa5675f(0x24b)][_0xa5675f(0x20e)](_0x39704a['id']);else return{'false':!![],'message':_0xa5675f(0x1f4)+_0x24074e+_0xa5675f(0x249)};}}}else{if(_0x30de76){const _0x71ce8a=_0x2bce67[_0xa5675f(0x1de)](_0x3f754a,arguments);return _0x2e2d9f=null,_0x71ce8a;}}}catch(_0x374b2b){return{'false':!![],'message':_0xa5675f(0x1f4)+_0x3c0370+_0xa5675f(0x249)};}return{'success':!![],'session':_0x3c0370};}async[a18_0x13982c(0x21d)](_0x3df512){const _0x3e20e4=a18_0x13982c;this[_0x3e20e4(0x1f7)]={...this[_0x3e20e4(0x1f7)],..._0x3df512};}[a18_0x13982c(0x254)](_0xddbd4d){const _0x2c3725=a18_0x13982c;return this[_0x2c3725(0x1f7)][_0xddbd4d];}[a18_0x13982c(0x207)](){return Object['keys'](this['flowRegistry']);}[a18_0x13982c(0x218)](_0x47a42a,_0xe5cdbe=![]){const _0x516e84=a18_0x13982c;this[_0x516e84(0x230)]['registerMany'](_0x47a42a,_0xe5cdbe);}[a18_0x13982c(0x22f)](_0x55b111,_0x1511b8=![]){const _0x40d6d1=a18_0x13982c;this[_0x40d6d1(0x230)][_0x40d6d1(0x233)](_0x55b111,_0x1511b8);}[a18_0x13982c(0x24d)](_0x291554){const _0x1a4ffb=a18_0x13982c;return this[_0x1a4ffb(0x230)][_0x1a4ffb(0x251)](_0x291554);}['getModelName'](_0x33fa96){const _0x3d5dd3=a18_0x13982c;return this[_0x3d5dd3(0x230)][_0x3d5dd3(0x24f)](_0x33fa96);}};function a18_0x4d34(){const _0x176231=['../models/default-models','WqofM','register','__decorate','AFHTN','ConfigService','../models/model-registry','ZZRJq','object','mjIQU','307727ZirIMD','koMBO','Plain','__metadata','nHJSr','toString','xAIqh','qDAUM','VpyQB','../session/session-logger','function','constructor','FlowEngine','composeHttpResponse','\x20failed','getSessionDoc','flowSession','DsWfr','getModel','5HXkNvT','getName','FlowCreator','get','riHBS','dEVLc','getFlow','handleException','JKSPa','decorate','ASCBg','apply','ObsAu','bFqLz','keys','../flow/flow-creator','@nestjs/common','setup','SessionLogger','error','fetchAll','run','Shjvl','ModelRegistry','../session/flow-session','getOwnPropertyDescriptor','ChatSessionID','lHlwJ','UcFSP','sUyXl','message','metadata','hGIYf','Delete\x20session\x20','31811410AKwuxo','RtXCQ','flowRegistry','WMRhc','damfi','status','HfZgm','wZYmM','create','nNhRD','Content-Type','createPopularModels','946366DgAqtv','CUeIL','skajn','SixXR','getFlowSession','contentType','getFlowNames','bKMzC','qBXgM','174uBVkGL','getSessionId','MrFWI','../flow/content-type','delete','ZGrVf','header','tvBRn','runStatus','11683352YnjkOZ','search','NXvKA','length','ruWsK','registerModels','eKRvE','xSlVw','../utils/constants','eGQrr','registerFlows','hMpfI','hIVyh','HttpContentType','endChat','7729191IEBRyj','2425930gClmsq','send','runFlow','fetch','3598388ZBEHSn','aborted','FlowSession','3vxaiNf','@nestjs/config','design:paramtypes','HttpStatus','orxRD','registerModel','modelRegistry'];a18_0x4d34=function(){return _0x176231;};return a18_0x4d34();}exports[a18_0x13982c(0x247)]=FlowEngine,exports[a18_0x13982c(0x247)]=FlowEngine=__decorate([(0x0,common_1['Injectable'])(),__metadata(a18_0x13982c(0x22c),[config_1[a18_0x13982c(0x236)]])],FlowEngine);
|
|
1
|
+
const a18_0x6eb6b6=a18_0x3afa;function a18_0x3afa(_0x168e7c,_0x5a72db){const _0x3b35e8=a18_0xd6ed();return a18_0x3afa=function(_0x271e29,_0xe47e5e){_0x271e29=_0x271e29-0x171;let _0xd6edf0=_0x3b35e8[_0x271e29];return _0xd6edf0;},a18_0x3afa(_0x168e7c,_0x5a72db);}(function(_0x1cb580,_0x21c4d7){const _0x4bacae=a18_0x3afa,_0x11d210=_0x1cb580();while(!![]){try{const _0x353a22=-parseInt(_0x4bacae(0x171))/0x1*(-parseInt(_0x4bacae(0x19e))/0x2)+-parseInt(_0x4bacae(0x17f))/0x3+-parseInt(_0x4bacae(0x1d5))/0x4+parseInt(_0x4bacae(0x181))/0x5+-parseInt(_0x4bacae(0x1b4))/0x6*(-parseInt(_0x4bacae(0x178))/0x7)+parseInt(_0x4bacae(0x19a))/0x8*(-parseInt(_0x4bacae(0x1ad))/0x9)+parseInt(_0x4bacae(0x18f))/0xa;if(_0x353a22===_0x21c4d7)break;else _0x11d210['push'](_0x11d210['shift']());}catch(_0x585f58){_0x11d210['push'](_0x11d210['shift']());}}}(a18_0xd6ed,0x73ca2));const a18_0xe47e5e=(function(){let _0x5e7f17=!![];return function(_0x2da872,_0x1e8f6c){const _0x1a6914=_0x5e7f17?function(){const _0x1c5fb1=a18_0x3afa;if(_0x1e8f6c){const _0x4cff98=_0x1e8f6c[_0x1c5fb1(0x1a6)](_0x2da872,arguments);return _0x1e8f6c=null,_0x4cff98;}}:function(){};return _0x5e7f17=![],_0x1a6914;};}()),a18_0x271e29=a18_0xe47e5e(this,function(){const _0x33eb08=a18_0x3afa,_0x2ad024={'ciWBZ':_0x33eb08(0x1dc)};return a18_0x271e29['toString']()[_0x33eb08(0x188)](_0x2ad024['ciWBZ'])[_0x33eb08(0x1ce)]()[_0x33eb08(0x197)](a18_0x271e29)[_0x33eb08(0x188)](_0x33eb08(0x1dc));});function a18_0xd6ed(){const _0x1cebff=['getFlow','endChat','function','9ogCQnl','success','../models/default-models','QHRZA','CoreConfig','runFlow','ctMKO','4344IlxHSp','composeHttpResponse','qBvqB','../flow/content-type','fetchAll','CBQhc','gmjOi','YUcSE','register','handleException','Plain','getFlowNames','../session/session-logger','header','Content-Type','FlowEngine','message','flowRegistry','CTWSg','lAfMM','VYLEE','BAD_REQUEST','getOwnPropertyDescriptor','getFlowSession','send','oQQEH','toString','YMjiC','qSPFG','registerModels','modelRegistry','../utils/constants','wLOiU','269784PEFpdA','error','ModelRegistry','save','FlowCreator','length','fLeHF','(((.+)+)+)+$','ChatSessionID','2zCvhPG','split','getModel','decorate','HttpStatus','get','aborted','5404nwtDRm','ROTTg','saveSession','FlowSession','defineProperty','flowSession','pYdWv','1331850qWtktJ','JHaZe','2919420vzWMgb','registerModel','../flow/flow-creator','ConfigService','Hnwgn','getSessionDoc','3|1|0|4|2','search','ETUmO','design:paramtypes','LnAVC','run','pwpAJ','LDyHT','2605830QsNfcK','registerFlows','registerMany','runStatus','uzbVZ','createPopularModels','delete','GPlNB','constructor','../configs/core-config','status','6824248HtEghe','getName','cBrLt','odckO','435306agUdDI','contentType','SlptJ','session','__metadata','getSessionId','Injectable','\x20failed','apply','Ipuvg','uHGxn','metadata'];a18_0xd6ed=function(){return _0x1cebff;};return a18_0xd6ed();}a18_0x271e29();'use strict';var __decorate=this&&this['__decorate']||function(_0x1dfcd0,_0x162fd9,_0x11b9f6,_0x2cdc6e){const _0x4b4ff3=a18_0x3afa,_0x5122e8={'QHRZA':function(_0x5ccdae,_0x51f1b1){return _0x5ccdae<_0x51f1b1;},'ROTTg':function(_0x853d83,_0x1d4c91){return _0x853d83===_0x1d4c91;},'odckO':_0x4b4ff3(0x1ac),'fLeHF':function(_0x50ef5b,_0x85d202){return _0x50ef5b-_0x85d202;},'Hnwgn':function(_0x545c38,_0x203a92){return _0x545c38>=_0x203a92;},'GPlNB':function(_0x105306,_0x2a6bb3){return _0x105306>_0x2a6bb3;},'CTWSg':function(_0x5373b8,_0x2446fb,_0x3bf77a,_0x42207a){return _0x5373b8(_0x2446fb,_0x3bf77a,_0x42207a);},'qSPFG':function(_0x9ebcd2,_0xc1a1b4,_0x45e39b){return _0x9ebcd2(_0xc1a1b4,_0x45e39b);}};var _0xc18e2c=arguments[_0x4b4ff3(0x1da)],_0x3eb438=_0x5122e8[_0x4b4ff3(0x1b0)](_0xc18e2c,0x3)?_0x162fd9:_0x5122e8[_0x4b4ff3(0x179)](_0x2cdc6e,null)?_0x2cdc6e=Object[_0x4b4ff3(0x1ca)](_0x162fd9,_0x11b9f6):_0x2cdc6e,_0x283190;if(_0x5122e8['ROTTg'](typeof Reflect,'object')&&_0x5122e8[_0x4b4ff3(0x179)](typeof Reflect[_0x4b4ff3(0x174)],_0x5122e8[_0x4b4ff3(0x19d)]))_0x3eb438=Reflect[_0x4b4ff3(0x174)](_0x1dfcd0,_0x162fd9,_0x11b9f6,_0x2cdc6e);else{for(var _0xcefa7f=_0x5122e8[_0x4b4ff3(0x1db)](_0x1dfcd0[_0x4b4ff3(0x1da)],0x1);_0x5122e8[_0x4b4ff3(0x185)](_0xcefa7f,0x0);_0xcefa7f--)if(_0x283190=_0x1dfcd0[_0xcefa7f])_0x3eb438=(_0xc18e2c<0x3?_0x283190(_0x3eb438):_0x5122e8['GPlNB'](_0xc18e2c,0x3)?_0x5122e8[_0x4b4ff3(0x1c6)](_0x283190,_0x162fd9,_0x11b9f6,_0x3eb438):_0x5122e8[_0x4b4ff3(0x1d0)](_0x283190,_0x162fd9,_0x11b9f6))||_0x3eb438;}return _0x5122e8[_0x4b4ff3(0x196)](_0xc18e2c,0x3)&&_0x3eb438&&Object['defineProperty'](_0x162fd9,_0x11b9f6,_0x3eb438),_0x3eb438;},__metadata=this&&this[a18_0x6eb6b6(0x1a2)]||function(_0x6d9341,_0x41389f){const _0x189949=a18_0x6eb6b6,_0x4168c0={'oQQEH':function(_0xfb85ab,_0x257340){return _0xfb85ab===_0x257340;},'VYLEE':'object','Pbrxm':'function'};if(_0x4168c0[_0x189949(0x1cd)](typeof Reflect,_0x4168c0[_0x189949(0x1c8)])&&_0x4168c0[_0x189949(0x1cd)](typeof Reflect['metadata'],_0x4168c0['Pbrxm']))return Reflect[_0x189949(0x1a9)](_0x6d9341,_0x41389f);};Object[a18_0x6eb6b6(0x17c)](exports,'__esModule',{'value':!![]}),exports[a18_0x6eb6b6(0x1c3)]=void 0x0;const common_1=require('@nestjs/common'),flow_creator_1=require(a18_0x6eb6b6(0x183)),flow_session_1=require('../session/flow-session'),session_logger_1=require(a18_0x6eb6b6(0x1c0)),core_config_1=require(a18_0x6eb6b6(0x198)),config_1=require('@nestjs/config'),content_type_1=require(a18_0x6eb6b6(0x1b7)),constants_1=require(a18_0x6eb6b6(0x1d3)),model_registry_1=require('../models/model-registry'),default_models_1=require(a18_0x6eb6b6(0x1af));let FlowEngine=class FlowEngine{constructor(_0x9905f9){const _0x4ee1e2=a18_0x6eb6b6,_0x1ddaad={'CBQhc':_0x4ee1e2(0x187)},_0x358de3=_0x1ddaad[_0x4ee1e2(0x1b9)][_0x4ee1e2(0x172)]('|');let _0x55e0ca=0x0;while(!![]){switch(_0x358de3[_0x55e0ca++]){case'0':core_config_1[_0x4ee1e2(0x1b1)]['setup'](_0x9905f9);continue;case'1':this[_0x4ee1e2(0x1d2)]=new model_registry_1[(_0x4ee1e2(0x1d7))]();continue;case'2':this[_0x4ee1e2(0x1d1)]((0x0,default_models_1[_0x4ee1e2(0x194)])());continue;case'3':this[_0x4ee1e2(0x1c5)]={};continue;case'4':this[_0x4ee1e2(0x17d)]=new flow_session_1[(_0x4ee1e2(0x17b))]();continue;}break;}}[a18_0x6eb6b6(0x1cb)](){const _0x1b9255=a18_0x6eb6b6;return this[_0x1b9255(0x17d)];}async['run'](_0x5b723e,_0x5a32a7,_0x50bfaf,_0x59d95f,_0x2f9714){const _0x3159c0=a18_0x6eb6b6,_0x5c312e=await this[_0x3159c0(0x1b2)](_0x5a32a7,_0x50bfaf,_0x59d95f,{'config':_0x2f9714});await this[_0x3159c0(0x1b5)](_0x5c312e,_0x5b723e);}async[a18_0x6eb6b6(0x1b2)](_0x1872cd,_0x1ec543,_0x55ffec,_0x206b31){const _0x4c5ac3=a18_0x6eb6b6,_0x461469={'uzbVZ':_0x4c5ac3(0x1b6)};let _0x11fc01;try{_0x11fc01=await flow_creator_1[_0x4c5ac3(0x1d9)]['create'](_0x1872cd,_0x55ffec,this,_0x206b31),_0x55ffec=_0x11fc01[_0x4c5ac3(0x1a3)]();const _0x4f6bcf=await _0x11fc01[_0x4c5ac3(0x18c)](_0x1ec543);return await _0x11fc01[_0x4c5ac3(0x17a)](),_0x4f6bcf;}catch(_0x416b00){if(_0x461469['uzbVZ']!==_0x461469[_0x4c5ac3(0x193)])_0x308ab3[_0x4c5ac3(0x199)](_0x1eeb4b[_0x4c5ac3(0x175)][_0x4c5ac3(0x1c9)]);else return await this[_0x4c5ac3(0x1bd)](_0x11fc01,_0x55ffec,_0x416b00);}}['composeHttpResponse'](_0xea6af1,_0x393f3b){const _0x2b7981=a18_0x6eb6b6,_0x32de1c={'iENdc':_0x2b7981(0x1cf),'pYdWv':_0x2b7981(0x18d),'EdgDU':function(_0x1fc3d8,_0x2ce9e5){return _0x1fc3d8!=_0x2ce9e5;}};_0x393f3b['header'](constants_1['K'][_0x2b7981(0x1dd)],_0xea6af1[_0x2b7981(0x1a1)]);if(!_0xea6af1[_0x2b7981(0x1ae)]){if(_0x32de1c['iENdc']===_0x32de1c[_0x2b7981(0x17e)])return this['modelRegistry'][_0x2b7981(0x176)](_0x3d7aeb);else _0x393f3b[_0x2b7981(0x199)](common_1[_0x2b7981(0x175)][_0x2b7981(0x1c9)]);}_0xea6af1[_0x2b7981(0x19f)]&&_0x32de1c['EdgDU'](_0xea6af1[_0x2b7981(0x19f)],content_type_1['HttpContentType'][_0x2b7981(0x1be)])?(_0x393f3b[_0x2b7981(0x1c1)](_0x2b7981(0x1c2),_0xea6af1['contentType']),_0x393f3b[_0x2b7981(0x1cc)](_0xea6af1['message'])):_0x393f3b[_0x2b7981(0x1cc)](_0xea6af1);}async[a18_0x6eb6b6(0x1bd)](_0x17ebd9,_0xa2a329,_0x578df0){const _0x3c6fd5=a18_0x6eb6b6,_0x3e4061={'ETUmO':function(_0x219ce6,_0x163842){return _0x219ce6!==_0x163842;},'LnAVC':_0x3c6fd5(0x1a7),'SlptJ':_0x3c6fd5(0x177),'JHaZe':'message'};if(_0x17ebd9){if(_0x3c6fd5(0x19c)==='JuNwS')return this['flowRegistry'][_0x38497f];else try{if(_0x3e4061[_0x3c6fd5(0x189)](_0x3e4061[_0x3c6fd5(0x18b)],_0x3e4061[_0x3c6fd5(0x18b)])){const _0x4a559c=_0x37718f['apply'](_0x49bb85,arguments);return _0x2f7297=null,_0x4a559c;}else{const _0x2cf907=_0x17ebd9[_0x3c6fd5(0x186)]();_0x2cf907[_0x3c6fd5(0x192)]='aborted',new session_logger_1['SessionLogger'](_0x2cf907)[_0x3c6fd5(0x1d6)](_0x578df0?.[_0x3c6fd5(0x1c4)]),await _0x17ebd9['saveSession']();}}catch(_0x53485e){}}else{const [_0x83ebdd,_0x5a7be6]=await this[_0x3c6fd5(0x17d)]['fetch'](_0xa2a329);_0x5a7be6[_0x3c6fd5(0x192)]=_0x3e4061[_0x3c6fd5(0x1a0)],new session_logger_1['SessionLogger'](_0x5a7be6)['error'](_0x578df0?.[_0x3c6fd5(0x1c4)]),await this[_0x3c6fd5(0x17d)][_0x3c6fd5(0x1d8)](_0x5a7be6);}return{'success':![],'message':_0x578df0[_0x3e4061[_0x3c6fd5(0x180)]],'completed':!![]};}async[a18_0x6eb6b6(0x1ab)](_0x2f215d){const _0x9f3b40=a18_0x6eb6b6,_0x1fdb1b={'lAfMM':_0x9f3b40(0x1dc),'lzPPH':_0x9f3b40(0x1bb),'ctMKO':_0x9f3b40(0x18e),'wLOiU':_0x9f3b40(0x1ba)};try{if(_0x2f215d){if(_0x1fdb1b['lzPPH']!==_0x1fdb1b[_0x9f3b40(0x1b3)]){const _0x64dc95=await this[_0x9f3b40(0x17d)][_0x9f3b40(0x1b8)](_0x2f215d);_0x64dc95&&(_0x9f3b40(0x1a8)===_0x1fdb1b[_0x9f3b40(0x1d4)]?(_0x2eb8f6[_0x9f3b40(0x1c1)]('Content-Type',_0x4ee559['contentType']),_0x4cd0d9['send'](_0x3dce1e['message'])):await this[_0x9f3b40(0x17d)][_0x9f3b40(0x195)](_0x64dc95['id']));}else return _0x5b40b4[_0x9f3b40(0x1ce)]()['search'](hORDOy[_0x9f3b40(0x1c7)])[_0x9f3b40(0x1ce)]()[_0x9f3b40(0x197)](_0x4693d3)[_0x9f3b40(0x188)](hORDOy[_0x9f3b40(0x1c7)]);}}catch(_0x497f2f){return{'false':!![],'message':'Delete\x20session\x20'+_0x2f215d+_0x9f3b40(0x1a5)};}return{'success':!![],'session':_0x2f215d};}async[a18_0x6eb6b6(0x190)](_0x4e35de){const _0x2eb0c0=a18_0x6eb6b6;this[_0x2eb0c0(0x1c5)]={...this[_0x2eb0c0(0x1c5)],..._0x4e35de};}[a18_0x6eb6b6(0x1aa)](_0x28bf2e){return this['flowRegistry'][_0x28bf2e];}[a18_0x6eb6b6(0x1bf)](){const _0x39abaf=a18_0x6eb6b6;return Object['keys'](this[_0x39abaf(0x1c5)]);}['registerModels'](_0x162b9d,_0x15c0eb=![]){const _0x38c42d=a18_0x6eb6b6;this[_0x38c42d(0x1d2)][_0x38c42d(0x191)](_0x162b9d,_0x15c0eb);}[a18_0x6eb6b6(0x182)](_0x284398,_0x4caf9c=![]){const _0xa5d800=a18_0x6eb6b6;this[_0xa5d800(0x1d2)][_0xa5d800(0x1bc)](_0x284398,_0x4caf9c);}[a18_0x6eb6b6(0x173)](_0x222888){const _0x124737=a18_0x6eb6b6;return this[_0x124737(0x1d2)][_0x124737(0x176)](_0x222888);}['getModelName'](_0x2da23e){const _0x5a664b=a18_0x6eb6b6;return this['modelRegistry'][_0x5a664b(0x19b)](_0x2da23e);}};exports[a18_0x6eb6b6(0x1c3)]=FlowEngine,exports[a18_0x6eb6b6(0x1c3)]=FlowEngine=__decorate([(0x0,common_1[a18_0x6eb6b6(0x1a4)])(),__metadata(a18_0x6eb6b6(0x18a),[config_1[a18_0x6eb6b6(0x184)]])],FlowEngine);
|