@picoflow/core 1.0.15 → 1.0.16

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.
Files changed (43) hide show
  1. package/clients/http-client.js +1 -1
  2. package/clients/self-client.js +1 -1
  3. package/configs/core-config.d.ts +1 -0
  4. package/configs/core-config.js +1 -1
  5. package/decorators/stop-tool.js +1 -1
  6. package/flow/content-type.js +1 -1
  7. package/flow/end-step.js +1 -1
  8. package/flow/flow-creator.js +1 -1
  9. package/flow/flow-types.js +1 -1
  10. package/flow/flow.d.ts +1 -1
  11. package/flow/flow.js +1 -1
  12. package/flow/llm-runner.js +1 -1
  13. package/flow/logic-runner.js +1 -1
  14. package/flow/logic-step.js +1 -1
  15. package/flow/memory.js +1 -1
  16. package/flow/step.d.ts +3 -4
  17. package/flow/step.js +1 -1
  18. package/models/default-models.js +1 -1
  19. package/models/model-registry.js +1 -1
  20. package/package.json +1 -1
  21. package/prompt/flow-prompt.js +1 -1
  22. package/prompt/prompt-util.js +1 -1
  23. package/services/flow-engine.js +1 -1
  24. package/session/cosmo-session.js +1 -1
  25. package/session/file-session.js +1 -1
  26. package/session/flow-session.js +1 -1
  27. package/session/mongo-session.js +1 -1
  28. package/session/session-adaptor.js +1 -1
  29. package/session/session-logger.js +1 -1
  30. package/session/sqlite-session.d.ts +19 -0
  31. package/session/sqlite-session.js +1 -0
  32. package/utils/constants.d.ts +1 -0
  33. package/utils/constants.js +1 -1
  34. package/utils/environ.js +1 -1
  35. package/utils/errors.js +1 -1
  36. package/utils/license-util.js +1 -1
  37. package/utils/llm-file.js +1 -1
  38. package/utils/logic.js +1 -1
  39. package/utils/message-util.js +1 -1
  40. package/utils/retry.js +1 -1
  41. package/utils/string-util.js +1 -1
  42. package/utils/tool-util.js +1 -1
  43. package/utils/verify-license.js +1 -1
@@ -1 +1 @@
1
- const a9_0x147cc2=a9_0x55be;function a9_0x5b02(){const _0x56653e=['qcNKF','TmocR','toString','../utils/verify-license','lDHpI','isLogic','RmOIK','type','response_metadata','human','content','CSDwh','CUecJ','XBNUn','getReason','OQnlT','bpgcr','Follow\x20system\x20prompt\x20and\x20respond\x20properly.','eNnHA','xQiVE','length','GFJZK','Flow\x20\x27','qGNEm','XhoDl','wTGgn','ApYLj','goTry','tool','LjUyc','\x27\x20model\x20params\x20target\x20\x27','mjtyv','Hqgxq','Paksx','crDUN','finishReason','tQnFQ','srRdw','step','ToolMessageOK','SSRRf','UQuBs','missing\x20tool\x20handler:\x20','additional_kwargs','callTool','../utils/tool-util','LrTyr','defineProperty','direct','aCedJ','isToolAvailable','warn','Xkxhh','5euZLHx','../utils/message-util','1111124fNJmcM','LLM\x20hallucinates\x20a\x20non-existing\x20tool:\x20','HumanMessage','getName','CDqkG','picoKey','UnpDK','../utils/retry','HGAEb','isBotMessageEmpty','getFlowEngine','pkYeV','tdiOC','tSyGk','apply','SessionLogger','text','getModelParamsModelName','saveSession','JPkUO','iokKy','MessageUtil','ISaKo','anWIz','IjDPs','nkDlk','Step\x20\x27','TXTwN','LlmRunner','IYegy','Yijpo','supportsTemperatureOverride','onCrossing','BvQRf','finish_reason','function','ZMfMR','36CCkLxW','TencG','qmLeN','WSghY','qbiHN','contentType','8120580igxgBg','activate','Plmue','getModelParams','KFXIq','push','qBWKY','TfZMe','gmwJK','withStructuredOutput','hacdl','LogicRunner','2XuJqXh','506499ATWvvW','ToolMessageInfo','hallucinated\x20tool:\x20','saveState','.\x20Error:','SXgqS','\x27\x20does\x20not\x20match\x20resolved\x20model\x20\x27','useTools','zOSxG','39919TBHlnW','message','rrIMu','156xJxGzf','string','tRmzO','Izqyj','name','jYDIi','HRObE','pop','7920059sQBjJp','ZfhDh','vftkn','AVwIL','tool_calls','lodash','stop_reason','zFDQs','4736616ZdVhKK','XIdNF','tool_call_id','FQsOv','ToolCallMessage','usage_metadata','replaceStep','llmRetry','RmvOz','XcSCQ','onToolResponseMessages','messageStep','vCMKI','constructor','getSessionDoc','Ignoring\x20temperature\x20override\x20for\x20model\x20\x27','beXqz','OWSJT','../session/session-logger','system','AvQUI','RyCGl','yzQVj','tqYsb','Inewj','hVXbO','\x20of\x20','wiXXc','VlBZM','pGApU','XtvCs','getModel','hasNoTool','ddfEM','tJcbG','230144osWIMn','JtzCe','createInstance','VyNcw','number','wcuwy','search','(((.+)+)+)+$','merge','RpphS','obtainTools','onResponse','CBgpR','getMemory','../configs/core-config','Cwspw','unknown','8VyQnPO','EbxvP','NStVi','KCknR','nDdlB','ykPHB','hZoBp','tallyToken','state','isArray','YzURt','LLM\x20call\x20failed.\x20Reason:','9ZPMEky','prompt','OuVwo','VLTCp','2736iQMElu','getActiveStep','AIMessage','hasTool','genMessageId','IiHKN','mGKPs','verifyLicense','send','structOutputSchema','__esModule','ToolUtil','activateByName'];a9_0x5b02=function(){return _0x56653e;};return a9_0x5b02();}(function(_0x5174ba,_0x2aec07){const _0x529f47=a9_0x55be,_0x4307b3=_0x5174ba();while(!![]){try{const _0x12e85e=parseInt(_0x529f47(0x1a0))/0x1*(parseInt(_0x529f47(0x19f))/0x2)+parseInt(_0x529f47(0x269))/0x3*(-parseInt(_0x529f47(0x1df))/0x4)+parseInt(_0x529f47(0x242))/0x5*(parseInt(_0x529f47(0x1bc))/0x6)+-parseInt(_0x529f47(0x1b4))/0x7*(-parseInt(_0x529f47(0x1f0))/0x8)+-parseInt(_0x529f47(0x1fc))/0x9*(-parseInt(_0x529f47(0x26f))/0xa)+-parseInt(_0x529f47(0x1a9))/0xb*(parseInt(_0x529f47(0x200))/0xc)+parseInt(_0x529f47(0x1ac))/0xd*(-parseInt(_0x529f47(0x244))/0xe);if(_0x12e85e===_0x2aec07)break;else _0x4307b3['push'](_0x4307b3['shift']());}catch(_0x34659e){_0x4307b3['push'](_0x4307b3['shift']());}}}(a9_0x5b02,0xbbcaa));function a9_0x55be(_0x8b0182,_0x3a2068){const _0x344a88=a9_0x5b02();return a9_0x55be=function(_0xe94dce,_0x159508){_0xe94dce=_0xe94dce-0x197;let _0x5b0285=_0x344a88[_0xe94dce];return _0x5b0285;},a9_0x55be(_0x8b0182,_0x3a2068);}const a9_0x159508=(function(){const _0x36212a=a9_0x55be,_0x4b9cbd={'NStVi':_0x36212a(0x1b7)};let _0xd23bec=!![];return function(_0x53c639,_0x559f46){const _0x4fd05f=_0x36212a;if('AVwIL'===_0x4b9cbd[_0x4fd05f(0x1f2)]){const _0x405851=_0xd23bec?function(){const _0x1b8055=_0x4fd05f;if(_0x559f46){const _0x2172df=_0x559f46[_0x1b8055(0x252)](_0x53c639,arguments);return _0x559f46=null,_0x2172df;}}:function(){};return _0xd23bec=![],_0x405851;}else new _0x34deb5[(_0x4fd05f(0x253))](_0xf4b716[_0x4fd05f(0x1ca)]())['warn'](_0x4fd05f(0x1a2)+_0x14bf3f[_0x4fd05f(0x1b0)]),_0x431262=new _0x119d7b[(_0x4fd05f(0x1a1))](_0x574026,_0x249246,_0x4fd05f(0x245)+_0x44247a[_0x4fd05f(0x1b0)]);};}()),a9_0xe94dce=a9_0x159508(this,function(){const _0x3a3af1=a9_0x55be,_0x50710a={'RmvOz':_0x3a3af1(0x1e6)};return a9_0xe94dce[_0x3a3af1(0x20f)]()[_0x3a3af1(0x1e5)](_0x50710a[_0x3a3af1(0x1c4)])[_0x3a3af1(0x20f)]()[_0x3a3af1(0x1c9)](a9_0xe94dce)['search'](_0x50710a['RmvOz']);});a9_0xe94dce();'use strict';Object[a9_0x147cc2(0x23c)](exports,a9_0x147cc2(0x20a),{'value':!![]}),exports[a9_0x147cc2(0x260)]=void 0x0;const messages_1=require('@langchain/core/messages'),message_util_1=require(a9_0x147cc2(0x243)),tool_util_1=require(a9_0x147cc2(0x23a)),session_logger_1=require(a9_0x147cc2(0x1ce)),core_config_1=require(a9_0x147cc2(0x1ed)),message_util_2=require(a9_0x147cc2(0x243)),logic_runner_1=require('./logic-runner'),retry_1=require(a9_0x147cc2(0x24b)),verify_license_1=require(a9_0x147cc2(0x210)),lodash_1=require(a9_0x147cc2(0x1b9));class LlmRunner{static async[a9_0x147cc2(0x208)](_0x1ee88a,_0x142e24,_0x254436){const _0x1320ab=a9_0x147cc2,_0x4d5eb5={'nDdlB':function(_0x3cbfca,_0x3b5ad8){return _0x3cbfca===_0x3b5ad8;},'OWSJT':'text','UQuBs':_0x1320ab(0x205),'yzQVj':_0x1320ab(0x1ef),'LjUyc':function(_0x12d84f,_0x1afb47){return _0x12d84f===_0x1afb47;},'gmwJK':'kHceh','CBgpR':function(_0x388d17,_0x31ab70){return _0x388d17>=_0x31ab70;},'UnpDK':_0x1320ab(0x21e),'VLTCp':_0x1320ab(0x1e2),'WmBxA':_0x1320ab(0x265),'wTGgn':function(_0x325ba2,_0x21f3e9){return _0x325ba2===_0x21f3e9;},'bytKd':_0x1320ab(0x21f),'rrIMu':_0x1320ab(0x1f6),'ZMfMR':function(_0x60b0d9,_0x179656){return _0x60b0d9===_0x179656;},'IvJdl':_0x1320ab(0x1e3),'tQnFQ':function(_0x56daad,_0x3c0861){return _0x56daad!=_0x3c0861;},'jYDIi':function(_0xfb4052,_0x27302c){return _0xfb4052!==_0x27302c;},'hVXbO':_0x1320ab(0x23b),'Yijpo':function(_0x5df853,_0x579985){return _0x5df853!==_0x579985;},'TXTwN':function(_0x5cb3d9,_0xf9598a){return _0x5cb3d9-_0xf9598a;},'ZkQLu':'TjKyd'};(0x0,verify_license_1[_0x1320ab(0x207)])(core_config_1['CoreConfig'][_0x1320ab(0x249)]);let _0x1e6ed6;const _0x1a63d7=_0x1ee88a[_0x1320ab(0x201)](),_0x165e32=_0x1a63d7[_0x1320ab(0x1db)](),_0x18ceef=_0x1ee88a[_0x1320ab(0x24e)]()[_0x1320ab(0x1db)](_0x165e32),_0x28c4d6=_0x1ee88a[_0x1320ab(0x255)]();if(_0x165e32===_0x1ee88a[_0x1320ab(0x1db)]()&&_0x28c4d6&&_0x28c4d6!==_0x165e32){if(_0x4d5eb5[_0x1320ab(0x226)](_0x4d5eb5['bytKd'],_0x4d5eb5[_0x1320ab(0x1ab)]))return _0x2758bb[_0x1320ab(0x19e)][_0x1320ab(0x208)](_0x4f9cdc);else throw new Error('Flow\x20\x27'+_0x1ee88a[_0x1320ab(0x1c9)][_0x1320ab(0x1b0)]+_0x1320ab(0x22b)+_0x28c4d6+'\x27\x20does\x20not\x20match\x20resolved\x20model\x20\x27'+_0x165e32+'\x27.');}const _0x341ec3=_0x1a63d7[_0x1320ab(0x255)]();if(_0x341ec3&&_0x341ec3!==_0x165e32)throw new Error(_0x1320ab(0x25e)+_0x1a63d7[_0x1320ab(0x247)]()+_0x1320ab(0x22b)+_0x341ec3+'\x27\x20does\x20not\x20match\x20resolved\x20model\x20\x27'+_0x165e32+'\x27.');const _0x20edfe=_0x1a63d7[_0x1320ab(0x1db)]()===_0x1ee88a['getModel']()?(0x0,lodash_1[_0x1320ab(0x1e7)])({},_0x1ee88a[_0x1320ab(0x272)](),_0x1a63d7[_0x1320ab(0x272)]()):(0x0,lodash_1[_0x1320ab(0x1e7)])({},_0x1a63d7[_0x1320ab(0x272)]()),_0x56ea08=(0x0,lodash_1[_0x1320ab(0x1e7)])({},_0x20edfe);_0x4d5eb5[_0x1320ab(0x268)](typeof _0x56ea08['temperature'],_0x4d5eb5['IvJdl'])&&!_0x18ceef[_0x1320ab(0x263)]()&&(new session_logger_1['SessionLogger'](_0x1ee88a['getSessionDoc']())[_0x1320ab(0x240)](_0x1320ab(0x1cb)+_0x18ceef[_0x1320ab(0x1b0)]+'\x27.'),delete _0x56ea08['temperature']);const _0x138489=_0x1a63d7['getMemory']();if(_0x142e24){const _0x5bcff5=message_util_1[_0x1320ab(0x259)]['messageStep'](_0x142e24['id']);_0x4d5eb5[_0x1320ab(0x231)](_0x5bcff5,_0x1a63d7[_0x1320ab(0x247)]())&&(await _0x1ee88a[_0x1320ab(0x256)](),message_util_1[_0x1320ab(0x259)][_0x1320ab(0x1c2)](_0x142e24,_0x1a63d7),_0x142e24=_0x1a63d7[_0x1320ab(0x264)](_0x142e24,_0x5bcff5));}else{const _0x18c797=message_util_1['MessageUtil']['peek'](_0x138489);if(_0x18c797&&_0x4d5eb5[_0x1320ab(0x1b1)](_0x18c797[_0x1320ab(0x214)],_0x1320ab(0x1cf))){const _0x30266b=message_util_1['MessageUtil'][_0x1320ab(0x1c7)](_0x18c797['id']);if(_0x30266b!=_0x1a63d7[_0x1320ab(0x247)]()){if(_0x4d5eb5[_0x1320ab(0x1d5)]!==_0x4d5eb5[_0x1320ab(0x1d5)]){const _0x343aed=_0x5538de?function(){const _0x2c48f3=_0x1320ab;if(_0x5117a5){const _0x937312=_0x643ade[_0x2c48f3(0x252)](_0x42e678,arguments);return _0x124b5=null,_0x937312;}}:function(){};return _0x4bdd5e=![],_0x343aed;}else await _0x1ee88a[_0x1320ab(0x256)](),_0x142e24=_0x1a63d7['onCrossing'](_0x142e24,_0x30266b);}}else await _0x1ee88a[_0x1320ab(0x256)](),_0x142e24=_0x1a63d7['onCrossing'](_0x142e24);}if(_0x1a63d7['isLogic']())return logic_runner_1[_0x1320ab(0x19e)]['send'](_0x1ee88a);let _0x5468cb=_0x18ceef[_0x1320ab(0x1e1)](_0x56ea08),_0x3f36dc=_0x1a63d7[_0x1320ab(0x1e9)]()??[];const _0xb6ad94=await _0x1a63d7['getPrompt']();_0x138489[0x0]=new messages_1['SystemMessage']({'content':_0xb6ad94,'id':_0x1a63d7[_0x1320ab(0x204)]()});if(_0x142e24){if(_0x4d5eb5[_0x1320ab(0x262)](_0x1320ab(0x1de),_0x1320ab(0x1de)))for(const _0x13de09 of _0x585b0a['content']){_0x13de09&&_0x4d5eb5['nDdlB'](_0x13de09[_0x1320ab(0x214)],_0x4d5eb5[_0x1320ab(0x1cd)])&&(_0x328821=_0x13de09[_0x1320ab(0x254)]);}else{const _0x5e0311=_0x138489[_0x4d5eb5[_0x1320ab(0x25f)](_0x138489[_0x1320ab(0x221)],0x1)];!message_util_1['MessageUtil']['isSame'](_0x5e0311,_0x142e24)&&_0x138489[_0x1320ab(0x198)](_0x142e24);}}const _0x53cd2d=_0x142e24?.[_0x1320ab(0x238)]['stopTool'];_0x53cd2d&&(_0x3f36dc=[]);_0x5468cb=_0x18ceef[_0x1320ab(0x1a7)](_0x5468cb,_0x3f36dc);const _0x440df6=_0x1a63d7[_0x1320ab(0x209)]();if(_0x440df6){if(_0x4d5eb5[_0x1320ab(0x1b1)](_0x4d5eb5['ZkQLu'],'OzGxp'))_0x5468cb=_0x5468cb[_0x1320ab(0x19c)](_0x440df6);else return!![];}return _0x1e6ed6=await retry_1['Retry'][_0x1320ab(0x228)]({'maxRetries':core_config_1['CoreConfig'][_0x1320ab(0x1c3)],'delayMs':0x1f4,'onMain':async()=>{const _0x2357bc=_0x1320ab;if(_0x4d5eb5[_0x2357bc(0x236)]!==_0x2357bc(0x1d3)){_0x1e6ed6=await _0x5468cb['invoke'](_0x138489);const _0x3b01d4=_0x1e6ed6[_0x2357bc(0x1c1)];return _0x1ee88a[_0x2357bc(0x1f7)](_0x3b01d4),_0x1e6ed6;}else _0xd0b452=!![],_0x28a49e[_0x2357bc(0x198)](_0x285d90);},'onWarn':(_0x1998c0,_0x40b3da,_0x437f66)=>{const _0x3e8feb=_0x1320ab;new session_logger_1[(_0x3e8feb(0x253))](_0x1ee88a[_0x3e8feb(0x1ca)]())[_0x3e8feb(0x240)]('Attempt\x20'+_0x1998c0+_0x3e8feb(0x1d6)+_0x40b3da+_0x3e8feb(0x1a4)+(_0x437f66?_0x437f66[_0x3e8feb(0x1aa)]:_0x4d5eb5[_0x3e8feb(0x1d2)]));},'shouldRetry':(_0x34f9ba,_0x2e40ef)=>{const _0x2de229=_0x1320ab;if(_0x4d5eb5[_0x2de229(0x22a)](_0x4d5eb5[_0x2de229(0x19b)],_0x4d5eb5[_0x2de229(0x19b)])){if(LlmRunner[_0x2de229(0x24d)](_0x34f9ba))return _0x138489[_0x2de229(0x1b3)](),_0x4d5eb5[_0x2de229(0x1eb)](_0x2e40ef,0x2)&&_0x138489['pop'](),_0x138489[_0x2de229(0x198)](new messages_1['HumanMessage']({'content':_0x4d5eb5[_0x2de229(0x24a)],'id':_0x1a63d7[_0x2de229(0x204)]()})),!![];else{if(_0x2de229(0x1b5)!==_0x4d5eb5[_0x2de229(0x1ff)])return![];else _0x566e9d[_0x2de229(0x198)](_0x792425);}}else{if(_0x522f35){const _0x24515b=_0x338d53[_0x2de229(0x252)](_0xa19885,arguments);return _0x58ce08=null,_0x24515b;}}},'onFinalError':_0x310ead=>{const _0x47adbe=_0x1320ab,_0x47c527={'ISaKo':'finishReason','mjtyv':_0x47adbe(0x266)};if(_0x4d5eb5[_0x47adbe(0x1f4)](_0x47adbe(0x1c5),_0x4d5eb5['WmBxA'])){let _0x1b6c79=_0x49bdd5[_0x47adbe(0x215)][_0x47c527[_0x47adbe(0x25a)]];if(!_0x1b6c79)_0x1b6c79=_0x174a10['response_metadata'][_0x47adbe(0x1ba)];else!_0x1b6c79&&(_0x1b6c79=_0x3cad14['response_metadata'][_0x47c527[_0x47adbe(0x22c)]]);return _0x1b6c79;}else throw new Error(_0x47adbe(0x1fb)+LlmRunner[_0x47adbe(0x21b)](_0x1e6ed6)+_0x47adbe(0x1a4)+(_0x310ead?_0x310ead['message']:_0x4d5eb5['yzQVj']));}}),await LlmRunner['onResponse'](_0x1ee88a,_0x1e6ed6,_0x254436);}static async[a9_0x147cc2(0x1ea)](_0x5f3bb4,_0x173ebb,_0x8a8946){const _0x39b79e=a9_0x147cc2,_0xfd28c9={'Vhobj':function(_0x22f9fc,_0xb37ea5){return _0x22f9fc===_0xb37ea5;},'EbxvP':function(_0x18c3b9,_0x525bc9){return _0x18c3b9===_0x525bc9;},'RmOIK':'text','SSRRf':_0x39b79e(0x1e6),'zOSxG':function(_0x1d0a40,_0x200225){return _0x1d0a40!==_0x200225;},'RpphS':_0x39b79e(0x271),'csKaU':function(_0x4de3a5,_0xd9b3e0){return _0x4de3a5>_0xd9b3e0;},'dozHc':function(_0x2cb7db,_0xf35812){return _0x2cb7db!==_0xf35812;},'Hqgxq':function(_0x6215da,_0x4df643){return _0x6215da===_0x4df643;},'nkDlk':_0x39b79e(0x1a5),'qwstp':_0x39b79e(0x1bf),'Inewj':_0x39b79e(0x1ae),'IjDPs':function(_0x541b33,_0x4538d2){return _0x541b33===_0x4538d2;},'CDqkG':_0x39b79e(0x224),'crDUN':_0x39b79e(0x267),'JtzCe':'CoGRj','ApYLj':_0x39b79e(0x218)};(0x0,verify_license_1[_0x39b79e(0x207)])(core_config_1['CoreConfig']['picoKey']);const _0x4bd95b=_0x5f3bb4[_0x39b79e(0x201)]();if(_0x4bd95b[_0x39b79e(0x212)]()){if(_0xfd28c9[_0x39b79e(0x1a8)](_0xfd28c9[_0x39b79e(0x1e8)],_0x39b79e(0x271))){let _0x4a8f3a=![];for(const _0x5cc2c2 of _0x219d78){_0xfd28c9['Vhobj'](_0x5cc2c2['type'],_0x39b79e(0x229))&&_0xfd28c9[_0x39b79e(0x1f1)](_0x15bf60['id'],_0x5cc2c2[_0x39b79e(0x1be)])&&(_0x4a8f3a=!![],_0xe1c98[_0x39b79e(0x198)](_0x5cc2c2));}if(!_0x4a8f3a){const _0x409c37=new _0x1a7bda['ToolMessageOK'](_0x27954f,_0x5d96e2);_0x2348bf[_0x39b79e(0x198)](_0x409c37);}}else return logic_runner_1[_0x39b79e(0x19e)][_0x39b79e(0x208)](_0x5f3bb4);}const _0x3585c7=_0x4bd95b[_0x39b79e(0x1ec)]();if(tool_util_1['ToolUtil'][_0x39b79e(0x203)](_0x173ebb)){let _0x54634b='';if(Array[_0x39b79e(0x1f9)](_0x173ebb?.[_0x39b79e(0x217)])&&_0xfd28c9['csKaU'](_0x173ebb?.[_0x39b79e(0x217)]?.[_0x39b79e(0x221)],0x1))for(const _0x4463cb of _0x173ebb['content']){_0xfd28c9['dozHc'](_0x39b79e(0x206),'jIAEh')?_0x4463cb&&_0xfd28c9[_0x39b79e(0x22d)](_0x4463cb[_0x39b79e(0x214)],_0xfd28c9[_0x39b79e(0x213)])&&(_0xfd28c9[_0x39b79e(0x1f1)](_0xfd28c9[_0x39b79e(0x25d)],_0xfd28c9['nkDlk'])?_0x54634b=_0x4463cb[_0x39b79e(0x254)]:_0x2c3e8c&&_0xfd28c9['EbxvP'](_0x53b925[_0x39b79e(0x214)],_0xfd28c9[_0x39b79e(0x213)])&&(_0xeaf6ee=_0x505290[_0xfd28c9['RmOIK']])):_0x7e76e3[_0x39b79e(0x1a3)](_0x1f6420[_0x39b79e(0x1f8)]);}const _0x2ef72f=await LlmRunner[_0x39b79e(0x239)](_0x4bd95b,_0x5f3bb4,_0x173ebb?.[_0x39b79e(0x1b8)]),_0x45d968=new message_util_2[(_0x39b79e(0x1c0))](_0x4bd95b,_0x173ebb[_0x39b79e(0x1b8)]);return _0x3585c7[_0x39b79e(0x198)](_0x45d968),LlmRunner[_0x39b79e(0x1c6)](_0x5f3bb4,_0x4bd95b,_0x54634b,_0x173ebb[_0x39b79e(0x1b8)],_0x2ef72f);}else{if(_0xfd28c9['qwstp']===_0xfd28c9['qwstp']){let _0x31b182;if(_0x8a8946)_0xfd28c9[_0x39b79e(0x1a8)](_0xfd28c9[_0x39b79e(0x1d4)],_0xfd28c9[_0x39b79e(0x1d4)])?_0x495a97=[]:_0x31b182=_0x8a8946+'\x0a'+(_0x173ebb?.[_0x39b79e(0x217)]??_0x173ebb);else{if(_0xfd28c9[_0x39b79e(0x25c)](_0xfd28c9[_0x39b79e(0x248)],_0xfd28c9[_0x39b79e(0x248)]))_0x31b182=_0x173ebb?.[_0x39b79e(0x217)]??_0x173ebb;else return _0x5700f5['toString']()['search']('(((.+)+)+)+$')[_0x39b79e(0x20f)]()[_0x39b79e(0x1c9)](_0x4bf2a8)['search'](KitjDR[_0x39b79e(0x235)]);}const _0x38b545=_0x4bd95b['onResponse'](_0x31b182);if(_0xfd28c9['EbxvP'](typeof _0x38b545,_0xfd28c9[_0x39b79e(0x22f)])){const _0xba5c38=_0x38b545;return await _0x5f3bb4[_0x39b79e(0x270)](_0xba5c38),await LlmRunner[_0x39b79e(0x208)](_0x5f3bb4,null,null);}else{if(_0xfd28c9[_0x39b79e(0x22d)](_0xfd28c9[_0x39b79e(0x1e0)],_0xfd28c9[_0x39b79e(0x227)]))_0x515e69[_0x39b79e(0x26e)]=_0x422dc6[_0x39b79e(0x26e)];else return _0x31b182=_0x38b545,_0x3585c7[_0x39b79e(0x198)](new messages_1[(_0x39b79e(0x202))]({'content':_0x31b182,'id':_0x4bd95b[_0x39b79e(0x204)]()})),_0x31b182;}}else _0x386982=_0x336fce[_0xfd28c9[_0x39b79e(0x213)]];}}static async[a9_0x147cc2(0x1c6)](_0x23f20a,_0x4c256d,_0x1a2fe2,_0x2b1229,_0x30f2c8){const _0x23ddd8=a9_0x147cc2,_0x4f193f={'CUecJ':_0x23ddd8(0x23d),'iokKy':function(_0x459521,_0x589d62){return _0x459521===_0x589d62;},'JVVUq':function(_0x352038,_0x515582){return _0x352038===_0x515582;},'Paksx':'XTdIg','OTWom':_0x23ddd8(0x216)},_0x146471=Array();for(const _0xc432a4 of _0x2b1229){let _0x2bac1d=![];for(const _0xe815db of _0x30f2c8){if(_0xe815db['type']===_0x23ddd8(0x229)&&_0x4f193f['iokKy'](_0xc432a4['id'],_0xe815db[_0x23ddd8(0x1be)])){if(_0x4f193f['JVVUq'](_0x4f193f['Paksx'],_0x4f193f[_0x23ddd8(0x22e)]))_0x2bac1d=!![],_0x146471[_0x23ddd8(0x198)](_0xe815db);else{const _0x3dabe2=_0x89f2d0[_0x23ddd8(0x238)][_0x4f193f[_0x23ddd8(0x219)]];if(_0x3dabe2)return _0x49cdaa[_0x23ddd8(0x198)](_0x48ffee),_0x11ce97[_0x23ddd8(0x217)];}}}if(!_0x2bac1d){const _0x2cd556=new message_util_2[(_0x23ddd8(0x234))](_0x4c256d,_0xc432a4);_0x146471['push'](_0x2cd556);}}const _0x1b32a0=_0x4c256d[_0x23ddd8(0x1ec)]();_0x1b32a0[_0x23ddd8(0x198)](..._0x146471);for(const _0x368a65 of _0x30f2c8){if(_0x4f193f[_0x23ddd8(0x258)](_0x368a65['type'],'ai')){const _0x525618=_0x368a65['additional_kwargs'][_0x23ddd8(0x23d)];if(_0x525618)return _0x1b32a0[_0x23ddd8(0x198)](_0x368a65),_0x368a65[_0x23ddd8(0x217)];}}for(const _0x2d1265 of _0x30f2c8){if(_0x4f193f[_0x23ddd8(0x258)](_0x2d1265[_0x23ddd8(0x214)],_0x4f193f['OTWom']))return await LlmRunner[_0x23ddd8(0x208)](_0x23f20a,_0x2d1265,_0x1a2fe2);}return await LlmRunner[_0x23ddd8(0x208)](_0x23f20a,null,_0x1a2fe2);}static async[a9_0x147cc2(0x239)](_0x5ae83c,_0x2954ef,_0x2cd5c3){const _0x2a34c1=a9_0x147cc2,_0x1e4a20={'ddfEM':_0x2a34c1(0x1aa),'OQnlT':function(_0x5e14c8,_0x21a4a9){return _0x5e14c8>=_0x21a4a9;},'Cwspw':_0x2a34c1(0x21e),'GFJZK':function(_0x512ad3,_0x5e61bb){return _0x512ad3!==_0x5e61bb;},'tdiOC':_0x2a34c1(0x232),'wiXXc':_0x2a34c1(0x26a),'pGApU':function(_0x57ba8e,_0x224634){return _0x57ba8e===_0x224634;},'XIdNF':_0x2a34c1(0x1ad),'chEiD':function(_0x1158b3,_0x317406){return _0x1158b3===_0x317406;},'CMyfW':'gkGYc','TmocR':'LgeRC','JPkUO':_0x2a34c1(0x267),'TfZMe':_0x2a34c1(0x1f5),'HRObE':function(_0x59e7cf,_0x221248){return _0x59e7cf in _0x221248;},'RyCGl':_0x2a34c1(0x233),'OuVwo':function(_0x3e6e69,_0x101da3){return _0x3e6e69!==_0x101da3;},'xQiVE':_0x2a34c1(0x251),'beXqz':_0x2a34c1(0x229),'qbiHN':function(_0x3fb8d4,_0x1dab10){return _0x3fb8d4!==_0x1dab10;},'IYegy':_0x2a34c1(0x225),'qcNKF':_0x2a34c1(0x197),'Xkxhh':_0x2a34c1(0x24f),'szhAl':function(_0xad05f1,_0x1c34e9){return _0xad05f1!==_0x1c34e9;},'HGAEb':_0x2a34c1(0x1e4)},_0x13a05b=new Array();for(const _0x23deab of _0x2cd5c3){if(_0x1e4a20[_0x2a34c1(0x222)](_0x1e4a20[_0x2a34c1(0x250)],_0x1e4a20[_0x2a34c1(0x1d7)])){let _0x1e7eba;if(_0x1e4a20[_0x2a34c1(0x1d9)](typeof _0x5ae83c[_0x23deab[_0x2a34c1(0x1b0)]],_0x2a34c1(0x267))){const _0x5538db=await _0x5ae83c[_0x23deab[_0x2a34c1(0x1b0)]](_0x23deab);if(typeof _0x5538db===_0x1e4a20['XIdNF'])_0x1e4a20['chEiD'](_0x1e4a20['CMyfW'],_0x1e4a20[_0x2a34c1(0x20e)])?_0x401e85[_0x2a34c1(0x198)](_0xe37e86[_0x1e4a20[_0x2a34c1(0x1dd)]]):(await _0x2954ef[_0x2a34c1(0x20c)](_0x5538db),_0x13a05b[_0x2a34c1(0x198)](new message_util_2[(_0x2a34c1(0x234))](_0x5ae83c,_0x23deab)));else{if(_0x1e4a20[_0x2a34c1(0x1d9)](typeof _0x5538db,_0x1e4a20[_0x2a34c1(0x257)])){if(_0x2a34c1(0x1f5)!==_0x1e4a20[_0x2a34c1(0x19a)])return _0x2a34c1(0x1ef);else await _0x2954ef[_0x2a34c1(0x270)](_0x5538db),_0x13a05b['push'](new message_util_2[(_0x2a34c1(0x234))](_0x5ae83c,_0x23deab));}else{if(_0x5538db&&_0x1e4a20[_0x2a34c1(0x1b2)](_0x1e4a20[_0x2a34c1(0x1d1)],_0x5538db)){let _0xcd3af9;if(_0x1e4a20[_0x2a34c1(0x1d9)](typeof _0x5538db[_0x2a34c1(0x233)],_0x1e4a20[_0x2a34c1(0x1bd)])){if(_0x1e4a20[_0x2a34c1(0x1fe)](_0x1e4a20[_0x2a34c1(0x220)],_0x2a34c1(0x251)))return _0x31343f[_0x2a34c1(0x24d)](_0x19fb0d)?(_0xb9ddf[_0x2a34c1(0x1b3)](),_0x1e4a20[_0x2a34c1(0x21c)](_0x2cf8b4,0x2)&&_0x44a21a[_0x2a34c1(0x1b3)](),_0x1f54f1[_0x2a34c1(0x198)](new _0x17123a[(_0x2a34c1(0x246))]({'content':_0x1e4a20[_0x2a34c1(0x1ee)],'id':_0x271b97[_0x2a34c1(0x204)]()})),!![]):![];else _0xcd3af9=await _0x2954ef['activateByName'](_0x5538db[_0x2a34c1(0x233)]);}else _0xcd3af9=await _0x2954ef[_0x2a34c1(0x270)](_0x5538db['step']);_0x5538db[_0x2a34c1(0x1fd)]&&_0xcd3af9[_0x2a34c1(0x1a3)]({'_prompt':_0x5538db['prompt']}),_0x5538db[_0x2a34c1(0x1f8)]&&_0xcd3af9[_0x2a34c1(0x1a3)](_0x5538db[_0x2a34c1(0x1f8)]),_0x5538db[_0x2a34c1(0x26e)]&&(_0xcd3af9[_0x2a34c1(0x26e)]=_0x5538db['contentType']),_0x5538db[_0x1e4a20[_0x2a34c1(0x1cc)]]?_0x1e7eba=new message_util_1[(_0x2a34c1(0x1a1))](_0xcd3af9,_0x23deab,_0x5538db[_0x1e4a20[_0x2a34c1(0x1cc)]]):_0x1e7eba=new message_util_2[(_0x2a34c1(0x234))](_0x5ae83c,_0x23deab),_0x13a05b[_0x2a34c1(0x198)](_0x1e7eba),_0x5538db[_0x1e4a20['ddfEM']]&&_0x13a05b[_0x2a34c1(0x198)](_0x5538db[_0x1e4a20['ddfEM']]);}}}}else{if(_0x1e4a20[_0x2a34c1(0x26d)](_0x1e4a20[_0x2a34c1(0x261)],_0x1e4a20[_0x2a34c1(0x20d)])){if(_0x5ae83c[_0x2a34c1(0x23f)](_0x23deab['name'])){if(_0x1e4a20[_0x2a34c1(0x241)]===_0x2a34c1(0x21a))throw new _0x2aaad4(_0x2a34c1(0x223)+_0x5e02f7[_0x2a34c1(0x1c9)][_0x2a34c1(0x1b0)]+_0x2a34c1(0x22b)+_0x3593d1+_0x2a34c1(0x1a6)+_0x50323a+'\x27.');else new session_logger_1[(_0x2a34c1(0x253))](_0x2954ef[_0x2a34c1(0x1ca)]())[_0x2a34c1(0x240)](_0x2a34c1(0x237)+_0x23deab['name']),_0x1e7eba=new message_util_2[(_0x2a34c1(0x234))](_0x5ae83c,_0x23deab);}else{if(_0x1e4a20['szhAl'](_0x1e4a20[_0x2a34c1(0x24c)],_0x1e4a20[_0x2a34c1(0x24c)])){if(_0x37431e[_0x2a34c1(0x214)]==='ai'){const _0x5a67c7=_0x3c5adc[_0x2a34c1(0x238)][_0x2a34c1(0x23d)];if(_0x5a67c7)return _0x5e9143[_0x2a34c1(0x198)](_0x5562a6),_0x119227['content'];}}else new session_logger_1['SessionLogger'](_0x2954ef[_0x2a34c1(0x1ca)]())['warn'](_0x2a34c1(0x1a2)+_0x23deab[_0x2a34c1(0x1b0)]),_0x1e7eba=new message_util_1[(_0x2a34c1(0x1a1))](_0x5ae83c,_0x23deab,_0x2a34c1(0x245)+_0x23deab[_0x2a34c1(0x1b0)]);}_0x13a05b[_0x2a34c1(0x198)](_0x1e7eba);}else return _0x39a512[_0x2a34c1(0x198)](_0x25521c),_0x2dd45b[_0x2a34c1(0x217)];}}else _0x20a830=_0x2ef74?.['content']??_0x34825d;}return _0x13a05b;}static[a9_0x147cc2(0x24d)](_0x2607c9){const _0x471fa8=a9_0x147cc2,_0x1f7941={'UhKaE':'stop_reason','XtvCs':'VrBTH','hacdl':function(_0x919a37,_0x3e7e07){return _0x919a37===_0x3e7e07;},'bpgcr':_0x471fa8(0x254),'qmLeN':_0x471fa8(0x25b)};if(tool_util_1[_0x471fa8(0x20b)][_0x471fa8(0x1dc)](_0x2607c9)){if(_0x1f7941[_0x471fa8(0x1da)]!==_0x1f7941[_0x471fa8(0x1da)])_0x3d87eb=new _0x1e87e8['ToolMessageOK'](_0x3b2a4c,_0x1ba895);else{if(!_0x2607c9?.[_0x471fa8(0x217)]||_0x2607c9[_0x471fa8(0x217)][0x0]&&_0x1f7941[_0x471fa8(0x19d)](_0x2607c9[_0x471fa8(0x217)][0x0][_0x1f7941[_0x471fa8(0x21d)]],'')){if(_0x1f7941[_0x471fa8(0x19d)](_0x1f7941[_0x471fa8(0x26b)],'anWIz'))return!![];else _0x3d2293=_0x1e0b0e['response_metadata'][_0x1f7941['UhKaE']];}}}return![];}static['getReason'](_0x34a2bd){const _0x16c3fb=a9_0x147cc2,_0x4bd705={'AvQUI':function(_0x5ea641,_0x3e3035){return _0x5ea641===_0x3e3035;},'lDHpI':_0x16c3fb(0x1b6),'VlBZM':_0x16c3fb(0x1f3),'qBWKY':_0x16c3fb(0x230),'zFDQs':function(_0x4a1b7f,_0x24e5f0){return _0x4a1b7f===_0x24e5f0;},'aCedJ':_0x16c3fb(0x1af),'WSghY':_0x16c3fb(0x1c8),'YzURt':_0x16c3fb(0x266)};if(_0x34a2bd?.['response_metadata']){if(_0x4bd705[_0x16c3fb(0x1d0)](_0x4bd705[_0x16c3fb(0x211)],_0x4bd705[_0x16c3fb(0x1d8)])){const _0x37e524=_0x4d6abe['apply'](_0x364b6c,arguments);return _0x121194=null,_0x37e524;}else{let _0x1f0ff3=_0x34a2bd[_0x16c3fb(0x215)][_0x4bd705[_0x16c3fb(0x199)]];if(!_0x1f0ff3)_0x1f0ff3=_0x34a2bd[_0x16c3fb(0x215)][_0x16c3fb(0x1ba)];else!_0x1f0ff3&&(_0x4bd705[_0x16c3fb(0x1bb)](_0x4bd705[_0x16c3fb(0x23e)],_0x4bd705[_0x16c3fb(0x26c)])?_0x3e633c=_0x401d33+'\x0a'+(_0x841f1?.[_0x16c3fb(0x217)]??_0x415cd2):_0x1f0ff3=_0x34a2bd[_0x16c3fb(0x215)][_0x4bd705[_0x16c3fb(0x1fa)]]);return _0x1f0ff3;}}else return _0x16c3fb(0x1ef);}}exports[a9_0x147cc2(0x260)]=LlmRunner;
1
+ const a9_0x37b2f5=a9_0x5061;(function(_0x17a2ba,_0x267c2f){const _0x30017f=a9_0x5061,_0x378e65=_0x17a2ba();while(!![]){try{const _0x2ce658=-parseInt(_0x30017f(0x1b3))/0x1*(-parseInt(_0x30017f(0x175))/0x2)+parseInt(_0x30017f(0x153))/0x3*(-parseInt(_0x30017f(0x168))/0x4)+parseInt(_0x30017f(0x1c2))/0x5*(-parseInt(_0x30017f(0x1ca))/0x6)+-parseInt(_0x30017f(0x178))/0x7+-parseInt(_0x30017f(0x16e))/0x8*(parseInt(_0x30017f(0x152))/0x9)+-parseInt(_0x30017f(0x1e9))/0xa*(-parseInt(_0x30017f(0x193))/0xb)+parseInt(_0x30017f(0x1a6))/0xc;if(_0x2ce658===_0x267c2f)break;else _0x378e65['push'](_0x378e65['shift']());}catch(_0x16b5ed){_0x378e65['push'](_0x378e65['shift']());}}}(a9_0x4867,0x1976b));function a9_0x5061(_0x1185b6,_0x3bc7bb){const _0x4b4fd7=a9_0x4867();return a9_0x5061=function(_0x2b07fb,_0x36d5ad){_0x2b07fb=_0x2b07fb-0x13b;let _0x486716=_0x4b4fd7[_0x2b07fb];return _0x486716;},a9_0x5061(_0x1185b6,_0x3bc7bb);}const a9_0x36d5ad=(function(){const _0x1c188f=a9_0x5061,_0x4773f1={'kVgpj':_0x1c188f(0x206),'VhVVf':function(_0x3db82f,_0x38f727){return _0x3db82f===_0x38f727;},'sQUdw':_0x1c188f(0x1e7),'HsrCU':function(_0x197355,_0x4fcd49){return _0x197355!==_0x4fcd49;},'aSBld':_0x1c188f(0x16a)};let _0x1e3b9d=!![];return function(_0x153395,_0xd30020){const _0x526b39=_0x1c188f,_0x5cfa42={'WqQqq':_0x4773f1[_0x526b39(0x212)],'vdKds':_0x526b39(0x1f6),'hgIfr':function(_0x494134,_0x57d74c){return _0x4773f1['VhVVf'](_0x494134,_0x57d74c);},'nCglT':_0x4773f1['sQUdw']};if(_0x4773f1[_0x526b39(0x1df)](_0x4773f1[_0x526b39(0x1a9)],_0x4773f1[_0x526b39(0x1a9)])){let _0x541a2d=_0x3f13c9['response_metadata'][_0x526b39(0x1b4)];if(!_0x541a2d)_0x541a2d=_0x2687ec['response_metadata'][_0x5cfa42[_0x526b39(0x179)]];else!_0x541a2d&&(_0x541a2d=_0x413fe6[_0x526b39(0x141)][_0x5cfa42[_0x526b39(0x1d7)]]);return _0x541a2d;}else{const _0x36016b=_0x1e3b9d?function(){const _0x3018b3=_0x526b39;if(_0x5cfa42[_0x3018b3(0x17d)](_0x5cfa42['nCglT'],_0x5cfa42[_0x3018b3(0x1cd)])){if(_0xd30020){const _0x10b42e=_0xd30020[_0x3018b3(0x170)](_0x153395,arguments);return _0xd30020=null,_0x10b42e;}}else _0x2705ba=_0x3fdce6+'\x0a'+(_0x4d0a77?.[_0x3018b3(0x21a)]??_0x3d4a45);}:function(){};return _0x1e3b9d=![],_0x36016b;}};}()),a9_0x2b07fb=a9_0x36d5ad(this,function(){const _0x2adef1=a9_0x5061,_0x5aac35={'uRKqR':_0x2adef1(0x143)};return a9_0x2b07fb[_0x2adef1(0x155)]()['search'](_0x2adef1(0x143))[_0x2adef1(0x155)]()['constructor'](a9_0x2b07fb)[_0x2adef1(0x1fc)](_0x5aac35[_0x2adef1(0x1e8)]);});a9_0x2b07fb();'use strict';Object['defineProperty'](exports,a9_0x37b2f5(0x19a),{'value':!![]}),exports[a9_0x37b2f5(0x1c6)]=void 0x0;const messages_1=require('@langchain/core/messages'),message_util_1=require(a9_0x37b2f5(0x1d3)),tool_util_1=require(a9_0x37b2f5(0x1fd)),session_logger_1=require(a9_0x37b2f5(0x157)),core_config_1=require('../configs/core-config'),message_util_2=require(a9_0x37b2f5(0x1d3)),logic_runner_1=require(a9_0x37b2f5(0x176)),retry_1=require('../utils/retry'),verify_license_1=require(a9_0x37b2f5(0x20b)),lodash_1=require(a9_0x37b2f5(0x13b));function a9_0x4867(){const _0x46e58d=['WDJsb','suXdI','1788246oiQbGB','1005AjEBfZ','iBKRD','toString','supportsTemperatureOverride','../session/session-logger','phVsP','DirXO','direct','MessageUtil','withStructuredOutput','SystemMessage','getName','getModel','name','Lmehi','replaceStep','mpSyO','xxprf','zyXRC','SeRbF','function','1612aeccRI','takKs','TBOto','chqpQ','.\x20Error:','tool','8bTdFpT','ZtWnf','apply','zifxW','dbVOP','string','hHxhZ','46EypGBc','./logic-runner','LOyWJ','1219666DjLCVN','WqQqq','getPrompt','UIOKO','SnbIZ','hgIfr','NkNwT','Ckmaq','DYiQM','isSame','length','qWBvL','hSeQJ','createInstance','orSzW','gwOyH','HumanMessage','qXstq','hasNoTool','nqQvw','state','invoke','tvvXj','VJYCb','send','jJCIa','Ignoring\x20temperature\x20override\x20for\x20model\x20\x27','457996STXWpQ','push','Follow\x20system\x20prompt\x20and\x20respond\x20properly.','FzJIR','hasTool','tool_calls','dMSXC','__esModule','kRaBr','stopTool','messageStep','MXGws','eDeTx','pop','activate','SHoCI','merge','NLbqb','rasUx','5697240bpjZgb','number','isToolAvailable','aSBld','OfZxg','callTool','FyMBD','ToolMessageInfo','system','PHcay','LLM\x20call\x20failed.\x20Reason:','mKayt','getSessionDoc','3831jLnKVv','finishReason','Dyfwr','human','goTry','getMemory','ToolUtil','NWHnr','GPDxB','LifJW','onResponse','cOghv','step','Flow\x20\x27','bWKaI','5xeSkCE','bwlaz','peek','cmQqs','LlmRunner','nssdO','saveState','LLM\x20hallucinates\x20a\x20non-existing\x20tool:\x20','703146XrtmDf','xXocB','contentType','nCglT','khEgx','type','mGDGi','bYbAc','EYjYT','../utils/message-util','cDFYC','Step\x20\x27','oajyy','vdKds','UFTTs','unknown','nQnSZ','TOVHb','\x20of\x20','Retry','pXFVH','HsrCU','qVYJI','onCrossing','Oxjrl','vqYHk','QAxcc','isBotMessageEmpty','LAKWX','cchtW','uRKqR','40CYgyKn','cMBOi','getModelParams','EeYJY','qUaVa','ToolMessageOK','saveSession','OgCKZ','tallyToken','CHErT','constructor','\x27\x20model\x20params\x20target\x20\x27','text','finish_reason','isLogic','genMessageId','verifyLicense','xcySL','SdjaO','search','../utils/tool-util','ofqjC','temperature','useTools','getFlowEngine','OcAsL','GNdNV','usage_metadata','fkXjS','stop_reason','additional_kwargs','xJiIz','HANug','getActiveStep','../utils/verify-license','ZjMnt','picoKey','EcQeO','LogicRunner','message','hallucinated\x20tool:\x20','kVgpj','htzLL','activateByName','uYjBM','tool_call_id','TOjZf','\x27\x20does\x20not\x20match\x20resolved\x20model\x20\x27','UbTJm','content','auLER','Attempt\x20','structOutputSchema','lodash','AVmOi','AIMessage','ABwGO','prompt','MrFii','response_metadata','nJLNu','(((.+)+)+)+$','ykvbh','BeQfN','warn','csmbk','missing\x20tool\x20handler:\x20','IRGxe','ArvQe','TihgF','SessionLogger','obtainTools','getReason','rohxi'];a9_0x4867=function(){return _0x46e58d;};return a9_0x4867();}class LlmRunner{static async['send'](_0x4be38e,_0x1e97d2,_0x4d5568){const _0x2c0637=a9_0x37b2f5,_0x24eaeb={'EeYJY':function(_0x390433,_0xb96e2e){return _0x390433>=_0xb96e2e;},'jJCIa':_0x2c0637(0x195),'TOVHb':function(_0x1e1cbd,_0x27f11e){return _0x1e1cbd===_0x27f11e;},'pBLBv':_0x2c0637(0x1f5),'NWHnr':_0x2c0637(0x1f0),'nQnSZ':_0x2c0637(0x1d9),'Oyurn':function(_0x474a18,_0x225210){return _0x474a18>=_0x225210;},'TOjZf':function(_0x13ed75,_0x5c3328){return _0x13ed75===_0x5c3328;},'UFTTs':function(_0x28e3aa,_0x329a7a){return _0x28e3aa!==_0x329a7a;},'bqJnJ':_0x2c0637(0x1a5),'Lmehi':function(_0x3bf5ce,_0x38f2ff){return _0x3bf5ce!==_0x38f2ff;},'rohxi':_0x2c0637(0x166),'ofqjC':_0x2c0637(0x1a7),'Ckmaq':function(_0x4ac826,_0x468df3){return _0x4ac826!==_0x468df3;},'LAKWX':'uzHLl','PHcay':_0x2c0637(0x16b),'hHxhZ':_0x2c0637(0x1ed),'phVsP':function(_0x5bf476,_0x5ebdb2){return _0x5bf476!==_0x5ebdb2;},'ykvbh':_0x2c0637(0x1ae),'OfZxg':function(_0x8d8fba,_0x4e6b9c){return _0x8d8fba!=_0x4e6b9c;},'ZtWnf':'drFAT','ypMXE':_0x2c0637(0x1ce),'xXocB':function(_0x131158,_0x205582){return _0x131158-_0x205582;}};(0x0,verify_license_1[_0x2c0637(0x1f9)])(core_config_1['CoreConfig'][_0x2c0637(0x20d)]);let _0x10b765;const _0x37dfba=_0x4be38e[_0x2c0637(0x20a)](),_0x3d9c19=_0x37dfba[_0x2c0637(0x15f)](),_0x4b9785=_0x4be38e[_0x2c0637(0x201)]()['getModel'](_0x3d9c19),_0x28e78e=_0x4be38e['getModelParamsModelName']();if(_0x24eaeb[_0x2c0637(0x217)](_0x3d9c19,_0x4be38e['getModel']())&&_0x28e78e&&_0x24eaeb[_0x2c0637(0x1d8)](_0x28e78e,_0x3d9c19)){if(_0x24eaeb[_0x2c0637(0x1d8)](_0x24eaeb['bqJnJ'],_0x2c0637(0x208)))throw new Error(_0x2c0637(0x1c0)+_0x4be38e[_0x2c0637(0x1f3)][_0x2c0637(0x160)]+_0x2c0637(0x1f4)+_0x28e78e+_0x2c0637(0x218)+_0x3d9c19+'\x27.');else return!![];}const _0x425585=_0x37dfba['getModelParamsModelName']();if(_0x425585&&_0x24eaeb[_0x2c0637(0x1d8)](_0x425585,_0x3d9c19)){if(_0x24eaeb[_0x2c0637(0x161)](_0x24eaeb[_0x2c0637(0x14f)],_0x24eaeb[_0x2c0637(0x14f)]))return![];else throw new Error(_0x2c0637(0x1d5)+_0x37dfba[_0x2c0637(0x15e)]()+_0x2c0637(0x1f4)+_0x425585+'\x27\x20does\x20not\x20match\x20resolved\x20model\x20\x27'+_0x3d9c19+'\x27.');}const _0x12e41b=_0x24eaeb[_0x2c0637(0x1db)](_0x37dfba[_0x2c0637(0x15f)](),_0x4be38e[_0x2c0637(0x15f)]())?(0x0,lodash_1[_0x2c0637(0x1a3)])({},_0x4be38e['getModelParams'](),_0x37dfba['getModelParams']()):(0x0,lodash_1[_0x2c0637(0x1a3)])({},_0x37dfba[_0x2c0637(0x1eb)]()),_0x34456f=(0x0,lodash_1['merge'])({},_0x12e41b);_0x24eaeb[_0x2c0637(0x1db)](typeof _0x34456f['temperature'],_0x24eaeb[_0x2c0637(0x1fe)])&&!_0x4b9785[_0x2c0637(0x156)]()&&(new session_logger_1['SessionLogger'](_0x4be38e[_0x2c0637(0x1b2)]())['warn'](_0x2c0637(0x192)+_0x4b9785[_0x2c0637(0x160)]+'\x27.'),delete _0x34456f['temperature']);const _0xf50176=_0x37dfba[_0x2c0637(0x1b8)]();if(_0x1e97d2){if(_0x24eaeb[_0x2c0637(0x17f)](_0x24eaeb[_0x2c0637(0x1e6)],_0x24eaeb[_0x2c0637(0x1e6)]))_0x463ed8=_0x1e0d5f[_0x2c0637(0x141)]['stop_reason'];else{const _0x35a488=message_util_1['MessageUtil']['messageStep'](_0x1e97d2['id']);if(_0x35a488!=_0x37dfba[_0x2c0637(0x15e)]()){if(_0x24eaeb[_0x2c0637(0x217)](_0x24eaeb[_0x2c0637(0x1af)],_0x2c0637(0x16b)))await _0x4be38e[_0x2c0637(0x1ef)](),message_util_1[_0x2c0637(0x15b)][_0x2c0637(0x162)](_0x1e97d2,_0x37dfba),_0x1e97d2=_0x37dfba[_0x2c0637(0x1e1)](_0x1e97d2,_0x35a488);else{const _0x28133e=_0x4c6c80[_0x3096e4[_0x2c0637(0x182)]-0x1];!_0x1b5dd3['MessageUtil'][_0x2c0637(0x181)](_0x28133e,_0x48d655)&&_0x58ae46[_0x2c0637(0x194)](_0x958a33);}}}}else{if(_0x24eaeb[_0x2c0637(0x174)]!==_0x2c0637(0x18e)){const _0x2cbae4=message_util_1['MessageUtil'][_0x2c0637(0x1c4)](_0xf50176);if(_0x2cbae4&&_0x24eaeb[_0x2c0637(0x158)](_0x2cbae4['type'],_0x24eaeb[_0x2c0637(0x144)])){const _0x50debd=message_util_1['MessageUtil'][_0x2c0637(0x19d)](_0x2cbae4['id']);_0x24eaeb[_0x2c0637(0x1aa)](_0x50debd,_0x37dfba[_0x2c0637(0x15e)]())&&(await _0x4be38e['saveSession'](),_0x1e97d2=_0x37dfba[_0x2c0637(0x1e1)](_0x1e97d2,_0x50debd));}else{if(_0x24eaeb[_0x2c0637(0x16f)]!==_0x2c0637(0x14b))await _0x4be38e['saveSession'](),_0x1e97d2=_0x37dfba['onCrossing'](_0x1e97d2);else return _0x3d7824[_0x2c0637(0x1a0)](),_0x24eaeb[_0x2c0637(0x1ec)](_0x19946f,0x2)&&_0x38a632[_0x2c0637(0x1a0)](),_0x1cd3cc['push'](new _0x2a1528[(_0x2c0637(0x188))]({'content':_0x24eaeb[_0x2c0637(0x191)],'id':_0x1c1d97[_0x2c0637(0x1f8)]()})),!![];}}else _0x3005c7['saveState']({'_prompt':_0x50965a['prompt']});}if(_0x37dfba[_0x2c0637(0x1f7)]()){if(_0x2c0637(0x150)!==_0x24eaeb['ypMXE'])return logic_runner_1['LogicRunner'][_0x2c0637(0x190)](_0x4be38e);else{if(!_0x195cde?.[_0x2c0637(0x21a)]||_0x235759[_0x2c0637(0x21a)][0x0]&&_0x24eaeb[_0x2c0637(0x1db)](_0x2ab80d['content'][0x0][_0x24eaeb['pBLBv']],''))return!![];}}let _0xa9bcca=_0x4b9785[_0x2c0637(0x185)](_0x34456f),_0x1df2cf=_0x37dfba[_0x2c0637(0x14d)]()??[];const _0x5ec2a3=await _0x37dfba[_0x2c0637(0x17a)]();_0xf50176[0x0]=new messages_1[(_0x2c0637(0x15d))]({'content':_0x5ec2a3,'id':_0x37dfba[_0x2c0637(0x1f8)]()});if(_0x1e97d2){const _0x20e224=_0xf50176[_0x24eaeb[_0x2c0637(0x1cb)](_0xf50176[_0x2c0637(0x182)],0x1)];!message_util_1[_0x2c0637(0x15b)][_0x2c0637(0x181)](_0x20e224,_0x1e97d2)&&_0xf50176['push'](_0x1e97d2);}const _0x19a3bb=_0x1e97d2?.['additional_kwargs'][_0x2c0637(0x19c)];_0x19a3bb&&(_0x1df2cf=[]);_0xa9bcca=_0x4b9785[_0x2c0637(0x200)](_0xa9bcca,_0x1df2cf);const _0x3253d5=_0x37dfba[_0x2c0637(0x21d)]();return _0x3253d5&&(_0xa9bcca=_0xa9bcca['withStructuredOutput'](_0x3253d5)),_0x10b765=await retry_1[_0x2c0637(0x1dd)][_0x2c0637(0x1b7)]({'maxRetries':core_config_1['CoreConfig']['llmRetry'],'delayMs':0x1f4,'onMain':async()=>{const _0x322294=_0x2c0637;_0x10b765=await _0xa9bcca[_0x322294(0x18d)](_0xf50176);const _0x4e7523=_0x10b765[_0x322294(0x204)];return _0x4be38e[_0x322294(0x1f1)](_0x4e7523),_0x10b765;},'onWarn':(_0xc01242,_0xd7a24a,_0x33f54d)=>{const _0x56c3e1=_0x2c0637;_0x24eaeb[_0x56c3e1(0x1db)](_0x24eaeb[_0x56c3e1(0x1ba)],_0x56c3e1(0x1f0))?new session_logger_1[(_0x56c3e1(0x14c))](_0x4be38e[_0x56c3e1(0x1b2)]())[_0x56c3e1(0x146)](_0x56c3e1(0x21c)+_0xc01242+_0x56c3e1(0x1dc)+_0xd7a24a+_0x56c3e1(0x16c)+(_0x33f54d?_0x33f54d[_0x56c3e1(0x210)]:_0x24eaeb[_0x56c3e1(0x1da)])):_0x107aa7[_0x56c3e1(0x1a0)]();},'shouldRetry':(_0xd078e3,_0xb4a5cb)=>{const _0x4a54cd=_0x2c0637;return LlmRunner[_0x4a54cd(0x1e5)](_0xd078e3)?(_0xf50176[_0x4a54cd(0x1a0)](),_0x24eaeb['Oyurn'](_0xb4a5cb,0x2)&&_0xf50176['pop'](),_0xf50176['push'](new messages_1[(_0x4a54cd(0x188))]({'content':_0x24eaeb[_0x4a54cd(0x191)],'id':_0x37dfba[_0x4a54cd(0x1f8)]()})),!![]):![];},'onFinalError':_0x5f399f=>{const _0x26126b=_0x2c0637;throw new Error(_0x26126b(0x1b0)+LlmRunner['getReason'](_0x10b765)+_0x26126b(0x16c)+(_0x5f399f?_0x5f399f[_0x26126b(0x210)]:'unknown'));}}),await LlmRunner[_0x2c0637(0x1bd)](_0x4be38e,_0x10b765,_0x4d5568);}static async['onResponse'](_0x3bcd13,_0x30d9a2,_0xf02895){const _0x23537b=a9_0x37b2f5,_0x598cc6={'qVYJI':_0x23537b(0x16d),'gwOyH':function(_0x54625a,_0x137eac){return _0x54625a===_0x137eac;},'LOyWJ':_0x23537b(0x1cf),'xxprf':_0x23537b(0x1f5),'EcQeO':'LYtpF','uYjBM':_0x23537b(0x196),'dMSXC':function(_0x132a6e,_0x33db09){return _0x132a6e>_0x33db09;},'zifxW':function(_0x559cda,_0x31e5ea){return _0x559cda===_0x31e5ea;},'zyXRC':'xPryY','eDeTx':function(_0x41220f,_0x5e28ce){return _0x41220f===_0x5e28ce;},'DirXO':function(_0x4af039,_0xee72f8){return _0x4af039!==_0xee72f8;},'cMBOi':_0x23537b(0x167)};(0x0,verify_license_1[_0x23537b(0x1f9)])(core_config_1['CoreConfig']['picoKey']);const _0x46c7fe=_0x3bcd13[_0x23537b(0x20a)]();if(_0x46c7fe[_0x23537b(0x1f7)]()){if(_0x598cc6[_0x23537b(0x20e)]===_0x598cc6[_0x23537b(0x215)])_0x394a88=new _0x8842d1[(_0x23537b(0x1ad))](_0x29c17b,_0x478e13,_0x501c1b[_0x598cc6[_0x23537b(0x1e0)]]);else return logic_runner_1[_0x23537b(0x20f)][_0x23537b(0x190)](_0x3bcd13);}const _0x35b6da=_0x46c7fe[_0x23537b(0x1b8)]();if(tool_util_1[_0x23537b(0x1b9)][_0x23537b(0x197)](_0x30d9a2)){let _0x258a57='';if(Array['isArray'](_0x30d9a2?.['content'])&&_0x598cc6[_0x23537b(0x199)](_0x30d9a2?.['content']?.[_0x23537b(0x182)],0x1)){if(_0x598cc6[_0x23537b(0x171)](_0x598cc6[_0x23537b(0x165)],_0x598cc6[_0x23537b(0x165)]))for(const _0x3510af of _0x30d9a2[_0x23537b(0x21a)]){_0x3510af&&_0x598cc6[_0x23537b(0x19f)](_0x3510af[_0x598cc6['LOyWJ']],_0x598cc6['xxprf'])&&(_0x598cc6[_0x23537b(0x159)](_0x23537b(0x21b),_0x23537b(0x1f2))?_0x258a57=_0x3510af[_0x23537b(0x1f5)]:(_0x90db9b=!![],_0x82c428['push'](_0x130106)));}else for(const _0xdbfa39 of _0x356d5a[_0x23537b(0x21a)]){_0xdbfa39&&_0x598cc6[_0x23537b(0x187)](_0xdbfa39[_0x598cc6[_0x23537b(0x177)]],_0x598cc6[_0x23537b(0x164)])&&(_0x22b22b=_0xdbfa39[_0x598cc6[_0x23537b(0x164)]]);}}const _0x557c36=await LlmRunner[_0x23537b(0x1ab)](_0x46c7fe,_0x3bcd13,_0x30d9a2?.[_0x23537b(0x198)]),_0x4cffea=new message_util_2['ToolCallMessage'](_0x46c7fe,_0x30d9a2[_0x23537b(0x198)]);return _0x35b6da[_0x23537b(0x194)](_0x4cffea),LlmRunner['onToolResponseMessages'](_0x3bcd13,_0x46c7fe,_0x258a57,_0x30d9a2['tool_calls'],_0x557c36);}else{let _0x480135;_0xf02895?_0x480135=_0xf02895+'\x0a'+(_0x30d9a2?.[_0x23537b(0x21a)]??_0x30d9a2):_0x480135=_0x30d9a2?.[_0x23537b(0x21a)]??_0x30d9a2;const _0x1366ec=_0x46c7fe[_0x23537b(0x1bd)](_0x480135);if(_0x598cc6[_0x23537b(0x171)](typeof _0x1366ec,_0x598cc6[_0x23537b(0x1ea)])){const _0x2eb539=_0x1366ec;return await _0x3bcd13['activate'](_0x2eb539),await LlmRunner[_0x23537b(0x190)](_0x3bcd13,null,null);}else return _0x480135=_0x1366ec,_0x35b6da[_0x23537b(0x194)](new messages_1[(_0x23537b(0x13d))]({'content':_0x480135,'id':_0x46c7fe['genMessageId']()})),_0x480135;}}static async['onToolResponseMessages'](_0x281a37,_0xfbe1c8,_0x3f059c,_0x194076,_0x5bdb54){const _0x58bc21=a9_0x37b2f5,_0x29a40c={'BeQfN':function(_0x1be408){return _0x1be408();},'cDFYC':function(_0x23f6e5,_0x4a62b0){return _0x23f6e5!==_0x4a62b0;},'dbVOP':_0x58bc21(0x1c1),'jDPWl':_0x58bc21(0x1de),'IRGxe':function(_0xe02653,_0x2d1a18){return _0xe02653===_0x2d1a18;},'kRaBr':_0x58bc21(0x16d),'Oxjrl':function(_0x4f464f,_0x35aa17){return _0x4f464f===_0x35aa17;},'oajyy':_0x58bc21(0x15a),'QAxcc':function(_0x1657ec,_0x2dfd6c){return _0x1657ec===_0x2dfd6c;},'MXGws':'ciqYM','HANug':_0x58bc21(0x189)},_0x1eb3bd=_0x29a40c[_0x58bc21(0x145)](Array);for(const _0x1d0f9e of _0x194076){if(_0x29a40c[_0x58bc21(0x1d4)](_0x29a40c[_0x58bc21(0x172)],_0x58bc21(0x1c1))){const _0xb67e3d=_0x103384[_0x58bc21(0x170)](_0x172270,arguments);return _0xe57dd=null,_0xb67e3d;}else{let _0x3bc7ab=![];for(const _0x4f7c52 of _0x5bdb54){_0x29a40c['jDPWl']!=='pXFVH'?_0x5d3f36[_0x58bc21(0x1cc)]=_0x53e8ee[_0x58bc21(0x1cc)]:_0x29a40c[_0x58bc21(0x149)](_0x4f7c52[_0x58bc21(0x1cf)],_0x29a40c[_0x58bc21(0x19b)])&&_0x29a40c[_0x58bc21(0x1e2)](_0x1d0f9e['id'],_0x4f7c52[_0x58bc21(0x216)])&&(_0x3bc7ab=!![],_0x1eb3bd['push'](_0x4f7c52));}if(!_0x3bc7ab){const _0x28458b=new message_util_2[(_0x58bc21(0x1ee))](_0xfbe1c8,_0x1d0f9e);_0x1eb3bd[_0x58bc21(0x194)](_0x28458b);}}}const _0x47c22a=_0xfbe1c8[_0x58bc21(0x1b8)]();_0x47c22a[_0x58bc21(0x194)](..._0x1eb3bd);for(const _0x569e5d of _0x5bdb54){if(_0x58bc21(0x1a4)===_0x58bc21(0x205))_0x292d53=new _0x15ab31[(_0x58bc21(0x1ee))](_0x423c15,_0x459626);else{if(_0x569e5d[_0x58bc21(0x1cf)]==='ai'){const _0x560f5d=_0x569e5d[_0x58bc21(0x207)][_0x29a40c[_0x58bc21(0x1d6)]];if(_0x560f5d){if(_0x29a40c[_0x58bc21(0x1e4)](_0x29a40c[_0x58bc21(0x19e)],_0x29a40c[_0x58bc21(0x209)])){const _0x46f187=_0x2d98b9?function(){const _0x5a480a=_0x58bc21;if(_0x122b0a){const _0x30d282=_0x180462[_0x5a480a(0x170)](_0x344f08,arguments);return _0x539ffe=null,_0x30d282;}}:function(){};return _0x20fd72=![],_0x46f187;}else return _0x47c22a[_0x58bc21(0x194)](_0x569e5d),_0x569e5d[_0x58bc21(0x21a)];}}}}for(const _0x55c49f of _0x5bdb54){if(_0x29a40c[_0x58bc21(0x149)](_0x55c49f[_0x58bc21(0x1cf)],_0x58bc21(0x1b6)))return await LlmRunner[_0x58bc21(0x190)](_0x281a37,_0x55c49f,_0x3f059c);}return await LlmRunner[_0x58bc21(0x190)](_0x281a37,null,_0x3f059c);}static async[a9_0x37b2f5(0x1ab)](_0x1ccf45,_0x47b200,_0x47ae2e){const _0x4d4a66=a9_0x37b2f5,_0x39c55b={'UIOKO':_0x4d4a66(0x210),'VJYCb':_0x4d4a66(0x1d9),'rFlAO':function(_0x2c3d4f,_0x1b65e1){return _0x2c3d4f>=_0x1b65e1;},'ArvQe':'Follow\x20system\x20prompt\x20and\x20respond\x20properly.','ABwGO':function(_0x36f661,_0xcb146a){return _0x36f661===_0xcb146a;},'iBKRD':'function','LifJW':function(_0x124bb8,_0x88151c){return _0x124bb8===_0x88151c;},'cmQqs':_0x4d4a66(0x173),'iXfSi':function(_0x1cddd8,_0x39fc3e){return _0x1cddd8===_0x39fc3e;},'AVmOi':_0x4d4a66(0x1bf),'SnbIZ':function(_0x3bfa26,_0x5dd9ed){return _0x3bfa26!==_0x5dd9ed;},'mGDGi':_0x4d4a66(0x1e3),'JZkHN':'uMQvu','Dyfwr':function(_0xc680b5,_0x3a1de4){return _0xc680b5===_0x3a1de4;},'FyMBD':function(_0x3b52ac,_0x4e4b4d){return _0x3b52ac!==_0x4e4b4d;},'nqQvw':_0x4d4a66(0x180),'cOghv':'VkShB','nssdO':function(_0xb19018,_0x1f7af3){return _0xb19018!==_0x1f7af3;},'bwlaz':_0x4d4a66(0x202),'NkNwT':function(_0x174031,_0x2d7f19){return _0x174031===_0x2d7f19;},'qWBvL':_0x4d4a66(0x1b1),'takKs':'xDmRS','hSeQJ':_0x4d4a66(0x151),'UbTJm':_0x4d4a66(0x20c),'bYbAc':'tool','TeiDG':_0x4d4a66(0x1a2)},_0x20be4c=new Array();for(const _0x326b9c of _0x47ae2e){let _0x4c17e2;if(_0x39c55b[_0x4d4a66(0x13e)](typeof _0x1ccf45[_0x326b9c[_0x4d4a66(0x160)]],_0x39c55b[_0x4d4a66(0x154)])){const _0x2f16fd=await _0x1ccf45[_0x326b9c[_0x4d4a66(0x160)]](_0x326b9c);if(_0x39c55b[_0x4d4a66(0x1bc)](typeof _0x2f16fd,_0x39c55b[_0x4d4a66(0x1c5)]))await _0x47b200[_0x4d4a66(0x214)](_0x2f16fd),_0x20be4c[_0x4d4a66(0x194)](new message_util_2[(_0x4d4a66(0x1ee))](_0x1ccf45,_0x326b9c));else{if(_0x39c55b['iXfSi'](typeof _0x2f16fd,_0x39c55b[_0x4d4a66(0x154)]))await _0x47b200[_0x4d4a66(0x1a1)](_0x2f16fd),_0x20be4c[_0x4d4a66(0x194)](new message_util_2[(_0x4d4a66(0x1ee))](_0x1ccf45,_0x326b9c));else{if(_0x2f16fd&&_0x39c55b[_0x4d4a66(0x13c)]in _0x2f16fd){if(_0x39c55b[_0x4d4a66(0x17c)](_0x39c55b[_0x4d4a66(0x1d0)],_0x39c55b['JZkHN'])){let _0x39dce8;_0x39c55b[_0x4d4a66(0x1b5)](typeof _0x2f16fd['step'],'string')?_0x39c55b[_0x4d4a66(0x1ac)](_0x39c55b[_0x4d4a66(0x18b)],_0x39c55b[_0x4d4a66(0x1be)])?_0x39dce8=await _0x47b200[_0x4d4a66(0x214)](_0x2f16fd[_0x4d4a66(0x1bf)]):_0x581a3c[_0x4d4a66(0x194)](_0x470e3f[_0x39c55b[_0x4d4a66(0x17b)]]):_0x39dce8=await _0x47b200[_0x4d4a66(0x1a1)](_0x2f16fd['step']);if(_0x2f16fd[_0x4d4a66(0x13f)]){if(_0x39c55b[_0x4d4a66(0x1c7)](_0x4d4a66(0x202),_0x39c55b[_0x4d4a66(0x1c3)]))return _0x27cd71=_0x53ceeb,_0x448ad9[_0x4d4a66(0x194)](new _0x3d3e25[(_0x4d4a66(0x13d))]({'content':_0x12fb13,'id':_0x28262d[_0x4d4a66(0x1f8)]()})),_0x1316f9;else _0x39dce8[_0x4d4a66(0x1c8)]({'_prompt':_0x2f16fd[_0x4d4a66(0x13f)]});}_0x2f16fd[_0x4d4a66(0x18c)]&&(_0x39c55b[_0x4d4a66(0x17e)](_0x39c55b[_0x4d4a66(0x183)],_0x39c55b[_0x4d4a66(0x169)])?(new _0x55f487['SessionLogger'](_0x9c9a9[_0x4d4a66(0x1b2)]())['warn'](_0x4d4a66(0x192)+_0x59302e[_0x4d4a66(0x160)]+'\x27.'),delete _0x24a522[_0x4d4a66(0x1ff)]):_0x39dce8[_0x4d4a66(0x1c8)](_0x2f16fd[_0x4d4a66(0x18c)]));if(_0x2f16fd[_0x4d4a66(0x1cc)]){if(_0x39c55b[_0x4d4a66(0x184)]===_0x39c55b[_0x4d4a66(0x219)])throw new _0x4e6674(_0x4d4a66(0x1b0)+_0x59960e[_0x4d4a66(0x14e)](_0xa2d4ce)+_0x4d4a66(0x16c)+(_0x10445a?_0x565e31[_0x4d4a66(0x210)]:_0x39c55b[_0x4d4a66(0x18f)]));else _0x39dce8['contentType']=_0x2f16fd['contentType'];}if(_0x2f16fd[_0x39c55b[_0x4d4a66(0x1d1)]])_0x4c17e2=new message_util_1[(_0x4d4a66(0x1ad))](_0x39dce8,_0x326b9c,_0x2f16fd[_0x39c55b[_0x4d4a66(0x1d1)]]);else{if(_0x39c55b[_0x4d4a66(0x1b5)](_0x4d4a66(0x142),_0x39c55b['TeiDG'])){if(_0x285f59){const _0x243993=_0x47a20d['apply'](_0x5b2e15,arguments);return _0x513cad=null,_0x243993;}}else _0x4c17e2=new message_util_2['ToolMessageOK'](_0x1ccf45,_0x326b9c);}_0x20be4c[_0x4d4a66(0x194)](_0x4c17e2),_0x2f16fd[_0x39c55b[_0x4d4a66(0x17b)]]&&_0x20be4c[_0x4d4a66(0x194)](_0x2f16fd[_0x39c55b[_0x4d4a66(0x17b)]]);}else return _0x476019[_0x4d4a66(0x1e5)](_0x3bfc61)?(_0xd449a3[_0x4d4a66(0x1a0)](),_0x39c55b['rFlAO'](_0x4e717f,0x2)&&_0x550a2f['pop'](),_0x1ae15a[_0x4d4a66(0x194)](new _0x176570[(_0x4d4a66(0x188))]({'content':_0x39c55b[_0x4d4a66(0x14a)],'id':_0x2b38d9[_0x4d4a66(0x1f8)]()})),!![]):![];}}}}else _0x1ccf45[_0x4d4a66(0x1a8)](_0x326b9c[_0x4d4a66(0x160)])?(new session_logger_1[(_0x4d4a66(0x14c))](_0x47b200[_0x4d4a66(0x1b2)]())[_0x4d4a66(0x146)](_0x4d4a66(0x148)+_0x326b9c[_0x4d4a66(0x160)]),_0x4c17e2=new message_util_2[(_0x4d4a66(0x1ee))](_0x1ccf45,_0x326b9c)):(new session_logger_1[(_0x4d4a66(0x14c))](_0x47b200[_0x4d4a66(0x1b2)]())[_0x4d4a66(0x146)](_0x4d4a66(0x211)+_0x326b9c[_0x4d4a66(0x160)]),_0x4c17e2=new message_util_1[(_0x4d4a66(0x1ad))](_0x1ccf45,_0x326b9c,_0x4d4a66(0x1c9)+_0x326b9c['name'])),_0x20be4c['push'](_0x4c17e2);}return _0x20be4c;}static[a9_0x37b2f5(0x1e5)](_0x1a966c){const _0x938fa4=a9_0x37b2f5,_0x323c24={'xcySL':_0x938fa4(0x203),'GPDxB':'BQnQR'};if(tool_util_1[_0x938fa4(0x1b9)][_0x938fa4(0x18a)](_0x1a966c)){if(_0x323c24[_0x938fa4(0x1fa)]===_0x323c24[_0x938fa4(0x1bb)])return _0x1cc38b['push'](_0x5de599),_0x10885f[_0x938fa4(0x21a)];else{if(!_0x1a966c?.[_0x938fa4(0x21a)]||_0x1a966c[_0x938fa4(0x21a)][0x0]&&_0x1a966c[_0x938fa4(0x21a)][0x0][_0x938fa4(0x1f5)]==='')return!![];}}return![];}static['getReason'](_0x14afdb){const _0x397be0=a9_0x37b2f5,_0x15856f={'RUeQu':function(_0x32046c,_0x4210ef){return _0x32046c!==_0x4210ef;},'EYjYT':_0x397be0(0x147),'orSzW':'olCBm','MrFii':_0x397be0(0x1f6),'jvvYy':function(_0x5b8904,_0xcc4503){return _0x5b8904===_0xcc4503;},'SdjaO':_0x397be0(0x213),'mpSyO':_0x397be0(0x1d9)};if(_0x14afdb?.['response_metadata']){let _0x368826=_0x14afdb['response_metadata'][_0x397be0(0x1b4)];if(!_0x368826)_0x15856f['RUeQu'](_0x15856f[_0x397be0(0x1d2)],_0x15856f[_0x397be0(0x186)])?_0x368826=_0x14afdb[_0x397be0(0x141)][_0x397be0(0x206)]:(_0x2dff13['isToolAvailable'](_0x588976[_0x397be0(0x160)])?(new _0x4840bf[(_0x397be0(0x14c))](_0x5deb58[_0x397be0(0x1b2)]())[_0x397be0(0x146)](_0x397be0(0x148)+_0x53958f[_0x397be0(0x160)]),_0x345446=new _0x48e158[(_0x397be0(0x1ee))](_0x2d1b18,_0x5cea96)):(new _0x28d402[(_0x397be0(0x14c))](_0xeb3268['getSessionDoc']())[_0x397be0(0x146)](_0x397be0(0x211)+_0x3d9de8['name']),_0x4e9a6d=new _0xf6ce9a[(_0x397be0(0x1ad))](_0x49a0e3,_0x3c2e6f,_0x397be0(0x1c9)+_0x3bdea3[_0x397be0(0x160)])),_0x1d374c[_0x397be0(0x194)](_0x4e8da8));else!_0x368826&&(_0x368826=_0x14afdb['response_metadata'][_0x15856f[_0x397be0(0x140)]]);return _0x368826;}else{if(_0x15856f['jvvYy'](_0x15856f['SdjaO'],_0x15856f[_0x397be0(0x1fb)]))return _0x15856f[_0x397be0(0x163)];else _0x30eaa9=_0x53f090[_0x397be0(0x15c)](_0x2b3757);}}}exports[a9_0x37b2f5(0x1c6)]=LlmRunner;
@@ -1 +1 @@
1
- const a10_0x11e07e=a10_0x314f;function a10_0x314f(_0x188542,_0x7aaddf){const _0x5cab14=a10_0x440c();return a10_0x314f=function(_0x37b9b1,_0x1da4e0){_0x37b9b1=_0x37b9b1-0x72;let _0x440c89=_0x5cab14[_0x37b9b1];return _0x440c89;},a10_0x314f(_0x188542,_0x7aaddf);}(function(_0x274553,_0x2b4bfe){const _0x1b8218=a10_0x314f,_0x6846ed=_0x274553();while(!![]){try{const _0x480b19=-parseInt(_0x1b8218(0x85))/0x1*(-parseInt(_0x1b8218(0xa5))/0x2)+-parseInt(_0x1b8218(0xa4))/0x3*(-parseInt(_0x1b8218(0xb8))/0x4)+parseInt(_0x1b8218(0xb1))/0x5*(-parseInt(_0x1b8218(0xa6))/0x6)+parseInt(_0x1b8218(0x97))/0x7*(-parseInt(_0x1b8218(0xa2))/0x8)+parseInt(_0x1b8218(0x94))/0x9+parseInt(_0x1b8218(0xbb))/0xa*(parseInt(_0x1b8218(0x73))/0xb)+-parseInt(_0x1b8218(0x7f))/0xc*(-parseInt(_0x1b8218(0x8b))/0xd);if(_0x480b19===_0x2b4bfe)break;else _0x6846ed['push'](_0x6846ed['shift']());}catch(_0x40e344){_0x6846ed['push'](_0x6846ed['shift']());}}}(a10_0x440c,0x323c0));const a10_0x1da4e0=(function(){const _0xff1141=a10_0x314f,_0x167b71={'sgjvE':'OTPbn','QSMEU':_0xff1141(0x9b)};let _0x390562=!![];return function(_0x1ee65c,_0x3bfa11){const _0x44beb1=_0x390562?function(){const _0x37b2c1=a10_0x314f;if(_0x3bfa11){if(_0x167b71['sgjvE']===_0x167b71[_0x37b2c1(0x80)])_0x2ed66d[_0x37b2c1(0x91)]=_0x1fdae7['contentType'];else{const _0x16de21=_0x3bfa11[_0x37b2c1(0xb2)](_0x1ee65c,arguments);return _0x3bfa11=null,_0x16de21;}}}:function(){};return _0x390562=![],_0x44beb1;};}()),a10_0x37b9b1=a10_0x1da4e0(this,function(){const _0x142507=a10_0x314f,_0x55b282={'AiiId':_0x142507(0x9e)};return a10_0x37b9b1[_0x142507(0x8c)]()[_0x142507(0x93)]('(((.+)+)+)+$')[_0x142507(0x8c)]()[_0x142507(0x8d)](a10_0x37b9b1)[_0x142507(0x93)](_0x55b282[_0x142507(0x8e)]);});a10_0x37b9b1();'use strict';Object[a10_0x11e07e(0xae)](exports,'__esModule',{'value':!![]}),exports[a10_0x11e07e(0x9d)]=void 0x0;const messages_1=require('@langchain/core/messages'),message_util_1=require('../utils/message-util'),llm_runner_1=require(a10_0x11e07e(0xab));class LogicRunner{static async[a10_0x11e07e(0xba)](_0x2344bd,_0x80b119){const _0x342700=a10_0x11e07e,_0x39dde2={'WFAwR':_0x342700(0x9e),'cOvSf':function(_0x4c13ed,_0x19d0e5){return _0x4c13ed!==_0x19d0e5;},'Jjnge':'iwbxV','TwWpx':_0x342700(0x96),'XClcM':_0x342700(0xa9),'btakc':function(_0x1d18b5,_0x156094){return _0x1d18b5===_0x156094;},'mchCs':function(_0x1c0257,_0x230c5f){return _0x1c0257!==_0x230c5f;},'TRCEX':_0x342700(0x72),'SqbTf':function(_0xa244db,_0x2920c1){return _0xa244db===_0x2920c1;},'QlhSe':_0x342700(0x84),'sEgvQ':_0x342700(0x7e),'vlFXb':function(_0x31286a,_0x1b9eda){return _0x31286a===_0x1b9eda;},'hQwXT':_0x342700(0xa1),'KEOPH':function(_0x4bec6d,_0x3da622){return _0x4bec6d===_0x3da622;},'nrmEw':'DnRGh','jzBtd':function(_0x13d65c,_0x50d38d){return _0x13d65c!==_0x50d38d;},'zSVrW':'EXtBR','MRAbA':'yRGDQ','crFaS':'AUKHs','LdGJf':_0x342700(0x8f),'aIiWA':_0x342700(0x74),'TCyPS':_0x342700(0xbd),'IQJsO':function(_0x4a8375,_0xb7e227){return _0x4a8375===_0xb7e227;},'gUuTP':'rbWnt','SxyVG':_0x342700(0x9a)},_0x3b4b51=_0x2344bd[_0x342700(0xb0)]();let _0x1bcd24=_0x3b4b51[_0x342700(0x83)]();if(_0x80b119){const _0x1923a4=message_util_1[_0x342700(0x76)][_0x342700(0xb3)](_0x80b119['id']);_0x1923a4!=_0x3b4b51[_0x342700(0xb6)]()&&(await _0x2344bd['saveSession'](),_0x80b119=_0x3b4b51['onCrossing'](_0x80b119,_0x1923a4));}else{if(_0x39dde2[_0x342700(0xb7)](_0x39dde2[_0x342700(0x90)],_0x39dde2[_0x342700(0x8a)])){const _0x5bd0d9=message_util_1[_0x342700(0x76)][_0x342700(0xaf)](_0x1bcd24);if(_0x5bd0d9){if(_0x39dde2[_0x342700(0xad)]!=='rcbIP'){const _0xfba960=message_util_1['MessageUtil']['messageStep'](_0x5bd0d9['id']);_0xfba960!=_0x3b4b51[_0x342700(0xb6)]()&&(await _0x2344bd[_0x342700(0x79)](),_0x80b119=_0x3b4b51[_0x342700(0xa3)](_0x80b119,_0xfba960));}else _0x320b66[_0x342700(0xbc)](_0x5742a3['message']);}else await _0x2344bd[_0x342700(0x79)](),_0x80b119=_0x3b4b51[_0x342700(0xa3)](_0x80b119);}else _0x5252a0['push'](new _0x426ae9['SystemMessage']({'content':''}));}_0x39dde2['btakc'](_0x1bcd24['length'],0x0)&&(_0x39dde2['mchCs'](_0x39dde2['TRCEX'],_0x39dde2[_0x342700(0x82)])?_0x3aca71[_0x342700(0x87)](_0x281ccc['state']):_0x1bcd24['push'](new messages_1['SystemMessage']({'content':''})));const _0x81f77f=_0x80b119??new message_util_1[(_0x342700(0x7b))](_0x3b4b51,_0x342700(0x9f)+_0x3b4b51[_0x342700(0xb6)]());_0x1bcd24[_0x342700(0xbc)](_0x81f77f);const _0x523227=await _0x3b4b51[_0x342700(0xa7)](),_0x1cce8d=new Array();if(_0x39dde2[_0x342700(0x88)](typeof _0x523227,_0x39dde2[_0x342700(0xb5)]))await _0x2344bd['activateByName'](_0x523227);else{if(typeof _0x523227===_0x39dde2['sEgvQ']){if(_0x39dde2[_0x342700(0x81)](_0x39dde2[_0x342700(0x7c)],_0x39dde2[_0x342700(0x7c)]))await _0x2344bd['activate'](_0x523227);else{const _0x3505da=_0xd8eb85?function(){if(_0x24544e){const _0x509ea4=_0x4101b9['apply'](_0x29661f,arguments);return _0x465c1d=null,_0x509ea4;}}:function(){};return _0x23a335=![],_0x3505da;}}else{if(_0x342700(0x78)in _0x523227){if(_0x39dde2[_0x342700(0x75)](_0x39dde2[_0x342700(0x89)],_0x342700(0xac))){if(_0x2adf16){const _0x188a02=_0x1b6ce3[_0x342700(0xb2)](_0x284bd6,arguments);return _0x1e31f3=null,_0x188a02;}}else{let _0x3fe2c1;if(_0x39dde2[_0x342700(0x81)](typeof _0x523227[_0x342700(0x78)],_0x342700(0x84))){if(_0x39dde2['jzBtd'](_0x39dde2[_0x342700(0x77)],'EXtBR'))return _0x1f1a42[_0x342700(0x8c)]()['search'](tmfYxq[_0x342700(0xa0)])[_0x342700(0x8c)]()[_0x342700(0x8d)](_0xc3c5e9)[_0x342700(0x93)](_0x342700(0x9e));else _0x3fe2c1=await _0x2344bd[_0x342700(0x92)](_0x523227[_0x342700(0x78)]);}else _0x3fe2c1=await _0x2344bd[_0x342700(0x9c)](_0x523227['step']);_0x523227[_0x342700(0x98)]&&_0x3fe2c1[_0x342700(0x87)]({'_prompt':_0x523227[_0x342700(0x98)]}),_0x523227[_0x342700(0xaa)]&&_0x3fe2c1[_0x342700(0x87)](_0x523227[_0x342700(0xaa)]),_0x523227[_0x342700(0x91)]&&(_0x39dde2[_0x342700(0x81)](_0x39dde2[_0x342700(0x7a)],_0x39dde2[_0x342700(0xb4)])?_0x3f7a47[_0x342700(0x87)]({'_prompt':_0x21c95e['prompt']}):_0x3fe2c1[_0x342700(0x91)]=_0x523227[_0x342700(0x91)]),_0x523227[_0x39dde2[_0x342700(0xa8)]]&&_0x1cce8d[_0x342700(0xbc)](_0x523227[_0x342700(0x8f)]);}}}}const _0x37e204=_0x2344bd[_0x342700(0xb0)]();_0x1bcd24=_0x37e204['getMemory']();_0x1cce8d[_0x342700(0x7d)]>0x0&&_0x1bcd24[_0x342700(0xbc)](..._0x1cce8d);if(_0x37e204[_0x342700(0x86)]()){if(_0x39dde2[_0x342700(0x99)](_0x39dde2['aIiWA'],_0x39dde2['TCyPS']))return LogicRunner[_0x342700(0xba)](_0x2344bd);else{const _0x7ea4d=_0xf5d316['apply'](_0x2b08c2,arguments);return _0x2e5149=null,_0x7ea4d;}}else return _0x39dde2[_0x342700(0xb9)](_0x39dde2['gUuTP'],_0x39dde2[_0x342700(0xbe)])?_0x321e43[_0x342700(0xba)](_0x36998c):await llm_runner_1[_0x342700(0x95)]['send'](_0x2344bd);}}function a10_0x440c(){const _0x2755ec=['saveState','SqbTf','nrmEw','TwWpx','91sqLTMU','toString','constructor','AiiId','message','Jjnge','contentType','activateByName','search','1257921UHsIjF','LlmRunner','NkBqb','48881yquIVv','prompt','jzBtd','TzhkV','KpaFp','activate','LogicRunner','(((.+)+)+)+$','Transition\x20to\x20step:','WFAwR','IWYXs','360OfSSao','onCrossing','66993RimohN','154goYrxn','49746WJjWsk','runLogic','LdGJf','oIdQp','state','./llm-runner','XVqsa','XClcM','defineProperty','peek','getActiveStep','25ydjjVf','apply','messageStep','crFaS','QlhSe','getName','cOvSf','8IKYoSU','IQJsO','send','3050qGYizy','push','rOdtG','SxyVG','ehlIo','5907daQVFW','liGkZ','KEOPH','MessageUtil','zSVrW','step','saveSession','MRAbA','AiMessageEx','hQwXT','length','function','229452bGcVqD','QSMEU','vlFXb','TRCEX','getMemory','string','1031DRvfog','isLogic'];a10_0x440c=function(){return _0x2755ec;};return a10_0x440c();}exports['LogicRunner']=LogicRunner;
1
+ const a10_0x556372=a10_0x1c73;(function(_0x5c3ab1,_0x1b7625){const _0x452bed=a10_0x1c73,_0x6ecb4f=_0x5c3ab1();while(!![]){try{const _0x38971d=-parseInt(_0x452bed(0x110))/0x1*(-parseInt(_0x452bed(0xef))/0x2)+-parseInt(_0x452bed(0xf6))/0x3+parseInt(_0x452bed(0xe8))/0x4*(parseInt(_0x452bed(0xe2))/0x5)+parseInt(_0x452bed(0xe9))/0x6*(-parseInt(_0x452bed(0x125))/0x7)+-parseInt(_0x452bed(0x100))/0x8*(parseInt(_0x452bed(0x127))/0x9)+parseInt(_0x452bed(0x113))/0xa*(parseInt(_0x452bed(0xfd))/0xb)+parseInt(_0x452bed(0xff))/0xc*(parseInt(_0x452bed(0x12a))/0xd);if(_0x38971d===_0x1b7625)break;else _0x6ecb4f['push'](_0x6ecb4f['shift']());}catch(_0x1da799){_0x6ecb4f['push'](_0x6ecb4f['shift']());}}}(a10_0x13e6,0xedea9));const a10_0x1f68aa=(function(){const _0x350210=a10_0x1c73,_0x29086f={'UVJME':function(_0x4aeac5,_0x2283b7){return _0x4aeac5!==_0x2283b7;},'hYozn':_0x350210(0x11b),'yuNyd':_0x350210(0xfc),'eqHOy':_0x350210(0xec)};let _0xcf0210=!![];return function(_0x23f999,_0x31659c){const _0x52caff=_0x350210,_0x592469={'GPgAQ':function(_0x4add0f,_0x2e220b){return _0x29086f['UVJME'](_0x4add0f,_0x2e220b);},'qdnJh':_0x29086f[_0x52caff(0x107)]};if(_0x29086f[_0x52caff(0x120)](_0x29086f[_0x52caff(0xe5)],_0x29086f[_0x52caff(0x118)])){const _0x5731bf=_0xcf0210?function(){const _0x43faa5=_0x52caff;if(_0x31659c){if(_0x592469['GPgAQ'](_0x592469[_0x43faa5(0x11f)],_0x592469[_0x43faa5(0x11f)]))_0x548ced[_0x43faa5(0x126)]({'_prompt':_0x3a1a4a[_0x43faa5(0x10d)]});else{const _0x2f0025=_0x31659c[_0x43faa5(0x106)](_0x23f999,arguments);return _0x31659c=null,_0x2f0025;}}}:function(){};return _0xcf0210=![],_0x5731bf;}else _0x1aeb9d['push'](..._0x568d27);};}()),a10_0x144493=a10_0x1f68aa(this,function(){const _0x575575=a10_0x1c73,_0x5e4d1b={'sRyOf':_0x575575(0xf2)};return a10_0x144493[_0x575575(0x10f)]()['search'](_0x5e4d1b[_0x575575(0x111)])[_0x575575(0x10f)]()['constructor'](a10_0x144493)[_0x575575(0x112)](_0x5e4d1b[_0x575575(0x111)]);});a10_0x144493();'use strict';function a10_0x1c73(_0x30c637,_0x1fdaa6){const _0x353761=a10_0x13e6();return a10_0x1c73=function(_0x144493,_0x1f68aa){_0x144493=_0x144493-0xe0;let _0x13e6a4=_0x353761[_0x144493];return _0x13e6a4;},a10_0x1c73(_0x30c637,_0x1fdaa6);}Object[a10_0x556372(0xf4)](exports,'__esModule',{'value':!![]}),exports[a10_0x556372(0xf7)]=void 0x0;const messages_1=require(a10_0x556372(0x104)),message_util_1=require('../utils/message-util'),llm_runner_1=require('./llm-runner');class LogicRunner{static async[a10_0x556372(0xee)](_0x286437,_0xe97e52){const _0x1d3bbc=a10_0x556372,_0xa25c7f={'dRAXg':_0x1d3bbc(0xf2),'BVPZE':function(_0x17db8c,_0x90c0ec){return _0x17db8c!==_0x90c0ec;},'JMsrp':_0x1d3bbc(0x123),'XTadT':'IwlYH','zddsG':function(_0x179e76,_0x2cbc94){return _0x179e76!=_0x2cbc94;},'tppJC':_0x1d3bbc(0x11e),'brcRn':_0x1d3bbc(0x117),'YRxri':function(_0x332b69,_0x533a82){return _0x332b69===_0x533a82;},'mJvIk':'wdLgZ','KGFha':function(_0x359f85,_0x205140){return _0x359f85!==_0x205140;},'leoQP':'LAiur','CapeE':function(_0x5d5a09,_0xf95846){return _0x5d5a09!==_0xf95846;},'lCMmK':_0x1d3bbc(0xf8),'uCJIR':_0x1d3bbc(0x128),'RRIta':'function','RmsoD':function(_0x2a1705,_0x43bf8e){return _0x2a1705 in _0x43bf8e;},'WHali':_0x1d3bbc(0x11a),'ukXHG':function(_0x275092,_0x26ff1b){return _0x275092===_0x26ff1b;},'zefGM':function(_0x3a89ee,_0x31650f){return _0x3a89ee===_0x31650f;},'eltcu':_0x1d3bbc(0x12e),'NKrRc':_0x1d3bbc(0xe0),'gduJa':_0x1d3bbc(0xf1),'Floks':function(_0x302de5,_0x21280f){return _0x302de5!==_0x21280f;},'oUppn':_0x1d3bbc(0xeb)},_0x31c2c1=_0x286437[_0x1d3bbc(0x10e)]();let _0x2a2096=_0x31c2c1[_0x1d3bbc(0xfe)]();if(_0xe97e52){if(_0xa25c7f[_0x1d3bbc(0xfa)](_0xa25c7f[_0x1d3bbc(0x10c)],_0xa25c7f[_0x1d3bbc(0x105)])){const _0x5459a8=message_util_1[_0x1d3bbc(0x109)]['messageStep'](_0xe97e52['id']);if(_0xa25c7f[_0x1d3bbc(0xf3)](_0x5459a8,_0x31c2c1[_0x1d3bbc(0x129)]())){if(_0xa25c7f['BVPZE']('GJoby',_0xa25c7f[_0x1d3bbc(0x11d)])){const _0xe5fd61=_0x46cf38?function(){if(_0x3f3775){const _0x32c256=_0x3a8ddb['apply'](_0x1c940c,arguments);return _0x25951e=null,_0x32c256;}}:function(){};return _0x41c05b=![],_0xe5fd61;}else await _0x286437[_0x1d3bbc(0x115)](),_0xe97e52=_0x31c2c1['onCrossing'](_0xe97e52,_0x5459a8);}}else return _0x241081[_0x1d3bbc(0xee)](_0x124876);}else{const _0x4698c5=message_util_1['MessageUtil'][_0x1d3bbc(0x102)](_0x2a2096);if(_0x4698c5){if(_0xa25c7f['brcRn']===_0x1d3bbc(0x117)){const _0x530b25=message_util_1[_0x1d3bbc(0x109)][_0x1d3bbc(0xf0)](_0x4698c5['id']);if(_0x530b25!=_0x31c2c1[_0x1d3bbc(0x129)]()){if(_0xa25c7f[_0x1d3bbc(0x12c)](_0xa25c7f[_0x1d3bbc(0x116)],'WcgGA')){const _0xb33a44=_0x55c31d[_0x1d3bbc(0x106)](_0x51af39,arguments);return _0x3abc2f=null,_0xb33a44;}else await _0x286437[_0x1d3bbc(0x115)](),_0xe97e52=_0x31c2c1[_0x1d3bbc(0xf9)](_0xe97e52,_0x530b25);}}else _0x371b99[_0x1d3bbc(0x122)](new _0x1b83d0[(_0x1d3bbc(0x103))]({'content':''}));}else _0xa25c7f[_0x1d3bbc(0x119)]('LAiur',_0xa25c7f[_0x1d3bbc(0x124)])?_0x2e0e26[_0x1d3bbc(0x122)](_0x36efd7['message']):(await _0x286437['saveSession'](),_0xe97e52=_0x31c2c1[_0x1d3bbc(0xf9)](_0xe97e52));}_0xa25c7f[_0x1d3bbc(0x12c)](_0x2a2096[_0x1d3bbc(0xe6)],0x0)&&(_0xa25c7f['CapeE'](_0xa25c7f['lCMmK'],_0xa25c7f['lCMmK'])?_0x5d6882[_0x1d3bbc(0x126)](_0xab6c7a[_0x1d3bbc(0x10a)]):_0x2a2096['push'](new messages_1[(_0x1d3bbc(0x103))]({'content':''})));const _0x12ec4c=_0xe97e52??new message_util_1[(_0x1d3bbc(0xe4))](_0x31c2c1,_0x1d3bbc(0xed)+_0x31c2c1[_0x1d3bbc(0x129)]());_0x2a2096[_0x1d3bbc(0x122)](_0x12ec4c);const _0x1fd0f2=await _0x31c2c1[_0x1d3bbc(0xea)](),_0x454e24=new Array();if(typeof _0x1fd0f2===_0xa25c7f['uCJIR'])await _0x286437[_0x1d3bbc(0xe3)](_0x1fd0f2);else{if(_0xa25c7f[_0x1d3bbc(0x12c)](typeof _0x1fd0f2,_0xa25c7f[_0x1d3bbc(0x10b)]))await _0x286437[_0x1d3bbc(0xe1)](_0x1fd0f2);else{if(_0xa25c7f['RmsoD'](_0xa25c7f[_0x1d3bbc(0xf5)],_0x1fd0f2)){let _0x2fdf09;_0xa25c7f[_0x1d3bbc(0xfb)](typeof _0x1fd0f2[_0x1d3bbc(0x11a)],_0xa25c7f['uCJIR'])?_0xa25c7f[_0x1d3bbc(0x12b)](_0xa25c7f['eltcu'],_0xa25c7f['NKrRc'])?_0x450a3a['contentType']=_0x33c252[_0x1d3bbc(0x114)]:_0x2fdf09=await _0x286437[_0x1d3bbc(0xe3)](_0x1fd0f2[_0x1d3bbc(0x11a)]):_0x2fdf09=await _0x286437[_0x1d3bbc(0xe1)](_0x1fd0f2[_0x1d3bbc(0x11a)]),_0x1fd0f2[_0x1d3bbc(0x10d)]&&_0x2fdf09[_0x1d3bbc(0x126)]({'_prompt':_0x1fd0f2[_0x1d3bbc(0x10d)]}),_0x1fd0f2[_0x1d3bbc(0x10a)]&&_0x2fdf09[_0x1d3bbc(0x126)](_0x1fd0f2[_0x1d3bbc(0x10a)]),_0x1fd0f2[_0x1d3bbc(0x114)]&&(_0x2fdf09[_0x1d3bbc(0x114)]=_0x1fd0f2['contentType']),_0x1fd0f2[_0xa25c7f[_0x1d3bbc(0x101)]]&&_0x454e24[_0x1d3bbc(0x122)](_0x1fd0f2[_0xa25c7f[_0x1d3bbc(0x101)]]);}}}const _0x8ba76e=_0x286437['getActiveStep']();return _0x2a2096=_0x8ba76e[_0x1d3bbc(0xfe)](),_0x454e24['length']>0x0&&_0x2a2096[_0x1d3bbc(0x122)](..._0x454e24),_0x8ba76e[_0x1d3bbc(0x11c)]()?LogicRunner[_0x1d3bbc(0xee)](_0x286437):_0xa25c7f['Floks'](_0xa25c7f[_0x1d3bbc(0x108)],_0xa25c7f['oUppn'])?_0x817417['toString']()['search'](_0x1d3bbc(0xf2))[_0x1d3bbc(0x10f)]()[_0x1d3bbc(0xe7)](_0x5ed097)[_0x1d3bbc(0x112)](OlxawL[_0x1d3bbc(0x12d)]):await llm_runner_1[_0x1d3bbc(0x121)]['send'](_0x286437);}}exports[a10_0x556372(0xf7)]=LogicRunner;function a10_0x13e6(){const _0x159d2e=['14990196WWeqfr','zefGM','YRxri','dRAXg','RCBAm','yhlWc','activate','20065fIsepM','activateByName','AiMessageEx','yuNyd','length','constructor','112hDjlKA','66HBFMRm','runLogic','nDOqD','SgEYe','Transition\x20to\x20step:','send','140jQNQeG','messageStep','message','(((.+)+)+)+$','zddsG','defineProperty','WHali','866742ydvPCE','LogicRunner','bBMHq','onCrossing','BVPZE','ukXHG','ElLGo','3894eTomEl','getMemory','12duuORE','192MZpvmg','gduJa','peek','SystemMessage','@langchain/core/messages','XTadT','apply','hYozn','oUppn','MessageUtil','state','RRIta','JMsrp','prompt','getActiveStep','toString','26148nzVmlW','sRyOf','search','8680sbyPxk','contentType','saveSession','mJvIk','FhGBk','eqHOy','KGFha','step','MXIIh','isLogic','tppJC','GJoby','qdnJh','UVJME','LlmRunner','push','ZNBgO','leoQP','1085553MrhRxO','saveState','162675fOpnBm','string','getName'];a10_0x13e6=function(){return _0x159d2e;};return a10_0x13e6();}
@@ -1 +1 @@
1
- const a11_0x1df295=a11_0x1fe1;(function(_0x2304e8,_0x4aa7b){const _0x4234f8=a11_0x1fe1,_0x191b04=_0x2304e8();while(!![]){try{const _0x16c93f=-parseInt(_0x4234f8(0x111))/0x1*(parseInt(_0x4234f8(0x102))/0x2)+parseInt(_0x4234f8(0x108))/0x3*(-parseInt(_0x4234f8(0x103))/0x4)+-parseInt(_0x4234f8(0x104))/0x5+parseInt(_0x4234f8(0x101))/0x6*(parseInt(_0x4234f8(0x119))/0x7)+-parseInt(_0x4234f8(0x105))/0x8*(parseInt(_0x4234f8(0x115))/0x9)+-parseInt(_0x4234f8(0x100))/0xa+-parseInt(_0x4234f8(0x10d))/0xb*(-parseInt(_0x4234f8(0x10c))/0xc);if(_0x16c93f===_0x4aa7b)break;else _0x191b04['push'](_0x191b04['shift']());}catch(_0x465dad){_0x191b04['push'](_0x191b04['shift']());}}}(a11_0x3dff,0x5ddc4));const a11_0x5c9a62=(function(){const _0x5d54b2=a11_0x1fe1,_0xa7f97f={'VgTEY':function(_0x215b7e,_0x5e0b10){return _0x215b7e===_0x5e0b10;},'otPDa':_0x5d54b2(0x117)};let _0x36b919=!![];return function(_0x189505,_0xa69c5e){const _0x3d6990=_0x5d54b2;if(_0xa7f97f['otPDa']===_0xa7f97f[_0x3d6990(0x118)]){const _0x47f0be=_0x36b919?function(){const _0x50f54f=_0x3d6990;if(_0xa69c5e){if(_0xa7f97f['VgTEY'](_0x50f54f(0x10b),_0x50f54f(0x113))){const _0x2b9500=_0x2e466e[_0x50f54f(0x106)](_0x3437ef,arguments);return _0x1b6da1=null,_0x2b9500;}else{const _0x1b5257=_0xa69c5e['apply'](_0x189505,arguments);return _0xa69c5e=null,_0x1b5257;}}}:function(){};return _0x36b919=![],_0x47f0be;}else{const _0x149a5f=_0x30742d?function(){const _0x1dbd7d=_0x3d6990;if(_0x548f37){const _0x9cc8d4=_0x422e14[_0x1dbd7d(0x106)](_0xffd3e7,arguments);return _0x3d2364=null,_0x9cc8d4;}}:function(){};return _0x25023d=![],_0x149a5f;}};}()),a11_0x213ee7=a11_0x5c9a62(this,function(){const _0x199394=a11_0x1fe1,_0x1ecc09={'wbREC':_0x199394(0x112)};return a11_0x213ee7['toString']()[_0x199394(0x107)](_0x199394(0x112))[_0x199394(0x110)]()[_0x199394(0x116)](a11_0x213ee7)[_0x199394(0x107)](_0x1ecc09[_0x199394(0x114)]);});function a11_0x3dff(){const _0x486e6a=['./step','toString','1GXEQsU','(((.+)+)+)+$','WwujT','wbREC','1773018Igexky','constructor','Dtvcq','otPDa','7MSQNKz','2960200UMxqrM','3213492mdwbxu','367238hDHhLc','39820NCEQzO','1791685YxuQEY','16YQylvI','apply','search','183uzSQZH','defineProperty','__esModule','NPtjv','12evtkWQ','18569155PxNqwO','LogicStep'];a11_0x3dff=function(){return _0x486e6a;};return a11_0x3dff();}a11_0x213ee7();'use strict';Object[a11_0x1df295(0x109)](exports,a11_0x1df295(0x10a),{'value':!![]}),exports[a11_0x1df295(0x10e)]=void 0x0;function a11_0x1fe1(_0x505345,_0x1ec132){const _0x5de2a1=a11_0x3dff();return a11_0x1fe1=function(_0x213ee7,_0x5c9a62){_0x213ee7=_0x213ee7-0x100;let _0x3dffb2=_0x5de2a1[_0x213ee7];return _0x3dffb2;},a11_0x1fe1(_0x505345,_0x1ec132);}const step_1=require(a11_0x1df295(0x10f));class LogicStep extends step_1['Step']{constructor(_0x4b2f26,_0x213dad,_0x2eb45b=![]){super(_0x4b2f26,_0x213dad,_0x2eb45b);}['isLogic'](){return!![];}}exports[a11_0x1df295(0x10e)]=LogicStep;
1
+ const a11_0xa9ecf4=a11_0x1435;(function(_0x34bcc6,_0x1dad9f){const _0x4db2ce=a11_0x1435,_0x594328=_0x34bcc6();while(!![]){try{const _0x5f1711=parseInt(_0x4db2ce(0xe1))/0x1*(parseInt(_0x4db2ce(0xdc))/0x2)+-parseInt(_0x4db2ce(0xd1))/0x3*(parseInt(_0x4db2ce(0xdb))/0x4)+-parseInt(_0x4db2ce(0xe2))/0x5+parseInt(_0x4db2ce(0xcf))/0x6+-parseInt(_0x4db2ce(0xe3))/0x7*(parseInt(_0x4db2ce(0xda))/0x8)+parseInt(_0x4db2ce(0xce))/0x9*(-parseInt(_0x4db2ce(0xcc))/0xa)+parseInt(_0x4db2ce(0xd8))/0xb;if(_0x5f1711===_0x1dad9f)break;else _0x594328['push'](_0x594328['shift']());}catch(_0x1f62c8){_0x594328['push'](_0x594328['shift']());}}}(a11_0x29a7,0x9968b));const a11_0x1faad3=(function(){const _0x52654d=a11_0x1435,_0x4ee98d={'tdgHF':function(_0x5210af,_0xde0f4b){return _0x5210af===_0xde0f4b;},'JROlE':_0x52654d(0xd6),'Wqglj':_0x52654d(0xcd),'MvTVX':'iauYV'};let _0x3f8aa9=!![];return function(_0x4d081a,_0x57d764){const _0x3b4ab6=_0x52654d;if(_0x4ee98d[_0x3b4ab6(0xdd)](_0x4ee98d['MvTVX'],_0x4ee98d[_0x3b4ab6(0xca)])){const _0x1e023e=_0x3f8aa9?function(){const _0x226a0e=_0x3b4ab6;if(_0x57d764){if(_0x4ee98d[_0x226a0e(0xdd)](_0x4ee98d[_0x226a0e(0xd9)],_0x4ee98d[_0x226a0e(0xde)])){const _0x404b83=_0x47066[_0x226a0e(0xe4)](_0x16fee2,arguments);return _0x548efd=null,_0x404b83;}else{const _0x4030e7=_0x57d764[_0x226a0e(0xe4)](_0x4d081a,arguments);return _0x57d764=null,_0x4030e7;}}}:function(){};return _0x3f8aa9=![],_0x1e023e;}else return!![];};}()),a11_0x541103=a11_0x1faad3(this,function(){const _0x512e29=a11_0x1435,_0x1bbb78={'AGkCN':_0x512e29(0xd3)};return a11_0x541103['toString']()[_0x512e29(0xd2)](_0x1bbb78[_0x512e29(0xd5)])[_0x512e29(0xd0)]()[_0x512e29(0xdf)](a11_0x541103)[_0x512e29(0xd2)](_0x1bbb78['AGkCN']);});a11_0x541103();'use strict';function a11_0x1435(_0x4b2eac,_0x5ca7d9){const _0x8d77e4=a11_0x29a7();return a11_0x1435=function(_0x541103,_0x1faad3){_0x541103=_0x541103-0xca;let _0x29a71c=_0x8d77e4[_0x541103];return _0x29a71c;},a11_0x1435(_0x4b2eac,_0x5ca7d9);}Object[a11_0xa9ecf4(0xcb)](exports,'__esModule',{'value':!![]}),exports['LogicStep']=void 0x0;const step_1=require(a11_0xa9ecf4(0xe0));class LogicStep extends step_1[a11_0xa9ecf4(0xe5)]{constructor(_0x291365,_0x28121e,_0xa079d0=![]){super(_0x291365,_0x28121e,_0xa079d0);}[a11_0xa9ecf4(0xd7)](){return!![];}}function a11_0x29a7(){const _0x383f29=['16306807AmgDKp','JROlE','24ryGTvw','2144MHVXFd','28382hANuEJ','tdgHF','Wqglj','constructor','./step','26gLZLRw','2604400AWeQsH','2039002uGaptG','apply','Step','MvTVX','defineProperty','1269680FGylHw','gNWHb','9mGQuAs','6175404xuVWUG','toString','4089GvFDIv','search','(((.+)+)+)+$','LogicStep','AGkCN','QyxCN','isLogic'];a11_0x29a7=function(){return _0x383f29;};return a11_0x29a7();}exports[a11_0xa9ecf4(0xd4)]=LogicStep;
package/flow/memory.js CHANGED
@@ -1 +1 @@
1
- const a12_0x40624c=a12_0x26bd;(function(_0x48c563,_0x3086c9){const _0x9cafab=a12_0x26bd,_0x4a6c66=_0x48c563();while(!![]){try{const _0x1efc27=parseInt(_0x9cafab(0xe0))/0x1*(-parseInt(_0x9cafab(0xe1))/0x2)+-parseInt(_0x9cafab(0xf1))/0x3+parseInt(_0x9cafab(0xe4))/0x4+-parseInt(_0x9cafab(0xfb))/0x5*(-parseInt(_0x9cafab(0xf4))/0x6)+-parseInt(_0x9cafab(0xf0))/0x7*(-parseInt(_0x9cafab(0xac))/0x8)+-parseInt(_0x9cafab(0xeb))/0x9*(-parseInt(_0x9cafab(0xd1))/0xa)+-parseInt(_0x9cafab(0xe3))/0xb*(parseInt(_0x9cafab(0xbf))/0xc);if(_0x1efc27===_0x3086c9)break;else _0x4a6c66['push'](_0x4a6c66['shift']());}catch(_0x208714){_0x4a6c66['push'](_0x4a6c66['shift']());}}}(a12_0x1d4a,0x5ae19));const a12_0x21db1d=(function(){const _0x398e8=a12_0x26bd,_0xbd6c5={'LvHim':_0x398e8(0xc0),'VdAfg':_0x398e8(0xfe),'WUsEs':'status','jVTGy':function(_0x510354,_0x2d470e){return _0x510354>_0x2d470e;},'MSmnA':function(_0x3e208e,_0x1f7a44){return _0x3e208e!==_0x1f7a44;},'FVDwD':_0x398e8(0xec),'VKRkB':_0x398e8(0xf2)};let _0x4a58c6=!![];return function(_0x263b7d,_0x50a389){const _0x4363ff=_0x398e8;if(_0xbd6c5['MSmnA'](_0x4363ff(0xf8),_0xbd6c5['VKRkB'])){const _0xb6a4e1=_0x4a58c6?function(){const _0x4eb390=_0x4363ff,_0xe2519a={'mBWQE':_0xbd6c5[_0x4eb390(0xaa)],'bDKmp':'tool','qjhnh':_0xbd6c5['VdAfg'],'FMgyp':_0xbd6c5['WUsEs'],'nwfVd':'name','yYvXx':function(_0x5c15a6,_0x43d029){const _0x202986=_0x4eb390;return _0xbd6c5[_0x202986(0xb4)](_0x5c15a6,_0x43d029);}};if(_0xbd6c5[_0x4eb390(0xa8)](_0x4eb390(0xec),_0xbd6c5[_0x4eb390(0xca)])){const _0xef9b77={'type':_0x50e17d[_0x4eb390(0xe5)],'content':_0x45537b['content'],'id':_0x2d9ec3['id']};!_0x50e6a2['MessageUtil'][_0x4eb390(0xb3)](_0xaf024[_0x4eb390(0xc0)])&&(_0xef9b77[_0xe2519a[_0x4eb390(0xe8)]]=_0xc890a1[_0x4eb390(0xc0)]);switch(_0x154cd5[_0x4eb390(0xe5)]){case _0xe2519a[_0x4eb390(0xaf)]:const _0xc81b89=_0x37e159;_0xef9b77[_0xe2519a[_0x4eb390(0xde)]]=_0xc81b89['tool_call_id'],_0xef9b77[_0xe2519a[_0x4eb390(0xbb)]]=_0xc81b89['status'],_0xef9b77[_0xe2519a[_0x4eb390(0xe2)]]=_0xc81b89['name'];return _0xef9b77;case'ai':const _0x57133b=_0x4887a8;if(_0xe2519a[_0x4eb390(0xdc)](_0x57133b['tool_calls'][_0x4eb390(0xfa)],0x0))return _0xef9b77[_0x4eb390(0xef)]=_0xb0dd50[_0x4eb390(0xba)]['makeToolStruct'](_0x57133b[_0x4eb390(0xef)]),_0xef9b77;default:return _0xef9b77;}}else{if(_0x50a389){const _0x22ffbf=_0x50a389[_0x4eb390(0xc2)](_0x263b7d,arguments);return _0x50a389=null,_0x22ffbf;}}}:function(){};return _0x4a58c6=![],_0xb6a4e1;}else{if(_0x3d37f5){const _0x23a846=_0x53f37a[_0x4363ff(0xc2)](_0x123a80,arguments);return _0x64e9fa=null,_0x23a846;}}};}()),a12_0x41b662=a12_0x21db1d(this,function(){const _0x100dac=a12_0x26bd;return a12_0x41b662[_0x100dac(0xdd)]()[_0x100dac(0xcc)](_0x100dac(0xea))[_0x100dac(0xdd)]()[_0x100dac(0xcd)](a12_0x41b662)[_0x100dac(0xcc)](_0x100dac(0xea));});a12_0x41b662();'use strict';function a12_0x26bd(_0x229f56,_0x1d9d5e){const _0x2bd190=a12_0x1d4a();return a12_0x26bd=function(_0x41b662,_0x21db1d){_0x41b662=_0x41b662-0xa8;let _0x1d4a39=_0x2bd190[_0x41b662];return _0x1d4a39;},a12_0x26bd(_0x229f56,_0x1d9d5e);}Object[a12_0x40624c(0xb9)](exports,a12_0x40624c(0xcf),{'value':!![]}),exports[a12_0x40624c(0xda)]=void 0x0;function a12_0x1d4a(){const _0x5cc9ee=['FMgyp','system','sTUys','name','2364cOaflk','additional_kwargs','ToolMessage','apply','BSXeJ','thjMj','human','nameSpace','makeToolStruct','map','createOoc','FVDwD','wtwwj','search','constructor','readDoc','__esModule','FOAwh','10UJNyXd','history','status','pWvei','set','Nodyt','nameSpaceMap','KWVdn','QlJuA','Memory','ddBhU','yYvXx','toString','qjhnh','SystemMessage','108749NFMnsG','6DkwaXc','nwfVd','8404xJpBMm','1162144fWEsKb','type','getMessages','EtHxI','mBWQE','kOzHu','(((.+)+)+)+$','2037573ZzQFbU','SzgNp','rWryY','content','tool_calls','203Iguwse','538911cwrjfc','bKNjG','HumanMessage','2644644VlTwKF','xCswW','jguoV','DrpOw','fHzSj','CgQWU','length','5uOVrUC','DBqPY','MDoFO','tool_call_id','MSmnA','tool','LvHim','fSQHe','19568ULdwwx','euSHL','MyhSf','bDKmp','pFmqh','bNgPQ','../utils/message-util','isEmptyObject','jVTGy','@langchain/core/messages','inDaW','qeVFI','writeDoc','defineProperty','MessageUtil'];a12_0x1d4a=function(){return _0x5cc9ee;};return a12_0x1d4a();}const messages_1=require(a12_0x40624c(0xb5)),message_util_1=require(a12_0x40624c(0xb2));class Memory{constructor(_0x30aeed){const _0x8a7c9f=a12_0x40624c,_0x46755f={'bNgPQ':_0x8a7c9f(0xef),'inDaW':_0x8a7c9f(0xd9),'sTUys':function(_0x587d8c,_0xae2b45){return _0x587d8c!==_0xae2b45;},'TRrPz':_0x8a7c9f(0xed)};this[_0x8a7c9f(0xd7)]=new Map();if(_0x30aeed){if(_0x46755f[_0x8a7c9f(0xb6)]!==_0x46755f[_0x8a7c9f(0xb6)])return _0x9ff93[_0x46755f[_0x8a7c9f(0xb1)]]=_0x54d58b[_0x8a7c9f(0xba)]['makeToolStruct'](_0x13c2cd[_0x8a7c9f(0xef)]),_0x16eee4;else for(const _0x3645e2 of _0x30aeed){if(_0x46755f[_0x8a7c9f(0xbd)](_0x46755f['TRrPz'],_0x8a7c9f(0xed))){const _0x2eaa42=_0x5c7d53['apply'](_0x543c0d,arguments);return _0x35c814=null,_0x2eaa42;}else this[_0x8a7c9f(0xe6)](_0x3645e2);}}else{}}[a12_0x40624c(0xe6)](_0x2a9552){const _0x24a0a2=a12_0x40624c;let _0x56336c=this[_0x24a0a2(0xd7)]['get'](_0x2a9552);return!_0x56336c&&(_0x56336c=[],this[_0x24a0a2(0xd7)][_0x24a0a2(0xd5)](_0x2a9552,_0x56336c)),_0x56336c;}[a12_0x40624c(0xc9)](){const _0xa023f2=[];for(const [_0x276fbc]of this['nameSpaceMap']){_0xa023f2['push']({'nameSpace':_0x276fbc,'history':[]});}return _0xa023f2;}[a12_0x40624c(0xce)](_0x2ff69f){const _0x1600a9=a12_0x40624c,_0x980366={'BWJiI':function(_0x1f27c3,_0x5d7972){return _0x1f27c3>_0x5d7972;},'cfVcp':_0x1600a9(0xa9),'MPzfD':function(_0x573db8,_0x315ce4){return _0x573db8!==_0x315ce4;}};for(const _0x2fde5b of _0x2ff69f){if(_0x980366['MPzfD'](_0x1600a9(0xd8),_0x1600a9(0xcb))){const _0x4fab35=_0x2fde5b[_0x1600a9(0xd2)],_0x5240be=_0x4fab35[_0x1600a9(0xc8)](_0xcf5fcc=>{const _0x4af165=_0x1600a9;switch(_0xcf5fcc['type']){case _0x4af165(0xbc):return new messages_1[(_0x4af165(0xdf))]({'content':_0xcf5fcc['content'],'id':_0xcf5fcc['id']});case _0x4af165(0xc5):return new messages_1[(_0x4af165(0xf3))]({'content':_0xcf5fcc[_0x4af165(0xee)],'id':_0xcf5fcc['id'],'additional_kwargs':_0xcf5fcc[_0x4af165(0xc0)]});case'ai':return _0x980366['BWJiI'](_0xcf5fcc[_0x4af165(0xef)]?.[_0x4af165(0xfa)],0x0)?new messages_1['AIMessage']({'content':_0xcf5fcc[_0x4af165(0xee)],'id':_0xcf5fcc['id'],'additional_kwargs':_0xcf5fcc['additional_kwargs'],'tool_calls':message_util_1[_0x4af165(0xba)][_0x4af165(0xc7)](_0xcf5fcc[_0x4af165(0xef)])}):new messages_1['AIMessage']({'content':_0xcf5fcc[_0x4af165(0xee)],'id':_0xcf5fcc['id'],'additional_kwargs':_0xcf5fcc[_0x4af165(0xc0)]});case _0x980366['cfVcp']:return new messages_1[(_0x4af165(0xc1))]({'content':_0xcf5fcc[_0x4af165(0xee)],'id':_0xcf5fcc['id'],'tool_call_id':_0xcf5fcc[_0x4af165(0xfe)],'status':_0xcf5fcc['status'],'name':_0xcf5fcc[_0x4af165(0xbe)],'additional_kwargs':_0xcf5fcc[_0x4af165(0xc0)]});}});this[_0x1600a9(0xd7)]['set'](_0x2fde5b[_0x1600a9(0xc6)],_0x5240be);}else{const _0x2af1b8=_0x34e78b?function(){const _0x15fc78=_0x1600a9;if(_0x38b2c4){const _0x2f6445=_0x48c46d[_0x15fc78(0xc2)](_0x19703f,arguments);return _0x94c744=null,_0x2f6445;}}:function(){};return _0x44c1eb=![],_0x2af1b8;}}return this;}[a12_0x40624c(0xb8)](_0x4b4d0f){const _0x5cef60=a12_0x40624c,_0x11dc36={'jguoV':function(_0x2fbbd3,_0x13f609){return _0x2fbbd3!==_0x13f609;},'fSQHe':'IUdQT','euSHL':_0x5cef60(0xf5),'DrpOw':'additional_kwargs','pWvei':_0x5cef60(0xa9),'xCASA':'tool_call_id','EtHxI':_0x5cef60(0xd3),'DBqPY':_0x5cef60(0xbe),'Nodyt':function(_0x34207d,_0x641748){return _0x34207d>_0x641748;},'thjMj':_0x5cef60(0xef),'zqHDq':_0x5cef60(0xea),'kOzHu':function(_0x3f6bad,_0x54c170){return _0x3f6bad===_0x54c170;},'Sgaye':_0x5cef60(0xb7),'BSXeJ':_0x5cef60(0xae),'MDoFO':function(_0x5d9286,_0xeff756){return _0x5d9286!==_0xeff756;},'CgQWU':_0x5cef60(0xd0),'pFmqh':_0x5cef60(0xdb)};for(const [_0xd5641a,_0x31e122]of this[_0x5cef60(0xd7)]){if(_0x11dc36[_0x5cef60(0xe9)](_0x11dc36['Sgaye'],_0x11dc36[_0x5cef60(0xc3)])){let _0x4c0a2c=this[_0x5cef60(0xd7)]['get'](_0x20871b);return!_0x4c0a2c&&(_0x4c0a2c=[],this[_0x5cef60(0xd7)][_0x5cef60(0xd5)](_0xa966e1,_0x4c0a2c)),_0x4c0a2c;}else{const _0x39b52f=_0x31e122[_0x5cef60(0xc8)](_0xb61f1a=>{const _0x301ad7=_0x5cef60;if(_0x11dc36[_0x301ad7(0xf6)](_0x11dc36[_0x301ad7(0xab)],_0x11dc36[_0x301ad7(0xad)])){const _0x5d9c03={'type':_0xb61f1a[_0x301ad7(0xe5)],'content':_0xb61f1a[_0x301ad7(0xee)],'id':_0xb61f1a['id']};!message_util_1[_0x301ad7(0xba)]['isEmptyObject'](_0xb61f1a[_0x301ad7(0xc0)])&&(_0x5d9c03[_0x11dc36[_0x301ad7(0xf7)]]=_0xb61f1a[_0x301ad7(0xc0)]);switch(_0xb61f1a[_0x301ad7(0xe5)]){case _0x11dc36[_0x301ad7(0xd4)]:const _0x391c47=_0xb61f1a;_0x5d9c03[_0x11dc36['xCASA']]=_0x391c47[_0x301ad7(0xfe)],_0x5d9c03[_0x11dc36[_0x301ad7(0xe7)]]=_0x391c47[_0x301ad7(0xd3)],_0x5d9c03[_0x11dc36[_0x301ad7(0xfc)]]=_0x391c47['name'];return _0x5d9c03;case'ai':const _0x2919b5=_0xb61f1a;if(_0x11dc36[_0x301ad7(0xd6)](_0x2919b5[_0x301ad7(0xef)][_0x301ad7(0xfa)],0x0))return _0x5d9c03[_0x11dc36[_0x301ad7(0xc4)]]=message_util_1['MessageUtil'][_0x301ad7(0xc7)](_0x2919b5[_0x301ad7(0xef)]),_0x5d9c03;default:return _0x5d9c03;}}else this['getMessages'](_0x3db054);});let _0x1cead9=![];for(const _0x4371a7 of _0x4b4d0f){if(_0x11dc36[_0x5cef60(0xfd)](_0x11dc36['CgQWU'],_0x11dc36[_0x5cef60(0xf9)])){this[_0x5cef60(0xd7)]=new _0x25237f();if(_0x29a8d3)for(const _0x5ac7a3 of _0x4fe067){this[_0x5cef60(0xe6)](_0x5ac7a3);}else{}}else{if(_0x4371a7[_0x5cef60(0xc6)]===_0xd5641a){_0x4371a7['history']=_0x39b52f,_0x1cead9=!![];break;}}}if(!_0x1cead9){if(_0x11dc36[_0x5cef60(0xb0)]!=='sOAly')_0x4b4d0f['push']({'nameSpace':_0xd5641a,'history':_0x39b52f});else return _0x56be99[_0x5cef60(0xdd)]()[_0x5cef60(0xcc)](CMgaGj['zqHDq'])[_0x5cef60(0xdd)]()[_0x5cef60(0xcd)](_0x28a3f5)[_0x5cef60(0xcc)](CMgaGj['zqHDq']);}}}}}exports[a12_0x40624c(0xda)]=Memory;
1
+ const a12_0x5f5a42=a12_0x1905;(function(_0x2016e7,_0x4f0543){const _0x55d3d8=a12_0x1905,_0x13d912=_0x2016e7();while(!![]){try{const _0x39f9dc=parseInt(_0x55d3d8(0xad))/0x1*(-parseInt(_0x55d3d8(0xa4))/0x2)+parseInt(_0x55d3d8(0xb8))/0x3+-parseInt(_0x55d3d8(0xa5))/0x4+parseInt(_0x55d3d8(0xbe))/0x5*(-parseInt(_0x55d3d8(0xbb))/0x6)+-parseInt(_0x55d3d8(0xc4))/0x7+-parseInt(_0x55d3d8(0xa2))/0x8*(parseInt(_0x55d3d8(0xae))/0x9)+parseInt(_0x55d3d8(0x9d))/0xa;if(_0x39f9dc===_0x4f0543)break;else _0x13d912['push'](_0x13d912['shift']());}catch(_0x3905d2){_0x13d912['push'](_0x13d912['shift']());}}}(a12_0x550d,0x9ab0e));const a12_0x29eabb=(function(){const _0x5520fa={'raySo':'lEYrC'};let _0x4e675d=!![];return function(_0x662715,_0x144993){const _0x19cfaf=a12_0x1905;if(_0x5520fa['raySo']===_0x19cfaf(0x9e)){const _0xb7fc94=_0x4e675d?function(){if(_0x144993){const _0x2c36e2=_0x144993['apply'](_0x662715,arguments);return _0x144993=null,_0x2c36e2;}}:function(){};return _0x4e675d=![],_0xb7fc94;}else{const _0xb638d9=_0x30511e[_0x19cfaf(0xa6)](_0x3ba3a7,arguments);return _0x38665e=null,_0xb638d9;}};}()),a12_0x167633=a12_0x29eabb(this,function(){const _0x2d9c8e=a12_0x1905,_0x178851={'GtXpg':_0x2d9c8e(0xb2)};return a12_0x167633[_0x2d9c8e(0xa3)]()[_0x2d9c8e(0x9b)]('(((.+)+)+)+$')['toString']()[_0x2d9c8e(0xac)](a12_0x167633)[_0x2d9c8e(0x9b)](_0x178851[_0x2d9c8e(0xbd)]);});a12_0x167633();'use strict';function a12_0x1905(_0x864559,_0x57dcc9){const _0xf3ba73=a12_0x550d();return a12_0x1905=function(_0x167633,_0x29eabb){_0x167633=_0x167633-0x96;let _0x550dbe=_0xf3ba73[_0x167633];return _0x550dbe;},a12_0x1905(_0x864559,_0x57dcc9);}Object['defineProperty'](exports,a12_0x5f5a42(0xa9),{'value':!![]}),exports['Memory']=void 0x0;function a12_0x550d(){const _0x440e50=['10cmErNj','type','ybpzM','push','MessageUtil','get','425187xqIykJ','getMessages','AIMessage','nameSpace','cgWrD','smtby','readDoc','tool_calls','SystemMessage','ziKXv','human','content','history','makeToolStruct','search','@langchain/core/messages','26345720OMsLjL','lEYrC','bnpZP','name','xwOpS','8lfhrNR','toString','18866rzmJxd','1998904XjLRKs','apply','set','isEmptyObject','__esModule','length','hjOJf','constructor','134PPPvBa','2446866QupMti','createOoc','nameSpaceMap','status','(((.+)+)+)+$','additional_kwargs','tool','../utils/message-util','tool_call_id','map','2844837JhMUMu','YrztH','rmJzB','2558622cXIkcX','writeDoc','GtXpg'];a12_0x550d=function(){return _0x440e50;};return a12_0x550d();}const messages_1=require(a12_0x5f5a42(0x9c)),message_util_1=require(a12_0x5f5a42(0xb5));class Memory{constructor(_0x45e8e4){const _0x97048d=a12_0x5f5a42;this[_0x97048d(0xb0)]=new Map();if(_0x45e8e4)for(const _0x215f28 of _0x45e8e4){this[_0x97048d(0xc5)](_0x215f28);}else{}}[a12_0x5f5a42(0xc5)](_0x46e8f3){const _0x31a801=a12_0x5f5a42;let _0x215a30=this[_0x31a801(0xb0)][_0x31a801(0xc3)](_0x46e8f3);return!_0x215a30&&(_0x215a30=[],this[_0x31a801(0xb0)][_0x31a801(0xa7)](_0x46e8f3,_0x215a30)),_0x215a30;}[a12_0x5f5a42(0xaf)](){const _0x51b9ab=a12_0x5f5a42,_0x114013=[];for(const [_0x45afcb]of this[_0x51b9ab(0xb0)]){_0x114013[_0x51b9ab(0xc1)]({'nameSpace':_0x45afcb,'history':[]});}return _0x114013;}[a12_0x5f5a42(0xca)](_0x3acbd5){const _0x567c53=a12_0x5f5a42,_0x2a8083={'nGpRY':function(_0x16fc19,_0xb21794){return _0x16fc19===_0xb21794;},'cgWrD':_0x567c53(0xc0),'bnpZP':_0x567c53(0xb4)};for(const _0x4a64fe of _0x3acbd5){const _0x3cb23b=_0x4a64fe[_0x567c53(0x99)],_0x490e54=_0x3cb23b[_0x567c53(0xb7)](_0x118199=>{const _0x3e89f9=_0x567c53;switch(_0x118199[_0x3e89f9(0xbf)]){case'system':return new messages_1[(_0x3e89f9(0xcc))]({'content':_0x118199[_0x3e89f9(0x98)],'id':_0x118199['id']});case _0x3e89f9(0x97):return new messages_1['HumanMessage']({'content':_0x118199[_0x3e89f9(0x98)],'id':_0x118199['id'],'additional_kwargs':_0x118199[_0x3e89f9(0xb3)]});case'ai':return _0x118199[_0x3e89f9(0xcb)]?.[_0x3e89f9(0xaa)]>0x0?_0x2a8083['nGpRY'](_0x2a8083[_0x3e89f9(0xc8)],_0x3e89f9(0xc0))?new messages_1[(_0x3e89f9(0xc6))]({'content':_0x118199[_0x3e89f9(0x98)],'id':_0x118199['id'],'additional_kwargs':_0x118199[_0x3e89f9(0xb3)],'tool_calls':message_util_1['MessageUtil'][_0x3e89f9(0x9a)](_0x118199[_0x3e89f9(0xcb)])}):new _0x4df900['AIMessage']({'content':_0x45a1b5[_0x3e89f9(0x98)],'id':_0x2ed463['id'],'additional_kwargs':_0x39c9c3[_0x3e89f9(0xb3)]}):new messages_1[(_0x3e89f9(0xc6))]({'content':_0x118199[_0x3e89f9(0x98)],'id':_0x118199['id'],'additional_kwargs':_0x118199[_0x3e89f9(0xb3)]});case _0x2a8083[_0x3e89f9(0x9f)]:return new messages_1['ToolMessage']({'content':_0x118199[_0x3e89f9(0x98)],'id':_0x118199['id'],'tool_call_id':_0x118199[_0x3e89f9(0xb6)],'status':_0x118199[_0x3e89f9(0xb1)],'name':_0x118199[_0x3e89f9(0xa0)],'additional_kwargs':_0x118199[_0x3e89f9(0xb3)]});}});this[_0x567c53(0xb0)][_0x567c53(0xa7)](_0x4a64fe[_0x567c53(0xc7)],_0x490e54);}return this;}[a12_0x5f5a42(0xbc)](_0x102234){const _0x30a352=a12_0x5f5a42,_0x4419cf={'ziKXv':_0x30a352(0xc9),'rmJzB':'additional_kwargs','xwOpS':'tool','YMpPm':_0x30a352(0xb6),'fAKeY':_0x30a352(0xb1),'hjOJf':_0x30a352(0xa0),'YrztH':'tool_calls'};for(const [_0x241783,_0x3fcaed]of this[_0x30a352(0xb0)]){const _0x1cb59b=_0x3fcaed[_0x30a352(0xb7)](_0xa84d91=>{const _0x500670=_0x30a352;if(_0x4419cf[_0x500670(0x96)]===_0x4419cf['ziKXv']){const _0x5f998f={'type':_0xa84d91[_0x500670(0xbf)],'content':_0xa84d91[_0x500670(0x98)],'id':_0xa84d91['id']};!message_util_1[_0x500670(0xc2)][_0x500670(0xa8)](_0xa84d91[_0x500670(0xb3)])&&(_0x5f998f[_0x4419cf[_0x500670(0xba)]]=_0xa84d91[_0x500670(0xb3)]);switch(_0xa84d91[_0x500670(0xbf)]){case _0x4419cf[_0x500670(0xa1)]:const _0x5c2f0d=_0xa84d91;_0x5f998f[_0x4419cf['YMpPm']]=_0x5c2f0d[_0x500670(0xb6)],_0x5f998f[_0x4419cf['fAKeY']]=_0x5c2f0d['status'],_0x5f998f[_0x4419cf[_0x500670(0xab)]]=_0x5c2f0d['name'];return _0x5f998f;case'ai':const _0x2223c6=_0xa84d91;if(_0x2223c6[_0x500670(0xcb)][_0x500670(0xaa)]>0x0)return _0x5f998f[_0x4419cf[_0x500670(0xb9)]]=message_util_1['MessageUtil'][_0x500670(0x9a)](_0x2223c6[_0x500670(0xcb)]),_0x5f998f;default:return _0x5f998f;}}else for(const _0x41f514 of _0xde52){this[_0x500670(0xc5)](_0x41f514);}});let _0x148214=![];for(const _0x4eabb6 of _0x102234){if(_0x4eabb6[_0x30a352(0xc7)]===_0x241783){_0x4eabb6[_0x30a352(0x99)]=_0x1cb59b,_0x148214=!![];break;}}!_0x148214&&_0x102234[_0x30a352(0xc1)]({'nameSpace':_0x241783,'history':_0x1cb59b});}}}exports['Memory']=Memory;
package/flow/step.d.ts CHANGED
@@ -27,10 +27,9 @@ export declare abstract class Step {
27
27
  set active(flag: boolean);
28
28
  get contentType(): HttpContentType;
29
29
  set contentType(ctType: HttpContentType);
30
- getState(key?: string): object;
31
- getStateAs<T>(key?: string): T;
32
- saveState(json: object): void;
33
- mergeState(json: object): void;
30
+ getState(key?: string, isTransient?: boolean): object;
31
+ getStateAs<T>(key?: string, isTransient?: boolean): T;
32
+ saveState(json: object, isTransient?: boolean): void;
34
33
  sessionCompleted(): void;
35
34
  getContext<T>(key: string): T;
36
35
  removeState(key: string): void;
package/flow/step.js CHANGED
@@ -1 +1 @@
1
- const a13_0xc65c84=a13_0x17d5;function a13_0x17d5(_0x4c7284,_0x1393ee){const _0x3d81a6=a13_0x135f();return a13_0x17d5=function(_0x3b5e8a,_0x2de909){_0x3b5e8a=_0x3b5e8a-0x157;let _0x135f1e=_0x3d81a6[_0x3b5e8a];return _0x135f1e;},a13_0x17d5(_0x4c7284,_0x1393ee);}(function(_0x4a1835,_0x143cbf){const _0x4f1f07=a13_0x17d5,_0x411a4a=_0x4a1835();while(!![]){try{const _0x148217=-parseInt(_0x4f1f07(0x1df))/0x1+-parseInt(_0x4f1f07(0x1ee))/0x2+parseInt(_0x4f1f07(0x1ec))/0x3+parseInt(_0x4f1f07(0x1a3))/0x4+parseInt(_0x4f1f07(0x185))/0x5*(parseInt(_0x4f1f07(0x16f))/0x6)+parseInt(_0x4f1f07(0x1b7))/0x7*(-parseInt(_0x4f1f07(0x1d7))/0x8)+-parseInt(_0x4f1f07(0x16c))/0x9*(-parseInt(_0x4f1f07(0x19e))/0xa);if(_0x148217===_0x143cbf)break;else _0x411a4a['push'](_0x411a4a['shift']());}catch(_0x2223cc){_0x411a4a['push'](_0x411a4a['shift']());}}}(a13_0x135f,0x48f4c));const a13_0x2de909=(function(){const _0x38efbd=a13_0x17d5,_0x14e146={'qUHGz':_0x38efbd(0x1af),'SvvrS':'pPGcf'};let _0x3d2d98=!![];return function(_0xdc4620,_0x5c9379){const _0x3d6543=_0x38efbd,_0x51478b={'mMEVb':_0x3d6543(0x1d5),'hDomR':_0x3d6543(0x1d0),'Tnpdm':_0x3d6543(0x19f),'IYuhS':_0x14e146[_0x3d6543(0x1cb)],'ZdNsL':_0x14e146[_0x3d6543(0x1fd)]},_0x32f8f2=_0x3d2d98?function(){const _0x3bc9b1=_0x3d6543,_0x1db8f2={'Slqvf':_0x51478b['mMEVb']};if(_0x51478b[_0x3bc9b1(0x1e7)]===_0x51478b[_0x3bc9b1(0x19a)])return _0x7ef163['toString']()['search'](_0x1db8f2[_0x3bc9b1(0x1c4)])[_0x3bc9b1(0x17a)]()[_0x3bc9b1(0x1b8)](_0xc5bafa)[_0x3bc9b1(0x18b)](_0x1db8f2['Slqvf']);else{if(_0x5c9379){if(_0x51478b[_0x3bc9b1(0x16d)]===_0x51478b[_0x3bc9b1(0x187)])return _0x101eaa;else{const _0x1b3ae4=_0x5c9379['apply'](_0xdc4620,arguments);return _0x5c9379=null,_0x1b3ae4;}}}}:function(){};return _0x3d2d98=![],_0x32f8f2;};}()),a13_0x3b5e8a=a13_0x2de909(this,function(){const _0x12a087=a13_0x17d5,_0xfb2f85={'sQRtU':_0x12a087(0x1d5)};return a13_0x3b5e8a[_0x12a087(0x17a)]()[_0x12a087(0x18b)](_0x12a087(0x1d5))[_0x12a087(0x17a)]()['constructor'](a13_0x3b5e8a)[_0x12a087(0x18b)](_0xfb2f85[_0x12a087(0x189)]);});a13_0x3b5e8a();'use strict';var __importDefault=this&&this[a13_0xc65c84(0x1a9)]||function(_0x226649){const _0xbf2c65=a13_0xc65c84;return _0x226649&&_0x226649[_0xbf2c65(0x183)]?_0x226649:{'default':_0x226649};};Object[a13_0xc65c84(0x195)](exports,a13_0xc65c84(0x183),{'value':!![]}),exports[a13_0xc65c84(0x169)]=void 0x0;const lodash_1=require(a13_0xc65c84(0x199)),moment_1=__importDefault(require('moment')),messages_1=require(a13_0xc65c84(0x167)),llm_runner_1=require(a13_0xc65c84(0x200)),message_util_1=require(a13_0xc65c84(0x19c)),content_type_1=require(a13_0xc65c84(0x1d8)),llm_file_js_1=require(a13_0xc65c84(0x1a2));function a13_0x135f(){const _0x4578ab=['mljCK','ugaSD','youYH','isActive','HFjDF','activate','Slqvf','sessionCompleted','getState','pvjvd','name','cxObz','TryJh','qUHGz','createDoc','onExit','UCLod','Start','yOOvh','useMemory','saveState','Plain','ZIZUj','(((.+)+)+)+$','OPENAI','8TeXbHa','./content-type','getStopTool','gpt','yugHH','modelParams','runStep','2|5|6|0|8|4|3|1|7','518416kXZOEo','NWEYt','completed','lvByi','WoJar','eraseMemory','run','tUTBM','hDomR','ctType','oJUQl','dxdes','isEnd','647559MtqBLL','getStateAs','901816zUkasw','LlmRunner','rEgbe','getContext','getTool','_stopTool','UzIcB','HumanMessageEx','PtwsV','map','send','onResponse','merge','JUBLt','getModelParams','SvvrS','additional_kwargs','memorySpace','./llm-runner','UwrIV','state','zjxRu','onCrossing','readDoc','_prompt','SystemMessage','modelParamsName','UeGpW','contentType','TYrKa','YYYY-MM-DDTHH:mm:ss.SSS[Z]','gemini','vFzNg','rmVck','bAESR','format','getModelParamsModelName','FGHMz','GEMINI','GmTZO','tUZBo','@langchain/core/messages','getModel','Step','random','modelName','9rflSxK','IYuhS','NCHLc','23778RNkevp','getPrompt','HttpContentType','useModelParams','uuVsm','runStatus','genMessageId','split','oudsg','length','getSessionDoc','toString','flow','default','VqTWW','DLrWL','ssxgs','onEnter','getMemory','activateByName','__esModule','setStopTool','15DSoNiu','callStepTool','ZdNsL','SMiYe','sQRtU','amendTool','search','claude','LLMType','removeState','yannj','gNCMR','startsWith','PhazR','push','kKplA','defineProperty','writeDoc','getStep','xnpTu','lodash','Tnpdm','\x20to\x20ensure\x20the\x20tool\x20is\x20triggered.','../utils/message-util','toLowerCase','11492260DELViX','lMsRE','isToolAvailable','isLogic','../utils/llm-file.js','318292bVSzvc','ZjPiy','PiiYL','DZSRa','toDate','active','__importDefault','random10Digits','haVbG','floor','omit','IFmdo','dkyQV','CgCiQ','getName','EiJVX','get','trim','XoNOI','UNSUPPORTED','1318723cQPDRY','constructor','PkSre','stopTool','MHBCi','AMnkd','utc'];a13_0x135f=function(){return _0x4578ab;};return a13_0x135f();}class Step{constructor(_0x1731ce,_0x54263c,_0x379784=![]){const _0x375848=a13_0xc65c84,_0x51accd={'gNCMR':_0x375848(0x1de)},_0x4eb764=_0x51accd[_0x375848(0x190)]['split']('|');let _0x2ec0ba=0x0;while(!![]){switch(_0x4eb764[_0x2ec0ba++]){case'0':this[_0x375848(0x1dc)]={};continue;case'1':this[_0x375848(0x1c1)]=_0x379784;continue;case'2':this[_0x375848(0x1c1)]=![];continue;case'3':this[_0x375848(0x17b)]=_0x54263c;continue;case'4':this['name']=_0x1731ce['name'];continue;case'5':this[_0x375848(0x202)]={};continue;case'6':this['modelName']=undefined;continue;case'7':this['memorySpace']=_0x1731ce[_0x375848(0x1c8)];continue;case'8':this[_0x375848(0x1e8)]=content_type_1[_0x375848(0x171)][_0x375848(0x1d3)];continue;}break;}}[a13_0xc65c84(0x1b1)](){const _0x1357bd=a13_0xc65c84;return this[_0x1357bd(0x1c8)];}[a13_0xc65c84(0x180)](){}['onExit'](){}[a13_0xc65c84(0x1f9)](_0x3ef196){return _0x3ef196;}get[a13_0xc65c84(0x1a8)](){const _0x367491=a13_0xc65c84;return this[_0x367491(0x1c1)];}[a13_0xc65c84(0x1a1)](){return![];}set[a13_0xc65c84(0x1a8)](_0x2d27e6){const _0x155224=a13_0xc65c84,_0x40955a={'VqTWW':function(_0x5b7493,_0x25e1ad){return _0x5b7493===_0x25e1ad;},'GmTZO':_0x155224(0x1cf),'lvByi':function(_0x388273,_0x245768){return _0x388273!==_0x245768;},'Vtwxi':_0x155224(0x15f)};if(!this['isActive']&&_0x2d27e6){if(_0x40955a[_0x155224(0x1e2)](_0x40955a['Vtwxi'],'YHmvr'))this[_0x155224(0x180)]();else{const _0x5db2c7=this[_0x155224(0x181)]();_0x40955a[_0x155224(0x17d)](_0x5db2c7[_0x155224(0x178)],0x1)&&(_0x43c3f0=new _0x3c5c3a[(_0x155224(0x1f5))](this,_0x40955a[_0x155224(0x165)]));}}this[_0x155224(0x1c1)]&&!_0x2d27e6&&this[_0x155224(0x1cd)](),this[_0x155224(0x1c1)]=_0x2d27e6;}get[a13_0xc65c84(0x15a)](){const _0x19fa45=a13_0xc65c84;return this[_0x19fa45(0x1e8)];}set[a13_0xc65c84(0x15a)](_0x1a62d7){const _0xdb7bcb=a13_0xc65c84;this[_0xdb7bcb(0x1e8)]=_0x1a62d7;}[a13_0xc65c84(0x1c6)](_0x59a0a8){const _0x26d9f6=a13_0xc65c84;if(_0x59a0a8)return(0x0,lodash_1[_0x26d9f6(0x1b3)])(this[_0x26d9f6(0x202)],_0x59a0a8);return this[_0x26d9f6(0x202)];}[a13_0xc65c84(0x1ed)](_0x4f5303){const _0x5325a2=a13_0xc65c84,_0x55e53c={'rEgbe':function(_0x38d557,_0xb28453){return _0x38d557!==_0xb28453;},'UwrIV':_0x5325a2(0x1c7)};if(_0x4f5303){if(_0x55e53c[_0x5325a2(0x1f0)](_0x55e53c[_0x5325a2(0x201)],'pvjvd'))_0x138637&&(this['state']=(0x0,_0x2fd527[_0x5325a2(0x1fa)])({},this[_0x5325a2(0x202)],_0x5ac27d),this[_0x5325a2(0x202)]=(0x0,_0x45f56d[_0x5325a2(0x1fa)])(this['state'],{'_saveOn':(0x0,_0x42169f[_0x5325a2(0x17c)])()[_0x5325a2(0x1a7)]()}));else return(0x0,lodash_1[_0x5325a2(0x1b3)])(this['state'],_0x4f5303);}return this['state'];}[a13_0xc65c84(0x1d2)](_0xda1fd5){const _0x460b69=a13_0xc65c84;_0xda1fd5&&(this[_0x460b69(0x202)]=(0x0,lodash_1[_0x460b69(0x1ad)])(this[_0x460b69(0x202)],Object['keys'](_0xda1fd5)[0x0]),this[_0x460b69(0x202)]=(0x0,lodash_1[_0x460b69(0x1fa)])({},this[_0x460b69(0x202)],_0xda1fd5),this[_0x460b69(0x202)]=(0x0,lodash_1[_0x460b69(0x1fa)])(this[_0x460b69(0x202)],{'_saveOn':(0x0,moment_1['default'])()[_0x460b69(0x1a7)]()}));}['mergeState'](_0x2f3369){const _0x1fa51c=a13_0xc65c84;_0x2f3369&&(this[_0x1fa51c(0x202)]=(0x0,lodash_1[_0x1fa51c(0x1fa)])({},this[_0x1fa51c(0x202)],_0x2f3369),this['state']=(0x0,lodash_1['merge'])(this[_0x1fa51c(0x202)],{'_saveOn':(0x0,moment_1['default'])()[_0x1fa51c(0x1a7)]()}));}[a13_0xc65c84(0x1c5)](){const _0x5d8c3d=a13_0xc65c84,_0x399511={'PkSre':_0x5d8c3d(0x1e1)},_0x12f030=this[_0x5d8c3d(0x17b)]['getSessionDoc']();_0x12f030[_0x5d8c3d(0x174)]=_0x399511[_0x5d8c3d(0x1b9)];}['getContext'](_0x2de893){const _0x2da045=a13_0xc65c84;return this['flow'][_0x2da045(0x1f1)](_0x2de893);}[a13_0xc65c84(0x18e)](_0x4df4d7){const _0x40d19b=a13_0xc65c84;this[_0x40d19b(0x202)]=(0x0,lodash_1[_0x40d19b(0x1ad)])(this['state'],_0x4df4d7);}[a13_0xc65c84(0x170)](){const _0x55e843=a13_0xc65c84,_0x455fd5={'MHBCi':'_prompt'},_0x42fee7=this[_0x55e843(0x1c6)](_0x455fd5[_0x55e843(0x1bb)]);return _0x42fee7?_0x42fee7[_0x55e843(0x17a)]():null;}[a13_0xc65c84(0x204)](_0x5cb71e,_0x502f47){const _0x1e9a11=a13_0xc65c84,_0x57b2a3={'TryJh':function(_0x5e2cce,_0x36f0e9){return _0x5e2cce===_0x36f0e9;},'yannj':'WXPmU'};if(!_0x5cb71e){if(_0x57b2a3[_0x1e9a11(0x18f)]!==_0x57b2a3['yannj']){if(!_0x8f5575){const _0x4a5b05=this['getMemory']();_0x57b2a3[_0x1e9a11(0x1ca)](_0x4a5b05[_0x1e9a11(0x178)],0x1)&&(_0x5e1854=new _0x1063fd[(_0x1e9a11(0x1f5))](this,_0x1e9a11(0x1cf)));}return _0x405698;}else{const _0x1bed24=this[_0x1e9a11(0x181)]();if(_0x1bed24[_0x1e9a11(0x178)]===0x1){if(_0x1e9a11(0x1e6)==='tUTBM')_0x5cb71e=new message_util_1[(_0x1e9a11(0x1f5))](this,'Start');else return null;}}}return _0x5cb71e;}[a13_0xc65c84(0x181)](){const _0x4861c9=a13_0xc65c84,_0x2c515a={'cbNrU':function(_0x40c869,_0x5bfdd7){return _0x40c869===_0x5bfdd7;}},_0x3d466f=this[_0x4861c9(0x17b)][_0x4861c9(0x181)](this[_0x4861c9(0x1ff)]);return _0x2c515a['cbNrU'](_0x3d466f[_0x4861c9(0x178)],0x0)&&_0x3d466f[_0x4861c9(0x193)](new messages_1[(_0x4861c9(0x157))]({'content':'','id':this['genMessageId']()})),_0x3d466f;}['getLastMessage'](){const _0x357d8c=a13_0xc65c84,_0x13fd64={'SMiYe':function(_0x32091d,_0x468085){return _0x32091d>_0x468085;},'vFzNg':function(_0x19a2e6,_0x1794ae){return _0x19a2e6-_0x1794ae;}},_0x2d460c=this[_0x357d8c(0x17b)][_0x357d8c(0x181)](this['memorySpace']);if(_0x13fd64[_0x357d8c(0x188)](_0x2d460c[_0x357d8c(0x178)],0x0))return _0x2d460c[_0x13fd64[_0x357d8c(0x15e)](_0x2d460c[_0x357d8c(0x178)],0x1)];return null;}[a13_0xc65c84(0x1d1)](_0x474666){const _0x2a482d=a13_0xc65c84;return this[_0x2a482d(0x1ff)]=_0x474666,this;}['useModel'](_0x33eb87,_0x9eaa85){const _0x5649cf=a13_0xc65c84;return this[_0x5649cf(0x16b)]=_0x33eb87,this[_0x5649cf(0x158)]=_0x33eb87,_0x9eaa85&&this[_0x5649cf(0x172)](_0x9eaa85),this;}[a13_0xc65c84(0x172)](_0xe96c62,_0x54638a){const _0x3eb961=a13_0xc65c84,_0x51c57d={'PhazR':'string','UeGpW':function(_0x1c50fd,_0x5ad19a){return _0x1c50fd??_0x5ad19a;}};if(typeof _0xe96c62===_0x51c57d[_0x3eb961(0x192)])return this['modelParamsName']=_0xe96c62,this[_0x3eb961(0x1dc)]=(0x0,lodash_1[_0x3eb961(0x1fa)])({},this[_0x3eb961(0x1dc)],_0x51c57d[_0x3eb961(0x159)](_0x54638a,{})),this;return this[_0x3eb961(0x158)]=this[_0x3eb961(0x16b)]??this[_0x3eb961(0x17b)][_0x3eb961(0x168)](),this['modelParams']=(0x0,lodash_1[_0x3eb961(0x1fa)])({},this[_0x3eb961(0x1dc)],_0xe96c62),this;}[a13_0xc65c84(0x168)](){const _0x5943f0=a13_0xc65c84;return this[_0x5943f0(0x16b)];}[a13_0xc65c84(0x1fc)](){return this['modelParams'];}[a13_0xc65c84(0x162)](){const _0x2dd9af=a13_0xc65c84;return this[_0x2dd9af(0x158)];}['defineTool'](){return null;}[a13_0xc65c84(0x1a0)](_0x7e0b3){const _0x16d804=a13_0xc65c84;for(const _0x98738 of this[_0x16d804(0x1f2)]()){if(_0x98738===_0x7e0b3)return!![];}return![];}[a13_0xc65c84(0x1f2)](){return[];}['getStopTool'](){return[];}['obtainTools'](){const _0x1ce168=a13_0xc65c84,_0x2c145b=this[_0x1ce168(0x1f2)]();return _0x2c145b[_0x1ce168(0x1f7)](_0x3fc726=>{const _0x4b29a9=_0x1ce168;return this[_0x4b29a9(0x17b)]['getTool'](_0x3fc726);});}[a13_0xc65c84(0x18a)](_0x4e74c2){const _0x1871c1=a13_0xc65c84,_0x280014={'bAESR':_0x1871c1(0x1f3)},_0x1a1417=this[_0x1871c1(0x1d9)]();for(const _0x53d0be of _0x1a1417){const _0x2836d7=this[_0x1871c1(0x1c6)](_0x280014[_0x1871c1(0x160)])[_0x53d0be],_0x13112b='**Important:**\x20After\x20collecting\x20data,\x20call\x20tool\x20'+_0x53d0be+_0x1871c1(0x19b),_0x2192dc=_0x2836d7?_0x13112b:'';_0x4e74c2=_0x4e74c2['replace']('{{'+_0x53d0be+'}}',_0x2192dc);}return _0x4e74c2;}async['invokeTool'](_0x5c5dcb){return null;}async[a13_0xc65c84(0x1e5)](_0x5c8c00){const _0x1f6679=a13_0xc65c84,_0x2c8369={'UzIcB':_0x1f6679(0x206),'DLrWL':function(_0x34f3dc,_0xcd113a){return _0x34f3dc===_0xcd113a;},'oJUQl':_0x1f6679(0x1ab),'mljCK':_0x1f6679(0x1c2),'NWEYt':function(_0x418c1f,_0xf01e97){return _0x418c1f===_0xf01e97;},'EiJVX':_0x1f6679(0x1fb),'TYrKa':_0x1f6679(0x1c0)};let _0x36df03;if(!_0x5c8c00){if(_0x2c8369[_0x1f6679(0x17e)](_0x2c8369[_0x1f6679(0x1e9)],_0x2c8369[_0x1f6679(0x1be)])){for(const _0x5e9d3e of this['getTool']()){if(_0x5e9d3e===_0xe5aef2)return!![];}return![];}else _0x36df03=this[_0x1f6679(0x204)](null);}else{if(_0x2c8369[_0x1f6679(0x1e0)](_0x2c8369[_0x1f6679(0x1b2)],_0x2c8369[_0x1f6679(0x15b)])){const _0x538125=this['getState'](_0x2c8369[_0x1f6679(0x1f4)]);return _0x538125?_0x538125[_0x1f6679(0x17a)]():null;}else _0x36df03=new message_util_1[(_0x1f6679(0x1f5))](this,_0x5c8c00);}const _0x3a6266=this[_0x1f6679(0x1d9)]();for(const _0x2e5932 of _0x3a6266){this[_0x1f6679(0x1d2)]({'_stopTool':{[_0x2e5932]:!![]}});}const _0x36b731=await llm_runner_1[_0x1f6679(0x1ef)][_0x1f6679(0x1f8)](this['flow'],_0x36df03);return _0x36b731;}async[a13_0xc65c84(0x1dd)](_0x51941c,_0x4d611a){const _0x3f21e1=a13_0xc65c84,_0x46b1bf=await this['flow'][_0x3f21e1(0x1c3)](_0x51941c),_0x748b4f=await _0x46b1bf['run'](_0x4d611a);return await this['flow'][_0x3f21e1(0x182)](this['name']),_0x748b4f;}[a13_0xc65c84(0x1eb)](){const _0x196287=a13_0xc65c84,_0x428fd6={'ZjPiy':function(_0x2c3f64,_0x5545cb){return _0x2c3f64===_0x5545cb;},'dxdes':_0x196287(0x1e1)};return _0x428fd6[_0x196287(0x1a4)](this['flow'][_0x196287(0x179)]()[_0x196287(0x174)],_0x428fd6[_0x196287(0x1ea)]);}[a13_0xc65c84(0x196)](_0x1523c3){const _0x348cf0=a13_0xc65c84,_0x1d302b={'uuVsm':function(_0x442c1f,_0x598287){return _0x442c1f===_0x598287;}};for(const _0xdae57b of _0x1523c3){_0x1d302b[_0x348cf0(0x173)](_0xdae57b[_0x348cf0(0x1c8)],this[_0x348cf0(0x1c8)])&&(_0xdae57b[_0x348cf0(0x1c1)]=this[_0x348cf0(0x1c1)],_0xdae57b[_0x348cf0(0x202)]=this[_0x348cf0(0x202)],!this[_0x348cf0(0x1a1)]()&&(_0xdae57b[_0x348cf0(0x16b)]=this[_0x348cf0(0x16b)],_0xdae57b[_0x348cf0(0x158)]=this['modelParamsName'],_0xdae57b[_0x348cf0(0x1dc)]=this[_0x348cf0(0x1dc)]));}}[a13_0xc65c84(0x205)](_0x62becd){const _0x384cc7=a13_0xc65c84,_0x987546={'ZIZUj':'2|5|0|6|4|1|7|3|8','xnpTu':function(_0x233163,_0xa1dd8b){return _0x233163!==_0xa1dd8b;},'yugHH':_0x384cc7(0x1a5),'AMnkd':function(_0x4d280e,_0x15bdd6){return _0x4d280e===_0x15bdd6;},'WoJar':function(_0x4d7a14,_0x1dfb09){return _0x4d7a14===_0x1dfb09;},'IFmdo':'fluRB'};for(const _0x442784 of _0x62becd){if(_0x987546['xnpTu'](_0x987546[_0x384cc7(0x1db)],_0x987546[_0x384cc7(0x1db)]))return _0x37defe[_0x384cc7(0x18d)][_0x384cc7(0x164)];else{if(_0x987546[_0x384cc7(0x1bc)](_0x442784[_0x384cc7(0x1c8)],this[_0x384cc7(0x1c8)])){if(_0x987546[_0x384cc7(0x1e3)](_0x987546[_0x384cc7(0x1ae)],_0x987546[_0x384cc7(0x1ae)])){this[_0x384cc7(0x1c1)]=_0x442784[_0x384cc7(0x1c1)],this[_0x384cc7(0x202)]=_0x442784['state'];_0x442784[_0x384cc7(0x16b)]&&(this['modelName']=_0x442784[_0x384cc7(0x16b)]);this[_0x384cc7(0x158)]=_0x442784[_0x384cc7(0x158)],this[_0x384cc7(0x1dc)]=(0x0,lodash_1[_0x384cc7(0x1fa)])({},_0x442784[_0x384cc7(0x1dc)]??{});const _0x17663f=_0x442784['temperature'];_0x987546[_0x384cc7(0x198)](_0x17663f,undefined)&&this[_0x384cc7(0x1dc)]['temperature']===undefined&&(this[_0x384cc7(0x1dc)]['temperature']=_0x17663f);}else{const _0x3cb6a1=_0x987546[_0x384cc7(0x1d4)][_0x384cc7(0x176)]('|');let _0x4f9942=0x0;while(!![]){switch(_0x3cb6a1[_0x4f9942++]){case'0':this[_0x384cc7(0x16b)]=_0x4f8774;continue;case'1':this['name']=_0x5fa839['name'];continue;case'2':this[_0x384cc7(0x1c1)]=![];continue;case'3':this[_0x384cc7(0x1c1)]=_0xe46c1a;continue;case'4':this[_0x384cc7(0x1e8)]=_0x482c8a[_0x384cc7(0x171)]['Plain'];continue;case'5':this[_0x384cc7(0x202)]={};continue;case'6':this[_0x384cc7(0x1dc)]={};continue;case'7':this[_0x384cc7(0x17b)]=_0x1ceb56;continue;case'8':this['memorySpace']=_0x5e0219['name'];continue;}break;}}}}}}[a13_0xc65c84(0x1cc)](){const _0x5015b3=a13_0xc65c84;return{'name':this[_0x5015b3(0x1c8)],'isActive':this[_0x5015b3(0x1c1)],'state':this[_0x5015b3(0x202)],'modelName':this[_0x5015b3(0x16b)],'modelParamsName':this['modelParamsName'],'modelParams':this[_0x5015b3(0x1dc)]};}[a13_0xc65c84(0x1e4)](){const _0x5c6809=a13_0xc65c84,_0x43dde6=this['flow']['getMemory'](this[_0x5c6809(0x1ff)]);return _0x43dde6[_0x5c6809(0x178)]=0x0,_0x43dde6;}async[a13_0xc65c84(0x186)](_0x46d379,_0xa7c930){const _0x151dfb=a13_0xc65c84,_0x4be105={'XoNOI':function(_0x2d48b2,_0x5118b6){return _0x2d48b2===_0x5118b6;},'kKplA':'function','DZSRa':function(_0x53cb53,_0x596ca6){return _0x53cb53!==_0x596ca6;},'CgCiQ':_0x151dfb(0x203),'zgAqG':'EYupk'},_0x41fff4=this[_0x151dfb(0x17b)][_0x151dfb(0x197)](_0x46d379[_0x151dfb(0x1c8)]);return _0x4be105[_0x151dfb(0x1b5)](typeof this[_0xa7c930[_0x151dfb(0x1c8)]],_0x4be105[_0x151dfb(0x194)])?await _0x41fff4[_0xa7c930[_0x151dfb(0x1c8)]](_0xa7c930):_0x4be105[_0x151dfb(0x1a6)](_0x4be105[_0x151dfb(0x1b0)],_0x4be105['zgAqG'])?_0x46d379:[];}[a13_0xc65c84(0x184)](_0x48952a){const _0x2659c5=a13_0xc65c84,_0x307479=this[_0x2659c5(0x1d9)]();for(const _0x111a4b of _0x307479){this[_0x2659c5(0x1d2)]({'_stopTool':{[_0x111a4b]:![]}});}return _0x48952a[_0x2659c5(0x1fe)][_0x2659c5(0x1ba)]=!![],_0x48952a;}[a13_0xc65c84(0x175)](){const _0xdcbcff=a13_0xc65c84,_0x2c5405={'NCHLc':_0xdcbcff(0x15c)};return this[_0xdcbcff(0x1c8)]+'|'+moment_1[_0xdcbcff(0x17c)][_0xdcbcff(0x1bd)]()[_0xdcbcff(0x161)](_0x2c5405[_0xdcbcff(0x16e)])+'|'+this['random10Digits']();}[a13_0xc65c84(0x1aa)](){const _0x4e173d=a13_0xc65c84,_0x3b51ab={'UCLod':function(_0x7cf4f1,_0xcf52aa){return _0x7cf4f1*_0xcf52aa;},'oudsg':function(_0x32b5c0,_0x89578f){return _0x32b5c0-_0x89578f;}},_0x2de92c=0x3b9aca00,_0x313304=0x2540be3ff;return Math[_0x4e173d(0x1ac)](_0x3b51ab[_0x4e173d(0x1ce)](Math[_0x4e173d(0x16a)](),_0x3b51ab[_0x4e173d(0x177)](_0x313304,_0x2de92c)+0x1))+_0x2de92c;}['getLLMType'](){const _0xb25df8=a13_0xc65c84,_0x5a4bc2={'ssxgs':function(_0x490308,_0x2e2ea9){return _0x490308-_0x2e2ea9;},'tUZBo':_0xb25df8(0x15d),'PtwsV':_0xb25df8(0x18c),'vtgTS':'jbFqX','bXhfu':'gpt','ugaSD':'hRNpT','cxObz':_0xb25df8(0x163)},_0x3ad1d0=this[_0xb25df8(0x16b)]||this[_0xb25df8(0x17b)][_0xb25df8(0x168)](),_0x1b2f1d=_0x3ad1d0[_0xb25df8(0x1b4)]()[_0xb25df8(0x19d)]();if(_0x1b2f1d['startsWith'](_0x5a4bc2['tUZBo'])){if(_0x5a4bc2['vtgTS']===_0x5a4bc2['vtgTS'])return llm_file_js_1[_0xb25df8(0x18d)]['GEMINI'];else{const _0x1cf64f=this[_0xb25df8(0x17b)][_0xb25df8(0x181)](this[_0xb25df8(0x1ff)]);if(_0x1cf64f['length']>0x0)return _0x1cf64f[_0x5a4bc2[_0xb25df8(0x17f)](_0x1cf64f[_0xb25df8(0x178)],0x1)];return null;}}if(_0x1b2f1d[_0xb25df8(0x191)](_0x5a4bc2['bXhfu']))return llm_file_js_1['LLMType'][_0xb25df8(0x1d6)];if(_0x1b2f1d['startsWith'](_0x5a4bc2['PtwsV'])){if(_0x5a4bc2[_0xb25df8(0x1bf)]===_0x5a4bc2[_0xb25df8(0x1c9)]){const _0x3c2890=this[_0xb25df8(0x16b)]||this[_0xb25df8(0x17b)][_0xb25df8(0x168)](),_0x79e7c0=_0x3c2890['trim']()[_0xb25df8(0x19d)]();if(_0x79e7c0[_0xb25df8(0x191)](_0x5a4bc2[_0xb25df8(0x166)]))return _0x564bc2['LLMType'][_0xb25df8(0x164)];if(_0x79e7c0[_0xb25df8(0x191)](_0xb25df8(0x1da)))return _0xc074b6['LLMType'][_0xb25df8(0x1d6)];if(_0x79e7c0[_0xb25df8(0x191)](_0x5a4bc2[_0xb25df8(0x1f6)]))return _0x4b5308[_0xb25df8(0x18d)]['ANTHROPIC'];return _0xd33507[_0xb25df8(0x18d)][_0xb25df8(0x1b6)];}else return llm_file_js_1['LLMType']['ANTHROPIC'];}return llm_file_js_1[_0xb25df8(0x18d)][_0xb25df8(0x1b6)];}['structOutputSchema'](){return null;}}exports['Step']=Step;
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 +1 @@
1
- const a14_0x5a647a=a14_0x52ce;(function(_0x5e9adb,_0x10f3a){const _0x40ccdc=a14_0x52ce,_0x2d5566=_0x5e9adb();while(!![]){try{const _0x27495f=-parseInt(_0x40ccdc(0x209))/0x1*(parseInt(_0x40ccdc(0x1f8))/0x2)+-parseInt(_0x40ccdc(0x203))/0x3*(parseInt(_0x40ccdc(0x212))/0x4)+-parseInt(_0x40ccdc(0x221))/0x5*(-parseInt(_0x40ccdc(0x202))/0x6)+parseInt(_0x40ccdc(0x206))/0x7+-parseInt(_0x40ccdc(0x22a))/0x8*(parseInt(_0x40ccdc(0x21a))/0x9)+-parseInt(_0x40ccdc(0x229))/0xa*(parseInt(_0x40ccdc(0x21f))/0xb)+parseInt(_0x40ccdc(0x23a))/0xc;if(_0x27495f===_0x10f3a)break;else _0x2d5566['push'](_0x2d5566['shift']());}catch(_0x1ed087){_0x2d5566['push'](_0x2d5566['shift']());}}}(a14_0x272a,0x70994));const a14_0x1e9e3c=(function(){const _0x11f6a3=a14_0x52ce,_0xa3378={'enypy':function(_0x468b0d,_0x5f03d8){return _0x468b0d!==_0x5f03d8;},'OxPTA':'HPFSr','ouPUd':function(_0xef3b84,_0x33baeb){return _0xef3b84===_0x33baeb;},'VLgTt':'XStCL','nYlzH':_0x11f6a3(0x205)};let _0x1ae459=!![];return function(_0x1a92d0,_0x563c68){const _0x2d81b0=_0x1ae459?function(){const _0xc0357d=a14_0x52ce;if(_0xa3378[_0xc0357d(0x230)](_0xa3378[_0xc0357d(0x22f)],_0xa3378[_0xc0357d(0x22f)])){const _0x21869b=_0x43dda8?function(){const _0x2a81ef=_0xc0357d;if(_0x21a6d5){const _0x461427=_0xf9e10[_0x2a81ef(0x1fa)](_0x5df561,arguments);return _0x12ec3f=null,_0x461427;}}:function(){};return _0x6d46ba=![],_0x21869b;}else{if(_0x563c68){if(_0xa3378[_0xc0357d(0x228)](_0xa3378[_0xc0357d(0x234)],_0xa3378[_0xc0357d(0x1f7)])){const _0x1497cc=_0x5c4087['apply'](_0x4096c2,arguments);return _0x4de069=null,_0x1497cc;}else{const _0x4e707f=_0x563c68[_0xc0357d(0x1fa)](_0x1a92d0,arguments);return _0x563c68=null,_0x4e707f;}}}}:function(){};return _0x1ae459=![],_0x2d81b0;};}()),a14_0x3ec7fb=a14_0x1e9e3c(this,function(){const _0x4ddd0f=a14_0x52ce,_0x27c6b1={'RjZKY':_0x4ddd0f(0x217)};return a14_0x3ec7fb[_0x4ddd0f(0x233)]()[_0x4ddd0f(0x239)](_0x27c6b1[_0x4ddd0f(0x213)])[_0x4ddd0f(0x233)]()[_0x4ddd0f(0x1f9)](a14_0x3ec7fb)[_0x4ddd0f(0x239)](_0x4ddd0f(0x217));});a14_0x3ec7fb();'use strict';function a14_0x52ce(_0x4c87c6,_0x3b1d7d){const _0x214a33=a14_0x272a();return a14_0x52ce=function(_0x3ec7fb,_0x1e9e3c){_0x3ec7fb=_0x3ec7fb-0x1f3;let _0x272adb=_0x214a33[_0x3ec7fb];return _0x272adb;},a14_0x52ce(_0x4c87c6,_0x3b1d7d);}function a14_0x272a(){const _0x70712f=['wYVIf','12837MApspm','gemini-2.5-flash','5AXqyZz','gemini-3.1-pro-preview','claude-3-7-sonnet-thinking','claude-sonnet-4-6','jCrzM','__esModule','gemini-3.1-flash-lite-preview','ouPUd','3040gEYsKD','1669424RSvJoR','GeminiKey','medium','CoreConfig','Model','OxPTA','enypy','llmTemperature','../configs/core-config','toString','VLgTt','aKPny','xrDpn','JrhxW','enabled','search','17170200JTYWCr','gemini-2.5-flash-lite','JfeOY','claude-haiku-4-5-20251001','VRPhI','defineProperty','ollama','gpt-5-mini','nYlzH','20200kilxpH','constructor','apply','gpt-5.4','OpenAIKey','claude-3-5-haiku-latest','gpt-5','rhtJV','dIzwS','pnsFx','1782606PJPXZS','2107383HKknNQ','pqZCR','VVESs','4117512zopJCT','claude-opus-4-1-20250805','LctSF','17FmDiHB','gpt-4.1-mini','llmRetry','createPopularModels','Vhupp','qwen2.5:1.5b','RxSrH','gpt-5-nano','claude-opus-4-1-20250805-thinking','4MgUTuQ','RjZKY','eFdYH','yUeJR','kLjTa','(((.+)+)+)+$','tgbFv','gemini-2.5-pro','27YtgAKb','gpt-4o','jaSIz','AnthropicKey'];a14_0x272a=function(){return _0x70712f;};return a14_0x272a();}Object[a14_0x5a647a(0x1f4)](exports,a14_0x5a647a(0x226),{'value':!![]}),exports[a14_0x5a647a(0x20c)]=createPopularModels;const core_config_1=require(a14_0x5a647a(0x232)),model_registry_1=require('./model-registry');function createPopularModels(){const _0x4bff5d=a14_0x5a647a,_0x1773fc={'tgbFv':_0x4bff5d(0x1fb),'VRPhI':_0x4bff5d(0x22c),'dIzwS':_0x4bff5d(0x1f6),'wYVIf':_0x4bff5d(0x210),'PqcAC':'gpt-4.1','JfeOY':_0x4bff5d(0x20a),'pnsFx':'gpt-4o-mini','rhtJV':'claude-opus-4-6','ZpVUx':'claude-opus-4-6-thinking','yUeJR':_0x4bff5d(0x238),'LctSF':_0x4bff5d(0x224),'pqZCR':'claude-sonnet-4-6-thinking','kLjTa':_0x4bff5d(0x23d),'xrDpn':_0x4bff5d(0x207),'Vhupp':_0x4bff5d(0x211),'jaSIz':'claude-3-7-sonnet-latest','eFdYH':_0x4bff5d(0x222),'aKPny':'gemini-3-flash-preview','jCrzM':_0x4bff5d(0x220),'JrhxW':_0x4bff5d(0x20e),'RxSrH':_0x4bff5d(0x1f5)};return[new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x218)],{'apiKey':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x1fc)],'maxRetries':core_config_1['CoreConfig']['llmRetry'],'reasoning':{'effort':_0x1773fc[_0x4bff5d(0x1f3)]}}),new model_registry_1['Model'](_0x4bff5d(0x1fe),{'apiKey':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x1fc)],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)],'reasoning':{'effort':_0x1773fc['VRPhI']}}),new model_registry_1['Model'](_0x1773fc[_0x4bff5d(0x200)],{'apiKey':core_config_1[_0x4bff5d(0x22d)]['OpenAIKey'],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)],'reasoning':{'effort':_0x1773fc[_0x4bff5d(0x1f3)]}}),new model_registry_1['Model'](_0x1773fc[_0x4bff5d(0x21e)],{'apiKey':core_config_1[_0x4bff5d(0x22d)]['OpenAIKey'],'maxRetries':core_config_1[_0x4bff5d(0x22d)]['llmRetry'],'reasoning':{'effort':_0x1773fc[_0x4bff5d(0x1f3)]}}),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc['PqcAC'],{'temperature':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x231)],'apiKey':core_config_1['CoreConfig'][_0x4bff5d(0x1fc)],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)]}),new model_registry_1['Model'](_0x1773fc[_0x4bff5d(0x23c)],{'temperature':core_config_1[_0x4bff5d(0x22d)]['llmTemperature'],'apiKey':core_config_1[_0x4bff5d(0x22d)]['OpenAIKey'],'maxRetries':core_config_1[_0x4bff5d(0x22d)]['llmRetry']}),new model_registry_1[(_0x4bff5d(0x22e))](_0x4bff5d(0x21b),{'temperature':core_config_1[_0x4bff5d(0x22d)]['llmTemperature'],'apiKey':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x1fc)],'maxRetries':core_config_1['CoreConfig'][_0x4bff5d(0x20b)]}),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x201)],{'temperature':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x231)],'apiKey':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x1fc)],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)]}),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x1ff)],{'temperature':0x0,'apiKey':core_config_1[_0x4bff5d(0x22d)]['AnthropicKey'],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)]}),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc['ZpVUx'],{'apiKey':core_config_1[_0x4bff5d(0x22d)]['AnthropicKey'],'maxRetries':core_config_1['CoreConfig'][_0x4bff5d(0x20b)],'thinking':{'type':_0x1773fc[_0x4bff5d(0x215)],'budget_tokens':0x800}},_0x1773fc['rhtJV']),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x208)],{'temperature':0x0,'apiKey':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x21d)],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)]}),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x204)],{'apiKey':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x21d)],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)],'thinking':{'type':_0x1773fc[_0x4bff5d(0x215)],'budget_tokens':0x800}},_0x1773fc['LctSF']),new model_registry_1['Model'](_0x1773fc[_0x4bff5d(0x216)],{'temperature':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x231)],'apiKey':core_config_1['CoreConfig'][_0x4bff5d(0x21d)],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)]}),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x236)],{'temperature':0x0,'apiKey':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x21d)],'maxRetries':core_config_1['CoreConfig'][_0x4bff5d(0x20b)]}),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x20d)],{'apiKey':core_config_1['CoreConfig'][_0x4bff5d(0x21d)],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)],'thinking':{'type':_0x1773fc[_0x4bff5d(0x215)],'budget_tokens':0x800}},_0x4bff5d(0x207)),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x21c)],{'temperature':0x0,'apiKey':core_config_1['CoreConfig']['AnthropicKey'],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)]}),new model_registry_1['Model'](_0x4bff5d(0x223),{'apiKey':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x21d)],'maxRetries':core_config_1[_0x4bff5d(0x22d)]['llmRetry'],'thinking':{'type':_0x1773fc[_0x4bff5d(0x215)],'budget_tokens':0x800}},_0x1773fc[_0x4bff5d(0x21c)]),new model_registry_1[(_0x4bff5d(0x22e))](_0x4bff5d(0x1fd),{'temperature':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x231)],'apiKey':core_config_1['CoreConfig'][_0x4bff5d(0x21d)],'maxRetries':core_config_1[_0x4bff5d(0x22d)]['llmRetry']}),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x214)],{'temperature':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x231)],'apiKey':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x22b)],'maxRetries':core_config_1['CoreConfig'][_0x4bff5d(0x20b)]}),new model_registry_1['Model'](_0x1773fc[_0x4bff5d(0x235)],{'temperature':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x231)],'apiKey':core_config_1['CoreConfig']['GeminiKey'],'maxRetries':core_config_1[_0x4bff5d(0x22d)]['llmRetry']}),new model_registry_1[(_0x4bff5d(0x22e))](_0x4bff5d(0x227),{'temperature':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x231)],'apiKey':core_config_1['CoreConfig'][_0x4bff5d(0x22b)],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)]}),new model_registry_1[(_0x4bff5d(0x22e))](_0x4bff5d(0x219),{'temperature':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x231)],'apiKey':core_config_1['CoreConfig'][_0x4bff5d(0x22b)],'maxRetries':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x20b)]}),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x225)],{'temperature':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x231)],'apiKey':core_config_1[_0x4bff5d(0x22d)]['GeminiKey'],'maxRetries':core_config_1[_0x4bff5d(0x22d)]['llmRetry']}),new model_registry_1[(_0x4bff5d(0x22e))](_0x4bff5d(0x23b),{'temperature':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x231)],'apiKey':core_config_1[_0x4bff5d(0x22d)][_0x4bff5d(0x22b)],'maxRetries':core_config_1[_0x4bff5d(0x22d)]['llmRetry']}),new model_registry_1[(_0x4bff5d(0x22e))](_0x1773fc[_0x4bff5d(0x237)],{'provider':_0x1773fc[_0x4bff5d(0x20f)],'think':![],'maxRetries':core_config_1['CoreConfig'][_0x4bff5d(0x20b)],'options':{'temperature':core_config_1[_0x4bff5d(0x22d)]['llmTemperature']}})];}
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 +1 @@
1
- const a15_0x3e8a56=a15_0x4e28;(function(_0x130970,_0x5dd303){const _0xd83c2f=a15_0x4e28,_0x2137a0=_0x130970();while(!![]){try{const _0x50a523=parseInt(_0xd83c2f(0xec))/0x1*(-parseInt(_0xd83c2f(0x10c))/0x2)+-parseInt(_0xd83c2f(0x114))/0x3*(-parseInt(_0xd83c2f(0x102))/0x4)+parseInt(_0xd83c2f(0xe1))/0x5+-parseInt(_0xd83c2f(0xc6))/0x6+parseInt(_0xd83c2f(0xcb))/0x7*(-parseInt(_0xd83c2f(0xd7))/0x8)+parseInt(_0xd83c2f(0x11b))/0x9+parseInt(_0xd83c2f(0xd1))/0xa*(parseInt(_0xd83c2f(0x103))/0xb);if(_0x50a523===_0x5dd303)break;else _0x2137a0['push'](_0x2137a0['shift']());}catch(_0x330265){_0x2137a0['push'](_0x2137a0['shift']());}}}(a15_0x1394,0x8e66f));const a15_0x149b59=(function(){const _0x29063e=a15_0x4e28,_0x730df4={'vPAEF':_0x29063e(0xe4),'ggLak':function(_0x51088d,_0x243485){return _0x51088d!==_0x243485;}};let _0x1fce2b=!![];return function(_0x52b6fb,_0x36349f){const _0x232444=_0x1fce2b?function(){const _0x5eee13=a15_0x4e28,_0x226d49={'aufry':_0x730df4['vPAEF']};if(_0x730df4[_0x5eee13(0xee)](_0x5eee13(0xf7),'HzSMa')){if(!_0x977e10){const _0x1e458d=this['models'][_0x5eee13(0x10f)]()['next']()[_0x5eee13(0xe5)];if(!_0x1e458d)throw new _0x3a590(_0x226d49[_0x5eee13(0xbe)]);return _0x1e458d;}const _0x2fee37=this['models'][_0x5eee13(0x116)](_0x152391);if(!_0x2fee37)throw new _0xff1372('Model\x20\x27'+_0x240ef7+_0x5eee13(0xed));return _0x2fee37;}else{if(_0x36349f){const _0x51e6d7=_0x36349f[_0x5eee13(0x10d)](_0x52b6fb,arguments);return _0x36349f=null,_0x51e6d7;}}}:function(){};return _0x1fce2b=![],_0x232444;};}()),a15_0x17646a=a15_0x149b59(this,function(){const _0x31f207=a15_0x4e28;return a15_0x17646a['toString']()[_0x31f207(0xc4)](_0x31f207(0x100))[_0x31f207(0xf1)]()['constructor'](a15_0x17646a)[_0x31f207(0xc4)](_0x31f207(0x100));});a15_0x17646a();'use strict';Object['defineProperty'](exports,a15_0x3e8a56(0xe2),{'value':!![]}),exports[a15_0x3e8a56(0xd4)]=exports[a15_0x3e8a56(0xe6)]=void 0x0;function a15_0x4e28(_0x49e02d,_0x1cffcf){const _0x52916a=a15_0x1394();return a15_0x4e28=function(_0x17646a,_0x149b59){_0x17646a=_0x17646a-0xbe;let _0x1394dc=_0x52916a[_0x17646a];return _0x1394dc;},a15_0x4e28(_0x49e02d,_0x1cffcf);}const lodash_1=require(a15_0x3e8a56(0xe3)),anthropic_1=require(a15_0x3e8a56(0xc0)),google_genai_1=require(a15_0x3e8a56(0x104)),ollama_1=require(a15_0x3e8a56(0xc1)),openai_1=require(a15_0x3e8a56(0xf4));class Model{constructor(_0x4f8498,_0xdc0560,_0x290afe){const _0x4ca942=a15_0x3e8a56;this[_0x4ca942(0xc8)]=_0x4f8498,this[_0x4ca942(0xf8)]=_0xdc0560,this[_0x4ca942(0xe7)]=_0x290afe??_0x4f8498,this[_0x4ca942(0xd3)]=Model[_0x4ca942(0xf0)](_0x4f8498,_0xdc0560);}[a15_0x3e8a56(0x117)](){const _0x5def0d=a15_0x3e8a56;return!Model[_0x5def0d(0xd6)](this[_0x5def0d(0xc8)]);}[a15_0x3e8a56(0xde)](_0x5cbcb1){const _0x39d791=a15_0x3e8a56,_0x2131e3=this[_0x39d791(0xd9)](_0x5cbcb1),_0x4374e4=this[_0x39d791(0xeb)]();return new _0x4374e4(_0x2131e3);}[a15_0x3e8a56(0xfe)](_0x3dc3aa){const _0x44e4c7=a15_0x3e8a56,_0x55d14c={'LcugV':'(((.+)+)+)+$','neVDm':_0x44e4c7(0xfc),'eHEct':function(_0x4f6cc3,_0x470e6a){return _0x4f6cc3!==_0x470e6a;},'ToOHr':_0x44e4c7(0xcd)};if(this[_0x44e4c7(0xd3)]===_0x55d14c[_0x44e4c7(0x110)])return _0x55d14c[_0x44e4c7(0xdc)](_0x55d14c[_0x44e4c7(0xd0)],_0x44e4c7(0xcd))?_0x270ea7['toString']()[_0x44e4c7(0xc4)](wbnQxc['LcugV'])[_0x44e4c7(0xf1)]()['constructor'](_0x69771)['search']('(((.+)+)+)+$'):{'options':{'temperature':_0x3dc3aa}};return{'temperature':_0x3dc3aa};}['useTools'](_0x2e81d6,_0x301a24){const _0x51a8be=a15_0x3e8a56,_0x2d074d={'xYxzc':function(_0x4144f2,_0x1af996){return _0x4144f2===_0x1af996;},'gKfZH':'ZBYsE','wocFa':_0x51a8be(0xf3),'ohgaA':'ollama'};if(!_0x301a24||_0x301a24[_0x51a8be(0x119)]===0x0){if(_0x2d074d[_0x51a8be(0xdd)](_0x2d074d[_0x51a8be(0xc5)],_0x2d074d[_0x51a8be(0xdb)])){const _0x343cbc=this[_0x51a8be(0xf8)],{options:_0x4298bd,..._0x14653b}=_0x343cbc;return{..._0x14653b,..._0x4298bd,'model':this['targetName']};}else return _0x2e81d6;}if(this[_0x51a8be(0xd3)]===_0x2d074d[_0x51a8be(0xda)])return _0x2e81d6['bind']({'tools':_0x301a24});return _0x2e81d6[_0x51a8be(0x10b)](_0x301a24);}[a15_0x3e8a56(0xd9)](_0x4c8df7){const _0x3a2b0f=a15_0x3e8a56,_0x4922a4={'RExyK':_0x3a2b0f(0xfc)},_0x42f777=this['provider']===_0x4922a4[_0x3a2b0f(0xf9)]?this['buildOllamaParams']():{...this[_0x3a2b0f(0xf8)],'model':this['targetName']},_0x555ed3=(0x0,lodash_1[_0x3a2b0f(0x111)])({},_0x42f777,_0x4c8df7??{});return delete _0x555ed3[_0x3a2b0f(0xd3)],!this[_0x3a2b0f(0x117)]()&&delete _0x555ed3[_0x3a2b0f(0x118)],_0x555ed3;}['buildOllamaParams'](){const _0x4be933=a15_0x3e8a56,_0x3541e1=this[_0x4be933(0xf8)],{options:_0xd6cfee,..._0x419b60}=_0x3541e1;return{..._0x419b60,..._0xd6cfee,'model':this['targetName']};}[a15_0x3e8a56(0xeb)](){const _0x612d57=a15_0x3e8a56,_0x36b970={'cLhWc':'openai','ltBna':_0x612d57(0xc7),'qXWnI':'anthropic'};switch(this[_0x612d57(0xd3)]){case _0x36b970[_0x612d57(0x113)]:return openai_1[_0x612d57(0xc3)];case _0x612d57(0x115):return openai_1['AzureChatOpenAI'];case _0x36b970['ltBna']:return google_genai_1['ChatGoogleGenerativeAI'];case _0x36b970[_0x612d57(0x109)]:return anthropic_1[_0x612d57(0x10e)];case _0x612d57(0xfc):return ollama_1[_0x612d57(0x101)];}}static[a15_0x3e8a56(0xf0)](_0x563696,_0x10f478){const _0x334cc2=a15_0x3e8a56,_0x5d403f={'puieJ':_0x334cc2(0xd3),'FawYu':function(_0x4f0077,_0x516302){return _0x4f0077===_0x516302;},'oCZwB':_0x334cc2(0xe9),'dRmkR':'gemini-','kZgMR':'google','JMrrx':function(_0x2ee5e2,_0x19e5c2){return _0x2ee5e2===_0x19e5c2;},'YxjmZ':_0x334cc2(0xfd)};if(_0x5d403f[_0x334cc2(0xfa)]in _0x10f478&&_0x10f478[_0x334cc2(0xd3)])return _0x10f478[_0x334cc2(0xd3)];if(Model[_0x334cc2(0x10a)](_0x563696)){if(_0x5d403f[_0x334cc2(0xca)](_0x5d403f['oCZwB'],'JNrfO')){const _0x4d1315=_0x57b9b0?function(){const _0x6ec4cf=_0x334cc2;if(_0xf96226){const _0x4bd2fc=_0x1cfe0c[_0x6ec4cf(0x10d)](_0x49e416,arguments);return _0x6a953e=null,_0x4bd2fc;}}:function(){};return _0x4ad8ad=![],_0x4d1315;}else return _0x334cc2(0xbf);}if(_0x563696[_0x334cc2(0xff)](_0x5d403f[_0x334cc2(0xf2)]))return _0x5d403f['kZgMR'];if(_0x563696[_0x334cc2(0xff)]('claude-')){if(_0x5d403f[_0x334cc2(0xc9)](_0x5d403f[_0x334cc2(0xdf)],'GuurN'))return _0x334cc2(0x107);else throw new _0x1e426f('Model\x20\x27'+_0x4a87d6+_0x334cc2(0xed));}throw new Error(_0x334cc2(0x106)+_0x563696+_0x334cc2(0x11c));}static[a15_0x3e8a56(0x10a)](_0x26714f){const _0x31954c=a15_0x3e8a56;return/^gpt-|^o\d/[_0x31954c(0xf6)](_0x26714f);}static['isOpenAIReasoningModel'](_0x1faeb6){const _0x245fa8=a15_0x3e8a56;return/^gpt-5(?:$|[-:])|^o\d/[_0x245fa8(0xf6)](_0x1faeb6);}}function a15_0x1394(){const _0x3aada6=['ollama','GuurN','temperatureOverride','startsWith','(((.+)+)+)+$','ChatOllama','14156auaIKf','9466523EMzNgT','@langchain/google-genai','JOpjL','Cannot\x20infer\x20provider\x20for\x20model\x20\x27','anthropic','VaoUO','qXWnI','isOpenAIModel','bindTools','746072nVulrV','apply','ChatAnthropic','values','neVDm','merge','registerMany','cLhWc','783KcroXI','azure-openai','get','supportsTemperatureOverride','temperature','length','models','4393269CmgbTJ','\x27.\x20Set\x20config.provider\x20explicitly.','aufry','openai','@langchain/anthropic','@langchain/ollama','VAvmS','ChatOpenAI','search','gKfZH','1001460ERuiBR','google','name','JMrrx','FawYu','20223PWKake','getName','DGPPL','has','Model\x20\x27','ToOHr','10vVHDfZ','tXleF','provider','ModelRegistry','Gwang','isOpenAIReasoningModel','1648nYQxik','buildOllamaParams','buildParams','ohgaA','wocFa','eHEct','xYxzc','createInstance','YxjmZ','oJXwD','960090HkwGbQ','__esModule','lodash','No\x20model\x20registered','value','Model','targetName','next','EIDpU','register','getModelClass','3JTllbt','\x27\x20not\x20registered.','ggLak','wnhSj','detectProvider','toString','dRmkR','aXWaB','@langchain/openai','set','test','HzSMa','config','RExyK','puieJ','KLjKp'];a15_0x1394=function(){return _0x3aada6;};return a15_0x1394();}exports[a15_0x3e8a56(0xe6)]=Model;class ModelRegistry{constructor(){const _0x1a6597=a15_0x3e8a56;this[_0x1a6597(0x11a)]=new Map();}['register'](_0xf7e0cb,_0x180d6b=![]){const _0x4ed912=a15_0x3e8a56;if(this[_0x4ed912(0x11a)][_0x4ed912(0xce)](_0xf7e0cb['name'])&&!_0x180d6b)return this[_0x4ed912(0x11a)]['get'](_0xf7e0cb[_0x4ed912(0xc8)]);return this[_0x4ed912(0x11a)][_0x4ed912(0xf5)](_0xf7e0cb['name'],_0xf7e0cb),_0xf7e0cb;}[a15_0x3e8a56(0x112)](_0x1ce6ba,_0x22a0ac=![]){const _0x38c6ed=a15_0x3e8a56,_0x8468d0={'sdavD':function(_0x5c1dbb,_0x33da35){return _0x5c1dbb===_0x33da35;},'KLjKp':'ollama','VAvmS':function(_0x4c3add,_0x4b8aac){return _0x4c3add??_0x4b8aac;},'WZxpr':function(_0x3b735d,_0x340908){return _0x3b735d!==_0x340908;},'oJXwD':_0x38c6ed(0xd5)};for(const _0x431405 of _0x1ce6ba){if(_0x8468d0['WZxpr'](_0x8468d0[_0x38c6ed(0xe0)],_0x8468d0[_0x38c6ed(0xe0)])){const _0x1d4d71=_0x8468d0['sdavD'](this[_0x38c6ed(0xd3)],_0x8468d0[_0x38c6ed(0xfb)])?this[_0x38c6ed(0xd8)]():{...this[_0x38c6ed(0xf8)],'model':this['targetName']},_0x221d90=(0x0,_0x507485['merge'])({},_0x1d4d71,_0x8468d0[_0x38c6ed(0xc2)](_0x4d7b44,{}));return delete _0x221d90[_0x38c6ed(0xd3)],!this[_0x38c6ed(0x117)]()&&delete _0x221d90[_0x38c6ed(0x118)],_0x221d90;}else this[_0x38c6ed(0xea)](_0x431405,_0x22a0ac);}}['get'](_0x3a8b61){const _0x1024c0=a15_0x3e8a56,_0x4855ed={'snKVX':function(_0x419be2,_0x36cb87){return _0x419be2!==_0x36cb87;},'JOpjL':_0x1024c0(0x108),'wnhSj':_0x1024c0(0xd2)};if(!_0x3a8b61){const _0xbddd7f=this['models'][_0x1024c0(0x10f)]()[_0x1024c0(0xe8)]()[_0x1024c0(0xe5)];if(!_0xbddd7f){if(_0x4855ed['snKVX'](_0x4855ed[_0x1024c0(0x105)],_0x1024c0(0x108)))return _0x28e580['bind']({'tools':_0x1e8447});else throw new Error(_0x1024c0(0xe4));}return _0xbddd7f;}const _0x508238=this[_0x1024c0(0x11a)][_0x1024c0(0x116)](_0x3a8b61);if(!_0x508238){if(_0x4855ed[_0x1024c0(0xef)]===_0x4855ed[_0x1024c0(0xef)])throw new Error(_0x1024c0(0xcf)+_0x3a8b61+_0x1024c0(0xed));else this['name']=_0x21ef2a,this[_0x1024c0(0xf8)]=_0x53e331,this[_0x1024c0(0xe7)]=_0x3bb79a??_0x42a0e1,this['provider']=_0x3994e7['detectProvider'](_0x104625,_0x44c4f8);}return _0x508238;}[a15_0x3e8a56(0xcc)](_0x470069){const _0x2da8f2=a15_0x3e8a56;return this[_0x2da8f2(0x116)](_0x470069)[_0x2da8f2(0xc8)];}}exports[a15_0x3e8a56(0xd4)]=ModelRegistry;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picoflow/core",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "PicoFlow - Agentic Flow Framework",
5
5
  "author": "picoflow.io LLC",
6
6
  "license": "Proprietarily Licensed",