@picoflow/core 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const a9_0x195595=a9_0x4f64;function a9_0x49d3(){const _0x3772e9=['system','structOutputSchema','contentType','apply','7009254oeEEph','LLM\x20hallucinates\x20a\x20non-existing\x20tool:\x20','NMdVi','ioxaz','LogicRunner','mWKJI','qQkpU','isArray','tbiRL','ODdta','Follow\x20system\x20prompt\x20and\x20respond\x20properly.','KPPoj','IeXTT','ToolMessageInfo','BaAre','push','ZsyYS','LLM\x20call\x20failed.\x20Reason:','zunJC','response_metadata','goTry','ctBZQ','hbCLL','tool_call_id','getReason','onResponse','rpdjo','AuZkU','search','tool','uybkD','isLogic','FlrYe','LQWuo','JYbbO','genMessageId','riCUw','YDtKc','hallucinated\x20tool:\x20','zWKOf','cUMWp','35FCsErY','qQVUA','getActiveStep','MvIYk','hasNoTool','SystemMessage','../utils/message-util','AbPaC','sdCxS','tool_calls','getFlowEngine','toJSON','HSLzQ','LqZHu','VCxdj','SqhjV','state','callTool','warn','activateByName','noqjp','tallyToken','wYUuD','prompt','uPPFu','bGsAS','getMemory','ToolMessageOK','xlaqL','jNZyx','unknown','.\x20Error:','pZdQx','AaXvi','FqSAx','name','NAlGA','text','DzEni','wPzFP','LYYhx','tYdJp','bPfFW','WIlQK','MessageUtil','yxDAF','sOUon','isBotMessageEmpty','defineProperty','XpRsp','content','activate','UWEpe','isSame','AMhTp','498592lXxRKW','finishReason','PUeNc','DgsOV','pop','FGLGo','Attempt\x20','ToolUtil','verifyLicense','2472708TboHxA','1dOOQeS','send','6518463vaXcvm','Pwvop','bCMjF','HtVpu','HumanMessage','RXgPa','RCfsh','usage_metadata','UsdDL','uLtqK','stopTool','direct','getModel','MvNMp','hlJcH','17690rwMLLX','messageStep','RdItK','additional_kwargs','thRyX','IqcIL','mBXtQ','human','jhOPJ','../utils/retry','QlKKY','BBEDM','saveState','vylqN','string','./logic-runner','log','onToolResponseMessages','YLeur','LlmRunner','quudW','invoke','(((.+)+)+)+$','constructor','onCrossing','getTemperature','jLFft','function','stop_reason','length','SessionLogger','saveSession','MwgjN','hasTool','toString','7252648gTJOne','finish_reason','missing\x20tool\x20handler:\x20','601092oxRDEU','../utils/tool-util','GRbPp','ATvmL','__esModule','YWYJp','unukr','JnQik','Retry','AIMessage','JGPsx','picoKey','message','CoreConfig','isToolAvailable','nPKZu','temperature','type','step','vHsGN','xLDCU','QHTxD','getSessionDoc','VWZUP','getName'];a9_0x49d3=function(){return _0x3772e9;};return a9_0x49d3();}(function(_0x58f277,_0x4d9c82){const _0x4da76a=a9_0x4f64,_0x57694d=_0x58f277();while(!![]){try{const _0x31822f=parseInt(_0x4da76a(0x15a))/0x1*(parseInt(_0x4da76a(0x16b))/0x2)+parseInt(_0x4da76a(0x159))/0x3+parseInt(_0x4da76a(0x150))/0x4*(parseInt(_0x4da76a(0x119))/0x5)+-parseInt(_0x4da76a(0xd3))/0x6+-parseInt(_0x4da76a(0x15c))/0x7+-parseInt(_0x4da76a(0xd0))/0x8+parseInt(_0x4da76a(0xf0))/0x9;if(_0x31822f===_0x4d9c82)break;else _0x57694d['push'](_0x57694d['shift']());}catch(_0x276950){_0x57694d['push'](_0x57694d['shift']());}}}(a9_0x49d3,0x85693));const a9_0x30e11a=(function(){const _0x186654=a9_0x4f64,_0x3b97ef={'ZtFcc':_0x186654(0x15f),'okITk':'XmGzv'};let _0x1fc6ad=!![];return function(_0x41954f,_0x55fef5){const _0x3dd7c7=_0x1fc6ad?function(){const _0x115898=a9_0x4f64;if(_0x3b97ef['ZtFcc']===_0x3b97ef['okITk'])_0xc99925[_0x115898(0xe1)](_0x1f0ccc[_0x115898(0x13c)])?(new _0x4946b9['SessionLogger'](_0x4e0772[_0x115898(0xe9)]())[_0x115898(0x12b)](_0x115898(0xd2)+_0x235b93[_0x115898(0x13c)]),_0x1e19c8=new _0x18725b[(_0x115898(0x134))](_0x1a3d95,_0x56fb6c)):(new _0x5ae886[(_0x115898(0xcb))](_0x247474[_0x115898(0xe9)]())[_0x115898(0x12b)](_0x115898(0x116)+_0x2ed773[_0x115898(0x13c)]),_0x1b71c5=new _0x4ac0e8[(_0x115898(0xfd))](_0x2e2236,_0x458630,_0x115898(0xf1)+_0x5ec008[_0x115898(0x13c)])),_0x3809b6[_0x115898(0xff)](_0x164bed);else{if(_0x55fef5){const _0x4712dc=_0x55fef5[_0x115898(0xef)](_0x41954f,arguments);return _0x55fef5=null,_0x4712dc;}}}:function(){};return _0x1fc6ad=![],_0x3dd7c7;};}()),a9_0x2dd5bc=a9_0x30e11a(this,function(){const _0x3679ac=a9_0x4f64,_0x2cb011={'AuZkU':_0x3679ac(0xc3)};return a9_0x2dd5bc['toString']()[_0x3679ac(0x10c)](_0x2cb011[_0x3679ac(0x10b)])[_0x3679ac(0xcf)]()[_0x3679ac(0xc4)](a9_0x2dd5bc)[_0x3679ac(0x10c)](_0x2cb011[_0x3679ac(0x10b)]);});a9_0x2dd5bc();'use strict';Object[a9_0x195595(0x149)](exports,a9_0x195595(0xd7),{'value':!![]}),exports['LlmRunner']=void 0x0;const messages_1=require('@langchain/core/messages'),message_util_1=require(a9_0x195595(0x11f)),tool_util_1=require(a9_0x195595(0xd4)),session_logger_1=require('../session/session-logger'),core_config_1=require('../configs/core-config'),message_util_2=require(a9_0x195595(0x11f)),logic_runner_1=require(a9_0x195595(0x17a)),retry_1=require(a9_0x195595(0x174)),verify_license_1=require('../utils/verify-license');class LlmRunner{static async[a9_0x195595(0x15b)](_0x2bb0d0,_0x3f29e4,_0x3568c3){const _0x23327c=a9_0x195595,_0x485b01={'wPzFP':function(_0x6f64fb,_0xe3449e){return _0x6f64fb>=_0xe3449e;},'SqhjV':_0x23327c(0xfa),'AbPaC':_0x23327c(0x10d),'HSLzQ':_0x23327c(0x137),'MvNMp':function(_0x30d151,_0x5b73d5){return _0x30d151===_0x5b73d5;},'JnQik':function(_0x2c492,_0x2d8557){return _0x2c492>=_0x2d8557;},'NAlGA':function(_0xd501fc,_0x224959){return _0xd501fc!==_0x224959;},'BaAre':_0x23327c(0x165),'DzEni':function(_0x1e5037,_0x28dc6f){return _0x1e5037===_0x28dc6f;},'mWKJI':_0x23327c(0x110),'LQWuo':_0x23327c(0x170),'FqSAx':_0x23327c(0xf3),'jLFft':function(_0x53a95a,_0x4373fa){return _0x53a95a!=_0x4373fa;},'ChNzv':function(_0x6d2c90,_0x2935e9){return _0x6d2c90===_0x2935e9;},'Pwvop':function(_0x2eadb5,_0x13d22a){return _0x2eadb5===_0x13d22a;},'jQMjx':_0x23327c(0x132),'jNZyx':_0x23327c(0x127),'ATvmL':_0x23327c(0xec),'RXgPa':_0x23327c(0x144),'vylqN':function(_0x22f54d,_0x5b1eeb){return _0x22f54d-_0x5b1eeb;},'RdItK':_0x23327c(0x166),'YWYJp':_0x23327c(0x152),'VWZUP':function(_0x5057da,_0x5c5711,_0x564064){return _0x5057da(_0x5c5711,_0x564064);}};(0x0,verify_license_1[_0x23327c(0x158)])(core_config_1[_0x23327c(0xe0)][_0x23327c(0xde)]);let _0x3ccca2;const _0x344320=_0x2bb0d0[_0x23327c(0x11b)](),{modelClass:_0x5b0085,params:_0x408279,useTool:_0x34a1f4}=_0x2bb0d0[_0x23327c(0x123)]()[_0x23327c(0x168)](_0x344320[_0x23327c(0x168)]()),_0x376e4a={..._0x408279},_0x3dba5e=_0x344320[_0x23327c(0xc6)]();_0x485b01[_0x23327c(0xda)](_0x3dba5e,0x0)?_0x485b01[_0x23327c(0x13f)](_0x485b01[_0x23327c(0xf5)],_0x485b01['mWKJI'])?_0x376e4a['temperature']=_0x3dba5e:_0x4d9398=[]:_0x485b01[_0x23327c(0x111)]!==_0x485b01[_0x23327c(0x13b)]?_0x2bb0d0['temperature']>=0x0&&(_0x376e4a[_0x23327c(0xe3)]=_0x2bb0d0['temperature']):_0x22c6c7[_0x23327c(0xe3)]=_0x95f8f9;const _0x3e8675=_0x344320['getMemory']();if(_0x3f29e4){const _0x313034=message_util_1['MessageUtil']['messageStep'](_0x3f29e4['id']);if(_0x485b01['jLFft'](_0x313034,_0x344320[_0x23327c(0xeb)]())){if(_0x485b01['ChNzv'](_0x23327c(0xfc),'IeXTT'))await _0x2bb0d0[_0x23327c(0xcc)](),message_util_1[_0x23327c(0x145)]['replaceStep'](_0x3f29e4,_0x344320),_0x3f29e4=_0x344320[_0x23327c(0xc5)](_0x3f29e4,_0x313034);else return _0x3d91de['pop'](),_0x485b01[_0x23327c(0x140)](_0x31725c,0x2)&&_0x9cf544[_0x23327c(0x154)](),_0x301fb4[_0x23327c(0xff)](new _0x2b1ae9[(_0x23327c(0x160))]({'content':_0x485b01[_0x23327c(0x128)],'id':_0x1f2bb3[_0x23327c(0x113)]()})),!![];}}else{if(_0x485b01[_0x23327c(0x15d)](_0x485b01['jQMjx'],_0x485b01[_0x23327c(0x136)]))_0x9c7b1b['push'](_0x322e43);else{const _0x44cc7d=message_util_1[_0x23327c(0x145)]['peek'](_0x3e8675);if(_0x44cc7d&&_0x485b01[_0x23327c(0x13d)](_0x44cc7d[_0x23327c(0xe4)],_0x485b01[_0x23327c(0xd6)])){if(_0x23327c(0xf6)===_0x485b01[_0x23327c(0x161)])_0x190723=new _0x4b3bd6[(_0x23327c(0xfd))](_0x1d008b,_0x1c4a89,_0x58bc98[_0x485b01[_0x23327c(0x120)]]);else{const _0x6356fa=message_util_1[_0x23327c(0x145)][_0x23327c(0x16c)](_0x44cc7d['id']);_0x485b01[_0x23327c(0xc7)](_0x6356fa,_0x344320[_0x23327c(0xeb)]())&&(await _0x2bb0d0[_0x23327c(0xcc)](),_0x3f29e4=_0x344320[_0x23327c(0xc5)](_0x3f29e4,_0x6356fa));}}else await _0x2bb0d0['saveSession'](),_0x3f29e4=_0x344320['onCrossing'](_0x3f29e4);}}if(_0x344320[_0x23327c(0x10f)]())return logic_runner_1[_0x23327c(0xf4)][_0x23327c(0x15b)](_0x2bb0d0);let _0x1cbf1d=new _0x5b0085(_0x376e4a),_0x1d783a=_0x344320['obtainTools']()??[];const _0x275153=await _0x344320['getPrompt']();_0x3e8675[0x0]=new messages_1[(_0x23327c(0x11e))]({'content':_0x275153,'id':_0x344320['genMessageId']()});if(_0x3f29e4){const _0x255e6a=_0x3e8675[_0x485b01[_0x23327c(0x178)](_0x3e8675[_0x23327c(0xca)],0x1)];!message_util_1[_0x23327c(0x145)][_0x23327c(0x14e)](_0x255e6a,_0x3f29e4)&&_0x3e8675[_0x23327c(0xff)](_0x3f29e4);}const _0x2adbf7=_0x3f29e4?.['additional_kwargs'][_0x485b01[_0x23327c(0x16d)]];_0x2adbf7&&(_0x485b01[_0x23327c(0x13d)](_0x485b01[_0x23327c(0xd8)],_0x485b01['YWYJp'])?(_0x507a1c=!![],_0x3d6483[_0x23327c(0xff)](_0x293954)):_0x1d783a=[]);_0x1cbf1d=_0x485b01[_0x23327c(0xea)](_0x34a1f4,_0x1cbf1d,_0x1d783a);const _0x739c93=_0x344320[_0x23327c(0xed)]();return _0x739c93&&(_0x1cbf1d=_0x1cbf1d['withStructuredOutput'](_0x739c93)),_0x3ccca2=await retry_1[_0x23327c(0xdb)][_0x23327c(0x104)]({'maxRetries':core_config_1[_0x23327c(0xe0)]['llmRetry'],'delayMs':0x1f4,'onMain':async()=>{const _0x2d9d4e=_0x23327c;_0x3ccca2=await _0x1cbf1d[_0x2d9d4e(0x180)](_0x3e8675);const _0x616d4e=_0x3ccca2[_0x2d9d4e(0x163)];return _0x2bb0d0[_0x2d9d4e(0x12e)](_0x616d4e),_0x3ccca2;},'onWarn':(_0x5691eb,_0x3a5c28,_0x2a26d1)=>{const _0x209957=_0x23327c;console[_0x209957(0x17b)](_0x1cbf1d[_0x209957(0x124)]()),new session_logger_1[(_0x209957(0xcb))](_0x2bb0d0[_0x209957(0xe9)]())['warn'](_0x209957(0x156)+_0x5691eb+'\x20of\x20'+_0x3a5c28+_0x209957(0x138)+(_0x2a26d1?_0x2a26d1['message']:_0x485b01[_0x209957(0x125)]));},'shouldRetry':(_0x5130fa,_0x190edf)=>{const _0x527f13=_0x23327c,_0x5f1311={'ZsyYS':function(_0x64bd4a,_0x1cb9e2){const _0x5acd03=a9_0x4f64;return _0x485b01[_0x5acd03(0x169)](_0x64bd4a,_0x1cb9e2);}};if(LlmRunner['isBotMessageEmpty'](_0x5130fa))return _0x3e8675[_0x527f13(0x154)](),_0x485b01[_0x527f13(0xda)](_0x190edf,0x2)&&(_0x485b01[_0x527f13(0x13d)](_0x527f13(0x10a),_0x485b01[_0x527f13(0xfe)])?_0x3e8675['pop']():_0x991a95[_0x527f13(0xe3)]=_0x1f56fb['temperature']),_0x3e8675[_0x527f13(0xff)](new messages_1[(_0x527f13(0x160))]({'content':_0x485b01[_0x527f13(0x128)],'id':_0x344320[_0x527f13(0x113)]()})),!![];else{if(_0x485b01[_0x527f13(0x13d)](_0x527f13(0x14f),_0x527f13(0x17f)))return![];else{if(!_0x4b1bb3?.[_0x527f13(0x14b)]||_0x4a2fff[_0x527f13(0x14b)][0x0]&&_0x5f1311[_0x527f13(0x100)](_0x580472[_0x527f13(0x14b)][0x0]['text'],''))return!![];}}},'onFinalError':_0x3e811b=>{const _0x5ac5ec=_0x23327c;throw new Error(_0x5ac5ec(0x101)+LlmRunner[_0x5ac5ec(0x108)](_0x3ccca2)+_0x5ac5ec(0x138)+(_0x3e811b?_0x3e811b[_0x5ac5ec(0xdf)]:_0x485b01['HSLzQ']));}}),await LlmRunner[_0x23327c(0x109)](_0x2bb0d0,_0x3ccca2,_0x3568c3);}static async[a9_0x195595(0x109)](_0x5ba7fd,_0x7e78b1,_0x336223){const _0x1d9ebb=a9_0x195595,_0x41c65e={'LqZHu':function(_0x56f482,_0x45a7c9){return _0x56f482!==_0x45a7c9;},'AaXvi':'gnOEH','USAOj':function(_0x1259bf,_0x365828){return _0x1259bf===_0x365828;},'MvIYk':_0x1d9ebb(0xc8)};(0x0,verify_license_1[_0x1d9ebb(0x158)])(core_config_1[_0x1d9ebb(0xe0)][_0x1d9ebb(0xde)]);const _0x41bb65=_0x5ba7fd['getActiveStep']();if(_0x41bb65['isLogic']())return logic_runner_1['LogicRunner'][_0x1d9ebb(0x15b)](_0x5ba7fd);const _0x229ca2=_0x41bb65[_0x1d9ebb(0x133)]();if(tool_util_1[_0x1d9ebb(0x157)][_0x1d9ebb(0xce)](_0x7e78b1)){let _0x315683='';if(Array[_0x1d9ebb(0xf7)](_0x7e78b1?.[_0x1d9ebb(0x14b)])&&_0x7e78b1?.[_0x1d9ebb(0x14b)]?.[_0x1d9ebb(0xca)]>0x1){const _0x32543f=_0x7e78b1[_0x1d9ebb(0x14b)]['pop'](),_0x6b76e6=_0x7e78b1['content'][_0x1d9ebb(0x154)]();_0x315683=_0x6b76e6[_0x1d9ebb(0x13e)],_0x7e78b1[_0x1d9ebb(0x14b)]['push'](_0x32543f);}const _0x1b9123=await LlmRunner['callTool'](_0x41bb65,_0x5ba7fd,_0x7e78b1?.['tool_calls']),_0x1ee402=new message_util_2['ToolCallMessage'](_0x41bb65,_0x7e78b1[_0x1d9ebb(0x122)]);return _0x229ca2['push'](_0x1ee402),LlmRunner[_0x1d9ebb(0x17c)](_0x5ba7fd,_0x41bb65,_0x315683,_0x7e78b1['tool_calls'],_0x1b9123);}else{let _0x165540;if(_0x336223){if(_0x41c65e[_0x1d9ebb(0x126)](_0x41c65e['AaXvi'],_0x41c65e[_0x1d9ebb(0x13a)]))return![];else _0x165540=_0x336223+'\x0a'+(_0x7e78b1?.['content']??_0x7e78b1);}else _0x165540=_0x7e78b1?.[_0x1d9ebb(0x14b)]??_0x7e78b1;const _0x929f90=_0x41bb65[_0x1d9ebb(0x109)](_0x165540);if(_0x41c65e['USAOj'](typeof _0x929f90,_0x41c65e[_0x1d9ebb(0x11c)])){const _0x1bdd21=_0x929f90;return await _0x5ba7fd[_0x1d9ebb(0x14c)](_0x1bdd21),await LlmRunner['send'](_0x5ba7fd,null,null);}else return _0x165540=_0x929f90,_0x229ca2['push'](new messages_1[(_0x1d9ebb(0xdc))]({'content':_0x165540,'id':_0x41bb65['genMessageId']()})),_0x165540;}}static async[a9_0x195595(0x17c)](_0x1e34be,_0x54e15d,_0x7b9074,_0x29ed2b,_0xfe6744){const _0x2c3aa7=a9_0x195595,_0x305655={'YstYn':function(_0x212cc6,_0x41023b){return _0x212cc6===_0x41023b;},'uybkD':_0x2c3aa7(0x13e),'hbCLL':'direct','QlKKY':function(_0x3d00fe,_0x56b801){return _0x3d00fe===_0x56b801;},'UWEpe':function(_0x264578){return _0x264578();},'tbiRL':function(_0x173d4e,_0x5c721a){return _0x173d4e!==_0x5c721a;},'DgsOV':_0x2c3aa7(0xf9),'riCUw':function(_0x433080,_0x22b552){return _0x433080===_0x22b552;},'sdCxS':'tool','zWKOf':_0x2c3aa7(0x164),'noqjp':function(_0x2261b4,_0x597ba6){return _0x2261b4===_0x597ba6;},'nPKZu':_0x2c3aa7(0x143),'tYdJp':_0x2c3aa7(0x16f),'GRbPp':_0x2c3aa7(0x172),'JGPsx':_0x2c3aa7(0x105)},_0x2ab114=_0x305655[_0x2c3aa7(0x14d)](Array);for(const _0x389455 of _0x29ed2b){let _0xc7ec0a=![];for(const _0xce15e4 of _0xfe6744){if(_0x305655[_0x2c3aa7(0xf8)](_0x305655[_0x2c3aa7(0x153)],_0x305655[_0x2c3aa7(0x153)])){if(_0x3a5f50['ToolUtil'][_0x2c3aa7(0x11d)](_0x695ac7)){if(!_0x434349?.[_0x2c3aa7(0x14b)]||_0x7dae2e[_0x2c3aa7(0x14b)][0x0]&&_0x305655['YstYn'](_0x80d47d['content'][0x0][_0x305655[_0x2c3aa7(0x10e)]],''))return!![];}return![];}else _0x305655['riCUw'](_0xce15e4[_0x2c3aa7(0xe4)],_0x305655[_0x2c3aa7(0x121)])&&_0x305655[_0x2c3aa7(0x175)](_0x389455['id'],_0xce15e4[_0x2c3aa7(0x107)])&&(_0xc7ec0a=!![],_0x2ab114['push'](_0xce15e4));}if(!_0xc7ec0a){const _0x513227=new message_util_2[(_0x2c3aa7(0x134))](_0x54e15d,_0x389455);_0x2ab114[_0x2c3aa7(0xff)](_0x513227);}}const _0x5291bb=_0x54e15d['getMemory']();_0x5291bb[_0x2c3aa7(0xff)](..._0x2ab114);for(const _0x152f72 of _0xfe6744){if(_0x305655[_0x2c3aa7(0x175)](_0x305655[_0x2c3aa7(0x117)],_0x2c3aa7(0x164))){if(_0x305655[_0x2c3aa7(0x12d)](_0x152f72[_0x2c3aa7(0xe4)],'ai')){if(_0x305655[_0x2c3aa7(0xe2)]!==_0x305655[_0x2c3aa7(0xe2)]){if(_0x305655['YstYn'](_0x5d0e72['type'],'ai')){const _0x464d59=_0xba2ec8['additional_kwargs'][_0x2c3aa7(0x167)];if(_0x464d59)return _0x8463cd[_0x2c3aa7(0xff)](_0x544eed),_0x1674a2[_0x2c3aa7(0x14b)];}}else{const _0x241a3c=_0x152f72[_0x2c3aa7(0x16e)][_0x2c3aa7(0x167)];if(_0x241a3c)return _0x305655[_0x2c3aa7(0x142)]===_0x305655[_0x2c3aa7(0x142)]?(_0x5291bb[_0x2c3aa7(0xff)](_0x152f72),_0x152f72['content']):_0x3261db[_0x2c3aa7(0xf4)]['send'](_0x321654);}}}else{const _0xc31028=_0x2841a8[_0x2c3aa7(0x16e)][_0x305655[_0x2c3aa7(0x106)]];if(_0xc31028)return _0x38da31['push'](_0x5e1d97),_0x4cf1ba[_0x2c3aa7(0x14b)];}}for(const _0x52b893 of _0xfe6744){if(_0x305655[_0x2c3aa7(0x114)](_0x52b893['type'],_0x305655[_0x2c3aa7(0xd5)])){if(_0x305655[_0x2c3aa7(0xf8)](_0x305655['JGPsx'],_0x305655[_0x2c3aa7(0xdd)])){let _0x5c56cd=![];for(const _0x5f0493 of _0x42ee54){_0x305655[_0x2c3aa7(0x175)](_0x5f0493[_0x2c3aa7(0xe4)],_0x2c3aa7(0x10d))&&_0x305655[_0x2c3aa7(0x175)](_0x2631b4['id'],_0x5f0493[_0x2c3aa7(0x107)])&&(_0x5c56cd=!![],_0x38809d[_0x2c3aa7(0xff)](_0x5f0493));}if(!_0x5c56cd){const _0xdeb9cc=new _0x5afb23['ToolMessageOK'](_0x338689,_0x3dc519);_0x378fff['push'](_0xdeb9cc);}}else return await LlmRunner[_0x2c3aa7(0x15b)](_0x1e34be,_0x52b893,_0x7b9074);}}return await LlmRunner[_0x2c3aa7(0x15b)](_0x1e34be,null,_0x7b9074);}static async[a9_0x195595(0x12a)](_0x592bfe,_0x2a6c11,_0xdf4296){const _0x252d46=a9_0x195595,_0x1fffef={'xlaqL':_0x252d46(0x151),'pZdQx':_0x252d46(0xc9),'YLeur':function(_0x2b8f3a,_0x59bb9d){return _0x2b8f3a>=_0x59bb9d;},'XpRsp':_0x252d46(0xfa),'jhOPJ':function(_0x3b9615,_0x2cd59f){return _0x3b9615===_0x2cd59f;},'unukr':_0x252d46(0xc8),'cUMWp':'NkZNq','wYUuD':_0x252d46(0x16a),'NfhgA':_0x252d46(0x179),'bCMjF':function(_0x40e06d,_0x39bd80){return _0x40e06d!==_0x39bd80;},'xLDCU':_0x252d46(0x146),'MwgjN':function(_0xe5f0a9,_0x78db73){return _0xe5f0a9===_0x78db73;},'NMdVi':'ZNOVf','sRNIA':function(_0x3169b8,_0x3ef25d){return _0x3169b8 in _0x3ef25d;},'mBXtQ':_0x252d46(0xe5),'YDtKc':function(_0x244a26,_0x28b013){return _0x244a26===_0x28b013;},'rrnwP':function(_0x151819,_0x544843){return _0x151819!==_0x544843;},'BBEDM':'SjkaO','BnfFk':_0x252d46(0x10d),'KPPoj':_0x252d46(0xdf),'IYeOs':_0x252d46(0x102),'QHTxD':_0x252d46(0xe6)},_0x1734cb=new Array();for(const _0x53fb0c of _0xdf4296){let _0x215aad;if(_0x1fffef[_0x252d46(0x173)](typeof _0x592bfe[_0x53fb0c[_0x252d46(0x13c)]],_0x1fffef['unukr'])){if(_0x1fffef[_0x252d46(0x118)]!==_0x1fffef[_0x252d46(0x12f)]){const _0x590f49=await _0x592bfe[_0x53fb0c[_0x252d46(0x13c)]](_0x53fb0c);if(typeof _0x590f49===_0x1fffef['NfhgA']){if(_0x1fffef[_0x252d46(0x15e)](_0x1fffef[_0x252d46(0xe7)],_0x1fffef[_0x252d46(0xe7)])){let _0x59841c=_0x2cdc6c[_0x252d46(0x103)][_0x1fffef[_0x252d46(0x135)]];if(!_0x59841c)_0x59841c=_0x4d81da['response_metadata'][_0x1fffef[_0x252d46(0x139)]];else!_0x59841c&&(_0x59841c=_0x3a7af5[_0x252d46(0x103)][_0x252d46(0xd1)]);return _0x59841c;}else await _0x2a6c11['activateByName'](_0x590f49),_0x1734cb['push'](new message_util_2['ToolMessageOK'](_0x592bfe,_0x53fb0c));}else{if(_0x1fffef[_0x252d46(0x173)](typeof _0x590f49,_0x1fffef[_0x252d46(0xd9)])){if(_0x1fffef[_0x252d46(0xcd)]('ZNOVf',_0x1fffef[_0x252d46(0xf2)]))await _0x2a6c11[_0x252d46(0x14c)](_0x590f49),_0x1734cb['push'](new message_util_2[(_0x252d46(0x134))](_0x592bfe,_0x53fb0c));else return _0x39e6fe[_0x252d46(0x148)](_0xe1c68a)?(_0x22edac['pop'](),_0x1fffef[_0x252d46(0x17d)](_0x1174e8,0x2)&&_0x8a0e69[_0x252d46(0x154)](),_0x53c964[_0x252d46(0xff)](new _0xe1894[(_0x252d46(0x160))]({'content':_0x1fffef[_0x252d46(0x14a)],'id':_0x1e4b43[_0x252d46(0x113)]()})),!![]):![];}else{if(_0x590f49&&_0x1fffef['sRNIA'](_0x1fffef[_0x252d46(0x171)],_0x590f49)){let _0x1e4674;_0x1fffef[_0x252d46(0x115)](typeof _0x590f49[_0x252d46(0xe5)],_0x1fffef['NfhgA'])?_0x1e4674=await _0x2a6c11[_0x252d46(0x12c)](_0x590f49[_0x252d46(0xe5)]):_0x1fffef['rrnwP'](_0x1fffef[_0x252d46(0x176)],_0x1fffef['BBEDM'])?_0x1fffef[_0x252d46(0x17d)](_0x4c6ba7[_0x252d46(0xe3)],0x0)&&(_0x3a4e40[_0x252d46(0xe3)]=_0x228893[_0x252d46(0xe3)]):_0x1e4674=await _0x2a6c11[_0x252d46(0x14c)](_0x590f49['step']),_0x590f49[_0x252d46(0x130)]&&_0x1e4674['saveState']({'_prompt':_0x590f49[_0x252d46(0x130)]}),_0x590f49['state']&&_0x1e4674[_0x252d46(0x177)](_0x590f49[_0x252d46(0x129)]),_0x590f49[_0x252d46(0xee)]&&(_0x1e4674[_0x252d46(0xee)]=_0x590f49['contentType']),_0x590f49[_0x1fffef['BnfFk']]?_0x215aad=new message_util_1[(_0x252d46(0xfd))](_0x1e4674,_0x53fb0c,_0x590f49[_0x1fffef['BnfFk']]):_0x215aad=new message_util_2[(_0x252d46(0x134))](_0x592bfe,_0x53fb0c),_0x1734cb[_0x252d46(0xff)](_0x215aad),_0x590f49[_0x1fffef['KPPoj']]&&(_0x1fffef['bCMjF'](_0x1fffef['IYeOs'],_0x1fffef[_0x252d46(0xe8)])?_0x1734cb[_0x252d46(0xff)](_0x590f49[_0x1fffef[_0x252d46(0xfb)]]):_0x3a9fda=_0x4b9bc2?.['content']??_0x5d76db);}}}}else{const _0x516423=_0x32c067?function(){const _0xad5c6=_0x252d46;if(_0x14f2ad){const _0x2da2ee=_0x5637ee[_0xad5c6(0xef)](_0x1a3d61,arguments);return _0x5277dc=null,_0x2da2ee;}}:function(){};return _0x56c6f4=![],_0x516423;}}else _0x592bfe[_0x252d46(0xe1)](_0x53fb0c['name'])?(new session_logger_1['SessionLogger'](_0x2a6c11[_0x252d46(0xe9)]())[_0x252d46(0x12b)](_0x252d46(0xd2)+_0x53fb0c[_0x252d46(0x13c)]),_0x215aad=new message_util_2[(_0x252d46(0x134))](_0x592bfe,_0x53fb0c)):(new session_logger_1[(_0x252d46(0xcb))](_0x2a6c11[_0x252d46(0xe9)]())[_0x252d46(0x12b)](_0x252d46(0x116)+_0x53fb0c[_0x252d46(0x13c)]),_0x215aad=new message_util_1[(_0x252d46(0xfd))](_0x592bfe,_0x53fb0c,'LLM\x20hallucinates\x20a\x20non-existing\x20tool:\x20'+_0x53fb0c[_0x252d46(0x13c)])),_0x1734cb[_0x252d46(0xff)](_0x215aad);}return _0x1734cb;}static[a9_0x195595(0x148)](_0x166fec){const _0x3051ea=a9_0x195595,_0x1c6999={'sOUon':function(_0xc007a0,_0x5f5b8e){return _0xc007a0===_0x5f5b8e;},'giDhB':_0x3051ea(0x13e),'mwoQh':function(_0x59ea61,_0x57aa59){return _0x59ea61===_0x57aa59;},'vSraN':_0x3051ea(0x131)};if(tool_util_1['ToolUtil']['hasNoTool'](_0x166fec)){if(!_0x166fec?.[_0x3051ea(0x14b)]||_0x166fec['content'][0x0]&&_0x1c6999[_0x3051ea(0x147)](_0x166fec['content'][0x0][_0x1c6999['giDhB']],''))return _0x1c6999['mwoQh'](_0x1c6999['vSraN'],_0x3051ea(0x112))?!![]:!![];}return![];}static[a9_0x195595(0x108)](_0x2214c2){const _0x1b720c=a9_0x195595,_0x3f26ee={'FGLGo':_0x1b720c(0x137),'RovGH':function(_0x1886f6,_0x468b1a){return _0x1886f6===_0x468b1a;},'RCfsh':'aPwFe','lkDPE':_0x1b720c(0x151),'LYYhx':'stop_reason','qQVUA':_0x1b720c(0xd1)};if(_0x2214c2?.[_0x1b720c(0x103)]){if(_0x3f26ee['RovGH'](_0x3f26ee[_0x1b720c(0x162)],_0x3f26ee[_0x1b720c(0x162)])){let _0xacf9b6=_0x2214c2[_0x1b720c(0x103)][_0x3f26ee['lkDPE']];if(!_0xacf9b6)_0xacf9b6=_0x2214c2[_0x1b720c(0x103)][_0x3f26ee[_0x1b720c(0x141)]];else!_0xacf9b6&&(_0xacf9b6=_0x2214c2[_0x1b720c(0x103)][_0x3f26ee[_0x1b720c(0x11a)]]);return _0xacf9b6;}else return _0x3f26ee[_0x1b720c(0x155)];}else return _0x1b720c(0x137);}}function a9_0x4f64(_0x43abf9,_0x4287f8){const _0x5ec8c3=a9_0x49d3();return a9_0x4f64=function(_0x2dd5bc,_0x30e11a){_0x2dd5bc=_0x2dd5bc-0xc3;let _0x49d3c7=_0x5ec8c3[_0x2dd5bc];return _0x49d3c7;},a9_0x4f64(_0x43abf9,_0x4287f8);}exports[a9_0x195595(0x17e)]=LlmRunner;
1
+ const a9_0x4f30f1=a9_0x3283;function a9_0x3283(_0x1a8e30,_0x4c3123){const _0x5dabc9=a9_0x47cd();return a9_0x3283=function(_0x34c3c1,_0x429562){_0x34c3c1=_0x34c3c1-0x1e3;let _0x47cdf9=_0x5dabc9[_0x34c3c1];return _0x47cdf9;},a9_0x3283(_0x1a8e30,_0x4c3123);}(function(_0x1ef4b4,_0x3785b1){const _0xaee1b8=a9_0x3283,_0x25dc1a=_0x1ef4b4();while(!![]){try{const _0x5812fc=-parseInt(_0xaee1b8(0x20f))/0x1+-parseInt(_0xaee1b8(0x228))/0x2+-parseInt(_0xaee1b8(0x222))/0x3+-parseInt(_0xaee1b8(0x234))/0x4*(parseInt(_0xaee1b8(0x25b))/0x5)+-parseInt(_0xaee1b8(0x1f7))/0x6*(-parseInt(_0xaee1b8(0x235))/0x7)+parseInt(_0xaee1b8(0x1fb))/0x8+parseInt(_0xaee1b8(0x225))/0x9*(parseInt(_0xaee1b8(0x281))/0xa);if(_0x5812fc===_0x3785b1)break;else _0x25dc1a['push'](_0x25dc1a['shift']());}catch(_0x13e891){_0x25dc1a['push'](_0x25dc1a['shift']());}}}(a9_0x47cd,0xc7d9e));const a9_0x429562=(function(){const _0x55b320=a9_0x3283,_0x1e608d={'FowgE':function(_0xaf3b0b,_0x55bafd){return _0xaf3b0b===_0x55bafd;},'dijcB':_0x55b320(0x200),'pwMwe':_0x55b320(0x24e),'hbRKP':_0x55b320(0x2b2)};let _0x4dbcf5=!![];return function(_0x2d0595,_0x332aa2){const _0x2d8cdc=_0x55b320,_0x228454={'iqdsQ':function(_0x132ea8,_0x40dfed){return _0x1e608d['FowgE'](_0x132ea8,_0x40dfed);},'TvcDT':_0x1e608d[_0x2d8cdc(0x293)],'rQCWB':_0x2d8cdc(0x26c),'LmtoO':'vuHYg'};if(_0x1e608d['pwMwe']===_0x1e608d['hbRKP'])return _0x7968c5['LogicRunner'][_0x2d8cdc(0x230)](_0x1874e9);else{const _0x8699c8=_0x4dbcf5?function(){const _0x1407f1=_0x2d8cdc;if(_0x228454[_0x1407f1(0x262)](_0x228454[_0x1407f1(0x22a)],_0x228454[_0x1407f1(0x29c)]))_0x2db5f4[_0x1407f1(0x2b3)]=_0xb9a033[_0x1407f1(0x2b3)];else{if(_0x332aa2){if('vuHYg'===_0x228454[_0x1407f1(0x220)]){const _0x309a87=_0x332aa2[_0x1407f1(0x1e6)](_0x2d0595,arguments);return _0x332aa2=null,_0x309a87;}else return _0x1f9acd=_0x10a7a7,_0x3459d5['push'](new _0x104e89[(_0x1407f1(0x2a0))]({'content':_0x19dbca,'id':_0x4e8245[_0x1407f1(0x25f)]()})),_0x378e1f;}}}:function(){};return _0x4dbcf5=![],_0x8699c8;}};}()),a9_0x34c3c1=a9_0x429562(this,function(){const _0x58b828=a9_0x3283,_0x2d7c42={'hcPLC':_0x58b828(0x1e7)};return a9_0x34c3c1[_0x58b828(0x22f)]()[_0x58b828(0x238)](_0x2d7c42['hcPLC'])[_0x58b828(0x22f)]()[_0x58b828(0x21d)](a9_0x34c3c1)[_0x58b828(0x238)](_0x2d7c42['hcPLC']);});a9_0x34c3c1();'use strict';Object[a9_0x4f30f1(0x28c)](exports,'__esModule',{'value':!![]}),exports['LlmRunner']=void 0x0;function a9_0x47cd(){const _0x212192=['../utils/message-util','ootxK','step','isSame','activate','LLM\x20hallucinates\x20a\x20non-existing\x20tool:\x20','Bziuv','LKRTD','RONcu','uvUst','Follow\x20system\x20prompt\x20and\x20respond\x20properly.','nwnUq','pGanz','ToolMessageOK','uaVKM','Mbiei','finishReason','uEoQq','mmYUo','zSRmT','isLogic','messageStep','QEuDU','XkeHT','../utils/verify-license','YbnAt','CdSdF','isBotMessageEmpty','430mCohdw','rQIRn','hasTool','tool_call_id','genMessageId','Attempt\x20','xCEvP','iqdsQ','length','activateByName','replaceStep','onResponse','HXaKQ','UwMGt','toJSON','contentType','DYOeI','TIZWw','LSXfl','ezQJp','getReason','fVPzu','saveSession','vyPuH','getSessionDoc','jGLim','../session/session-logger','GcXZi','state','LogicRunner','CoreConfig','nglEg','YHQxF','cygvR','@langchain/core/messages','ztqjC','ptVZH','yhXBd','10hVbRDN','hallucinated\x20tool:\x20','PxwaB','isArray','LEnco','YVjNL','Ymzyu','tEWNH','warn','hasNoTool','tool','defineProperty','HVFpV','Retry','name','pop','dqzjE','keALN','dijcB','tallyToken','MessageUtil','ItmOG','TzFBn','bGoqC','getMemory','tool_calls','callTool','rQCWB','dbClr','mWzod','ngaxM','AIMessage','nRbpk','nJPly','dYhbb','HvxfY','ToolMessageInfo','usage_metadata','getModel','getActiveStep','../utils/tool-util','LLM\x20call\x20failed.\x20Reason:','JNXEu','iJErU','jFDDW','.\x20Error:','klhcK','withStructuredOutput','stopTool','edLxA','temperature','function','PIknQ','mcdod','hIvzL','verifyLicense','content','iiqla','../configs/core-config','ecLlW','apply','(((.+)+)+)+$','clcIh','TJVGB','./logic-runner','SBpqQ','dqAhq','stop_reason','onToolResponseMessages','QTxRi','mVraZ','isToolAvailable','ZvtfN','ddrGl','direct','type','zZamS','6phlNtU','llmRetry','tgFrX','onCrossing','10443232ethHCQ','mWoqP','additional_kwargs','Ggkiu','getPrompt','QRIQp','CqVnt','ExGVL','prompt','sDTdP','BmdWk','nWfWJ','NZnnT','VAEHf','pFirR','ToolUtil','../utils/retry','getFlowEngine','qEEhS','aPsIy','741328cJtrFP','PBLvu','SystemMessage','FkxAa','unknown','\x20of\x20','peek','iVvYA','BFLoa','hbusW','picoKey','BOqnb','xlkoN','getName','constructor','ZqQkd','LfAtT','LmtoO','HumanMessage','3942291qCCWYA','tdlcS','nbfry','30864249XGXBlY','VuEnc','asNRB','1602172EEhxuW','dZgFb','TvcDT','response_metadata','finish_reason','aCbvH','lHvTq','toString','send','AieIe','goTry','CEHPM','61452OMwNqx','1830878SDzvnX','JFfua','Gtagn','search','push','text','SessionLogger','message','MIbRS','saveState'];a9_0x47cd=function(){return _0x212192;};return a9_0x47cd();}const messages_1=require(a9_0x4f30f1(0x27d)),message_util_1=require(a9_0x4f30f1(0x23f)),tool_util_1=require(a9_0x4f30f1(0x2a9)),session_logger_1=require(a9_0x4f30f1(0x275)),core_config_1=require(a9_0x4f30f1(0x1e4)),message_util_2=require(a9_0x4f30f1(0x23f)),logic_runner_1=require(a9_0x4f30f1(0x1ea)),retry_1=require(a9_0x4f30f1(0x20b)),verify_license_1=require(a9_0x4f30f1(0x257));class LlmRunner{static async[a9_0x4f30f1(0x230)](_0x50d10e,_0x53293f,_0x285e0d){const _0x113658=a9_0x4f30f1,_0x4ff702={'dYhbb':_0x113658(0x1f4),'PIknQ':function(_0x25b669,_0x5d1d6a){return _0x25b669===_0x5d1d6a;},'FkxAa':'text','keALN':function(_0x3065ae,_0x1bb16){return _0x3065ae>=_0x1bb16;},'nwnUq':_0x113658(0x249),'ItmOG':'(((.+)+)+)+$','UwMGt':'unknown','ezQJp':function(_0x5a36a9,_0x2e1a61){return _0x5a36a9===_0x2e1a61;},'RrdkP':_0x113658(0x1e8),'Ggkiu':function(_0x3d79b7,_0x54bc3e){return _0x3d79b7>=_0x54bc3e;},'BOqnb':function(_0x47466c,_0x4a646f){return _0x47466c!==_0x4a646f;},'ZqQkd':_0x113658(0x24d),'qEEhS':'gaxBM','gwEYH':function(_0x5ce7d7,_0x201fd2){return _0x5ce7d7===_0x201fd2;},'yhXBd':function(_0x51283e,_0x2e5b64){return _0x51283e!=_0x2e5b64;},'jGLim':function(_0x5188b1,_0x37f254){return _0x5188b1===_0x37f254;},'ASQMZ':_0x113658(0x251),'hIvzL':'BMvam','LSXfl':function(_0x240a6c,_0x130533){return _0x240a6c!==_0x130533;},'BFLoa':_0x113658(0x216),'QTxRi':_0x113658(0x236),'VuEnc':_0x113658(0x22e),'zZamS':_0x113658(0x1f9),'GcXZi':function(_0x4c9b51,_0x38571e){return _0x4c9b51-_0x38571e;},'ptVZH':_0x113658(0x204),'GEuSy':_0x113658(0x2b1),'SBpqQ':function(_0x366898,_0x14adf0,_0x27472f){return _0x366898(_0x14adf0,_0x27472f);}};(0x0,verify_license_1[_0x113658(0x2b8)])(core_config_1[_0x113658(0x279)][_0x113658(0x219)]);let _0x2610a1;const _0x13ab05=_0x50d10e['getActiveStep'](),{modelClass:_0x5519a5,params:_0x51a41b,useTool:_0x4fa373}=_0x50d10e[_0x113658(0x20c)]()['getModel'](_0x13ab05[_0x113658(0x2a7)]()),_0x2a3882={..._0x51a41b},_0x199379=_0x13ab05['getTemperature']();if(_0x4ff702[_0x113658(0x1fe)](_0x199379,0x0)){if(_0x4ff702['BOqnb'](_0x4ff702[_0x113658(0x21e)],_0x4ff702[_0x113658(0x20d)]))_0x2a3882[_0x113658(0x2b3)]=_0x199379;else{const _0x331fbc=_0x341a4b[_0x113658(0x1fd)][_0x4ff702[_0x113658(0x2a3)]];if(_0x331fbc)return _0x2e875f['push'](_0xe15bc),_0x22d7cb['content'];}}else{if(_0x4ff702[_0x113658(0x1fe)](_0x50d10e[_0x113658(0x2b3)],0x0)){if(_0x4ff702['gwEYH'](_0x113658(0x2ac),_0x113658(0x229)))for(const _0x33b1c7 of _0x422570[_0x113658(0x2b9)]){_0x33b1c7&&_0x4ff702[_0x113658(0x2b5)](_0x33b1c7[_0x113658(0x1f5)],_0x4ff702[_0x113658(0x212)])&&(_0x5d903e=_0x33b1c7[_0x4ff702[_0x113658(0x212)]]);}else _0x2a3882['temperature']=_0x50d10e['temperature'];}}const _0x25c082=_0x13ab05['getMemory']();if(_0x53293f){const _0x3857e4=message_util_1[_0x113658(0x295)][_0x113658(0x254)](_0x53293f['id']);if(_0x4ff702[_0x113658(0x280)](_0x3857e4,_0x13ab05[_0x113658(0x21c)]())){if(_0x4ff702[_0x113658(0x274)](_0x4ff702['ASQMZ'],_0x4ff702[_0x113658(0x2b7)]))return![];else await _0x50d10e[_0x113658(0x271)](),message_util_1[_0x113658(0x295)][_0x113658(0x265)](_0x53293f,_0x13ab05),_0x53293f=_0x13ab05[_0x113658(0x1fa)](_0x53293f,_0x3857e4);}}else{const _0x363d02=message_util_1['MessageUtil'][_0x113658(0x215)](_0x25c082);if(_0x363d02&&_0x363d02[_0x113658(0x1f5)]!=='system'){if(_0x4ff702[_0x113658(0x26d)](_0x4ff702[_0x113658(0x217)],'iVvYA'))return _0x34c99e[_0x113658(0x25a)](_0x23c722)?(_0x966fb8[_0x113658(0x290)](),_0x4ff702[_0x113658(0x292)](_0xf2cb29,0x2)&&_0x447eae[_0x113658(0x290)](),_0x33b7d9[_0x113658(0x239)](new _0x356ac9[(_0x113658(0x221))]({'content':_0x4ff702[_0x113658(0x24a)],'id':_0x54b390[_0x113658(0x25f)]()})),!![]):![];else{const _0x6a1fdc=message_util_1[_0x113658(0x295)][_0x113658(0x254)](_0x363d02['id']);_0x4ff702[_0x113658(0x280)](_0x6a1fdc,_0x13ab05[_0x113658(0x21c)]())&&(_0x4ff702[_0x113658(0x1ef)]===_0x4ff702[_0x113658(0x1ef)]?(await _0x50d10e[_0x113658(0x271)](),_0x53293f=_0x13ab05[_0x113658(0x1fa)](_0x53293f,_0x6a1fdc)):(_0x3b8d0c=!![],_0xa53fac[_0x113658(0x239)](_0x551a21)));}}else await _0x50d10e[_0x113658(0x271)](),_0x53293f=_0x13ab05[_0x113658(0x1fa)](_0x53293f);}if(_0x13ab05[_0x113658(0x253)]()){if(_0x4ff702[_0x113658(0x26e)](_0x4ff702[_0x113658(0x226)],_0x4ff702[_0x113658(0x226)]))return logic_runner_1[_0x113658(0x278)][_0x113658(0x230)](_0x50d10e);else _0xa1a7f1=_0x2a591d[_0x4ff702[_0x113658(0x212)]];}let _0x270265=new _0x5519a5(_0x2a3882),_0x955a90=_0x13ab05['obtainTools']()??[];const _0x4a59c0=await _0x13ab05[_0x113658(0x1ff)]();_0x25c082[0x0]=new messages_1[(_0x113658(0x211))]({'content':_0x4a59c0,'id':_0x13ab05[_0x113658(0x25f)]()});if(_0x53293f){if(_0x4ff702[_0x113658(0x21a)](_0x113658(0x285),_0x4ff702[_0x113658(0x1f6)])){const _0x38c6d7=_0x25c082[_0x4ff702[_0x113658(0x276)](_0x25c082[_0x113658(0x263)],0x1)];if(!message_util_1[_0x113658(0x295)][_0x113658(0x242)](_0x38c6d7,_0x53293f)){if(_0x4ff702[_0x113658(0x27f)]===_0x4ff702['ptVZH'])_0x25c082[_0x113658(0x239)](_0x53293f);else return _0xd79ce5[_0x113658(0x22f)]()['search'](_0x113658(0x1e7))[_0x113658(0x22f)]()['constructor'](_0x318067)['search'](JQfKCT[_0x113658(0x296)]);}}else return _0x223698['push'](_0x2f0f74),_0x45edd2[_0x113658(0x2b9)];}const _0x2c74db=_0x53293f?.[_0x113658(0x1fd)][_0x4ff702['GEuSy']];_0x2c74db&&(_0x955a90=[]);_0x270265=_0x4ff702[_0x113658(0x1eb)](_0x4fa373,_0x270265,_0x955a90);const _0x3241eb=_0x13ab05['structOutputSchema']();return _0x3241eb&&(_0x270265=_0x270265['withStructuredOutput'](_0x3241eb)),_0x2610a1=await retry_1[_0x113658(0x28e)][_0x113658(0x232)]({'maxRetries':core_config_1[_0x113658(0x279)][_0x113658(0x1f8)],'delayMs':0x1f4,'onMain':async()=>{const _0x11a7b0=_0x113658;_0x2610a1=await _0x270265['invoke'](_0x25c082);const _0x1c4e47=_0x2610a1[_0x11a7b0(0x2a6)];return _0x50d10e[_0x11a7b0(0x294)](_0x1c4e47),_0x2610a1;},'onWarn':(_0xe7830c,_0x4caedb,_0x50389f)=>{const _0x2cdd63=_0x113658;console['log'](_0x270265[_0x2cdd63(0x269)]()),new session_logger_1[(_0x2cdd63(0x23b))](_0x50d10e[_0x2cdd63(0x273)]())[_0x2cdd63(0x289)](_0x2cdd63(0x260)+_0xe7830c+_0x2cdd63(0x214)+_0x4caedb+_0x2cdd63(0x2ae)+(_0x50389f?_0x50389f[_0x2cdd63(0x23c)]:_0x4ff702[_0x2cdd63(0x268)]));},'shouldRetry':(_0x78fc50,_0x2bd044)=>{const _0x40aae3=_0x113658;if(LlmRunner['isBotMessageEmpty'](_0x78fc50)){if(_0x4ff702['ezQJp'](_0x4ff702['RrdkP'],_0x40aae3(0x1e8)))return _0x25c082['pop'](),_0x4ff702[_0x40aae3(0x292)](_0x2bd044,0x2)&&(_0x4ff702['ezQJp'](_0x40aae3(0x2a1),'nRbpk')?_0x25c082[_0x40aae3(0x290)]():_0x111803=new _0x10fcf6['ToolMessageOK'](_0x285bdf,_0xa8b03f)),_0x25c082[_0x40aae3(0x239)](new messages_1[(_0x40aae3(0x221))]({'content':_0x4ff702[_0x40aae3(0x24a)],'id':_0x13ab05[_0x40aae3(0x25f)]()})),!![];else{const _0x489ab9=_0x37f66a[_0x53b692[_0x40aae3(0x263)]-0x1];!_0x2870a2[_0x40aae3(0x295)][_0x40aae3(0x242)](_0x489ab9,_0x14128b)&&_0x5c4b53[_0x40aae3(0x239)](_0x596ea8);}}else return![];},'onFinalError':_0x10711a=>{const _0x49a234=_0x113658;throw new Error(_0x49a234(0x2aa)+LlmRunner[_0x49a234(0x26f)](_0x2610a1)+_0x49a234(0x2ae)+(_0x10711a?_0x10711a[_0x49a234(0x23c)]:'unknown'));}}),await LlmRunner[_0x113658(0x266)](_0x50d10e,_0x2610a1,_0x285e0d);}static async[a9_0x4f30f1(0x266)](_0x34297b,_0x436401,_0x45ec13){const _0x56e6ef=a9_0x4f30f1,_0x3ea943={'JhvxA':_0x56e6ef(0x1ed),'HVFpV':function(_0x13ce33,_0x5ac4b1){return _0x13ce33>_0x5ac4b1;},'JNXEu':function(_0x4ad662,_0x3bc39){return _0x4ad662===_0x3bc39;},'RONcu':_0x56e6ef(0x23a),'asNRB':function(_0x156297,_0x10b712){return _0x156297===_0x10b712;},'aKmWM':_0x56e6ef(0x27c),'ztqjC':_0x56e6ef(0x2a2),'ExGVL':_0x56e6ef(0x208),'hbusW':_0x56e6ef(0x2b4),'PBLvu':_0x56e6ef(0x286),'zSRmT':function(_0xc6fc80,_0x2860ae){return _0xc6fc80===_0x2860ae;},'mWzod':_0x56e6ef(0x22d)};(0x0,verify_license_1[_0x56e6ef(0x2b8)])(core_config_1[_0x56e6ef(0x279)][_0x56e6ef(0x219)]);const _0x33d483=_0x34297b[_0x56e6ef(0x2a8)]();if(_0x33d483[_0x56e6ef(0x253)]())return logic_runner_1[_0x56e6ef(0x278)]['send'](_0x34297b);const _0x224b16=_0x33d483[_0x56e6ef(0x299)]();if(tool_util_1['ToolUtil'][_0x56e6ef(0x25d)](_0x436401)){let _0x49a7dc='';if(Array[_0x56e6ef(0x284)](_0x436401?.['content'])&&_0x3ea943[_0x56e6ef(0x28d)](_0x436401?.[_0x56e6ef(0x2b9)]?.[_0x56e6ef(0x263)],0x1))for(const _0x29e12f of _0x436401[_0x56e6ef(0x2b9)]){_0x29e12f&&_0x3ea943[_0x56e6ef(0x2ab)](_0x29e12f[_0x56e6ef(0x1f5)],_0x56e6ef(0x23a))&&(_0x49a7dc=_0x29e12f[_0x3ea943[_0x56e6ef(0x247)]]);}const _0x2e350d=await LlmRunner[_0x56e6ef(0x29b)](_0x33d483,_0x34297b,_0x436401?.[_0x56e6ef(0x29a)]),_0x84a17e=new message_util_2['ToolCallMessage'](_0x33d483,_0x436401[_0x56e6ef(0x29a)]);return _0x224b16[_0x56e6ef(0x239)](_0x84a17e),LlmRunner[_0x56e6ef(0x1ee)](_0x34297b,_0x33d483,_0x49a7dc,_0x436401[_0x56e6ef(0x29a)],_0x2e350d);}else{if(_0x3ea943[_0x56e6ef(0x227)](_0x3ea943['aKmWM'],_0x56e6ef(0x27c))){let _0x46116e;_0x45ec13?_0x3ea943[_0x56e6ef(0x227)](_0x3ea943[_0x56e6ef(0x27e)],_0x3ea943[_0x56e6ef(0x202)])?_0x18aa33=_0x6334b6[_0x56e6ef(0x22b)][_0x3ea943['JhvxA']]:_0x46116e=_0x45ec13+'\x0a'+(_0x436401?.[_0x56e6ef(0x2b9)]??_0x436401):_0x46116e=_0x436401?.[_0x56e6ef(0x2b9)]??_0x436401;const _0x102183=_0x33d483[_0x56e6ef(0x266)](_0x46116e);if(typeof _0x102183===_0x3ea943[_0x56e6ef(0x218)]){if(_0x3ea943[_0x56e6ef(0x210)]!==_0x3ea943[_0x56e6ef(0x210)])_0x291caa=_0x258258+'\x0a'+(_0x3bec74?.[_0x56e6ef(0x2b9)]??_0x927306);else{const _0x2b9002=_0x102183;return await _0x34297b['activate'](_0x2b9002),await LlmRunner[_0x56e6ef(0x230)](_0x34297b,null,null);}}else{if(_0x3ea943[_0x56e6ef(0x252)](_0x3ea943[_0x56e6ef(0x29e)],_0x56e6ef(0x22d)))return _0x46116e=_0x102183,_0x224b16[_0x56e6ef(0x239)](new messages_1[(_0x56e6ef(0x2a0))]({'content':_0x46116e,'id':_0x33d483[_0x56e6ef(0x25f)]()})),_0x46116e;else _0x56504a[_0x56e6ef(0x26a)]=_0x3edc93['contentType'];}}else new _0x45f398[(_0x56e6ef(0x23b))](_0x2c157d[_0x56e6ef(0x273)]())[_0x56e6ef(0x289)](_0x56e6ef(0x282)+_0x2f55cb[_0x56e6ef(0x28f)]),_0x398232=new _0x3c6260[(_0x56e6ef(0x2a5))](_0x1b09e9,_0x1f621a,_0x56e6ef(0x244)+_0x23e69d[_0x56e6ef(0x28f)]);}}static async[a9_0x4f30f1(0x1ee)](_0x39cd60,_0x2af958,_0x17d652,_0x36f25f,_0x171226){const _0x366341=a9_0x4f30f1,_0x34de3c={'dbClr':function(_0x450773,_0x1be525){return _0x450773===_0x1be525;},'LfAtT':_0x366341(0x28b),'nWfWJ':_0x366341(0x23a),'TJVGB':function(_0x2187e4){return _0x2187e4();},'ZvtfN':_0x366341(0x29f),'PxwaB':function(_0x5a19d8,_0x3323fe){return _0x5a19d8===_0x3323fe;},'iiqla':function(_0x50f519,_0x250192){return _0x50f519===_0x250192;},'HvxfY':_0x366341(0x205),'bGoqC':_0x366341(0x246),'pFirR':'oZZaO','dqAhq':_0x366341(0x1f4),'xlkoN':_0x366341(0x237),'tdlcS':function(_0x329970,_0x18b22d){return _0x329970!==_0x18b22d;},'Ymzyu':_0x366341(0x25c),'ZcDud':_0x366341(0x23d),'XkeHT':function(_0x24bead,_0x5f5473){return _0x24bead===_0x5f5473;},'HYAmU':'human','YbnAt':function(_0x4b8187,_0x5c3a63){return _0x4b8187!==_0x5c3a63;},'ootxK':_0x366341(0x224)},_0x77929b=_0x34de3c[_0x366341(0x1e9)](Array);for(const _0x24dcc1 of _0x36f25f){if(_0x366341(0x29f)===_0x34de3c[_0x366341(0x1f2)]){let _0x69961c=![];for(const _0x372aa2 of _0x171226){_0x372aa2[_0x366341(0x1f5)]===_0x34de3c[_0x366341(0x21f)]&&_0x34de3c[_0x366341(0x283)](_0x24dcc1['id'],_0x372aa2[_0x366341(0x25e)])&&(_0x69961c=!![],_0x77929b['push'](_0x372aa2));}if(!_0x69961c){if(_0x34de3c[_0x366341(0x1e3)](_0x34de3c[_0x366341(0x2a4)],_0x34de3c[_0x366341(0x298)])){let _0x4935e8=![];for(const _0x1aadd6 of _0x3de00d){_0x34de3c[_0x366341(0x29d)](_0x1aadd6[_0x366341(0x1f5)],_0x34de3c['LfAtT'])&&_0x34de3c[_0x366341(0x29d)](_0x38445f['id'],_0x1aadd6[_0x366341(0x25e)])&&(_0x4935e8=!![],_0x285f55[_0x366341(0x239)](_0x1aadd6));}if(!_0x4935e8){const _0x7ecc91=new _0x3546fd[(_0x366341(0x24c))](_0x113771,_0x525387);_0x5d8cd3[_0x366341(0x239)](_0x7ecc91);}}else{const _0x2ad13f=new message_util_2[(_0x366341(0x24c))](_0x2af958,_0x24dcc1);_0x77929b['push'](_0x2ad13f);}}}else{const _0xf75e1a=new _0x124214[(_0x366341(0x24c))](_0x5dd77b,_0x3388d5);_0x48f66f[_0x366341(0x239)](_0xf75e1a);}}const _0x588913=_0x2af958['getMemory']();_0x588913[_0x366341(0x239)](..._0x77929b);for(const _0x367f62 of _0x171226){if(_0x34de3c[_0x366341(0x1e3)](_0x34de3c['pFirR'],_0x34de3c[_0x366341(0x209)])){if(_0x367f62[_0x366341(0x1f5)]==='ai'){const _0x2aef72=_0x367f62[_0x366341(0x1fd)][_0x34de3c[_0x366341(0x1ec)]];if(_0x2aef72){if(_0x366341(0x237)===_0x34de3c[_0x366341(0x21b)])return _0x588913[_0x366341(0x239)](_0x367f62),_0x367f62[_0x366341(0x2b9)];else _0x399310=_0x207b2b[_0x366341(0x2b0)](_0x38a95e);}}}else return!![];}for(const _0x3cf867 of _0x171226){if(_0x34de3c[_0x366341(0x223)](_0x34de3c[_0x366341(0x287)],_0x34de3c['ZcDud'])){if(_0x34de3c[_0x366341(0x256)](_0x3cf867['type'],_0x34de3c['HYAmU'])){if(_0x34de3c[_0x366341(0x258)]('nbfry',_0x34de3c[_0x366341(0x240)]))_0x7cbd45['saveState']({'_prompt':_0x4cd769['prompt']});else return await LlmRunner[_0x366341(0x230)](_0x39cd60,_0x3cf867,_0x17d652);}}else{if(_0x180c1b['ToolUtil']['hasNoTool'](_0x2bf9ce)){if(!_0x12012e?.['content']||_0xbf44b0[_0x366341(0x2b9)][0x0]&&_0x34de3c[_0x366341(0x29d)](_0x29f401[_0x366341(0x2b9)][0x0][_0x34de3c[_0x366341(0x206)]],''))return!![];}return![];}}return await LlmRunner[_0x366341(0x230)](_0x39cd60,null,_0x17d652);}static async[a9_0x4f30f1(0x29b)](_0x45b9e0,_0x14ea34,_0x3d21ae){const _0x3d3859=a9_0x4f30f1,_0x32499a={'jFDDW':function(_0x9bae28,_0x260acb){return _0x9bae28===_0x260acb;},'LgwXD':_0x3d3859(0x1f5),'YHQxF':_0x3d3859(0x23a),'DYOeI':_0x3d3859(0x22c),'dPWeS':'string','NZnnT':_0x3d3859(0x2b4),'Bziuv':function(_0x40920f,_0x5d3266){return _0x40920f in _0x5d3266;},'QEuDU':_0x3d3859(0x241),'TzFBn':_0x3d3859(0x231),'mWoqP':_0x3d3859(0x201),'pGanz':function(_0xaf48c5,_0xf7ce5c){return _0xaf48c5!==_0xf7ce5c;},'mVraZ':_0x3d3859(0x267),'HiIJU':'tool','LNiqc':_0x3d3859(0x23c),'dqzjE':_0x3d3859(0x261),'oeisi':_0x3d3859(0x288)},_0x22c008=new Array();for(const _0xf1ad83 of _0x3d21ae){let _0x1283df;if(typeof _0x45b9e0[_0xf1ad83[_0x3d3859(0x28f)]]===_0x3d3859(0x2b4)){const _0x5535ba=await _0x45b9e0[_0xf1ad83[_0x3d3859(0x28f)]](_0xf1ad83);if(_0x32499a['jFDDW'](typeof _0x5535ba,_0x32499a['dPWeS']))await _0x14ea34[_0x3d3859(0x264)](_0x5535ba),_0x22c008[_0x3d3859(0x239)](new message_util_2[(_0x3d3859(0x24c))](_0x45b9e0,_0xf1ad83));else{if(typeof _0x5535ba===_0x32499a[_0x3d3859(0x207)])await _0x14ea34['activate'](_0x5535ba),_0x22c008[_0x3d3859(0x239)](new message_util_2[(_0x3d3859(0x24c))](_0x45b9e0,_0xf1ad83));else{if(_0x5535ba&&_0x32499a[_0x3d3859(0x245)](_0x32499a[_0x3d3859(0x255)],_0x5535ba)){let _0xeff112;if(typeof _0x5535ba[_0x3d3859(0x241)]==='string')_0x3d3859(0x2af)!==_0x32499a[_0x3d3859(0x297)]?_0xeff112=await _0x14ea34[_0x3d3859(0x264)](_0x5535ba['step']):_0x3f18a0&&_0x32499a['jFDDW'](_0x1b032c[_0x32499a['LgwXD']],_0x32499a[_0x3d3859(0x27b)])&&(_0x4436fb=_0x43ae42[_0x32499a[_0x3d3859(0x27b)]]);else{if(_0x32499a['mWoqP']!==_0x32499a[_0x3d3859(0x1fc)]){const _0xdc56cf=_0x4dce70?function(){if(_0x52af){const _0x316c66=_0x34bed6['apply'](_0x18a149,arguments);return _0x3956c5=null,_0x316c66;}}:function(){};return _0x4aab18=![],_0xdc56cf;}else _0xeff112=await _0x14ea34[_0x3d3859(0x243)](_0x5535ba['step']);}_0x5535ba[_0x3d3859(0x203)]&&_0xeff112[_0x3d3859(0x23e)]({'_prompt':_0x5535ba[_0x3d3859(0x203)]}),_0x5535ba[_0x3d3859(0x277)]&&(_0x32499a[_0x3d3859(0x24b)](_0x32499a[_0x3d3859(0x1f0)],_0x32499a[_0x3d3859(0x1f0)])?_0x276f23[_0x3d3859(0x239)](_0x197acc[_0x3d3859(0x23c)]):_0xeff112['saveState'](_0x5535ba[_0x3d3859(0x277)])),_0x5535ba[_0x3d3859(0x26a)]&&(_0xeff112[_0x3d3859(0x26a)]=_0x5535ba[_0x3d3859(0x26a)]),_0x5535ba[_0x32499a['HiIJU']]?_0x1283df=new message_util_1['ToolMessageInfo'](_0xeff112,_0xf1ad83,_0x5535ba[_0x3d3859(0x28b)]):_0x1283df=new message_util_2[(_0x3d3859(0x24c))](_0x45b9e0,_0xf1ad83),_0x22c008[_0x3d3859(0x239)](_0x1283df),_0x5535ba[_0x3d3859(0x23c)]&&_0x22c008[_0x3d3859(0x239)](_0x5535ba[_0x32499a['LNiqc']]);}}}}else _0x45b9e0[_0x3d3859(0x1f1)](_0xf1ad83[_0x3d3859(0x28f)])?(new session_logger_1['SessionLogger'](_0x14ea34[_0x3d3859(0x273)]())['warn']('missing\x20tool\x20handler:\x20'+_0xf1ad83[_0x3d3859(0x28f)]),_0x1283df=new message_util_2[(_0x3d3859(0x24c))](_0x45b9e0,_0xf1ad83)):_0x32499a[_0x3d3859(0x2ad)](_0x32499a[_0x3d3859(0x291)],_0x32499a['oeisi'])?_0x223a92=_0x2abf57[_0x3d3859(0x22b)][_0x32499a[_0x3d3859(0x26b)]]:(new session_logger_1[(_0x3d3859(0x23b))](_0x14ea34['getSessionDoc']())['warn'](_0x3d3859(0x282)+_0xf1ad83[_0x3d3859(0x28f)]),_0x1283df=new message_util_1[(_0x3d3859(0x2a5))](_0x45b9e0,_0xf1ad83,_0x3d3859(0x244)+_0xf1ad83[_0x3d3859(0x28f)])),_0x22c008[_0x3d3859(0x239)](_0x1283df);}return _0x22c008;}static[a9_0x4f30f1(0x25a)](_0x67099e){const _0x36b16e=a9_0x4f30f1,_0x20c072={'hLOmX':_0x36b16e(0x24f),'uEoQq':_0x36b16e(0x1ed),'ddrGl':_0x36b16e(0x22c),'CEHPM':function(_0x37f6b8,_0x383af7){return _0x37f6b8!==_0x383af7;},'fVPzu':_0x36b16e(0x248),'vyPuH':_0x36b16e(0x20e)};if(tool_util_1[_0x36b16e(0x20a)][_0x36b16e(0x28a)](_0x67099e)){if(_0x20c072[_0x36b16e(0x233)](_0x20c072[_0x36b16e(0x270)],_0x20c072[_0x36b16e(0x272)])){if(!_0x67099e?.[_0x36b16e(0x2b9)]||_0x67099e['content'][0x0]&&_0x67099e[_0x36b16e(0x2b9)][0x0][_0x36b16e(0x23a)]==='')return!![];}else{let _0x11730f=_0x17f3d1[_0x36b16e(0x22b)][_0x20c072['hLOmX']];if(!_0x11730f)_0x11730f=_0x5cca15['response_metadata'][_0x20c072[_0x36b16e(0x250)]];else!_0x11730f&&(_0x11730f=_0x2cab8b[_0x36b16e(0x22b)][_0x20c072[_0x36b16e(0x1f3)]]);return _0x11730f;}}return![];}static[a9_0x4f30f1(0x26f)](_0x53491b){const _0x2922c6=a9_0x4f30f1,_0x50c48d={'mcdod':_0x2922c6(0x24f),'nglEg':_0x2922c6(0x1ed),'ecLlW':_0x2922c6(0x22c),'CdSdF':_0x2922c6(0x213)};if(_0x53491b?.[_0x2922c6(0x22b)]){let _0x2d0328=_0x53491b[_0x2922c6(0x22b)][_0x50c48d[_0x2922c6(0x2b6)]];if(!_0x2d0328)_0x2d0328=_0x53491b[_0x2922c6(0x22b)][_0x50c48d[_0x2922c6(0x27a)]];else!_0x2d0328&&(_0x2d0328=_0x53491b['response_metadata'][_0x50c48d[_0x2922c6(0x1e5)]]);return _0x2d0328;}else return _0x50c48d[_0x2922c6(0x259)];}}exports['LlmRunner']=LlmRunner;
@@ -1 +1 @@
1
- const a10_0x3410a5=a10_0x2208;(function(_0x11c399,_0x18bf77){const _0x55b8ed=a10_0x2208,_0x34936c=_0x11c399();while(!![]){try{const _0x57cc91=parseInt(_0x55b8ed(0x108))/0x1*(-parseInt(_0x55b8ed(0xd9))/0x2)+-parseInt(_0x55b8ed(0xc7))/0x3+parseInt(_0x55b8ed(0x104))/0x4+-parseInt(_0x55b8ed(0xe8))/0x5+parseInt(_0x55b8ed(0xda))/0x6+-parseInt(_0x55b8ed(0xb7))/0x7+-parseInt(_0x55b8ed(0xe7))/0x8*(-parseInt(_0x55b8ed(0xc5))/0x9);if(_0x57cc91===_0x18bf77)break;else _0x34936c['push'](_0x34936c['shift']());}catch(_0x1ca834){_0x34936c['push'](_0x34936c['shift']());}}}(a10_0x2674,0xbf207));const a10_0x28ecda=(function(){const _0x477552=a10_0x2208,_0x783752={'Ijsxq':function(_0x4cbc2d,_0x1e6328){return _0x4cbc2d!==_0x1e6328;},'aIOQF':_0x477552(0x102),'oIfYg':_0x477552(0xc4)};let _0x427594=!![];return function(_0x552d23,_0x115f6f){const _0x87e1b9=_0x477552,_0x36edad={'HTwSh':_0x87e1b9(0xea),'hnPsu':function(_0x15a771,_0x19a0e4){const _0x5b6126=_0x87e1b9;return _0x783752[_0x5b6126(0x100)](_0x15a771,_0x19a0e4);},'nGGBk':_0x87e1b9(0xcc),'ThKTN':_0x783752[_0x87e1b9(0xef)]};if(_0x783752['Ijsxq'](_0x87e1b9(0x105),_0x783752[_0x87e1b9(0xe1)])){const _0x31a38f=_0x427594?function(){const _0x1bb6e4=_0x87e1b9,_0x2107d8={'GbyMo':_0x36edad[_0x1bb6e4(0xf4)]};if(_0x36edad[_0x1bb6e4(0xd2)](_0x36edad[_0x1bb6e4(0xd6)],_0x36edad[_0x1bb6e4(0xbf)])){if(_0x115f6f){const _0x438551=_0x115f6f[_0x1bb6e4(0xd4)](_0x552d23,arguments);return _0x115f6f=null,_0x438551;}}else return _0x466a2a[_0x1bb6e4(0xfd)]()[_0x1bb6e4(0xf7)](_0x2107d8['GbyMo'])[_0x1bb6e4(0xfd)]()['constructor'](_0x587da9)[_0x1bb6e4(0xf7)](_0x2107d8[_0x1bb6e4(0xe9)]);}:function(){};return _0x427594=![],_0x31a38f;}else _0x5bba0f[_0x87e1b9(0xe0)]({'_prompt':_0x3e5dc2[_0x87e1b9(0xb9)]});};}()),a10_0x34bac8=a10_0x28ecda(this,function(){const _0x1dd387=a10_0x2208,_0xff274d={'TVUZB':_0x1dd387(0xea)};return a10_0x34bac8[_0x1dd387(0xfd)]()[_0x1dd387(0xf7)]('(((.+)+)+)+$')[_0x1dd387(0xfd)]()[_0x1dd387(0xde)](a10_0x34bac8)[_0x1dd387(0xf7)](_0xff274d[_0x1dd387(0xcb)]);});function a10_0x2208(_0x327f3a,_0x4e4f3b){const _0x2e547e=a10_0x2674();return a10_0x2208=function(_0x34bac8,_0x28ecda){_0x34bac8=_0x34bac8-0xb6;let _0x2674bc=_0x2e547e[_0x34bac8];return _0x2674bc;},a10_0x2208(_0x327f3a,_0x4e4f3b);}a10_0x34bac8();'use strict';function a10_0x2674(){const _0x1cb30d=['QZjkx','BJgOL','PfCsY','462348cRYVdL','KTQQM','send','kTxwf','35AioDET','state','1983093vtbXwu','eWeHW','prompt','LogicRunner','runLogic','string','../utils/message-util','defineProperty','ThKTN','peek','ywAdL','YVHHh','__esModule','nqfTh','168039KFnxzU','YDhUL','3020670pbQixL','activateByName','activate','tVqYh','TVUZB','VOeEo','khrpO','xGRam','onCrossing','JvvcZ','@langchain/core/messages','hnPsu','getName','apply','AiMessageEx','nGGBk','ZQfSa','isLogic','51838zIVtyS','3372408gvxxFe','contentType','HTsKa','pXAiQ','constructor','rSRya','saveState','oIfYg','TVeNL','Yvwds','xQrGu','YcLpr','getActiveStep','1048henmyZ','716735IBkjGF','GbyMo','(((.+)+)+)+$','LlmRunner','UsMJq','getMemory','SeYdl','aIOQF','message','rzrbc','IdYQu','saveSession','HTwSh','length','HhEtg','search','RKegI','QyEYX','cBweP','step','SystemMessage','toString','Transition\x20to\x20step:','push','Ijsxq'];a10_0x2674=function(){return _0x1cb30d;};return a10_0x2674();}Object[a10_0x3410a5(0xbe)](exports,a10_0x3410a5(0xc3),{'value':!![]}),exports[a10_0x3410a5(0xba)]=void 0x0;const messages_1=require(a10_0x3410a5(0xd1)),message_util_1=require(a10_0x3410a5(0xbd)),llm_runner_1=require('./llm-runner');class LogicRunner{static async[a10_0x3410a5(0x106)](_0x26e00d,_0x4370f9){const _0x32972e=a10_0x3410a5,_0x4ab308={'RKegI':_0x32972e(0xf0),'YcLpr':function(_0x45d4d2,_0x1c98f7){return _0x45d4d2===_0x1c98f7;},'ywAdL':_0x32972e(0xe4),'SeYdl':function(_0x30d3d3,_0x3f893c){return _0x30d3d3!=_0x3f893c;},'PfCsY':_0x32972e(0xf1),'HhEtg':function(_0x50e306,_0x3aabc7){return _0x50e306!==_0x3aabc7;},'EnbqU':_0x32972e(0xdf),'QZjkx':_0x32972e(0xce),'cBweP':_0x32972e(0xf2),'khrpO':_0x32972e(0xd0),'saFhw':'aLtFJ','Yvwds':'Jgocm','HTsKa':function(_0x4465ce,_0x5e1712){return _0x4465ce===_0x5e1712;},'ZQfSa':function(_0x4b2a01,_0x4db6ef){return _0x4b2a01===_0x4db6ef;},'nmXik':'UsMJq','TVeNL':'function','tVqYh':_0x32972e(0xdd),'YDhUL':_0x32972e(0x107),'QyEYX':function(_0x341968,_0x4bccd2){return _0x341968 in _0x4bccd2;},'GbCSN':function(_0x2865ef,_0x4e1638){return _0x2865ef===_0x4e1638;},'aspoH':_0x32972e(0xc2),'eWeHW':function(_0x3b00f2,_0x20d580){return _0x3b00f2>_0x20d580;}},_0x2a9c98=_0x26e00d[_0x32972e(0xe6)]();let _0x61d474=_0x2a9c98[_0x32972e(0xed)]();if(_0x4370f9){if(_0x4ab308[_0x32972e(0xe5)](_0x4ab308['ywAdL'],_0x4ab308[_0x32972e(0xc1)])){const _0x30c383=message_util_1['MessageUtil']['messageStep'](_0x4370f9['id']);if(_0x4ab308[_0x32972e(0xee)](_0x30c383,_0x2a9c98[_0x32972e(0xd3)]())){if(_0x4ab308[_0x32972e(0xe5)]('rzrbc',_0x4ab308[_0x32972e(0x103)]))await _0x26e00d[_0x32972e(0xf3)](),_0x4370f9=_0x2a9c98['onCrossing'](_0x4370f9,_0x30c383);else{const _0x4a2c98=_0x208a49['apply'](_0xc6720e,arguments);return _0x1483da=null,_0x4a2c98;}}}else _0x428a93['contentType']=_0x31853b['contentType'];}else{if(_0x4ab308[_0x32972e(0xf6)](_0x4ab308['EnbqU'],_0x4ab308[_0x32972e(0x101)])){const _0x3d5035=message_util_1['MessageUtil'][_0x32972e(0xc0)](_0x61d474);if(_0x3d5035){const _0x313540=message_util_1['MessageUtil']['messageStep'](_0x3d5035['id']);_0x313540!=_0x2a9c98['getName']()&&(_0x4ab308[_0x32972e(0xf6)](_0x4ab308['cBweP'],_0x4ab308[_0x32972e(0xfa)])?_0x200563[_0x32972e(0xff)](..._0x53b38e):(await _0x26e00d[_0x32972e(0xf3)](),_0x4370f9=_0x2a9c98['onCrossing'](_0x4370f9,_0x313540)));}else _0x4ab308[_0x32972e(0xcd)]!==_0x4ab308['saFhw']?(await _0x26e00d['saveSession'](),_0x4370f9=_0x2a9c98[_0x32972e(0xcf)](_0x4370f9)):_0x4d24a0[_0x32972e(0xff)](new _0xb5196[(_0x32972e(0xfc))]({'content':''}));}else _0x46b5f3[_0x32972e(0xe0)](_0x1170f0[_0x32972e(0xb6)]);}if(_0x4ab308[_0x32972e(0xe5)](_0x61d474[_0x32972e(0xf5)],0x0)){if(_0x4ab308[_0x32972e(0xe3)]!==_0x4ab308['Yvwds']){if(_0x147741){const _0x2139d0=_0xe7473a[_0x32972e(0xd4)](_0x182fed,arguments);return _0x3c43f8=null,_0x2139d0;}}else _0x61d474['push'](new messages_1[(_0x32972e(0xfc))]({'content':''}));}const _0xc942ee=_0x4370f9??new message_util_1[(_0x32972e(0xd5))](_0x2a9c98,_0x32972e(0xfe)+_0x2a9c98['getName']());_0x61d474[_0x32972e(0xff)](_0xc942ee);const _0x2d7093=await _0x2a9c98[_0x32972e(0xbb)](),_0x37ec4e=new Array();if(_0x4ab308[_0x32972e(0xdc)](typeof _0x2d7093,_0x32972e(0xbc))){if(_0x4ab308[_0x32972e(0xd7)](_0x4ab308['nmXik'],_0x32972e(0xec)))await _0x26e00d[_0x32972e(0xc8)](_0x2d7093);else return _0x5909f5['send'](_0x4506ea);}else{if(_0x4ab308[_0x32972e(0xe5)](typeof _0x2d7093,_0x4ab308[_0x32972e(0xe2)])){if(_0x4ab308[_0x32972e(0xca)]===_0x4ab308[_0x32972e(0xc6)]){const _0x508e89=_0x4875cc?function(){const _0x2a358b=_0x32972e;if(_0x599fda){const _0xa5361c=_0x80e43e[_0x2a358b(0xd4)](_0xf07d7a,arguments);return _0x1b00ae=null,_0xa5361c;}}:function(){};return _0x351368=![],_0x508e89;}else await _0x26e00d['activate'](_0x2d7093);}else{if(_0x4ab308[_0x32972e(0xf9)]('step',_0x2d7093)){let _0x19a058;_0x4ab308['GbCSN'](typeof _0x2d7093[_0x32972e(0xfb)],'string')?_0x19a058=await _0x26e00d[_0x32972e(0xc8)](_0x2d7093[_0x32972e(0xfb)]):_0x4ab308[_0x32972e(0xd7)](_0x4ab308['aspoH'],'uKTgr')?_0x55e985[_0x32972e(0xff)](_0x456500[_0x4ab308[_0x32972e(0xf8)]]):_0x19a058=await _0x26e00d[_0x32972e(0xc9)](_0x2d7093[_0x32972e(0xfb)]),_0x2d7093[_0x32972e(0xb9)]&&_0x19a058[_0x32972e(0xe0)]({'_prompt':_0x2d7093[_0x32972e(0xb9)]}),_0x2d7093['state']&&_0x19a058[_0x32972e(0xe0)](_0x2d7093[_0x32972e(0xb6)]),_0x2d7093[_0x32972e(0xdb)]&&(_0x19a058[_0x32972e(0xdb)]=_0x2d7093[_0x32972e(0xdb)]),_0x2d7093[_0x32972e(0xf0)]&&_0x37ec4e[_0x32972e(0xff)](_0x2d7093[_0x4ab308[_0x32972e(0xf8)]]);}}}const _0x53065a=_0x26e00d[_0x32972e(0xe6)]();return _0x61d474=_0x53065a[_0x32972e(0xed)](),_0x4ab308[_0x32972e(0xb8)](_0x37ec4e['length'],0x0)&&_0x61d474['push'](..._0x37ec4e),_0x53065a[_0x32972e(0xd8)]()?LogicRunner['send'](_0x26e00d):await llm_runner_1[_0x32972e(0xeb)][_0x32972e(0x106)](_0x26e00d);}}exports[a10_0x3410a5(0xba)]=LogicRunner;
1
+ const a10_0x5401ed=a10_0x41d7;(function(_0x4b4599,_0x189070){const _0xb7315a=a10_0x41d7,_0x53e365=_0x4b4599();while(!![]){try{const _0x5c7e87=parseInt(_0xb7315a(0x187))/0x1+-parseInt(_0xb7315a(0x173))/0x2+-parseInt(_0xb7315a(0x190))/0x3+parseInt(_0xb7315a(0x1ae))/0x4*(-parseInt(_0xb7315a(0x198))/0x5)+-parseInt(_0xb7315a(0x19f))/0x6*(-parseInt(_0xb7315a(0x1ab))/0x7)+parseInt(_0xb7315a(0x16f))/0x8*(-parseInt(_0xb7315a(0x1a4))/0x9)+parseInt(_0xb7315a(0x1a6))/0xa*(parseInt(_0xb7315a(0x197))/0xb);if(_0x5c7e87===_0x189070)break;else _0x53e365['push'](_0x53e365['shift']());}catch(_0x806f54){_0x53e365['push'](_0x53e365['shift']());}}}(a10_0x4760,0xda366));const a10_0x4e9ab7=(function(){const _0x30bf8e=a10_0x41d7,_0x3766a5={'vxrdF':_0x30bf8e(0x18c),'eFiBP':'ArkAk'};let _0x17a6f3=!![];return function(_0x3f7f11,_0x76327){const _0x47bc5f=_0x17a6f3?function(){const _0x3a158f=a10_0x41d7;if(_0x3766a5[_0x3a158f(0x194)]===_0x3766a5[_0x3a158f(0x183)]){const _0x51edb9=_0x3e25e5?function(){if(_0x4c2a9c){const _0x20a115=_0x43f5cd['apply'](_0x5bf89a,arguments);return _0x5df506=null,_0x20a115;}}:function(){};return _0xea2ef3=![],_0x51edb9;}else{if(_0x76327){const _0xdad2d2=_0x76327['apply'](_0x3f7f11,arguments);return _0x76327=null,_0xdad2d2;}}}:function(){};return _0x17a6f3=![],_0x47bc5f;};}()),a10_0x59038b=a10_0x4e9ab7(this,function(){const _0x3a26a5=a10_0x41d7,_0x3545cc={'lXOjs':'(((.+)+)+)+$'};return a10_0x59038b[_0x3a26a5(0x1af)]()['search'](_0x3545cc[_0x3a26a5(0x1b0)])['toString']()[_0x3a26a5(0x170)](a10_0x59038b)[_0x3a26a5(0x175)](_0x3545cc[_0x3a26a5(0x1b0)]);});function a10_0x41d7(_0x2fbfb2,_0xed5125){const _0x4563bb=a10_0x4760();return a10_0x41d7=function(_0x59038b,_0x4e9ab7){_0x59038b=_0x59038b-0x16a;let _0x476037=_0x4563bb[_0x59038b];return _0x476037;},a10_0x41d7(_0x2fbfb2,_0xed5125);}a10_0x59038b();'use strict';Object[a10_0x5401ed(0x19b)](exports,a10_0x5401ed(0x1a8),{'value':!![]}),exports[a10_0x5401ed(0x18f)]=void 0x0;const messages_1=require(a10_0x5401ed(0x181)),message_util_1=require(a10_0x5401ed(0x174)),llm_runner_1=require(a10_0x5401ed(0x184));class LogicRunner{static async[a10_0x5401ed(0x171)](_0x2d20f3,_0x156b34){const _0x4abafa=a10_0x5401ed,_0x4ff737={'xyLsz':_0x4abafa(0x1ac),'Qmdsi':function(_0x4fac56,_0x405d57){return _0x4fac56!=_0x405d57;},'hPslH':_0x4abafa(0x1a0),'hyWQo':_0x4abafa(0x1b1),'IsJRZ':function(_0x568842,_0x5594c7){return _0x568842===_0x5594c7;},'EaVGj':_0x4abafa(0x178),'TdBHF':function(_0x42717d,_0x416be3){return _0x42717d!=_0x416be3;},'BWdFx':'string','NdZuw':_0x4abafa(0x172),'NBKsH':_0x4abafa(0x16c),'IiNdg':_0x4abafa(0x195),'LoXnZ':_0x4abafa(0x1a7),'Yqvym':_0x4abafa(0x19e),'OrDqe':function(_0x2d3c2a,_0x3989e9){return _0x2d3c2a in _0x3989e9;},'tGFVj':'step','arsIX':function(_0x5d4c8a,_0xe20f5f){return _0x5d4c8a!==_0xe20f5f;},'ZyWbn':'xjyeh','PbgFd':'PoHDw','QqNsI':_0x4abafa(0x19d),'uaFhf':_0x4abafa(0x17d),'mlFpn':'tiQDx'},_0xff67db=_0x2d20f3[_0x4abafa(0x1b2)]();let _0x276479=_0xff67db[_0x4abafa(0x182)]();if(_0x156b34){const _0x40a031=message_util_1[_0x4abafa(0x16a)]['messageStep'](_0x156b34['id']);_0x4ff737['Qmdsi'](_0x40a031,_0xff67db[_0x4abafa(0x1a9)]())&&(_0x4ff737['hPslH']===_0x4ff737[_0x4abafa(0x17a)]?_0x15efb9[_0x4abafa(0x16d)](new _0x110216[(_0x4abafa(0x1b3))]({'content':''})):(await _0x2d20f3['saveSession'](),_0x156b34=_0xff67db['onCrossing'](_0x156b34,_0x40a031)));}else{if(_0x4ff737[_0x4abafa(0x188)](_0x4ff737[_0x4abafa(0x18d)],_0x4ff737['EaVGj'])){const _0x2730cf=message_util_1[_0x4abafa(0x16a)][_0x4abafa(0x176)](_0x276479);if(_0x2730cf){const _0x4f7548=message_util_1[_0x4abafa(0x16a)][_0x4abafa(0x1ad)](_0x2730cf['id']);_0x4ff737[_0x4abafa(0x196)](_0x4f7548,_0xff67db[_0x4abafa(0x1a9)]())&&(await _0x2d20f3[_0x4abafa(0x17f)](),_0x156b34=_0xff67db[_0x4abafa(0x192)](_0x156b34,_0x4f7548));}else await _0x2d20f3[_0x4abafa(0x17f)](),_0x156b34=_0xff67db['onCrossing'](_0x156b34);}else return _0x1935b6[_0x4abafa(0x171)](_0x205e75);}_0x4ff737[_0x4abafa(0x188)](_0x276479['length'],0x0)&&_0x276479[_0x4abafa(0x16d)](new messages_1[(_0x4abafa(0x1b3))]({'content':''}));const _0x2b1d18=_0x156b34??new message_util_1[(_0x4abafa(0x180))](_0xff67db,_0x4abafa(0x1a5)+_0xff67db[_0x4abafa(0x1a9)]());_0x276479[_0x4abafa(0x16d)](_0x2b1d18);const _0x5b8805=await _0xff67db[_0x4abafa(0x177)](),_0x2b7c64=new Array();if(typeof _0x5b8805===_0x4ff737[_0x4abafa(0x199)])_0x4ff737[_0x4abafa(0x16e)]===_0x4ff737['NBKsH']?_0x24730f[_0x4abafa(0x185)](_0x4b12a8['state']):await _0x2d20f3[_0x4abafa(0x1aa)](_0x5b8805);else{if(typeof _0x5b8805===_0x4ff737['IiNdg'])_0x4ff737[_0x4abafa(0x188)](_0x4ff737['LoXnZ'],_0x4ff737[_0x4abafa(0x19c)])?_0x38d7e8['contentType']=_0x1c2ba5[_0x4abafa(0x18b)]:await _0x2d20f3[_0x4abafa(0x1a1)](_0x5b8805);else{if(_0x4ff737['OrDqe'](_0x4ff737['tGFVj'],_0x5b8805)){if(_0x4ff737[_0x4abafa(0x17c)](_0x4ff737['ZyWbn'],_0x4ff737[_0x4abafa(0x193)])){if(_0x684cda){const _0x129473=_0x57aea2[_0x4abafa(0x17e)](_0x33cd23,arguments);return _0x15068a=null,_0x129473;}}else{let _0x9484a3;if(_0x4ff737[_0x4abafa(0x188)](typeof _0x5b8805[_0x4abafa(0x18e)],_0x4ff737[_0x4abafa(0x199)])){if(_0x4ff737[_0x4abafa(0x188)](_0x4ff737[_0x4abafa(0x186)],_0x4ff737[_0x4abafa(0x186)]))_0x9484a3=await _0x2d20f3[_0x4abafa(0x1aa)](_0x5b8805[_0x4abafa(0x18e)]);else{const _0x567fe7=_0x12249e[_0x4abafa(0x17e)](_0x428a60,arguments);return _0x4b70f9=null,_0x567fe7;}}else'ykyHp'!==_0x4abafa(0x16b)?_0x2f00cd['push'](_0x5ace04[_0x4ff737['xyLsz']]):_0x9484a3=await _0x2d20f3[_0x4abafa(0x1a1)](_0x5b8805[_0x4abafa(0x18e)]);_0x5b8805[_0x4abafa(0x1a3)]&&_0x9484a3[_0x4abafa(0x185)]({'_prompt':_0x5b8805[_0x4abafa(0x1a3)]}),_0x5b8805[_0x4abafa(0x17b)]&&(_0x4ff737[_0x4abafa(0x188)](_0x4ff737[_0x4abafa(0x18a)],'hHpCB')?_0x4621f3[_0x4abafa(0x16d)](..._0x42bb9b):_0x9484a3['saveState'](_0x5b8805[_0x4abafa(0x17b)])),_0x5b8805[_0x4abafa(0x18b)]&&(_0x9484a3[_0x4abafa(0x18b)]=_0x5b8805['contentType']),_0x5b8805[_0x4ff737[_0x4abafa(0x191)]]&&_0x2b7c64[_0x4abafa(0x16d)](_0x5b8805[_0x4ff737[_0x4abafa(0x191)]]);}}}}const _0x2dc18b=_0x2d20f3[_0x4abafa(0x1b2)]();return _0x276479=_0x2dc18b[_0x4abafa(0x182)](),_0x2b7c64[_0x4abafa(0x179)]>0x0&&(_0x4ff737['arsIX'](_0x4ff737[_0x4abafa(0x189)],_0x4ff737['mlFpn'])?_0x276479['push'](..._0x2b7c64):_0x7504d4[_0x4abafa(0x185)]({'_prompt':_0x3cde33[_0x4abafa(0x1a3)]})),_0x2dc18b[_0x4abafa(0x1a2)]()?LogicRunner['send'](_0x2d20f3):await llm_runner_1[_0x4abafa(0x19a)][_0x4abafa(0x171)](_0x2d20f3);}}exports[a10_0x5401ed(0x18f)]=LogicRunner;function a10_0x4760(){const _0x21229d=['LlmRunner','defineProperty','Yqvym','nOGTg','TbkBo','18390IBWCve','jLiOm','activate','isLogic','prompt','450qRIXZz','Transition\x20to\x20step:','43295850eRExxE','OlaJj','__esModule','getName','activateByName','1645LQtOQd','message','messageStep','40GLXbwT','toString','lXOjs','OYlCE','getActiveStep','SystemMessage','MessageUtil','ykyHp','KsVIC','push','NdZuw','163368jlRQZD','constructor','send','RUcOi','3368338fumIPB','../utils/message-util','search','peek','runLogic','ksMmm','length','hyWQo','state','arsIX','aznbC','apply','saveSession','AiMessageEx','@langchain/core/messages','getMemory','eFiBP','./llm-runner','saveState','PbgFd','416730wQvtnj','IsJRZ','uaFhf','QqNsI','contentType','SsvRG','EaVGj','step','LogicRunner','4207419HolTJF','xyLsz','onCrossing','ZyWbn','vxrdF','function','TdBHF','11EIbMQg','232550gnddlk','BWdFx'];a10_0x4760=function(){return _0x21229d;};return a10_0x4760();}
@@ -1 +1 @@
1
- const a11_0x199ef5=a11_0x4900;function a11_0x4900(_0x30430c,_0x383061){const _0x4e9836=a11_0x3a16();return a11_0x4900=function(_0x5c1ca3,_0x1b5607){_0x5c1ca3=_0x5c1ca3-0xa5;let _0x3a16d0=_0x4e9836[_0x5c1ca3];return _0x3a16d0;},a11_0x4900(_0x30430c,_0x383061);}(function(_0x207736,_0x3ca561){const _0x24f63f=a11_0x4900,_0x4a1c94=_0x207736();while(!![]){try{const _0x27926a=parseInt(_0x24f63f(0xb0))/0x1+parseInt(_0x24f63f(0xa9))/0x2*(parseInt(_0x24f63f(0xb4))/0x3)+parseInt(_0x24f63f(0xaf))/0x4+parseInt(_0x24f63f(0xa8))/0x5*(parseInt(_0x24f63f(0xb1))/0x6)+parseInt(_0x24f63f(0xab))/0x7*(parseInt(_0x24f63f(0xae))/0x8)+parseInt(_0x24f63f(0xb3))/0x9*(-parseInt(_0x24f63f(0xb5))/0xa)+parseInt(_0x24f63f(0xad))/0xb*(-parseInt(_0x24f63f(0xb7))/0xc);if(_0x27926a===_0x3ca561)break;else _0x4a1c94['push'](_0x4a1c94['shift']());}catch(_0x1cf11a){_0x4a1c94['push'](_0x4a1c94['shift']());}}}(a11_0x3a16,0xd4aad));const a11_0x1b5607=(function(){let _0x5cf9aa=!![];return function(_0x6fab85,_0x320024){const _0x399fdd=_0x5cf9aa?function(){const _0x17a0f4=a11_0x4900;if(_0x320024){const _0x42d603=_0x320024[_0x17a0f4(0xb9)](_0x6fab85,arguments);return _0x320024=null,_0x42d603;}}:function(){};return _0x5cf9aa=![],_0x399fdd;};}()),a11_0x5c1ca3=a11_0x1b5607(this,function(){const _0x57f684=a11_0x4900,_0x472eee={'NSXoX':'(((.+)+)+)+$'};return a11_0x5c1ca3[_0x57f684(0xac)]()['search'](_0x472eee[_0x57f684(0xb2)])['toString']()[_0x57f684(0xb8)](a11_0x5c1ca3)[_0x57f684(0xb6)](_0x472eee['NSXoX']);});a11_0x5c1ca3();'use strict';Object['defineProperty'](exports,a11_0x199ef5(0xa6),{'value':!![]}),exports[a11_0x199ef5(0xaa)]=void 0x0;const step_1=require(a11_0x199ef5(0xa7));class LogicStep extends step_1[a11_0x199ef5(0xa5)]{constructor(_0x246b4d,_0x33b4ce,_0x5baf14=![]){super(_0x246b4d,_0x33b4ce,_0x5baf14);}['isLogic'](){return!![];}}function a11_0x3a16(){const _0x8c2960=['9yojzjv','2881254uoxWrQ','4921330rbyqrc','search','516rtrAwp','constructor','apply','Step','__esModule','./step','235VYHbxd','2eZkvmm','LogicStep','707mkmVfM','toString','821546bDHyXL','3992pzvKth','5618988VlrBPq','1166982wRzqSg','126660bRHwot','NSXoX'];a11_0x3a16=function(){return _0x8c2960;};return a11_0x3a16();}exports[a11_0x199ef5(0xaa)]=LogicStep;
1
+ const a11_0x3323d9=a11_0x2627;function a11_0x2872(){const _0x57bde4=['1115ZBorxB','__esModule','XBFSC','660624fLPEJf','123382pNFCkf','constructor','585267ZXsaft','693106JEpWeX','search','apply','NlnUl','eUZOn','toString','isLogic','250131koyRXJ','LogicStep','942cowzSU','(((.+)+)+)+$','1743867lsOJWE','112gXDoij','Step','defineProperty'];a11_0x2872=function(){return _0x57bde4;};return a11_0x2872();}(function(_0x50500d,_0x28cbda){const _0xba5ab4=a11_0x2627,_0x2944c1=_0x50500d();while(!![]){try{const _0x3124d9=parseInt(_0xba5ab4(0x143))/0x1+parseInt(_0xba5ab4(0x13c))/0x2+-parseInt(_0xba5ab4(0x13b))/0x3+-parseInt(_0xba5ab4(0x14e))/0x4+-parseInt(_0xba5ab4(0x14b))/0x5*(-parseInt(_0xba5ab4(0x145))/0x6)+-parseInt(_0xba5ab4(0x14f))/0x7*(parseInt(_0xba5ab4(0x148))/0x8)+parseInt(_0xba5ab4(0x147))/0x9;if(_0x3124d9===_0x28cbda)break;else _0x2944c1['push'](_0x2944c1['shift']());}catch(_0x16263c){_0x2944c1['push'](_0x2944c1['shift']());}}}(a11_0x2872,0x35551));const a11_0xfa9778=(function(){const _0x1931a7={'eUZOn':function(_0x3a56be,_0x395fe5){return _0x3a56be!==_0x395fe5;}};let _0x302984=!![];return function(_0x522752,_0x14da34){const _0x810346=_0x302984?function(){const _0x2ffd50=a11_0x2627;if(_0x14da34){if(_0x1931a7[_0x2ffd50(0x140)](_0x2ffd50(0x14d),_0x2ffd50(0x14d))){const _0x2d9fa1=_0x40369a['apply'](_0x1e3f0b,arguments);return _0x167d2e=null,_0x2d9fa1;}else{const _0x2a9f24=_0x14da34[_0x2ffd50(0x13e)](_0x522752,arguments);return _0x14da34=null,_0x2a9f24;}}}:function(){};return _0x302984=![],_0x810346;};}()),a11_0xf1984b=a11_0xfa9778(this,function(){const _0x183e12=a11_0x2627,_0x3f8f36={'NlnUl':_0x183e12(0x146)};return a11_0xf1984b[_0x183e12(0x141)]()[_0x183e12(0x13d)](_0x183e12(0x146))[_0x183e12(0x141)]()[_0x183e12(0x150)](a11_0xf1984b)[_0x183e12(0x13d)](_0x3f8f36[_0x183e12(0x13f)]);});a11_0xf1984b();'use strict';Object[a11_0x3323d9(0x14a)](exports,a11_0x3323d9(0x14c),{'value':!![]}),exports[a11_0x3323d9(0x144)]=void 0x0;const step_1=require('./step');class LogicStep extends step_1[a11_0x3323d9(0x149)]{constructor(_0x2a12ea,_0x4855a1,_0x36c9c6=![]){super(_0x2a12ea,_0x4855a1,_0x36c9c6);}[a11_0x3323d9(0x142)](){return!![];}}function a11_0x2627(_0x47dfaf,_0x35aac3){const _0x488ee1=a11_0x2872();return a11_0x2627=function(_0xf1984b,_0xfa9778){_0xf1984b=_0xf1984b-0x13b;let _0x287249=_0x488ee1[_0xf1984b];return _0x287249;},a11_0x2627(_0x47dfaf,_0x35aac3);}exports['LogicStep']=LogicStep;
package/flow/memory.js CHANGED
@@ -1 +1 @@
1
- const a12_0x1ce8cf=a12_0x1879;(function(_0x41fd8b,_0x27a3f4){const _0x519d21=a12_0x1879,_0x2d8959=_0x41fd8b();while(!![]){try{const _0x1874c3=-parseInt(_0x519d21(0xce))/0x1*(parseInt(_0x519d21(0xe8))/0x2)+parseInt(_0x519d21(0xe0))/0x3+-parseInt(_0x519d21(0xf1))/0x4*(-parseInt(_0x519d21(0x118))/0x5)+parseInt(_0x519d21(0x11e))/0x6*(-parseInt(_0x519d21(0x108))/0x7)+parseInt(_0x519d21(0x10d))/0x8*(-parseInt(_0x519d21(0xfe))/0x9)+-parseInt(_0x519d21(0xf5))/0xa+-parseInt(_0x519d21(0xd6))/0xb*(-parseInt(_0x519d21(0xf7))/0xc);if(_0x1874c3===_0x27a3f4)break;else _0x2d8959['push'](_0x2d8959['shift']());}catch(_0x5ea961){_0x2d8959['push'](_0x2d8959['shift']());}}}(a12_0x31a1,0x61a94));function a12_0x1879(_0x62c6e7,_0x27582f){const _0x15ef74=a12_0x31a1();return a12_0x1879=function(_0xe2d54b,_0x1d8ae9){_0xe2d54b=_0xe2d54b-0xce;let _0x31a17a=_0x15ef74[_0xe2d54b];return _0x31a17a;},a12_0x1879(_0x62c6e7,_0x27582f);}const a12_0x1d8ae9=(function(){const _0x4af878=a12_0x1879,_0x20e70a={'AGtrE':function(_0x99c41e,_0x375b86){return _0x99c41e!==_0x375b86;},'KJHNH':_0x4af878(0xd9),'qalxd':'AhcEJ'};let _0x48bd16=!![];return function(_0x476bab,_0x188af7){const _0x5d6e0a=_0x48bd16?function(){const _0x1dddba=a12_0x1879;if(_0x188af7){if(_0x20e70a[_0x1dddba(0x120)](_0x20e70a['KJHNH'],_0x20e70a[_0x1dddba(0xf0)])){const _0x38ccc9=_0x188af7['apply'](_0x476bab,arguments);return _0x188af7=null,_0x38ccc9;}else{const _0x235c58=_0x9ddacd?function(){const _0x3ecc1f=_0x1dddba;if(_0x44bb5d){const _0x32072d=_0x39e02e[_0x3ecc1f(0x112)](_0x4101e0,arguments);return _0x148b6c=null,_0x32072d;}}:function(){};return _0x4e30cc=![],_0x235c58;}}}:function(){};return _0x48bd16=![],_0x5d6e0a;};}()),a12_0xe2d54b=a12_0x1d8ae9(this,function(){const _0x1d1a22=a12_0x1879,_0x579b59={'fzSVU':_0x1d1a22(0x10b)};return a12_0xe2d54b[_0x1d1a22(0x117)]()[_0x1d1a22(0xde)](_0x579b59[_0x1d1a22(0x10f)])['toString']()['constructor'](a12_0xe2d54b)[_0x1d1a22(0xde)](_0x579b59[_0x1d1a22(0x10f)]);});a12_0xe2d54b();'use strict';Object['defineProperty'](exports,a12_0x1ce8cf(0x10c),{'value':!![]}),exports[a12_0x1ce8cf(0xe7)]=void 0x0;const messages_1=require(a12_0x1ce8cf(0xeb)),message_util_1=require(a12_0x1ce8cf(0x111));class Memory{constructor(_0x31636a){const _0x157f9c=a12_0x1ce8cf,_0x2c3bfa={'dUHMI':function(_0x61018d,_0x30aec2){return _0x61018d===_0x30aec2;},'IvPEp':_0x157f9c(0xe9),'qUMNe':_0x157f9c(0xdb)};this['nameSpaceMap']=new Map();if(_0x31636a){if(_0x157f9c(0xe4)===_0x157f9c(0xfc)){const _0x26c819=_0x1666ad[_0x157f9c(0x112)](_0x4ed410,arguments);return _0x3fdb53=null,_0x26c819;}else for(const _0x5e1361 of _0x31636a){_0x2c3bfa[_0x157f9c(0xf2)](_0x2c3bfa['IvPEp'],_0x2c3bfa[_0x157f9c(0xd3)])?_0x2b7914['push']({'nameSpace':_0x27376a,'history':[]}):this[_0x157f9c(0xdc)](_0x5e1361);}}else{}}[a12_0x1ce8cf(0xdc)](_0x59a618){const _0x4b1177=a12_0x1ce8cf;let _0x3c0f74=this['nameSpaceMap'][_0x4b1177(0xcf)](_0x59a618);return!_0x3c0f74&&(_0x3c0f74=[],this[_0x4b1177(0xe5)][_0x4b1177(0x103)](_0x59a618,_0x3c0f74)),_0x3c0f74;}[a12_0x1ce8cf(0x11d)](){const _0x37fd4f=a12_0x1ce8cf,_0x37505e={'BTQgX':_0x37fd4f(0xf6)},_0xa682f4=[];for(const [_0xfed8f9]of this[_0x37fd4f(0xe5)]){_0x37505e[_0x37fd4f(0xff)]===_0x37fd4f(0xf6)?_0xa682f4['push']({'nameSpace':_0xfed8f9,'history':[]}):(_0x3ff608=[],this[_0x37fd4f(0xe5)][_0x37fd4f(0x103)](_0x4899e6,_0x52ac0d));}return _0xa682f4;}[a12_0x1ce8cf(0x10e)](_0x1ff977){const _0x1e68e9=a12_0x1ce8cf,_0x13ac78={'Hchgp':function(_0x3cb0a5,_0x4941f9){return _0x3cb0a5===_0x4941f9;},'KcCfw':_0x1e68e9(0xfd),'YGnJg':_0x1e68e9(0xea),'ozYcu':_0x1e68e9(0xd4),'cIqdl':_0x1e68e9(0xf8),'oFFfc':function(_0x25f1b7,_0x2de3ac){return _0x25f1b7===_0x2de3ac;},'LNCuA':'okArD'};for(const _0x5a23ff of _0x1ff977){if(_0x13ac78[_0x1e68e9(0x106)](_0x13ac78['LNCuA'],_0x13ac78[_0x1e68e9(0x110)])){const _0x4f4318=_0x5a23ff[_0x1e68e9(0xd7)],_0x3fd058=_0x4f4318[_0x1e68e9(0xed)](_0x3ded85=>{const _0x487067=_0x1e68e9;if(_0x13ac78[_0x487067(0xd0)](_0x487067(0xf3),_0x13ac78[_0x487067(0xd1)]))return new _0x4125ad[(_0x487067(0x114))]({'content':_0x163f68[_0x487067(0xfb)],'id':_0x152794['id'],'additional_kwargs':_0x4dbc9e[_0x487067(0x119)]});else switch(_0x3ded85['type']){case _0x13ac78[_0x487067(0xdf)]:return new messages_1[(_0x487067(0x115))]({'content':_0x3ded85[_0x487067(0xfb)],'id':_0x3ded85['id']});case _0x13ac78[_0x487067(0xd8)]:return new messages_1['HumanMessage']({'content':_0x3ded85[_0x487067(0xfb)],'id':_0x3ded85['id'],'additional_kwargs':_0x3ded85[_0x487067(0x119)]});case'ai':return _0x3ded85[_0x487067(0xe2)]?.[_0x487067(0xd2)]>0x0?new messages_1[(_0x487067(0x114))]({'content':_0x3ded85[_0x487067(0xfb)],'id':_0x3ded85['id'],'additional_kwargs':_0x3ded85['additional_kwargs'],'tool_calls':message_util_1['MessageUtil'][_0x487067(0x113)](_0x3ded85[_0x487067(0xe2)])}):new messages_1[(_0x487067(0x114))]({'content':_0x3ded85[_0x487067(0xfb)],'id':_0x3ded85['id'],'additional_kwargs':_0x3ded85[_0x487067(0x119)]});case _0x13ac78[_0x487067(0x104)]:return new messages_1[(_0x487067(0xf4))]({'content':_0x3ded85[_0x487067(0xfb)],'id':_0x3ded85['id'],'tool_call_id':_0x3ded85[_0x487067(0x105)],'status':_0x3ded85[_0x487067(0x11b)],'name':_0x3ded85['name'],'additional_kwargs':_0x3ded85[_0x487067(0x119)]});}});this[_0x1e68e9(0xe5)][_0x1e68e9(0x103)](_0x5a23ff[_0x1e68e9(0x11a)],_0x3fd058);}else this[_0x1e68e9(0xdc)](_0x14ea2b);}return this;}[a12_0x1ce8cf(0xda)](_0x288c38){const _0x228efa=a12_0x1ce8cf,_0xf2a10e={'DywaA':_0x228efa(0xea),'RNLnf':_0x228efa(0xd4),'mPQhW':function(_0x457091,_0x543277){return _0x457091>_0x543277;},'bGCrO':function(_0x4c9f44,_0x4a3737){return _0x4c9f44===_0x4a3737;},'OaUMK':'additional_kwargs','prnsQ':_0x228efa(0xf8),'RFrSp':'status','eigxh':_0x228efa(0xee),'xatgX':function(_0x22e5e9,_0x1d944c){return _0x22e5e9!==_0x1d944c;},'FbEWY':_0x228efa(0x102),'uShTu':_0x228efa(0xe2),'YoCQC':_0x228efa(0xf9),'JvfqJ':_0x228efa(0x10a),'YLRRR':'FwmLd'};for(const [_0x246d8f,_0x4f9ec5]of this[_0x228efa(0xe5)]){if(_0xf2a10e[_0x228efa(0x100)]===_0xf2a10e[_0x228efa(0x11c)])for(const _0x2febbc of _0x1d1769){this[_0x228efa(0xdc)](_0x2febbc);}else{const _0x1bb756=_0x4f9ec5[_0x228efa(0xed)](_0x4f8a2e=>{const _0x19ea0b=_0x228efa,_0x26d2a1={'type':_0x4f8a2e[_0x19ea0b(0xef)],'content':_0x4f8a2e[_0x19ea0b(0xfb)],'id':_0x4f8a2e['id']};if(!message_util_1[_0x19ea0b(0x116)]['isEmptyObject'](_0x4f8a2e[_0x19ea0b(0x119)])){if(_0xf2a10e[_0x19ea0b(0xe1)](_0x19ea0b(0x109),_0x19ea0b(0x109)))_0x26d2a1[_0xf2a10e['OaUMK']]=_0x4f8a2e[_0x19ea0b(0x119)];else switch(_0x55be5f[_0x19ea0b(0xef)]){case _0xf2a10e[_0x19ea0b(0x101)]:return new _0x1b0516[(_0x19ea0b(0x115))]({'content':_0x1962a4['content'],'id':_0x2b45a9['id']});case _0xf2a10e[_0x19ea0b(0xdd)]:return new _0x14fa71['HumanMessage']({'content':_0x518ca5['content'],'id':_0x2c9057['id'],'additional_kwargs':_0x27a401[_0x19ea0b(0x119)]});case'ai':return _0xf2a10e[_0x19ea0b(0x11f)](_0x41a104['tool_calls']?.[_0x19ea0b(0xd2)],0x0)?new _0x245872[(_0x19ea0b(0x114))]({'content':_0x1189e[_0x19ea0b(0xfb)],'id':_0x31998c['id'],'additional_kwargs':_0x304e18[_0x19ea0b(0x119)],'tool_calls':_0x4b750a['MessageUtil']['makeToolStruct'](_0x15e274[_0x19ea0b(0xe2)])}):new _0x4fa09b[(_0x19ea0b(0x114))]({'content':_0x259468[_0x19ea0b(0xfb)],'id':_0x14886f['id'],'additional_kwargs':_0x2e792c[_0x19ea0b(0x119)]});case'tool':return new _0x4f676e[(_0x19ea0b(0xf4))]({'content':_0xbacb5c[_0x19ea0b(0xfb)],'id':_0x356efd['id'],'tool_call_id':_0x2e6b49[_0x19ea0b(0x105)],'status':_0x17e0dd[_0x19ea0b(0x11b)],'name':_0x5cb42c[_0x19ea0b(0xee)],'additional_kwargs':_0x2c3574['additional_kwargs']});}}switch(_0x4f8a2e[_0x19ea0b(0xef)]){case _0xf2a10e[_0x19ea0b(0xfa)]:const _0x1cbb23=_0x4f8a2e;_0x26d2a1['tool_call_id']=_0x1cbb23['tool_call_id'],_0x26d2a1[_0xf2a10e[_0x19ea0b(0xe6)]]=_0x1cbb23['status'],_0x26d2a1[_0xf2a10e['eigxh']]=_0x1cbb23[_0x19ea0b(0xee)];return _0x26d2a1;case'ai':const _0x2b9d2f=_0x4f8a2e;if(_0xf2a10e[_0x19ea0b(0x11f)](_0x2b9d2f[_0x19ea0b(0xe2)]['length'],0x0)){if(_0xf2a10e['xatgX'](_0x19ea0b(0x102),_0xf2a10e[_0x19ea0b(0xe3)])){const _0x2a8912=[];for(const [_0x27b3ba]of this[_0x19ea0b(0xe5)]){_0x2a8912[_0x19ea0b(0x107)]({'nameSpace':_0x27b3ba,'history':[]});}return _0x2a8912;}else return _0x26d2a1[_0xf2a10e[_0x19ea0b(0xec)]]=message_util_1['MessageUtil'][_0x19ea0b(0x113)](_0x2b9d2f[_0x19ea0b(0xe2)]),_0x26d2a1;}default:return _0x26d2a1;}});let _0x546e63=![];for(const _0x5f3c3f of _0x288c38){if(_0xf2a10e['YLRRR']!==_0x228efa(0xd5)){if(_0x5f3c3f[_0x228efa(0x11a)]===_0x246d8f){_0x5f3c3f['history']=_0x1bb756,_0x546e63=!![];break;}}else return _0x26d6c1[_0xf2a10e[_0x228efa(0xec)]]=_0x14b189[_0x228efa(0x116)][_0x228efa(0x113)](_0x3e36df[_0x228efa(0xe2)]),_0x116ade;}!_0x546e63&&_0x288c38[_0x228efa(0x107)]({'nameSpace':_0x246d8f,'history':_0x1bb756});}}}}function a12_0x31a1(){const _0x4024e1=['715870nuLVjs','DodtU','84QpuqWG','tool','MlJFn','prnsQ','content','GaqwO','WMBpo','45jXVPSu','BTQgX','YoCQC','DywaA','AbkwT','set','cIqdl','tool_call_id','oFFfc','push','236383hDONFv','IqjbZ','SxfqE','(((.+)+)+)+$','__esModule','555400UoxpqU','readDoc','fzSVU','LNCuA','../utils/message-util','apply','makeToolStruct','AIMessage','SystemMessage','MessageUtil','toString','5NOzflC','additional_kwargs','nameSpace','status','JvfqJ','createOoc','90bXnFhq','mPQhW','AGtrE','227Wtaifw','get','Hchgp','KcCfw','length','qUMNe','human','NAomV','1626251LeanWu','history','ozYcu','ympoo','writeDoc','PEbYC','getMessages','RNLnf','search','YGnJg','1992456MQPxFw','bGCrO','tool_calls','FbEWY','UttHh','nameSpaceMap','RFrSp','Memory','6898hlIVZt','rlfBK','system','@langchain/core/messages','uShTu','map','name','type','qalxd','1636604rSaeeY','dUHMI','ytrAP','ToolMessage'];a12_0x31a1=function(){return _0x4024e1;};return a12_0x31a1();}exports[a12_0x1ce8cf(0xe7)]=Memory;
1
+ const a12_0x14977c=a12_0x38d9;(function(_0x35b621,_0x251bf8){const _0x1802c3=a12_0x38d9,_0x151508=_0x35b621();while(!![]){try{const _0x553ece=parseInt(_0x1802c3(0x18f))/0x1*(parseInt(_0x1802c3(0x17f))/0x2)+parseInt(_0x1802c3(0x1a9))/0x3+parseInt(_0x1802c3(0x19d))/0x4*(-parseInt(_0x1802c3(0x19e))/0x5)+-parseInt(_0x1802c3(0x194))/0x6*(-parseInt(_0x1802c3(0x1a0))/0x7)+-parseInt(_0x1802c3(0x199))/0x8+-parseInt(_0x1802c3(0x19b))/0x9+parseInt(_0x1802c3(0x1a6))/0xa*(-parseInt(_0x1802c3(0x1b2))/0xb);if(_0x553ece===_0x251bf8)break;else _0x151508['push'](_0x151508['shift']());}catch(_0x5429d9){_0x151508['push'](_0x151508['shift']());}}}(a12_0x2598,0xc03ad));const a12_0x268f7a=(function(){let _0x40a484=!![];return function(_0x1ab950,_0x5e5442){const _0x1d883e=_0x40a484?function(){const _0x2c749a=a12_0x38d9;if(_0x5e5442){const _0x552244=_0x5e5442[_0x2c749a(0x191)](_0x1ab950,arguments);return _0x5e5442=null,_0x552244;}}:function(){};return _0x40a484=![],_0x1d883e;};}()),a12_0x491add=a12_0x268f7a(this,function(){const _0x2f1b03=a12_0x38d9,_0x31ae94={'jahBk':_0x2f1b03(0x1af)};return a12_0x491add[_0x2f1b03(0x1a2)]()[_0x2f1b03(0x1a5)](_0x31ae94[_0x2f1b03(0x177)])[_0x2f1b03(0x1a2)]()['constructor'](a12_0x491add)[_0x2f1b03(0x1a5)](_0x31ae94[_0x2f1b03(0x177)]);});a12_0x491add();'use strict';function a12_0x38d9(_0x7324fe,_0x1e121b){const _0x1de0d0=a12_0x2598();return a12_0x38d9=function(_0x491add,_0x268f7a){_0x491add=_0x491add-0x176;let _0x259812=_0x1de0d0[_0x491add];return _0x259812;},a12_0x38d9(_0x7324fe,_0x1e121b);}Object[a12_0x14977c(0x182)](exports,'__esModule',{'value':!![]}),exports[a12_0x14977c(0x1aa)]=void 0x0;function a12_0x2598(){const _0x3105c2=['defineProperty','STlir','MessageUtil','human','FwxQf','additional_kwargs','dtGNk','nKuCC','system','content','tool','ZtsTo','getMessages','51UlykRY','OyxNL','apply','lLwcY','nameSpaceMap','8657130YCkpZo','type','xyzoF','get','bvhAY','3771824wqDdZw','push','11495259HQVLlL','RjHqH','12CJGdka','218865OVZStM','AIMessage','7vcjhzu','LFNeE','toString','BmMaD','ToolMessage','search','50wwJeLx','Eobom','tool_calls','2938854wmAuCN','Memory','EMMvS','../utils/message-util','jbIVJ','OLJvo','(((.+)+)+)+$','pXZHh','set','1525931XuSZAY','name','SystemMessage','DwiYD','history','ruaFM','map','rFhEw','jahBk','length','isEmptyObject','vkLPF','jHAGu','writeDoc','status','makeToolStruct','36806yNxpYu','kmmTo','tool_call_id'];a12_0x2598=function(){return _0x3105c2;};return a12_0x2598();}const messages_1=require('@langchain/core/messages'),message_util_1=require(a12_0x14977c(0x1ac));class Memory{constructor(_0x5c032a){const _0x231975=a12_0x14977c;this[_0x231975(0x193)]=new Map();if(_0x5c032a)for(const _0x310ae0 of _0x5c032a){this[_0x231975(0x18e)](_0x310ae0);}else{}}[a12_0x14977c(0x18e)](_0x20f131){const _0xbecbe8=a12_0x14977c,_0x355e3e={'rFhEw':function(_0x591595,_0x2c3833){return _0x591595===_0x2c3833;},'nKuCC':_0xbecbe8(0x17b)};let _0x193323=this[_0xbecbe8(0x193)][_0xbecbe8(0x197)](_0x20f131);if(!_0x193323){if(_0x355e3e[_0xbecbe8(0x176)](_0x355e3e[_0xbecbe8(0x189)],_0xbecbe8(0x17b)))_0x193323=[],this[_0xbecbe8(0x193)][_0xbecbe8(0x1b1)](_0x20f131,_0x193323);else for(const _0x5a02c9 of _0x149ac1){this[_0xbecbe8(0x18e)](_0x5a02c9);}}return _0x193323;}['createOoc'](){const _0xb99ae0=a12_0x14977c,_0x57f7b5={'xyzoF':function(_0x34e6af,_0x18a76e){return _0x34e6af!==_0x18a76e;},'BmMaD':_0xb99ae0(0x1ae)},_0x2514c6=[];for(const [_0x1387cc]of this['nameSpaceMap']){_0x57f7b5[_0xb99ae0(0x196)](_0x57f7b5[_0xb99ae0(0x1a3)],_0xb99ae0(0x1b7))?_0x2514c6[_0xb99ae0(0x19a)]({'nameSpace':_0x1387cc,'history':[]}):_0x51fff5[_0xb99ae0(0x19a)]({'nameSpace':_0x5b74e0,'history':[]});}return _0x2514c6;}['readDoc'](_0x50b1cc){const _0x1c7afd=a12_0x14977c,_0x25eca8={'bvhAY':_0x1c7afd(0x18a),'yPquT':_0x1c7afd(0x185),'ZtsTo':function(_0x13047d,_0x3a7756){return _0x13047d>_0x3a7756;},'dtGNk':function(_0x1cfdae,_0x4519d9){return _0x1cfdae!==_0x4519d9;},'kmmTo':_0x1c7afd(0x1ad),'OyxNL':_0x1c7afd(0x18c)};for(const _0x1121fb of _0x50b1cc){const _0x41cba2=_0x1121fb[_0x1c7afd(0x1b6)],_0x60aa6d=_0x41cba2[_0x1c7afd(0x1b8)](_0x935823=>{const _0x5d4f49=_0x1c7afd;switch(_0x935823[_0x5d4f49(0x195)]){case _0x25eca8[_0x5d4f49(0x198)]:return new messages_1[(_0x5d4f49(0x1b4))]({'content':_0x935823[_0x5d4f49(0x18b)],'id':_0x935823['id']});case _0x25eca8['yPquT']:return new messages_1['HumanMessage']({'content':_0x935823[_0x5d4f49(0x18b)],'id':_0x935823['id'],'additional_kwargs':_0x935823[_0x5d4f49(0x187)]});case'ai':return _0x25eca8[_0x5d4f49(0x18d)](_0x935823[_0x5d4f49(0x1a8)]?.[_0x5d4f49(0x178)],0x0)?new messages_1['AIMessage']({'content':_0x935823[_0x5d4f49(0x18b)],'id':_0x935823['id'],'additional_kwargs':_0x935823['additional_kwargs'],'tool_calls':message_util_1[_0x5d4f49(0x184)][_0x5d4f49(0x17e)](_0x935823[_0x5d4f49(0x1a8)])}):_0x25eca8[_0x5d4f49(0x188)](_0x25eca8[_0x5d4f49(0x180)],_0x25eca8[_0x5d4f49(0x180)])?new _0x224aab[(_0x5d4f49(0x19f))]({'content':_0x2341d3[_0x5d4f49(0x18b)],'id':_0x485242['id'],'additional_kwargs':_0x1ef968['additional_kwargs']}):new messages_1[(_0x5d4f49(0x19f))]({'content':_0x935823[_0x5d4f49(0x18b)],'id':_0x935823['id'],'additional_kwargs':_0x935823['additional_kwargs']});case _0x25eca8[_0x5d4f49(0x190)]:return new messages_1[(_0x5d4f49(0x1a4))]({'content':_0x935823['content'],'id':_0x935823['id'],'tool_call_id':_0x935823[_0x5d4f49(0x181)],'status':_0x935823[_0x5d4f49(0x17d)],'name':_0x935823[_0x5d4f49(0x1b3)],'additional_kwargs':_0x935823[_0x5d4f49(0x187)]});}});this['nameSpaceMap'][_0x1c7afd(0x1b1)](_0x1121fb['nameSpace'],_0x60aa6d);}return this;}[a12_0x14977c(0x17c)](_0x3ee751){const _0x1e5835=a12_0x14977c,_0x2c460b={'STlir':function(_0x1ab135,_0x4007ef){return _0x1ab135!==_0x4007ef;},'DwiYD':_0x1e5835(0x17a),'OFmpF':function(_0x326a2b,_0x582d8f){return _0x326a2b===_0x582d8f;},'fDlqq':'JWQdM','FwxQf':_0x1e5835(0x192),'pXZHh':_0x1e5835(0x18c),'EMMvS':'tool_call_id','RjHqH':_0x1e5835(0x17d),'QbsVK':_0x1e5835(0x1b3),'LFNeE':function(_0x588d96,_0x4e5b5b){return _0x588d96>_0x4e5b5b;},'Eobom':_0x1e5835(0x1a8)};for(const [_0x4609f2,_0x4a237a]of this[_0x1e5835(0x193)]){const _0x5df1d3=_0x4a237a[_0x1e5835(0x1b8)](_0x46e97c=>{const _0x32cfb7=_0x1e5835;if(_0x2c460b[_0x32cfb7(0x183)](_0x2c460b[_0x32cfb7(0x1b5)],_0x2c460b['DwiYD']))this['getMessages'](_0x115314);else{const _0x1b128e={'type':_0x46e97c['type'],'content':_0x46e97c['content'],'id':_0x46e97c['id']};if(!message_util_1['MessageUtil'][_0x32cfb7(0x179)](_0x46e97c[_0x32cfb7(0x187)])){if(_0x2c460b['OFmpF'](_0x2c460b['fDlqq'],_0x2c460b[_0x32cfb7(0x186)])){let _0x3e2ef9=this[_0x32cfb7(0x193)]['get'](_0x480622);return!_0x3e2ef9&&(_0x3e2ef9=[],this[_0x32cfb7(0x193)][_0x32cfb7(0x1b1)](_0x1abb18,_0x3e2ef9)),_0x3e2ef9;}else _0x1b128e[_0x32cfb7(0x187)]=_0x46e97c[_0x32cfb7(0x187)];}switch(_0x46e97c[_0x32cfb7(0x195)]){case _0x2c460b[_0x32cfb7(0x1b0)]:const _0x456bcc=_0x46e97c;_0x1b128e[_0x2c460b[_0x32cfb7(0x1ab)]]=_0x456bcc[_0x32cfb7(0x181)],_0x1b128e[_0x2c460b[_0x32cfb7(0x19c)]]=_0x456bcc['status'],_0x1b128e[_0x2c460b['QbsVK']]=_0x456bcc[_0x32cfb7(0x1b3)];return _0x1b128e;case'ai':const _0x9e415e=_0x46e97c;if(_0x2c460b[_0x32cfb7(0x1a1)](_0x9e415e['tool_calls'][_0x32cfb7(0x178)],0x0))return _0x1b128e[_0x2c460b[_0x32cfb7(0x1a7)]]=message_util_1[_0x32cfb7(0x184)][_0x32cfb7(0x17e)](_0x9e415e[_0x32cfb7(0x1a8)]),_0x1b128e;default:return _0x1b128e;}}});let _0x45a5d8=![];for(const _0x11f936 of _0x3ee751){if(_0x11f936['nameSpace']===_0x4609f2){_0x11f936[_0x1e5835(0x1b6)]=_0x5df1d3,_0x45a5d8=!![];break;}}!_0x45a5d8&&_0x3ee751['push']({'nameSpace':_0x4609f2,'history':_0x5df1d3});}}}exports[a12_0x14977c(0x1aa)]=Memory;
package/flow/step.js CHANGED
@@ -1 +1 @@
1
- const a13_0x134b0e=a13_0x228b;(function(_0x1d8b2e,_0x1a7c8a){const _0x2c9d45=a13_0x228b,_0x31e1c8=_0x1d8b2e();while(!![]){try{const _0x1808c3=-parseInt(_0x2c9d45(0xf0))/0x1*(parseInt(_0x2c9d45(0x81))/0x2)+parseInt(_0x2c9d45(0xaf))/0x3+-parseInt(_0x2c9d45(0xd7))/0x4*(parseInt(_0x2c9d45(0x7a))/0x5)+parseInt(_0x2c9d45(0x78))/0x6*(parseInt(_0x2c9d45(0xa0))/0x7)+-parseInt(_0x2c9d45(0xda))/0x8+-parseInt(_0x2c9d45(0xaa))/0x9+parseInt(_0x2c9d45(0xc0))/0xa;if(_0x1808c3===_0x1a7c8a)break;else _0x31e1c8['push'](_0x31e1c8['shift']());}catch(_0x53ce35){_0x31e1c8['push'](_0x31e1c8['shift']());}}}(a13_0x3d1e,0xda0a4));const a13_0x4488c8=(function(){const _0xb161dd=a13_0x228b,_0x5ec983={'nDAin':_0xb161dd(0xcd),'nMYmd':'lmwNE'};let _0xde84e7=!![];return function(_0xb4c8e,_0x95ca98){const _0x5999df=_0xde84e7?function(){const _0xf7c5c9=a13_0x228b;if(_0x95ca98){if(_0x5ec983[_0xf7c5c9(0xb0)]!==_0x5ec983['nMYmd']){const _0x10cd70=_0x95ca98['apply'](_0xb4c8e,arguments);return _0x95ca98=null,_0x10cd70;}else{const _0x3977b1=this[_0xf7c5c9(0xcb)]();return _0x3977b1['map'](_0xa4d4ab=>{const _0x2b138e=_0xf7c5c9;return this[_0x2b138e(0x9b)][_0x2b138e(0xcb)](_0xa4d4ab);});}}}:function(){};return _0xde84e7=![],_0x5999df;};}()),a13_0xe9b898=a13_0x4488c8(this,function(){const _0x1141b9=a13_0x228b,_0x843fa9={'EzncM':_0x1141b9(0xf4)};return a13_0xe9b898['toString']()[_0x1141b9(0xc4)](_0x843fa9[_0x1141b9(0x10c)])[_0x1141b9(0xc5)]()[_0x1141b9(0xfe)](a13_0xe9b898)['search'](_0x843fa9[_0x1141b9(0x10c)]);});a13_0xe9b898();function a13_0x3d1e(){const _0x255b1d=['activateByName','onResponse','\x20to\x20ensure\x20the\x20tool\x20is\x20triggered.','EOdtX','completed','XTwMC','ihbKN','HKuAY','../utils/message-util','structOutputSchema','setStopTool','omit','run','getPrompt','44264820ulznNn','getState','sessionCompleted','YAAJs','search','toString','isActive','getContext','length','amendTool','Step','getTool','moment','msOSg','eraseMemory','getTemperature','saveState','pwJsH','toLowerCase','isToolAvailable','replace','activate','ctType','1017460sLvtfx','zIcCO','QgQeZ','14118048jihLaG','_stopTool','additional_kwargs','jsyal','get','LLMType','genMessageId','LTUUw','eraQi','modelName','isLogic','default','HttpContentType','memorySpace','trim','Uxloh','./content-type','useMemory','stopTool','mergeState','xvOMu','gemini','3547jgOTRz','_prompt','PQeZi','GEMINI','(((.+)+)+)+$','goszo','invokeTool','map','toDate','gOtQL','rOUtL','keys','nhSlK','IYtue','constructor','random','RUPUK','PUdTv','gpt','Start','runStep','merge','__importDefault','writeDoc','getStateAs','__esModule','contentType','OPENAI','EzncM','./llm-runner','useModel','6BHXWGr','CFmmr','10YAiISW','dEBDh','JlNcb','iJlOM','vjJMT','pGZDT','onEnter','934kfHFRv','name','getModel','getName','pBJdM','getLLMType','eydLV','kPngv','YYYY-MM-DDTHH:mm:ss.SSS[Z]','NVJkd','createDoc','getStopTool','SCsNu','bUyxJ','Plain','getStep','runStatus','getMemory','lodash','uTVTl','getSessionDoc','jRuoY','random10Digits','Ifvvr','defineProperty','temperature','flow','removeState','state','active','BAhiT','5019448qBwPDF','floor','onExit','../utils/llm-file.js','vFJZB','GbMsq','setTemperature','**Important:**\x20After\x20collecting\x20data,\x20call\x20tool\x20','IXwDh','mUeWg','8949609BElOhe','HumanMessageEx','startsWith','push','ORPFF','2021646NjSrWP','nDAin','onCrossing'];a13_0x3d1e=function(){return _0x255b1d;};return a13_0x3d1e();}'use strict';var __importDefault=this&&this[a13_0x134b0e(0x106)]||function(_0x554b6a){const _0x842270=a13_0x134b0e;return _0x554b6a&&_0x554b6a[_0x842270(0x109)]?_0x554b6a:{'default':_0x554b6a};};function a13_0x228b(_0x7146f6,_0x4bfa5b){const _0x2e7896=a13_0x3d1e();return a13_0x228b=function(_0xe9b898,_0x4488c8){_0xe9b898=_0xe9b898-0x76;let _0x3d1ec3=_0x2e7896[_0xe9b898];return _0x3d1ec3;},a13_0x228b(_0x7146f6,_0x4bfa5b);}Object[a13_0x134b0e(0x99)](exports,'__esModule',{'value':!![]}),exports['Step']=void 0x0;const lodash_1=require(a13_0x134b0e(0x93)),moment_1=__importDefault(require(a13_0x134b0e(0xcc))),messages_1=require('@langchain/core/messages'),llm_runner_1=require(a13_0x134b0e(0x76)),message_util_1=require(a13_0x134b0e(0xba)),content_type_1=require(a13_0x134b0e(0xea)),llm_file_js_1=require(a13_0x134b0e(0xa3));class Step{constructor(_0x16ff28,_0x2a39dc,_0x5532b0=![]){const _0x441041=a13_0x134b0e;this[_0x441041(0xc6)]=![],this[_0x441041(0x9d)]={},this[_0x441041(0xe3)]=undefined,this[_0x441041(0xd6)]=content_type_1[_0x441041(0xe6)][_0x441041(0x8f)],this['temperature']=-0x1,this[_0x441041(0x82)]=_0x16ff28[_0x441041(0x82)],this[_0x441041(0x9b)]=_0x2a39dc,this[_0x441041(0xc6)]=_0x5532b0,this[_0x441041(0xe7)]=_0x16ff28['name'];}[a13_0x134b0e(0x84)](){const _0x5dc73b=a13_0x134b0e;return this[_0x5dc73b(0x82)];}['onEnter'](){}[a13_0x134b0e(0xa2)](){}[a13_0x134b0e(0xb3)](_0x1ec17d){return _0x1ec17d;}get[a13_0x134b0e(0x9e)](){const _0x56a01b=a13_0x134b0e;return this[_0x56a01b(0xc6)];}[a13_0x134b0e(0xe4)](){return![];}set[a13_0x134b0e(0x9e)](_0x20b988){const _0x25a2d7=a13_0x134b0e,_0x1f4475={'uxIwg':_0x25a2d7(0xec),'eydLV':function(_0x4fc47,_0x5a46ab){return _0x4fc47===_0x5a46ab;},'QgQeZ':_0x25a2d7(0x8d),'wmKxi':_0x25a2d7(0x79)};if(!this['isActive']&&_0x20b988){if(_0x1f4475['eydLV'](_0x1f4475[_0x25a2d7(0xd9)],_0x1f4475['QgQeZ']))this[_0x25a2d7(0x80)]();else{const _0xbaad31=this[_0x25a2d7(0x8c)]();for(const _0x45d5e6 of _0xbaad31){this[_0x25a2d7(0xd0)]({'_stopTool':{[_0x45d5e6]:![]}});}return _0x20214a[_0x25a2d7(0xdc)][_0x1f4475['uxIwg']]=!![],_0x523808;}}this[_0x25a2d7(0xc6)]&&!_0x20b988&&(_0x1f4475[_0x25a2d7(0x87)](_0x1f4475['wmKxi'],_0x1f4475['wmKxi'])?this[_0x25a2d7(0xa2)]():(this[_0x25a2d7(0x9d)]=(0x0,_0x1b22e4[_0x25a2d7(0x105)])({},this['state'],_0x1c2da2),this[_0x25a2d7(0x9d)]=(0x0,_0x4b25e3[_0x25a2d7(0x105)])(this['state'],{'_saveOn':(0x0,_0x14be28[_0x25a2d7(0xe5)])()[_0x25a2d7(0xf8)]()}))),this[_0x25a2d7(0xc6)]=_0x20b988;}[a13_0x134b0e(0xcf)](){const _0x30076f=a13_0x134b0e;return this[_0x30076f(0x9a)];}[a13_0x134b0e(0xa6)](_0x266515){const _0x537dda=a13_0x134b0e;return this[_0x537dda(0x9a)]=_0x266515,this;}get['contentType'](){const _0x211995=a13_0x134b0e;return this[_0x211995(0xd6)];}set[a13_0x134b0e(0x10a)](_0x24417d){const _0x24c480=a13_0x134b0e;this[_0x24c480(0xd6)]=_0x24417d;}[a13_0x134b0e(0xc1)](_0x2d75bf){const _0x1663ca=a13_0x134b0e;if(_0x2d75bf)return(0x0,lodash_1[_0x1663ca(0xde)])(this[_0x1663ca(0x9d)],_0x2d75bf);return this[_0x1663ca(0x9d)];}[a13_0x134b0e(0x108)](_0x12d271){const _0x5a4bcc=a13_0x134b0e;if(_0x12d271)return(0x0,lodash_1['get'])(this[_0x5a4bcc(0x9d)],_0x12d271);return this[_0x5a4bcc(0x9d)];}['saveState'](_0xf280c2){const _0x581599=a13_0x134b0e;_0xf280c2&&(this[_0x581599(0x9d)]=(0x0,lodash_1[_0x581599(0xbd)])(this['state'],Object[_0x581599(0xfb)](_0xf280c2)[0x0]),this['state']=(0x0,lodash_1[_0x581599(0x105)])({},this[_0x581599(0x9d)],_0xf280c2),this[_0x581599(0x9d)]=(0x0,lodash_1['merge'])(this[_0x581599(0x9d)],{'_saveOn':(0x0,moment_1[_0x581599(0xe5)])()[_0x581599(0xf8)]()}));}[a13_0x134b0e(0xed)](_0x5620e3){const _0x146cd4=a13_0x134b0e,_0x38ef17={'wNUMt':function(_0x5f13ac,_0x9a88d2){return _0x5f13ac===_0x9a88d2;},'gOtQL':'ORPFF'};_0x5620e3&&(_0x38ef17['wNUMt'](_0x146cd4(0xae),_0x38ef17[_0x146cd4(0xf9)])?(this[_0x146cd4(0x9d)]=(0x0,lodash_1['merge'])({},this[_0x146cd4(0x9d)],_0x5620e3),this[_0x146cd4(0x9d)]=(0x0,lodash_1['merge'])(this['state'],{'_saveOn':(0x0,moment_1['default'])()[_0x146cd4(0xf8)]()})):(_0x2f2628[_0x146cd4(0xc6)]=this[_0x146cd4(0xc6)],_0x5d62d7['state']=this[_0x146cd4(0x9d)],!this[_0x146cd4(0xe4)]()&&(_0x461b16[_0x146cd4(0xe3)]=this[_0x146cd4(0xe3)],_0x3bdcde[_0x146cd4(0x9a)]=this['temperature'])));}[a13_0x134b0e(0xc2)](){const _0x344502=a13_0x134b0e,_0x44d663={'FoBbH':_0x344502(0xb6)},_0x7efa0b=this[_0x344502(0x9b)]['getSessionDoc']();_0x7efa0b[_0x344502(0x91)]=_0x44d663['FoBbH'];}[a13_0x134b0e(0xc7)](_0x48fbb3){const _0x5917af=a13_0x134b0e;return this['flow'][_0x5917af(0xc7)](_0x48fbb3);}[a13_0x134b0e(0x9c)](_0x294117){const _0x23a1ee=a13_0x134b0e;this['state']=(0x0,lodash_1['omit'])(this[_0x23a1ee(0x9d)],_0x294117);}[a13_0x134b0e(0xbf)](){const _0x5cfa87=a13_0x134b0e,_0x269c13=this[_0x5cfa87(0xc1)](_0x5cfa87(0xf1));return _0x269c13?_0x269c13[_0x5cfa87(0xc5)]():null;}['onCrossing'](_0x4deb1e,_0x2c032e){const _0x28e7aa=a13_0x134b0e,_0x5f02f5={'Uxloh':function(_0x20791e,_0x535c9a){return _0x20791e===_0x535c9a;},'ihbKN':function(_0x3318da,_0x583159){return _0x3318da!==_0x583159;},'dEBDh':_0x28e7aa(0x85),'LTUUw':_0x28e7aa(0x103)};if(!_0x4deb1e){if(_0x5f02f5[_0x28e7aa(0xb8)](_0x28e7aa(0x85),_0x5f02f5[_0x28e7aa(0x7b)])){const _0x13c9e0=this[_0x28e7aa(0x92)]();_0x5f02f5[_0x28e7aa(0xe9)](_0x13c9e0[_0x28e7aa(0xc8)],0x1)&&(_0x1f6339=new _0x55775d['HumanMessageEx'](this,_0x28e7aa(0x103)));}else{const _0x440d4c=this['getMemory']();_0x440d4c[_0x28e7aa(0xc8)]===0x1&&(_0x4deb1e=new message_util_1[(_0x28e7aa(0xab))](this,_0x5f02f5[_0x28e7aa(0xe1)]));}}return _0x4deb1e;}[a13_0x134b0e(0x92)](){const _0x2173a4=a13_0x134b0e,_0x16d969={'NVJkd':function(_0xc3aa4c,_0x298b6d){return _0xc3aa4c===_0x298b6d;}},_0x42e666=this[_0x2173a4(0x9b)][_0x2173a4(0x92)](this[_0x2173a4(0xe7)]);return _0x16d969[_0x2173a4(0x8a)](_0x42e666[_0x2173a4(0xc8)],0x0)&&_0x42e666[_0x2173a4(0xad)](new messages_1['SystemMessage']({'content':'','id':this[_0x2173a4(0xe0)]()})),_0x42e666;}['getLastMessage'](){const _0x24a772=a13_0x134b0e,_0x34f380={'rOUtL':function(_0x2a0fc4,_0x28f431){return _0x2a0fc4>_0x28f431;},'pGZDT':function(_0x75a0ec,_0x121621){return _0x75a0ec-_0x121621;}},_0x142197=this[_0x24a772(0x9b)]['getMemory'](this['memorySpace']);if(_0x34f380[_0x24a772(0xfa)](_0x142197[_0x24a772(0xc8)],0x0))return _0x142197[_0x34f380[_0x24a772(0x7f)](_0x142197[_0x24a772(0xc8)],0x1)];return null;}[a13_0x134b0e(0xeb)](_0x246978){return this['memorySpace']=_0x246978,this;}[a13_0x134b0e(0x77)](_0x3d530a){const _0x15d718=a13_0x134b0e;return this[_0x15d718(0xe3)]=_0x3d530a,this;}[a13_0x134b0e(0x83)](){const _0x42306a=a13_0x134b0e;return this[_0x42306a(0xe3)];}['defineTool'](){return null;}[a13_0x134b0e(0xd3)](_0x14a804){const _0x2d53fe=a13_0x134b0e,_0x1718aa={'eoLRm':function(_0x5a1b1f,_0x2f16a7){return _0x5a1b1f===_0x2f16a7;}};for(const _0xd86311 of this[_0x2d53fe(0xcb)]()){if(_0x1718aa['eoLRm'](_0xd86311,_0x14a804))return!![];}return![];}[a13_0x134b0e(0xcb)](){return[];}[a13_0x134b0e(0x8c)](){return[];}['obtainTools'](){const _0x5006fa=a13_0x134b0e,_0x3b4d44=this[_0x5006fa(0xcb)]();return _0x3b4d44[_0x5006fa(0xf7)](_0x4fce60=>{const _0x57ce72=_0x5006fa;return this[_0x57ce72(0x9b)][_0x57ce72(0xcb)](_0x4fce60);});}[a13_0x134b0e(0xc9)](_0x1ee7a1){const _0x21a296=a13_0x134b0e,_0x2c4e13={'mUeWg':_0x21a296(0xdb)},_0xb7e21=this[_0x21a296(0x8c)]();for(const _0x2fbd61 of _0xb7e21){const _0x58ecd9=this[_0x21a296(0xc1)](_0x2c4e13[_0x21a296(0xa9)])[_0x2fbd61],_0x49434d=_0x21a296(0xa7)+_0x2fbd61+_0x21a296(0xb4),_0x44082a=_0x58ecd9?_0x49434d:'';_0x1ee7a1=_0x1ee7a1[_0x21a296(0xd4)]('{{'+_0x2fbd61+'}}',_0x44082a);}return _0x1ee7a1;}async[a13_0x134b0e(0xf6)](_0x57ef6b){return null;}async[a13_0x134b0e(0xbe)](_0x12c8d9){const _0xfe1367=a13_0x134b0e,_0x5e5e59={'vjJMT':'pywXc','IYtue':_0xfe1367(0xf2)};let _0xaf9730;if(!_0x12c8d9)_0xaf9730=this[_0xfe1367(0xb1)](null);else{if(_0x5e5e59[_0xfe1367(0x7e)]!==_0x5e5e59[_0xfe1367(0xfd)])_0xaf9730=new message_util_1[(_0xfe1367(0xab))](this,_0x12c8d9);else{const _0x4985ad=this[_0xfe1367(0xe3)][_0xfe1367(0xe8)]()[_0xfe1367(0xd2)]();if(_0x4985ad[_0xfe1367(0xac)]('gemini'))return _0x2f45eb[_0xfe1367(0xdf)]['GEMINI'];if(_0x4985ad[_0xfe1367(0xac)](_0xfe1367(0x102)))return _0x51f185[_0xfe1367(0xdf)][_0xfe1367(0x10b)];return _0x28a921['LLMType']['UNSUPPORTED'];}}const _0x30b7a7=this[_0xfe1367(0x8c)]();for(const _0x4b2251 of _0x30b7a7){this[_0xfe1367(0xd0)]({'_stopTool':{[_0x4b2251]:!![]}});}const _0x5e3ef9=await llm_runner_1['LlmRunner']['send'](this[_0xfe1367(0x9b)],_0xaf9730);return _0x5e3ef9;}async[a13_0x134b0e(0x104)](_0x52b051,_0x10d333){const _0x5d4044=a13_0x134b0e,_0x2f7b65=await this[_0x5d4044(0x9b)][_0x5d4044(0xd5)](_0x52b051),_0x1a584f=await _0x2f7b65[_0x5d4044(0xbe)](_0x10d333);return await this['flow'][_0x5d4044(0xb2)](this[_0x5d4044(0x82)]),_0x1a584f;}['isEnd'](){const _0x50b384=a13_0x134b0e,_0x1bc4ad={'Ifvvr':function(_0x8d6a9c,_0x127dd5){return _0x8d6a9c===_0x127dd5;}};return _0x1bc4ad[_0x50b384(0x98)](this[_0x50b384(0x9b)][_0x50b384(0x95)]()['runStatus'],_0x50b384(0xb6));}[a13_0x134b0e(0x107)](_0x6a6e9b){const _0x525377=a13_0x134b0e,_0x46aedc={'PUdTv':function(_0x195bf2,_0x48260d){return _0x195bf2===_0x48260d;},'zIcCO':function(_0x1549e3,_0x36ec31){return _0x1549e3!==_0x36ec31;},'JlNcb':_0x525377(0xb7)};for(const _0x439ee7 of _0x6a6e9b){_0x46aedc[_0x525377(0x101)](_0x439ee7['name'],this[_0x525377(0x82)])&&(_0x439ee7[_0x525377(0xc6)]=this[_0x525377(0xc6)],_0x439ee7[_0x525377(0x9d)]=this[_0x525377(0x9d)],!this[_0x525377(0xe4)]()&&(_0x46aedc[_0x525377(0xd8)](_0x525377(0x9f),_0x46aedc[_0x525377(0x7c)])?(_0x439ee7[_0x525377(0xe3)]=this['modelName'],_0x439ee7[_0x525377(0x9a)]=this[_0x525377(0x9a)]):_0x190b5b&&(this[_0x525377(0x9d)]=(0x0,_0x4e88ed[_0x525377(0xbd)])(this[_0x525377(0x9d)],_0x50cd6a[_0x525377(0xfb)](_0x8ec6bd)[0x0]),this['state']=(0x0,_0x24fb31[_0x525377(0x105)])({},this[_0x525377(0x9d)],_0xdddd2a),this['state']=(0x0,_0x5d134f[_0x525377(0x105)])(this['state'],{'_saveOn':(0x0,_0x151d7e[_0x525377(0xe5)])()['toDate']()}))));}}['readDoc'](_0x50a790){const _0x569a2e=a13_0x134b0e,_0x35a92f={'vFJZB':function(_0x34f626,_0x2d0be3){return _0x34f626*_0x2d0be3;},'GbMsq':function(_0x3a75db,_0x369d91){return _0x3a75db+_0x369d91;},'YAAJs':function(_0x5ee68f,_0x75c429){return _0x5ee68f-_0x75c429;},'goszo':function(_0x43a4fe,_0x49e257){return _0x43a4fe===_0x49e257;},'bUyxJ':_0x569a2e(0xfc)};for(const _0x45570b of _0x50a790){if(_0x35a92f[_0x569a2e(0xf5)](_0x45570b['name'],this['name'])){if(_0x569a2e(0xfc)===_0x35a92f[_0x569a2e(0x8e)])this[_0x569a2e(0xc6)]=_0x45570b['isActive'],this[_0x569a2e(0x9d)]=_0x45570b['state'];else{const _0x147b27=0x3b9aca00,_0x238f46=0x2540be3ff;return _0x4ad2a7[_0x569a2e(0xa1)](_0x35a92f[_0x569a2e(0xa4)](_0x44e20f['random'](),_0x35a92f[_0x569a2e(0xa5)](_0x35a92f[_0x569a2e(0xc3)](_0x238f46,_0x147b27),0x1)))+_0x147b27;}}}}[a13_0x134b0e(0x8b)](){const _0x50ef03=a13_0x134b0e;return{'name':this['name'],'isActive':this[_0x50ef03(0xc6)],'state':this[_0x50ef03(0x9d)]};}[a13_0x134b0e(0xce)](){const _0x428408=a13_0x134b0e,_0x288d22=this[_0x428408(0x9b)][_0x428408(0x92)](this['memorySpace']);return _0x288d22[_0x428408(0xc8)]=0x0,_0x288d22;}async['callStepTool'](_0xe231b1,_0x3cf620){const _0x1aa0b3=a13_0x134b0e,_0x2a6d55={'fCnGx':function(_0x3233f2,_0x2a976b){return _0x3233f2===_0x2a976b;},'HKuAY':'function','uTVTl':function(_0x4eb0fc,_0x24581c){return _0x4eb0fc!==_0x24581c;},'iJlOM':_0x1aa0b3(0xee)},_0x13c9f3=this[_0x1aa0b3(0x9b)][_0x1aa0b3(0x90)](_0xe231b1[_0x1aa0b3(0x82)]);if(_0x2a6d55['fCnGx'](typeof this[_0x3cf620[_0x1aa0b3(0x82)]],_0x2a6d55[_0x1aa0b3(0xb9)])){if(_0x2a6d55[_0x1aa0b3(0x94)](_0x2a6d55[_0x1aa0b3(0x7d)],_0x2a6d55[_0x1aa0b3(0x7d)]))for(const _0x4f5837 of _0x334f04){_0x4f5837[_0x1aa0b3(0x82)]===this[_0x1aa0b3(0x82)]&&(this[_0x1aa0b3(0xc6)]=_0x4f5837[_0x1aa0b3(0xc6)],this['state']=_0x4f5837[_0x1aa0b3(0x9d)]);}else return await _0x13c9f3[_0x3cf620[_0x1aa0b3(0x82)]](_0x3cf620);}else return _0xe231b1;}[a13_0x134b0e(0xbc)](_0x254ba6){const _0x18758e=a13_0x134b0e,_0x50e7b6={'aeGhY':function(_0x3d5fee,_0x20c7e7){return _0x3d5fee!==_0x20c7e7;},'jsyal':_0x18758e(0xec)},_0x115800=this['getStopTool']();for(const _0x3af090 of _0x115800){if(_0x50e7b6['aeGhY'](_0x18758e(0xe2),'YAiTI'))this[_0x18758e(0xd0)]({'_stopTool':{[_0x3af090]:![]}});else return _0x24fb8a;}return _0x254ba6[_0x18758e(0xdc)][_0x50e7b6[_0x18758e(0xdd)]]=!![],_0x254ba6;}[a13_0x134b0e(0xe0)](){const _0x12e381=a13_0x134b0e;return this[_0x12e381(0x82)]+'|'+moment_1['default']['utc']()['format'](_0x12e381(0x89))+'|'+this['random10Digits']();}[a13_0x134b0e(0x97)](){const _0x463f9c=a13_0x134b0e,_0x180395={'pwJsH':function(_0x183566,_0x1ad565){return _0x183566+_0x1ad565;}},_0x90f9a3=0x3b9aca00,_0x123cda=0x2540be3ff;return _0x180395[_0x463f9c(0xd1)](Math[_0x463f9c(0xa1)](Math[_0x463f9c(0xff)]()*(_0x123cda-_0x90f9a3+0x1)),_0x90f9a3);}[a13_0x134b0e(0x86)](){const _0x201343=a13_0x134b0e,_0x134f3f={'FKRts':_0x201343(0xef),'SixeZ':function(_0x1cb825,_0x5d0e6b){return _0x1cb825!==_0x5d0e6b;},'EOdtX':_0x201343(0x88),'RUPUK':_0x201343(0xa8),'jRuoY':_0x201343(0x102)},_0x41b7bb=this[_0x201343(0xe3)][_0x201343(0xe8)]()[_0x201343(0xd2)]();if(_0x41b7bb[_0x201343(0xac)](_0x134f3f['FKRts'])){if(_0x134f3f['SixeZ'](_0x134f3f[_0x201343(0xb5)],_0x134f3f[_0x201343(0x100)]))return llm_file_js_1[_0x201343(0xdf)][_0x201343(0xf3)];else this[_0x201343(0xd6)]=_0x313003;}if(_0x41b7bb[_0x201343(0xac)](_0x134f3f[_0x201343(0x96)]))return llm_file_js_1[_0x201343(0xdf)][_0x201343(0x10b)];return llm_file_js_1[_0x201343(0xdf)]['UNSUPPORTED'];}[a13_0x134b0e(0xbb)](){return null;}}exports[a13_0x134b0e(0xca)]=Step;
1
+ const a13_0x8fc229=a13_0xd63e;(function(_0x53b0db,_0x57a9e6){const _0x50bed8=a13_0xd63e,_0xeb9bd8=_0x53b0db();while(!![]){try{const _0x1347e6=parseInt(_0x50bed8(0x1dd))/0x1*(parseInt(_0x50bed8(0x194))/0x2)+parseInt(_0x50bed8(0x1ed))/0x3+-parseInt(_0x50bed8(0x198))/0x4*(-parseInt(_0x50bed8(0x197))/0x5)+-parseInt(_0x50bed8(0x1f8))/0x6*(parseInt(_0x50bed8(0x18b))/0x7)+parseInt(_0x50bed8(0x19e))/0x8+parseInt(_0x50bed8(0x19c))/0x9+-parseInt(_0x50bed8(0x1e3))/0xa*(parseInt(_0x50bed8(0x1a0))/0xb);if(_0x1347e6===_0x57a9e6)break;else _0xeb9bd8['push'](_0xeb9bd8['shift']());}catch(_0x5a7065){_0xeb9bd8['push'](_0xeb9bd8['shift']());}}}(a13_0x7982,0x8b125));const a13_0x523b49=(function(){const _0x587512=a13_0xd63e,_0x272c96={'kzmgo':function(_0x2e72eb,_0x342011){return _0x2e72eb===_0x342011;},'JxyrL':function(_0x1f7f85,_0x5e7129){return _0x1f7f85===_0x5e7129;},'qMbfx':_0x587512(0x1ac),'YLNaz':_0x587512(0x1d3)};let _0x13ac21=!![];return function(_0x57584f,_0x1afb8b){const _0x15c126=_0x587512,_0x516c88={'hJQfB':function(_0x24b514,_0x31f96f){const _0x74682d=a13_0xd63e;return _0x272c96[_0x74682d(0x1b2)](_0x24b514,_0x31f96f);}};if(_0x272c96[_0x15c126(0x1e9)](_0x272c96[_0x15c126(0x1bf)],_0x272c96[_0x15c126(0x1f2)]))this[_0x15c126(0x1b8)]();else{const _0x220c92=_0x13ac21?function(){const _0x1fac67=_0x15c126;if(_0x1afb8b){if(_0x516c88[_0x1fac67(0x1ae)](_0x1fac67(0x18e),_0x1fac67(0x17a)))this[_0x1fac67(0x188)]();else{const _0xed2740=_0x1afb8b[_0x1fac67(0x1c7)](_0x57584f,arguments);return _0x1afb8b=null,_0xed2740;}}}:function(){};return _0x13ac21=![],_0x220c92;}};}()),a13_0xa61b41=a13_0x523b49(this,function(){const _0x4af009=a13_0xd63e,_0x1a19b7={'weTPS':_0x4af009(0x187)};return a13_0xa61b41[_0x4af009(0x1b5)]()['search'](_0x1a19b7[_0x4af009(0x205)])[_0x4af009(0x1b5)]()[_0x4af009(0x182)](a13_0xa61b41)[_0x4af009(0x1c2)](_0x1a19b7['weTPS']);});a13_0xa61b41();'use strict';var __importDefault=this&&this[a13_0x8fc229(0x1dc)]||function(_0x47dfe8){const _0x11360b=a13_0x8fc229;return _0x47dfe8&&_0x47dfe8[_0x11360b(0x1d9)]?_0x47dfe8:{'default':_0x47dfe8};};Object[a13_0x8fc229(0x1df)](exports,'__esModule',{'value':!![]}),exports['Step']=void 0x0;const lodash_1=require(a13_0x8fc229(0x18c)),moment_1=__importDefault(require(a13_0x8fc229(0x1cf))),messages_1=require('@langchain/core/messages'),llm_runner_1=require(a13_0x8fc229(0x1d8)),message_util_1=require(a13_0x8fc229(0x1f0)),content_type_1=require('./content-type'),llm_file_js_1=require('../utils/llm-file.js');class Step{constructor(_0x1c619a,_0x45311f,_0x1541be=![]){const _0x99b766=a13_0x8fc229,_0x257909=_0x99b766(0x1b7)[_0x99b766(0x1a7)]('|');let _0x35c648=0x0;while(!![]){switch(_0x257909[_0x35c648++]){case'0':this['name']=_0x1c619a[_0x99b766(0x1bc)];continue;case'1':this[_0x99b766(0x1f5)]={};continue;case'2':this['temperature']=-0x1;continue;case'3':this[_0x99b766(0x1f3)]=undefined;continue;case'4':this[_0x99b766(0x1e1)]=_0x1541be;continue;case'5':this[_0x99b766(0x1e1)]=![];continue;case'6':this[_0x99b766(0x186)]=_0x1c619a[_0x99b766(0x1bc)];continue;case'7':this[_0x99b766(0x1be)]=_0x45311f;continue;case'8':this[_0x99b766(0x17d)]=content_type_1[_0x99b766(0x1a1)][_0x99b766(0x189)];continue;}break;}}['getName'](){const _0x3e3a99=a13_0x8fc229;return this[_0x3e3a99(0x1bc)];}[a13_0x8fc229(0x1b8)](){}[a13_0x8fc229(0x188)](){}['onResponse'](_0x1998b4){return _0x1998b4;}get[a13_0x8fc229(0x1de)](){const _0xee36c4=a13_0x8fc229;return this[_0xee36c4(0x1e1)];}[a13_0x8fc229(0x1ab)](){return![];}set[a13_0x8fc229(0x1de)](_0x5d7292){const _0x329142=a13_0x8fc229;!this[_0x329142(0x1e1)]&&_0x5d7292&&this[_0x329142(0x1b8)](),this[_0x329142(0x1e1)]&&!_0x5d7292&&this['onExit'](),this[_0x329142(0x1e1)]=_0x5d7292;}[a13_0x8fc229(0x179)](){const _0x354058=a13_0x8fc229;return this[_0x354058(0x1af)];}[a13_0x8fc229(0x17e)](_0x1cff0e){return this['temperature']=_0x1cff0e,this;}get[a13_0x8fc229(0x171)](){return this['ctType'];}set[a13_0x8fc229(0x171)](_0x5afa24){const _0x57fbf3=a13_0x8fc229;this[_0x57fbf3(0x17d)]=_0x5afa24;}['getState'](_0x439ea6){const _0x3c882d=a13_0x8fc229;if(_0x439ea6)return(0x0,lodash_1[_0x3c882d(0x170)])(this[_0x3c882d(0x1f5)],_0x439ea6);return this[_0x3c882d(0x1f5)];}[a13_0x8fc229(0x177)](_0x46ba8f){const _0xa907b3=a13_0x8fc229;if(_0x46ba8f)return(0x0,lodash_1[_0xa907b3(0x170)])(this[_0xa907b3(0x1f5)],_0x46ba8f);return this[_0xa907b3(0x1f5)];}[a13_0x8fc229(0x17c)](_0x46b39c){const _0x7be8d9=a13_0x8fc229;_0x46b39c&&(this[_0x7be8d9(0x1f5)]=(0x0,lodash_1[_0x7be8d9(0x185)])(this[_0x7be8d9(0x1f5)],Object[_0x7be8d9(0x1c4)](_0x46b39c)[0x0]),this[_0x7be8d9(0x1f5)]=(0x0,lodash_1[_0x7be8d9(0x19a)])({},this[_0x7be8d9(0x1f5)],_0x46b39c),this[_0x7be8d9(0x1f5)]=(0x0,lodash_1[_0x7be8d9(0x19a)])(this[_0x7be8d9(0x1f5)],{'_saveOn':(0x0,moment_1['default'])()[_0x7be8d9(0x1aa)]()}));}[a13_0x8fc229(0x19d)](_0x4a9100){const _0x20ef45=a13_0x8fc229;_0x4a9100&&(this['state']=(0x0,lodash_1[_0x20ef45(0x19a)])({},this[_0x20ef45(0x1f5)],_0x4a9100),this[_0x20ef45(0x1f5)]=(0x0,lodash_1['merge'])(this[_0x20ef45(0x1f5)],{'_saveOn':(0x0,moment_1[_0x20ef45(0x1bd)])()[_0x20ef45(0x1aa)]()}));}[a13_0x8fc229(0x1ce)](){const _0x382cec=a13_0x8fc229,_0x16bd26={'kFRSf':'completed'},_0x52a94d=this[_0x382cec(0x1be)]['getSessionDoc']();_0x52a94d['runStatus']=_0x16bd26[_0x382cec(0x199)];}[a13_0x8fc229(0x17f)](_0x3e5261){const _0x2c5463=a13_0x8fc229;return this[_0x2c5463(0x1be)]['getContext'](_0x3e5261);}[a13_0x8fc229(0x1c9)](_0x2e2c5b){const _0x2bf2c8=a13_0x8fc229;this['state']=(0x0,lodash_1[_0x2bf2c8(0x185)])(this[_0x2bf2c8(0x1f5)],_0x2e2c5b);}['getPrompt'](){const _0x1b3290=a13_0x8fc229,_0x2d3a68={'FWqGP':_0x1b3290(0x184)},_0xc1f4a5=this[_0x1b3290(0x1ad)](_0x2d3a68[_0x1b3290(0x1f7)]);return _0xc1f4a5?_0xc1f4a5['toString']():null;}['onCrossing'](_0x4e7860,_0x5f478e){const _0x158364=a13_0x8fc229,_0x5c3960={'ePOYW':function(_0x26bdc6,_0x1b5565){return _0x26bdc6+_0x1b5565;},'DBfOi':function(_0x2d6f9e,_0x315094){return _0x2d6f9e===_0x315094;},'cCXFK':function(_0x49905d,_0x5a2d0b){return _0x49905d===_0x5a2d0b;},'rfXcU':_0x158364(0x1db),'gaiIa':'iHZRt','FJGgL':_0x158364(0x1fe)};if(!_0x4e7860){const _0x5041f2=this[_0x158364(0x17b)]();if(_0x5c3960['DBfOi'](_0x5041f2['length'],0x1)){if(_0x5c3960['cCXFK'](_0x5c3960['rfXcU'],_0x5c3960[_0x158364(0x1ff)])){const _0x2dee23=0x3b9aca00,_0x392def=0x2540be3ff;return _0x5c3960[_0x158364(0x1f9)](_0x14329c[_0x158364(0x18d)](_0x41c188[_0x158364(0x183)]()*(_0x392def-_0x2dee23+0x1)),_0x2dee23);}else _0x4e7860=new message_util_1[(_0x158364(0x16d))](this,_0x5c3960['FJGgL']);}}return _0x4e7860;}[a13_0x8fc229(0x17b)](){const _0x21b994=a13_0x8fc229,_0x5f538c={'mDGxZ':function(_0x5cd4fc,_0x101665){return _0x5cd4fc===_0x101665;}},_0x405d0b=this['flow'][_0x21b994(0x17b)](this['memorySpace']);return _0x5f538c['mDGxZ'](_0x405d0b[_0x21b994(0x1e0)],0x0)&&_0x405d0b[_0x21b994(0x1ee)](new messages_1[(_0x21b994(0x1a6))]({'content':'','id':this['genMessageId']()})),_0x405d0b;}[a13_0x8fc229(0x1f4)](){const _0x3ec175=a13_0x8fc229,_0x450a6b={'ypCpu':function(_0x7586b,_0x19b494){return _0x7586b>_0x19b494;},'YeSQA':function(_0x48cd62,_0x484608){return _0x48cd62-_0x484608;}},_0x197a3d=this[_0x3ec175(0x1be)][_0x3ec175(0x17b)](this['memorySpace']);if(_0x450a6b[_0x3ec175(0x1ea)](_0x197a3d[_0x3ec175(0x1e0)],0x0))return _0x197a3d[_0x450a6b[_0x3ec175(0x204)](_0x197a3d[_0x3ec175(0x1e0)],0x1)];return null;}[a13_0x8fc229(0x1a8)](_0x49724b){return this['memorySpace']=_0x49724b,this;}[a13_0x8fc229(0x19f)](_0x960067){return this['modelName']=_0x960067,this;}[a13_0x8fc229(0x180)](){const _0x25265f=a13_0x8fc229;return this[_0x25265f(0x1f3)];}['defineTool'](){return null;}[a13_0x8fc229(0x1f6)](_0x584640){const _0x579168=a13_0x8fc229;for(const _0x3b580b of this[_0x579168(0x1a5)]()){if(_0x3b580b===_0x584640)return!![];}return![];}[a13_0x8fc229(0x1a5)](){return[];}['getStopTool'](){return[];}['obtainTools'](){const _0x5df429=a13_0x8fc229,_0x2b6f2f={'oMAHF':function(_0x25ea6d,_0x48283f){return _0x25ea6d===_0x48283f;},'NTGDj':_0x5df429(0x1f1),'LHOxU':_0x5df429(0x173)},_0x160e96=this[_0x5df429(0x1a5)]();return _0x160e96['map'](_0x57b6ae=>{const _0x216b15=_0x5df429;return _0x2b6f2f['oMAHF'](_0x2b6f2f[_0x216b15(0x172)],_0x2b6f2f['LHOxU'])?this[_0x216b15(0x1be)][_0x216b15(0x1ef)]()[_0x216b15(0x16e)]===_0x216b15(0x203):this[_0x216b15(0x1be)][_0x216b15(0x1a5)](_0x57b6ae);});}[a13_0x8fc229(0x1c1)](_0x9196c5){const _0x20ff8a=a13_0x8fc229,_0x3c1ba2={'qhDJI':_0x20ff8a(0x191)},_0x465036=this[_0x20ff8a(0x201)]();for(const _0xf4241c of _0x465036){const _0x476d42=this[_0x20ff8a(0x1ad)](_0x3c1ba2[_0x20ff8a(0x18f)])[_0xf4241c],_0x3a9e0a=_0x20ff8a(0x192)+_0xf4241c+_0x20ff8a(0x1fc),_0x34b8de=_0x476d42?_0x3a9e0a:'';_0x9196c5=_0x9196c5[_0x20ff8a(0x1e7)]('{{'+_0xf4241c+'}}',_0x34b8de);}return _0x9196c5;}async[a13_0x8fc229(0x202)](_0x28ebca){return null;}async[a13_0x8fc229(0x1d4)](_0x23bea9){const _0x224c3d=a13_0x8fc229,_0x5b3b8={'kFHON':_0x224c3d(0x1ca)};let _0x45e352;!_0x23bea9?_0x45e352=this[_0x224c3d(0x1cb)](null):_0x5b3b8[_0x224c3d(0x1fa)]!==_0x224c3d(0x1ca)?this[_0x224c3d(0x17c)]({'_stopTool':{[_0x4e1524]:!![]}}):_0x45e352=new message_util_1['HumanMessageEx'](this,_0x23bea9);const _0x8efb75=this['getStopTool']();for(const _0x2348fc of _0x8efb75){this[_0x224c3d(0x17c)]({'_stopTool':{[_0x2348fc]:!![]}});}const _0x47f1b2=await llm_runner_1[_0x224c3d(0x1cc)][_0x224c3d(0x1da)](this[_0x224c3d(0x1be)],_0x45e352);return _0x47f1b2;}async[a13_0x8fc229(0x176)](_0xdfe631,_0x4a52de){const _0xe22cb1=a13_0x8fc229,_0x28304d=await this['flow']['activate'](_0xdfe631),_0x57f9fb=await _0x28304d[_0xe22cb1(0x1d4)](_0x4a52de);return await this['flow'][_0xe22cb1(0x1b3)](this['name']),_0x57f9fb;}[a13_0x8fc229(0x196)](){const _0x4862d9=a13_0x8fc229,_0x1ab2ad={'lSBOO':function(_0x2b8f89,_0x5ee996){return _0x2b8f89===_0x5ee996;},'AitDZ':_0x4862d9(0x203)};return _0x1ab2ad[_0x4862d9(0x1ba)](this[_0x4862d9(0x1be)][_0x4862d9(0x1ef)]()[_0x4862d9(0x16e)],_0x1ab2ad[_0x4862d9(0x1eb)]);}[a13_0x8fc229(0x1a3)](_0x1c2346){const _0x3c2bf7=a13_0x8fc229,_0x3939a4={'BLOgl':function(_0x42fe38,_0x4a8cb4){return _0x42fe38===_0x4a8cb4;},'pBzQv':function(_0x4fc8de,_0x132c24){return _0x4fc8de===_0x132c24;},'BpOsb':'vUkTR'};for(const _0x3a97ff of _0x1c2346){_0x3939a4[_0x3c2bf7(0x16f)](_0x3a97ff[_0x3c2bf7(0x1bc)],this[_0x3c2bf7(0x1bc)])&&(_0x3a97ff[_0x3c2bf7(0x1e1)]=this[_0x3c2bf7(0x1e1)],_0x3a97ff[_0x3c2bf7(0x1f5)]=this['state'],!this[_0x3c2bf7(0x1ab)]()&&(_0x3939a4['pBzQv'](_0x3939a4[_0x3c2bf7(0x1d5)],'vUkTR')?(_0x3a97ff[_0x3c2bf7(0x1f3)]=this['modelName'],_0x3a97ff['temperature']=this[_0x3c2bf7(0x1af)]):_0x118541&&(this[_0x3c2bf7(0x1f5)]=(0x0,_0x3ddf2e[_0x3c2bf7(0x185)])(this['state'],_0x23bba2[_0x3c2bf7(0x1c4)](_0x4c753f)[0x0]),this['state']=(0x0,_0x2e873a[_0x3c2bf7(0x19a)])({},this['state'],_0x2f264b),this['state']=(0x0,_0x1ac6fa['merge'])(this[_0x3c2bf7(0x1f5)],{'_saveOn':(0x0,_0x50c707[_0x3c2bf7(0x1bd)])()[_0x3c2bf7(0x1aa)]()}))));}}[a13_0x8fc229(0x1c6)](_0x2e94d2){const _0x16cc29=a13_0x8fc229;for(const _0x542b69 of _0x2e94d2){_0x542b69[_0x16cc29(0x1bc)]===this[_0x16cc29(0x1bc)]&&(this[_0x16cc29(0x1e1)]=_0x542b69['isActive'],this[_0x16cc29(0x1f5)]=_0x542b69[_0x16cc29(0x1f5)]);}}[a13_0x8fc229(0x18a)](){const _0x4718cb=a13_0x8fc229;return{'name':this[_0x4718cb(0x1bc)],'isActive':this[_0x4718cb(0x1e1)],'state':this[_0x4718cb(0x1f5)]};}[a13_0x8fc229(0x1e8)](){const _0x12e9ea=a13_0x8fc229,_0x112f70=this[_0x12e9ea(0x1be)][_0x12e9ea(0x17b)](this[_0x12e9ea(0x186)]);return _0x112f70[_0x12e9ea(0x1e0)]=0x0,_0x112f70;}async[a13_0x8fc229(0x1b6)](_0x347d80,_0x2a0332){const _0x1caf6f=a13_0x8fc229,_0x2dfe6f={'JgAUT':function(_0x573760,_0x12cf46){return _0x573760===_0x12cf46;},'CGBEF':_0x1caf6f(0x1d1),'yaawv':function(_0x58b81e,_0x212e85){return _0x58b81e!==_0x212e85;},'KuNux':_0x1caf6f(0x1cd)},_0x2d85e0=this[_0x1caf6f(0x1be)]['getStep'](_0x347d80['name']);if(_0x2dfe6f['JgAUT'](typeof this[_0x2a0332[_0x1caf6f(0x1bc)]],_0x2dfe6f[_0x1caf6f(0x1d2)]))return await _0x2d85e0[_0x2a0332['name']](_0x2a0332);else{if(_0x2dfe6f[_0x1caf6f(0x1e5)](_0x2dfe6f['KuNux'],_0x1caf6f(0x174)))return _0x347d80;else this[_0x1caf6f(0x1f5)]=(0x0,_0x175cf['omit'])(this['state'],_0x395657);}}['setStopTool'](_0x2ab006){const _0x4ed63e=a13_0x8fc229,_0x7ded35={'SgNPI':_0x4ed63e(0x178),'iFZbH':function(_0x410ff9,_0x4d2382){return _0x410ff9===_0x4d2382;},'dBpfp':_0x4ed63e(0x1e4)},_0x37269e=this[_0x4ed63e(0x201)]();for(const _0x2bbfd6 of _0x37269e){if(_0x7ded35['iFZbH']('lRKje','ASFNt'))return this[_0x4ed63e(0x1bc)]+'|'+_0x37912a[_0x4ed63e(0x1bd)][_0x4ed63e(0x1a9)]()[_0x4ed63e(0x1b1)](_0x7ded35[_0x4ed63e(0x1d6)])+'|'+this[_0x4ed63e(0x1ec)]();else this[_0x4ed63e(0x17c)]({'_stopTool':{[_0x2bbfd6]:![]}});}return _0x2ab006[_0x4ed63e(0x1c3)][_0x7ded35[_0x4ed63e(0x195)]]=!![],_0x2ab006;}['genMessageId'](){const _0x2d02f6=a13_0x8fc229,_0x4eee10={'NMuBF':'YYYY-MM-DDTHH:mm:ss.SSS[Z]'};return this[_0x2d02f6(0x1bc)]+'|'+moment_1[_0x2d02f6(0x1bd)][_0x2d02f6(0x1a9)]()[_0x2d02f6(0x1b1)](_0x4eee10[_0x2d02f6(0x1e2)])+'|'+this[_0x2d02f6(0x1ec)]();}['random10Digits'](){const _0x55b0e8=a13_0x8fc229,_0xc18b58={'yRtqU':function(_0x58cc2f,_0x46ac7d){return _0x58cc2f+_0x46ac7d;},'rXxew':function(_0x3f27e5,_0x227d2f){return _0x3f27e5-_0x227d2f;}},_0x566ff8=0x3b9aca00,_0x1e5287=0x2540be3ff;return _0xc18b58['yRtqU'](Math[_0x55b0e8(0x18d)](Math[_0x55b0e8(0x183)]()*_0xc18b58[_0x55b0e8(0x1b4)](_0xc18b58[_0x55b0e8(0x181)](_0x1e5287,_0x566ff8),0x1)),_0x566ff8);}[a13_0x8fc229(0x1c5)](){const _0x384e9c=a13_0x8fc229,_0x2017ed={'BQYYU':function(_0x505f85,_0x51ea88){return _0x505f85===_0x51ea88;},'Horia':function(_0x461473,_0x1f18aa){return _0x461473!==_0x1f18aa;},'ZIPXw':'LRZOZ','JUjZX':_0x384e9c(0x1a4),'TrEDU':function(_0x146832,_0x27b573){return _0x146832===_0x27b573;},'UGXys':'xQsEa'},_0xa7bc61=this[_0x384e9c(0x1f3)][_0x384e9c(0x190)]()[_0x384e9c(0x200)]();if(_0xa7bc61[_0x384e9c(0x1b9)](_0x384e9c(0x1c0))){if(_0x2017ed[_0x384e9c(0x1a2)](_0x2017ed[_0x384e9c(0x19b)],'LPMAV'))return llm_file_js_1[_0x384e9c(0x175)][_0x384e9c(0x1e6)];else this[_0x384e9c(0x17c)]({'_stopTool':{[_0x256a6b]:![]}});}if(_0xa7bc61[_0x384e9c(0x1b9)](_0x2017ed[_0x384e9c(0x1bb)])){if(_0x2017ed[_0x384e9c(0x1c8)](_0x2017ed[_0x384e9c(0x1fb)],_0x2017ed[_0x384e9c(0x1fb)]))return llm_file_js_1[_0x384e9c(0x175)][_0x384e9c(0x1d0)];else _0x2017ed[_0x384e9c(0x193)](_0x28218c['name'],this[_0x384e9c(0x1bc)])&&(this[_0x384e9c(0x1e1)]=_0x229142[_0x384e9c(0x1e1)],this[_0x384e9c(0x1f5)]=_0x23db60[_0x384e9c(0x1f5)]);}return llm_file_js_1[_0x384e9c(0x175)][_0x384e9c(0x1fd)];}[a13_0x8fc229(0x1b0)](){return null;}}function a13_0xd63e(_0x1e4f13,_0x3d47e8){const _0x21b1c1=a13_0x7982();return a13_0xd63e=function(_0xa61b41,_0x523b49){_0xa61b41=_0xa61b41-0x16d;let _0x798297=_0x21b1c1[_0xa61b41];return _0x798297;},a13_0xd63e(_0x1e4f13,_0x3d47e8);}exports[a13_0x8fc229(0x1d7)]=Step;function a13_0x7982(){const _0xa7bd01=['constructor','random','_prompt','omit','memorySpace','(((.+)+)+)+$','onExit','Plain','createDoc','22211gaUJYA','lodash','floor','CUGmZ','qhDJI','trim','_stopTool','**Important:**\x20After\x20collecting\x20data,\x20call\x20tool\x20','BQYYU','10bmrcKN','dBpfp','isEnd','5BGFihm','381732BMdGdN','kFRSf','merge','ZIPXw','9982719UiTKpo','mergeState','8361640AGPrPw','useModel','55gkPdnN','HttpContentType','Horia','writeDoc','gpt','getTool','SystemMessage','split','useMemory','utc','toDate','isLogic','hReAb','getState','hJQfB','temperature','structOutputSchema','format','kzmgo','activateByName','yRtqU','toString','callStepTool','5|1|3|8|2|0|7|4|6','onEnter','startsWith','lSBOO','JUjZX','name','default','flow','qMbfx','gemini','amendTool','search','additional_kwargs','keys','getLLMType','readDoc','apply','TrEDU','removeState','itKxC','onCrossing','LlmRunner','ILLwb','sessionCompleted','moment','OPENAI','function','CGBEF','Cjchn','run','BpOsb','SgNPI','Step','./llm-runner','__esModule','send','wIGgr','__importDefault','72214haLPRe','active','defineProperty','length','isActive','NMuBF','2208070OXrxzX','stopTool','yaawv','GEMINI','replace','eraseMemory','JxyrL','ypCpu','AitDZ','random10Digits','158247ygPvoc','push','getSessionDoc','../utils/message-util','LWIUy','YLNaz','modelName','getLastMessage','state','isToolAvailable','FWqGP','1872mYHdyp','ePOYW','kFHON','UGXys','\x20to\x20ensure\x20the\x20tool\x20is\x20triggered.','UNSUPPORTED','Start','gaiIa','toLowerCase','getStopTool','invokeTool','completed','YeSQA','weTPS','HumanMessageEx','runStatus','BLOgl','get','contentType','NTGDj','QsKXp','dcUCz','LLMType','runStep','getStateAs','YYYY-MM-DDTHH:mm:ss.SSS[Z]','getTemperature','OSNaa','getMemory','saveState','ctType','setTemperature','getContext','getModel','rXxew'];a13_0x7982=function(){return _0xa7bd01;};return a13_0x7982();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picoflow/core",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "PicoFlow - Agentic Flow Framework",
5
5
  "author": "picoflow.io LLC",
6
6
  "license": "Proprietarily Licensed",
@@ -1 +1 @@
1
- const a14_0xca496=a14_0x2701;(function(_0x5f1103,_0x4dd5e3){const _0x134848=a14_0x2701,_0x41172e=_0x5f1103();while(!![]){try{const _0x304e57=-parseInt(_0x134848(0xb6))/0x1+-parseInt(_0x134848(0xc1))/0x2*(parseInt(_0x134848(0xb0))/0x3)+parseInt(_0x134848(0xb5))/0x4+parseInt(_0x134848(0xbe))/0x5*(-parseInt(_0x134848(0xc2))/0x6)+-parseInt(_0x134848(0xc0))/0x7+-parseInt(_0x134848(0xb4))/0x8*(parseInt(_0x134848(0xb9))/0x9)+-parseInt(_0x134848(0xba))/0xa*(-parseInt(_0x134848(0xbc))/0xb);if(_0x304e57===_0x4dd5e3)break;else _0x41172e['push'](_0x41172e['shift']());}catch(_0x2bbbaf){_0x41172e['push'](_0x41172e['shift']());}}}(a14_0x1465,0x1d020));const a14_0x5e0a5a=(function(){let _0x3cad2b=!![];return function(_0x249f40,_0x87e93){const _0x526d31=_0x3cad2b?function(){if(_0x87e93){const _0x166573=_0x87e93['apply'](_0x249f40,arguments);return _0x87e93=null,_0x166573;}}:function(){};return _0x3cad2b=![],_0x526d31;};}()),a14_0xaec09e=a14_0x5e0a5a(this,function(){const _0xbaeef0=a14_0x2701,_0x53d894={'tLtIV':_0xbaeef0(0xbf)};return a14_0xaec09e['toString']()[_0xbaeef0(0xb3)](_0x53d894[_0xbaeef0(0xb1)])[_0xbaeef0(0xb2)]()['constructor'](a14_0xaec09e)[_0xbaeef0(0xb3)](_0xbaeef0(0xbf));});function a14_0x2701(_0x55086a,_0x5be7fc){const _0x30347e=a14_0x1465();return a14_0x2701=function(_0xaec09e,_0x5e0a5a){_0xaec09e=_0xaec09e-0xb0;let _0x14650d=_0x30347e[_0xaec09e];return _0x14650d;},a14_0x2701(_0x55086a,_0x5be7fc);}a14_0xaec09e();'use strict';Object['defineProperty'](exports,a14_0xca496(0xc5),{'value':!![]}),exports[a14_0xca496(0xbd)]=void 0x0;const prompt_util_1=require(a14_0xca496(0xc3));function a14_0x1465(){const _0x48edbe=['search','26992qgjOFN','443960EkYkzX','233800Vlnwbq','endchat.md','Prompt','279OSCAhd','1490gMHiAO','EndChat','66286hTWeZz','FlowPrompt','320RsGbrh','(((.+)+)+)+$','1462601ThUOrl','2WsjGgf','11958UKAfme','./prompt-util','file','__esModule','645477YjmzHS','tLtIV','toString'];a14_0x1465=function(){return _0x48edbe;};return a14_0x1465();}class FlowPrompt{}exports[a14_0xca496(0xbd)]=FlowPrompt,FlowPrompt[a14_0xca496(0xbb)]=prompt_util_1[a14_0xca496(0xb8)][a14_0xca496(0xc4)](a14_0xca496(0xb7));
1
+ function a14_0x7da9(_0x37ec8e,_0x48f662){const _0x403ef3=a14_0x3acc();return a14_0x7da9=function(_0x1cbc17,_0x25bbec){_0x1cbc17=_0x1cbc17-0x1a7;let _0x3acc2f=_0x403ef3[_0x1cbc17];return _0x3acc2f;},a14_0x7da9(_0x37ec8e,_0x48f662);}const a14_0xf71366=a14_0x7da9;(function(_0x157a32,_0x17e3b1){const _0x2a6fa=a14_0x7da9,_0x5df884=_0x157a32();while(!![]){try{const _0x486df1=-parseInt(_0x2a6fa(0x1a8))/0x1+-parseInt(_0x2a6fa(0x1b6))/0x2+-parseInt(_0x2a6fa(0x1b9))/0x3+-parseInt(_0x2a6fa(0x1ac))/0x4+-parseInt(_0x2a6fa(0x1ae))/0x5*(-parseInt(_0x2a6fa(0x1b1))/0x6)+-parseInt(_0x2a6fa(0x1a7))/0x7+-parseInt(_0x2a6fa(0x1b7))/0x8*(-parseInt(_0x2a6fa(0x1af))/0x9);if(_0x486df1===_0x17e3b1)break;else _0x5df884['push'](_0x5df884['shift']());}catch(_0x2db2a3){_0x5df884['push'](_0x5df884['shift']());}}}(a14_0x3acc,0x696f1));const a14_0x25bbec=(function(){let _0x28dbe7=!![];return function(_0x46484f,_0x5170ef){const _0x871500=_0x28dbe7?function(){const _0x5af8ad=a14_0x7da9;if(_0x5170ef){const _0x23e466=_0x5170ef[_0x5af8ad(0x1b0)](_0x46484f,arguments);return _0x5170ef=null,_0x23e466;}}:function(){};return _0x28dbe7=![],_0x871500;};}()),a14_0x1cbc17=a14_0x25bbec(this,function(){const _0x43d687=a14_0x7da9,_0x5b9eb9={'vftRP':_0x43d687(0x1aa)};return a14_0x1cbc17['toString']()[_0x43d687(0x1b5)](_0x5b9eb9['vftRP'])[_0x43d687(0x1ba)]()[_0x43d687(0x1b8)](a14_0x1cbc17)[_0x43d687(0x1b5)](_0x5b9eb9['vftRP']);});a14_0x1cbc17();'use strict';Object['defineProperty'](exports,a14_0xf71366(0x1ad),{'value':!![]}),exports[a14_0xf71366(0x1ab)]=void 0x0;const prompt_util_1=require('./prompt-util');class FlowPrompt{}function a14_0x3acc(){const _0x500fc4=['(((.+)+)+)+$','FlowPrompt','23628XsZMeU','__esModule','50ZBeXJH','759465ofObdF','apply','303954kRRedF','file','Prompt','endchat.md','search','1528358sVpbTj','200yJhHVi','constructor','1282056oFbsqr','toString','1481130bCMzEW','775330pSUrqg','EndChat'];a14_0x3acc=function(){return _0x500fc4;};return a14_0x3acc();}exports[a14_0xf71366(0x1ab)]=FlowPrompt,FlowPrompt[a14_0xf71366(0x1a9)]=prompt_util_1[a14_0xf71366(0x1b3)][a14_0xf71366(0x1b2)](a14_0xf71366(0x1b4));
@@ -1 +1 @@
1
- const a15_0x4a9351=a15_0x2e67;(function(_0x912231,_0x2ed617){const _0x2b5964=a15_0x2e67,_0x1533c1=_0x912231();while(!![]){try{const _0x4c783f=-parseInt(_0x2b5964(0xe6))/0x1+-parseInt(_0x2b5964(0xe8))/0x2+parseInt(_0x2b5964(0xd1))/0x3*(-parseInt(_0x2b5964(0xd0))/0x4)+parseInt(_0x2b5964(0xe9))/0x5+parseInt(_0x2b5964(0xda))/0x6+-parseInt(_0x2b5964(0xd7))/0x7*(-parseInt(_0x2b5964(0xe4))/0x8)+-parseInt(_0x2b5964(0xde))/0x9;if(_0x4c783f===_0x2ed617)break;else _0x1533c1['push'](_0x1533c1['shift']());}catch(_0x48703a){_0x1533c1['push'](_0x1533c1['shift']());}}}(a15_0x3e46,0xa443d));function a15_0x2e67(_0x5d730f,_0x2a53da){const _0x37ca1c=a15_0x3e46();return a15_0x2e67=function(_0x2a3157,_0x48d5f7){_0x2a3157=_0x2a3157-0xbd;let _0x3e464f=_0x37ca1c[_0x2a3157];return _0x3e464f;},a15_0x2e67(_0x5d730f,_0x2a53da);}const a15_0x48d5f7=(function(){const _0x4efa40=a15_0x2e67,_0x5ef1b9={'DruXh':_0x4efa40(0xd5)};let _0x2666b1=!![];return function(_0xce4d07,_0x43b6b6){const _0x30529e=_0x4efa40,_0x32bb44={'qWncc':function(_0xe1eb85,_0x59240e){return _0xe1eb85===_0x59240e;},'IjHnl':_0x5ef1b9[_0x30529e(0xc7)],'dEXhU':_0x30529e(0xc3)},_0x2ed161=_0x2666b1?function(){const _0x138eb3=_0x30529e;if(_0x32bb44[_0x138eb3(0xdc)](_0x32bb44[_0x138eb3(0xe2)],_0x32bb44[_0x138eb3(0xd2)])){const _0x1cfd7e=_0x14c645[_0x138eb3(0xd8)](_0x5b00e7,arguments);return _0xfd5a33=null,_0x1cfd7e;}else{if(_0x43b6b6){const _0x11dafa=_0x43b6b6[_0x138eb3(0xd8)](_0xce4d07,arguments);return _0x43b6b6=null,_0x11dafa;}}}:function(){};return _0x2666b1=![],_0x2ed161;};}()),a15_0x2a3157=a15_0x48d5f7(this,function(){const _0x28c6e0=a15_0x2e67,_0x28938c={'Jctqr':_0x28c6e0(0xe5)};return a15_0x2a3157[_0x28c6e0(0xc1)]()[_0x28c6e0(0xe1)](_0x28938c[_0x28c6e0(0xcc)])[_0x28c6e0(0xc1)]()['constructor'](a15_0x2a3157)[_0x28c6e0(0xe1)](_0x28938c[_0x28c6e0(0xcc)]);});a15_0x2a3157();function a15_0x3e46(){const _0x5468b2=['IjHnl','readFileSync','180552LzrQSh','(((.+)+)+)+$','497847hZfpdn','pHBqT','229942NUYVkO','5335830bQIDbQ','fZieK','has','getCallerDir','resolve','prepareStackTrace','toString','dfuGT','IGSYE','replace','iXnCR','StKws','DruXh','set','path','__importDefault','getFileName','Jctqr','cache','default','__esModule','13316KCRdzl','357IPZZYF','dEXhU','Unable\x20to\x20determine\x20caller\x20file\x20path','qIHWi','kZkIw','IBQMK','28PFSVEB','apply','dirname','5127852jvkVMH','get','qWncc','Prompt','2972574XLEpgm','defineProperty','KbqAk','search'];a15_0x3e46=function(){return _0x5468b2;};return a15_0x3e46();}'use strict';var __importDefault=this&&this[a15_0x4a9351(0xca)]||function(_0xfbdc73){const _0x537169=a15_0x4a9351;return _0xfbdc73&&_0xfbdc73[_0x537169(0xcf)]?_0xfbdc73:{'default':_0xfbdc73};};Object[a15_0x4a9351(0xdf)](exports,a15_0x4a9351(0xcf),{'value':!![]}),exports[a15_0x4a9351(0xdd)]=void 0x0;const fs_1=require('fs'),path_1=__importDefault(require(a15_0x4a9351(0xc9)));class Prompt{static['file'](_0x5937c8){const _0x453049=a15_0x4a9351,_0x20389e={'iXnCR':'utf-8','dfuGT':function(_0x106226,_0x4f4546){return _0x106226===_0x4f4546;}},_0x490f71=this[_0x453049(0xbe)](),_0x4d4be4=path_1['default']['resolve'](_0x490f71,_0x5937c8);if(this[_0x453049(0xcd)][_0x453049(0xbd)](_0x4d4be4)){if(_0x20389e[_0x453049(0xc2)]('StKws',_0x453049(0xc6)))return this[_0x453049(0xcd)][_0x453049(0xdb)](_0x4d4be4);else{const _0x18ab29=this[_0x453049(0xbe)](),_0x203b23=_0x58561c[_0x453049(0xce)][_0x453049(0xbf)](_0x18ab29,_0x4d864b);if(this[_0x453049(0xcd)]['has'](_0x203b23))return this[_0x453049(0xcd)]['get'](_0x203b23);const _0x2692ff=(0x0,_0x55fe4d[_0x453049(0xe3)])(_0x203b23,_0x20389e[_0x453049(0xc5)]);return this[_0x453049(0xcd)]['set'](_0x203b23,_0x2692ff),_0x2692ff;}}const _0x4efd46=(0x0,fs_1['readFileSync'])(_0x4d4be4,_0x20389e[_0x453049(0xc5)]);return this['cache'][_0x453049(0xc8)](_0x4d4be4,_0x4efd46),_0x4efd46;}static['getCallerDir'](){const _0x2abb40=a15_0x4a9351,_0xc8cf05={'KbqAk':_0x2abb40(0xd3),'pHBqT':function(_0x59ab11,_0x37cf92){return _0x59ab11===_0x37cf92;},'rWfqe':_0x2abb40(0xd4),'fZieK':_0x2abb40(0xd6)},_0x4fd304=Error['prepareStackTrace'];Error[_0x2abb40(0xc0)]=(_0x1d8cd7,_0x6be646)=>_0x6be646;const _0x54310e=new Error(),_0x571c88=_0x54310e['stack'];Error[_0x2abb40(0xc0)]=_0x4fd304;const _0x4903c1=_0x571c88?.[0x2]?.[_0x2abb40(0xcb)]();if(!_0x4903c1){if(_0xc8cf05[_0x2abb40(0xe7)](_0xc8cf05['rWfqe'],_0xc8cf05[_0x2abb40(0xea)]))throw new _0x16532d(_0xc8cf05[_0x2abb40(0xe0)]);else throw new Error(_0x2abb40(0xd3));}return path_1['default'][_0x2abb40(0xd9)](_0x4903c1);}static['set'](_0x1eb891,_0x40516c,_0x3a6d32){const _0x1f77c0=a15_0x4a9351;return _0x1eb891[_0x1f77c0(0xc4)]('{{'+_0x40516c+'}}',_0x3a6d32);}static['replace'](_0x1138b5,_0x1eb68d){return _0x1138b5['replace'](/{{(.*?)}}/g,(_0x2db5e4,_0x48c44d)=>{return _0x1eb68d[_0x48c44d]||_0x2db5e4;});}}exports[a15_0x4a9351(0xdd)]=Prompt,Prompt['cache']=new Map();
1
+ function a15_0x5c29(_0x3147da,_0xff4211){const _0xc8377e=a15_0x1190();return a15_0x5c29=function(_0x15d670,_0x2cc252){_0x15d670=_0x15d670-0x1bb;let _0x1190fe=_0xc8377e[_0x15d670];return _0x1190fe;},a15_0x5c29(_0x3147da,_0xff4211);}const a15_0x562ef0=a15_0x5c29;function a15_0x1190(){const _0x185d8a=['20WVGHFE','__esModule','getCallerDir','rIqqF','apply','26278812fkyHjc','(((.+)+)+)+$','11731064nkirYs','7pqquTv','260132GdrPmm','prepareStackTrace','6kZIDpx','AcFad','cache','path','constructor','has','11fzvcGi','11638910RcgUPz','replace','WhpQl','Unable\x20to\x20determine\x20caller\x20file\x20path','Prompt','28643YqmaNQ','utf-8','GuUyB','readFileSync','file','set','7450095avcGYz','get','QuAIe','search','6035301mhVHOg','default','cYTiw','dirname','42PsClWL'];a15_0x1190=function(){return _0x185d8a;};return a15_0x1190();}(function(_0xd7b00f,_0x4010d5){const _0x933ba3=a15_0x5c29,_0x76f8ab=_0xd7b00f();while(!![]){try{const _0x374256=parseInt(_0x933ba3(0x1c8))/0x1*(parseInt(_0x933ba3(0x1d7))/0x2)+parseInt(_0x933ba3(0x1d6))/0x3*(parseInt(_0x933ba3(0x1e0))/0x4)+parseInt(_0x933ba3(0x1ce))/0x5*(parseInt(_0x933ba3(0x1bc))/0x6)+parseInt(_0x933ba3(0x1df))/0x7*(-parseInt(_0x933ba3(0x1de))/0x8)+parseInt(_0x933ba3(0x1d2))/0x9+-parseInt(_0x933ba3(0x1c3))/0xa*(-parseInt(_0x933ba3(0x1c2))/0xb)+-parseInt(_0x933ba3(0x1dc))/0xc;if(_0x374256===_0x4010d5)break;else _0x76f8ab['push'](_0x76f8ab['shift']());}catch(_0x467400){_0x76f8ab['push'](_0x76f8ab['shift']());}}}(a15_0x1190,0xd3353));const a15_0x2cc252=(function(){let _0x53707a=!![];return function(_0x298066,_0x339fd3){const _0x2ffdbe=_0x53707a?function(){const _0x4ea700=a15_0x5c29;if(_0x339fd3){const _0x13b62b=_0x339fd3[_0x4ea700(0x1db)](_0x298066,arguments);return _0x339fd3=null,_0x13b62b;}}:function(){};return _0x53707a=![],_0x2ffdbe;};}()),a15_0x15d670=a15_0x2cc252(this,function(){const _0x2a0e66=a15_0x5c29,_0xdc0671={'GuUyB':'(((.+)+)+)+$'};return a15_0x15d670['toString']()['search'](_0xdc0671[_0x2a0e66(0x1ca)])['toString']()[_0x2a0e66(0x1c0)](a15_0x15d670)[_0x2a0e66(0x1d1)](_0x2a0e66(0x1dd));});a15_0x15d670();'use strict';var __importDefault=this&&this['__importDefault']||function(_0x1a3c7f){const _0x5e0bde=a15_0x5c29;return _0x1a3c7f&&_0x1a3c7f[_0x5e0bde(0x1d8)]?_0x1a3c7f:{'default':_0x1a3c7f};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Prompt']=void 0x0;const fs_1=require('fs'),path_1=__importDefault(require(a15_0x562ef0(0x1bf)));class Prompt{static[a15_0x562ef0(0x1cc)](_0xda0f32){const _0x343abe=a15_0x562ef0,_0x1d048e={'VaymC':function(_0x212841,_0x590279){return _0x212841!==_0x590279;},'QuAIe':'kXGtd'},_0x3181c4=this[_0x343abe(0x1d9)](),_0x23ffcc=path_1[_0x343abe(0x1d3)]['resolve'](_0x3181c4,_0xda0f32);if(this[_0x343abe(0x1be)][_0x343abe(0x1c1)](_0x23ffcc)){if(_0x1d048e['VaymC'](_0x1d048e[_0x343abe(0x1d0)],'kXGtd')){const _0x478c4d=_0x4e70cf[_0x343abe(0x1db)](_0x4da466,arguments);return _0x95d899=null,_0x478c4d;}else return this[_0x343abe(0x1be)][_0x343abe(0x1cf)](_0x23ffcc);}const _0x3111aa=(0x0,fs_1[_0x343abe(0x1cb)])(_0x23ffcc,_0x343abe(0x1c9));return this[_0x343abe(0x1be)]['set'](_0x23ffcc,_0x3111aa),_0x3111aa;}static[a15_0x562ef0(0x1d9)](){const _0x173287=a15_0x562ef0,_0x5e0682={'WhpQl':_0x173287(0x1c6)},_0x2d5ea6=Error[_0x173287(0x1bb)];Error[_0x173287(0x1bb)]=(_0x3b0e69,_0x18ad43)=>_0x18ad43;const _0xf11d1d=new Error(),_0x3492f2=_0xf11d1d['stack'];Error[_0x173287(0x1bb)]=_0x2d5ea6;const _0x314162=_0x3492f2?.[0x2]?.['getFileName']();if(!_0x314162)throw new Error(_0x5e0682[_0x173287(0x1c5)]);return path_1[_0x173287(0x1d3)][_0x173287(0x1d5)](_0x314162);}static[a15_0x562ef0(0x1cd)](_0x128237,_0x2b33a1,_0xb7f338){const _0x629983=a15_0x562ef0;return _0x128237[_0x629983(0x1c4)]('{{'+_0x2b33a1+'}}',_0xb7f338);}static[a15_0x562ef0(0x1c4)](_0x64b01c,_0x50ef71){const _0x35e380=a15_0x562ef0,_0x28d7e5={'cYTiw':_0x35e380(0x1da)};return _0x64b01c['replace'](/{{(.*?)}}/g,(_0x1ac9ac,_0xd82311)=>{const _0x41cfd7=_0x35e380;if(_0x28d7e5[_0x41cfd7(0x1d4)]!==_0x41cfd7(0x1bd))return _0x50ef71[_0xd82311]||_0x1ac9ac;else throw new _0x340186(_0x41cfd7(0x1c6));});}}exports[a15_0x562ef0(0x1c7)]=Prompt,Prompt[a15_0x562ef0(0x1be)]=new Map();
@@ -1,4 +1,5 @@
1
1
  import { Flow } from '../flow/flow';
2
+ import { RunResponseType } from '../flow/flow-types';
2
3
  import { FlowSession } from '../session/flow-session';
3
4
  import { DynamicStructuredTool } from '@langchain/core/tools';
4
5
  import { ChatGoogleGenerativeAI } from '@langchain/google-genai';
@@ -29,7 +30,7 @@ export declare class FlowEngine {
29
30
  constructor(config: ConfigService);
30
31
  getFlowSession(): FlowSession;
31
32
  run(res: FastifyReply, flowName: string, userMessage: string, sessionId: string, config?: object): Promise<void>;
32
- private run2;
33
+ runFlow(flowName: string, userMessage: string, sessionId: string, context?: object): Promise<RunResponseType>;
33
34
  private composeHttpResponse;
34
35
  private handleException;
35
36
  endChat(sessionId: string): Promise<{
@@ -1 +1 @@
1
- function a16_0x20ca(_0x29d48d,_0x169b39){const _0x4d6d30=a16_0xd861();return a16_0x20ca=function(_0x2322ce,_0x13390d){_0x2322ce=_0x2322ce-0x72;let _0xd861f3=_0x4d6d30[_0x2322ce];return _0xd861f3;},a16_0x20ca(_0x29d48d,_0x169b39);}const a16_0x3230e5=a16_0x20ca;(function(_0x45c600,_0x43862f){const _0x25c000=a16_0x20ca,_0x3dd179=_0x45c600();while(!![]){try{const _0x523ae2=-parseInt(_0x25c000(0x74))/0x1+-parseInt(_0x25c000(0x7b))/0x2+-parseInt(_0x25c000(0xc4))/0x3*(parseInt(_0x25c000(0xe3))/0x4)+-parseInt(_0x25c000(0xb1))/0x5*(-parseInt(_0x25c000(0xe1))/0x6)+-parseInt(_0x25c000(0xd8))/0x7+parseInt(_0x25c000(0x99))/0x8*(parseInt(_0x25c000(0xcd))/0x9)+parseInt(_0x25c000(0x76))/0xa;if(_0x523ae2===_0x43862f)break;else _0x3dd179['push'](_0x3dd179['shift']());}catch(_0x12c064){_0x3dd179['push'](_0x3dd179['shift']());}}}(a16_0xd861,0x7a3f0));const a16_0x13390d=(function(){const _0x40510b=a16_0x20ca,_0x21eead={'aLNTV':_0x40510b(0x8b)};let _0x40a9a6=!![];return function(_0xe7b0c7,_0x55f2fe){const _0x56be2b=_0x40510b,_0x395b84={'SNLBW':function(_0x5cc935,_0x143f00){return _0x5cc935!==_0x143f00;},'VQuxK':_0x56be2b(0x97),'mZNpZ':_0x21eead['aLNTV']},_0x363008=_0x40a9a6?function(){const _0x24c2a8=_0x56be2b;if(_0x55f2fe){if(_0x395b84[_0x24c2a8(0xe8)](_0x395b84['VQuxK'],_0x395b84[_0x24c2a8(0xac)])){const _0x43f7c8=_0x55f2fe[_0x24c2a8(0x94)](_0xe7b0c7,arguments);return _0x55f2fe=null,_0x43f7c8;}else return _0x294bb9;}}:function(){};return _0x40a9a6=![],_0x363008;};}()),a16_0x2322ce=a16_0x13390d(this,function(){const _0x55533b=a16_0x20ca,_0x247b00={'hisrw':'(((.+)+)+)+$'};return a16_0x2322ce[_0x55533b(0x9e)]()['search'](_0x247b00[_0x55533b(0x7f)])[_0x55533b(0x9e)]()[_0x55533b(0x92)](a16_0x2322ce)[_0x55533b(0xb9)](_0x55533b(0xa5));});a16_0x2322ce();'use strict';var __decorate=this&&this[a16_0x3230e5(0x78)]||function(_0x37255d,_0x4b4628,_0x251009,_0x4749c7){const _0x51417b=a16_0x3230e5,_0x27a350={'UBKZW':function(_0x3b7465,_0x5583a0){return _0x3b7465<_0x5583a0;},'pnoDJ':_0x51417b(0xdd),'hTDmw':function(_0x12d514,_0x3f7fb0){return _0x12d514===_0x3f7fb0;},'tstmM':_0x51417b(0xeb),'eVeio':function(_0x1ff449,_0xbdc4a0){return _0x1ff449<_0xbdc4a0;},'vRIDk':function(_0x3a7b0a,_0x54886b){return _0x3a7b0a(_0x54886b);},'rloHW':function(_0x4d6c36,_0x276e66,_0x80e3fc,_0x5da1a5){return _0x4d6c36(_0x276e66,_0x80e3fc,_0x5da1a5);},'IzTLU':function(_0x3fa54c,_0x4f5152,_0x69b779){return _0x3fa54c(_0x4f5152,_0x69b779);},'MVnbg':function(_0xc7710f,_0x1ff2ff){return _0xc7710f>_0x1ff2ff;}};var _0x23249b=arguments[_0x51417b(0xd7)],_0x4c39fc=_0x27a350[_0x51417b(0x79)](_0x23249b,0x3)?_0x4b4628:_0x4749c7===null?_0x4749c7=Object['getOwnPropertyDescriptor'](_0x4b4628,_0x251009):_0x4749c7,_0x447ece;if(typeof Reflect===_0x27a350[_0x51417b(0xc5)]&&_0x27a350[_0x51417b(0x7a)](typeof Reflect[_0x51417b(0x81)],_0x27a350[_0x51417b(0xae)]))_0x4c39fc=Reflect[_0x51417b(0x81)](_0x37255d,_0x4b4628,_0x251009,_0x4749c7);else{for(var _0x2eb698=_0x37255d['length']-0x1;_0x2eb698>=0x0;_0x2eb698--)if(_0x447ece=_0x37255d[_0x2eb698])_0x4c39fc=(_0x27a350['eVeio'](_0x23249b,0x3)?_0x27a350[_0x51417b(0x9a)](_0x447ece,_0x4c39fc):_0x23249b>0x3?_0x27a350[_0x51417b(0xb4)](_0x447ece,_0x4b4628,_0x251009,_0x4c39fc):_0x27a350[_0x51417b(0xd6)](_0x447ece,_0x4b4628,_0x251009))||_0x4c39fc;}return _0x27a350[_0x51417b(0xbc)](_0x23249b,0x3)&&_0x4c39fc&&Object[_0x51417b(0x87)](_0x4b4628,_0x251009,_0x4c39fc),_0x4c39fc;},__metadata=this&&this[a16_0x3230e5(0x7c)]||function(_0xb9047f,_0x2160e0){const _0x2f6cf1=a16_0x3230e5,_0xa12f7b={'GNPfR':'object','zujDy':function(_0x50f455,_0xf7cc68){return _0x50f455===_0xf7cc68;},'GaSUa':_0x2f6cf1(0xeb)};if(typeof Reflect===_0xa12f7b[_0x2f6cf1(0xc9)]&&_0xa12f7b['zujDy'](typeof Reflect['metadata'],_0xa12f7b[_0x2f6cf1(0xd2)]))return Reflect[_0x2f6cf1(0xd1)](_0xb9047f,_0x2160e0);},FlowEngine_1;function a16_0xd861(){const _0x15132e=['create','__decorate','UBKZW','hTDmw','355008MOTGBH','__metadata','Content-Type','CpPlm','hisrw','../session/flow-session','decorate','IQlKX','fetch','aborted','kNPDR','xiukb','defineProperty','Injectable','getSessionDoc','Delete\x20session\x20','bKsHi','saveSession','contentType','registerModels','jVpSR','handleException','success','constructor','keys','apply','CqMYN','DefaultUseTool','ImchD','run','2322224lIPReO','vRIDk','slBwJ','wtBIh','MLcRQ','toString','ChatSessionID','OllamaUseTool','llmRegister','@nestjs/common','uqhFT','HttpStatus','(((.+)+)+)+$','VWqug','jBVaQ','OeJyy','flowSession','qSIci','header','mZNpZ','model','tstmM','cmZWq','error','1305btjial','KKAwH','design:paramtypes','rloHW','ZlGNA','setup','getFlowSession','ConfigService','search','giNGT','@nestjs/config','MVnbg','CoreConfig','registerModel','../session/session-logger','../flow/content-type','send','krZSU','composeHttpResponse','324447CeIxpa','pnoDJ','message','getFlow','status','GNPfR','rxdUF','nNerV','delete','9KWonyO','runStatus','Plain','sdOLS','metadata','GaSUa','No\x20model\x20registered','endChat','HttpContentType','IzTLU','length','6093857TzhpvE','FlowSession','EcuIp','FlowCreator','ipZSI','object','../configs/core-config','BAD_REQUEST','FOMCR','2406YeUTCp','run2','20QDaHOW','hDLIH','getOwnPropertyDescriptor','SessionLogger','YynBT','SNLBW','pPZFW','\x20failed','function','save','__esModule','MoYdx','ofnvB','703344iQaTyu','flowRegistry','23979250yCkYNA'];a16_0xd861=function(){return _0x15132e;};return a16_0xd861();}Object[a16_0x3230e5(0x87)](exports,a16_0x3230e5(0xed),{'value':!![]}),exports['FlowEngine']=void 0x0;const common_1=require(a16_0x3230e5(0xa2)),flow_creator_1=require('../flow/flow-creator'),flow_session_1=require(a16_0x3230e5(0x80)),ollama_1=require('@langchain/ollama'),session_logger_1=require(a16_0x3230e5(0xbf)),core_config_1=require(a16_0x3230e5(0xde)),config_1=require(a16_0x3230e5(0xbb)),content_type_1=require(a16_0x3230e5(0xc0)),constants_1=require('../utils/constants');let FlowEngine=FlowEngine_1=class FlowEngine{constructor(_0x226c40){const _0x56e0c2=a16_0x3230e5;this[_0x56e0c2(0x75)]={},this[_0x56e0c2(0xa1)]={},core_config_1[_0x56e0c2(0xbd)][_0x56e0c2(0xb6)](_0x226c40),this[_0x56e0c2(0xa9)]=new flow_session_1[(_0x56e0c2(0xd9))]();}[a16_0x3230e5(0xb7)](){return this['flowSession'];}async[a16_0x3230e5(0x98)](_0x271c4c,_0x3cb926,_0x3a818f,_0x4fde95,_0xc4597f){const _0x38798d=a16_0x3230e5,_0x320465=await this[_0x38798d(0xe2)](_0x3cb926,_0x3a818f,_0x4fde95,{'config':_0xc4597f});await this[_0x38798d(0xc3)](_0x320465,_0x271c4c);}async[a16_0x3230e5(0xe2)](_0x219875,_0x1a0adf,_0x3ec8cb,_0x5abf50){const _0x153967=a16_0x3230e5,_0x585eb9={'hoVxc':function(_0x4855e6,_0x199034){return _0x4855e6!==_0x199034;},'xiukb':_0x153967(0x73)};let _0x1bf09a;try{if(_0x585eb9['hoVxc'](_0x585eb9[_0x153967(0x86)],_0x585eb9[_0x153967(0x86)]))return _0x26e00e;else{_0x1bf09a=await flow_creator_1[_0x153967(0xdb)][_0x153967(0x77)](_0x219875,_0x3ec8cb,this,_0x5abf50),_0x3ec8cb=_0x1bf09a['getSessionId']();const _0x548ba1=await _0x1bf09a[_0x153967(0x98)](_0x1a0adf);return await _0x1bf09a['saveSession'](),_0x548ba1;}}catch(_0x23fdf8){return await this[_0x153967(0x90)](_0x1bf09a,_0x3ec8cb,_0x23fdf8);}}['composeHttpResponse'](_0x518a07,_0x4d92c3){const _0x48795a=a16_0x3230e5,_0xfbfa89={'nNerV':function(_0xf535d7,_0x418658){return _0xf535d7!=_0x418658;}};_0x4d92c3[_0x48795a(0xab)](constants_1['K'][_0x48795a(0x9f)],_0x518a07['session']),!_0x518a07[_0x48795a(0x91)]&&_0x4d92c3[_0x48795a(0xc8)](common_1[_0x48795a(0xa4)][_0x48795a(0xdf)]),_0x518a07[_0x48795a(0x8d)]&&_0xfbfa89[_0x48795a(0xcb)](_0x518a07[_0x48795a(0x8d)],content_type_1[_0x48795a(0xd5)][_0x48795a(0xcf)])?(_0x4d92c3['header'](_0x48795a(0x7d),_0x518a07[_0x48795a(0x8d)]),_0x4d92c3[_0x48795a(0xc1)](_0x518a07[_0x48795a(0xc6)])):_0x4d92c3[_0x48795a(0xc1)](_0x518a07);}async[a16_0x3230e5(0x90)](_0x3e3f1c,_0x202f91,_0x4f89d8){const _0x38d4f7=a16_0x3230e5,_0x7eefaa={'IadQw':_0x38d4f7(0xd3),'IQlKX':_0x38d4f7(0x84),'ipZSI':function(_0x19a740,_0x133e44){return _0x19a740===_0x133e44;},'nwOaN':_0x38d4f7(0x9c),'OPwhi':_0x38d4f7(0xc6)};if(_0x3e3f1c)try{const _0x1391b0=_0x3e3f1c[_0x38d4f7(0x89)]();_0x1391b0[_0x38d4f7(0xce)]=_0x7eefaa[_0x38d4f7(0x82)],new session_logger_1[(_0x38d4f7(0xe6))](_0x1391b0)['error'](_0x4f89d8?.['message']),await _0x3e3f1c[_0x38d4f7(0x8c)]();}catch(_0x14f580){}else{if(_0x7eefaa[_0x38d4f7(0xdc)](_0x7eefaa['nwOaN'],_0x7eefaa['nwOaN'])){const [_0x21d15c,_0x12aa14]=await this[_0x38d4f7(0xa9)][_0x38d4f7(0x83)](_0x202f91);_0x12aa14[_0x38d4f7(0xce)]=_0x7eefaa[_0x38d4f7(0x82)],new session_logger_1[(_0x38d4f7(0xe6))](_0x12aa14)[_0x38d4f7(0xb0)](_0x4f89d8?.['message']),await this[_0x38d4f7(0xa9)][_0x38d4f7(0xec)](_0x12aa14);}else throw new _0x2fe769(_0x7eefaa['IadQw']);}return{'success':![],'message':_0x4f89d8[_0x7eefaa['OPwhi']],'completed':!![]};}async[a16_0x3230e5(0xd4)](_0x5daeed){const _0x4f234b=a16_0x3230e5,_0x331d56={'OeJyy':function(_0x5b6eb5,_0x2ab735){return _0x5b6eb5===_0x2ab735;},'MLcRQ':function(_0x14d52e,_0x49778b){return _0x14d52e!==_0x49778b;},'CpPlm':_0x4f234b(0xca)};try{if(_0x5daeed){if(_0x331d56[_0x4f234b(0x9d)](_0x331d56[_0x4f234b(0x7e)],_0x331d56['CpPlm'])){const _0x211736=_0x3cd783[_0x4f234b(0x93)](this[_0x4f234b(0xa1)]);if(_0x331d56[_0x4f234b(0xa8)](_0x211736[_0x4f234b(0xd7)],0x0))throw new _0x2f2baa('No\x20model\x20registered');else return this[_0x4f234b(0xa1)][_0x211736[0x0]];}else{const _0x3bb67f=await this[_0x4f234b(0xa9)]['fetchAll'](_0x5daeed);_0x3bb67f&&await this['flowSession'][_0x4f234b(0xcc)](_0x3bb67f['id']);}}}catch(_0x2bab28){return{'false':!![],'message':_0x4f234b(0x8a)+_0x5daeed+_0x4f234b(0xea)};}return{'success':!![],'session':_0x5daeed};}async['registerFlows'](_0x2cb4e6){const _0x251691=a16_0x3230e5;this[_0x251691(0x75)]={...this[_0x251691(0x75)],..._0x2cb4e6};}[a16_0x3230e5(0xc7)](_0x1c184a){const _0x4917d7=a16_0x3230e5;return this[_0x4917d7(0x75)][_0x1c184a];}[a16_0x3230e5(0x8e)](_0x4d41b0){const _0x59f1ee=a16_0x3230e5;this[_0x59f1ee(0xa1)]={...this[_0x59f1ee(0xa1)],..._0x4d41b0};}[a16_0x3230e5(0xbe)](_0x5c91fc,_0x1fc394){const _0x23e72a=a16_0x3230e5,_0x3f17b1={'NmUml':function(_0x1961bf,_0x2bfc10){return _0x1961bf===_0x2bfc10;}};let _0x534214=FlowEngine_1[_0x23e72a(0x96)];_0x3f17b1['NmUml'](_0x5c91fc,ollama_1['ChatOllama'])&&(_0x534214=FlowEngine_1[_0x23e72a(0xa0)]),this[_0x23e72a(0xa1)]={...this['llmRegister'],[_0x1fc394[_0x23e72a(0xad)]]:{'modelClass':_0x5c91fc,'params':_0x1fc394,'useTool':_0x534214}};}['getModel'](_0x126fb8){const _0x486b9c=a16_0x3230e5,_0x39c0d5={'EgtGb':function(_0x3191e3,_0x2926a7){return _0x3191e3===_0x2926a7;},'sWauH':_0x486b9c(0xd3)};if(!_0x126fb8){const _0x337e90=Object[_0x486b9c(0x93)](this[_0x486b9c(0xa1)]);if(_0x39c0d5['EgtGb'](_0x337e90['length'],0x0))throw new Error(_0x39c0d5['sWauH']);else return this['llmRegister'][_0x337e90[0x0]];}return this[_0x486b9c(0xa1)][_0x126fb8];}['getModelName'](_0x377427){const _0x3cbb7b=a16_0x3230e5,_0x288918={'EcuIp':function(_0x3ea1b4,_0x53b723){return _0x3ea1b4===_0x53b723;},'YynBT':_0x3cbb7b(0xd3),'jVpSR':'YxbUr','jBVaQ':_0x3cbb7b(0xaa)};if(!_0x377427){const _0x20eb89=Object[_0x3cbb7b(0x93)](this['llmRegister']);if(_0x288918[_0x3cbb7b(0xda)](_0x20eb89[_0x3cbb7b(0xd7)],0x0))throw new Error(_0x288918[_0x3cbb7b(0xe7)]);else return _0x20eb89[0x0];}else{if(_0x288918[_0x3cbb7b(0xda)](_0x288918[_0x3cbb7b(0x8f)],_0x288918[_0x3cbb7b(0xa7)])){const _0x2c3d72=_0x50a6ca[_0x3cbb7b(0x94)](_0x5a87b1,arguments);return _0x23f85c=null,_0x2c3d72;}else return _0x377427;}}};exports['FlowEngine']=FlowEngine,FlowEngine[a16_0x3230e5(0x96)]=(_0x48488e,_0x2fdb7e)=>{const _0x2e9eaa=a16_0x3230e5,_0x5200f3={'CqMYN':function(_0x312968,_0xc2210c){return _0x312968<_0xc2210c;},'FOMCR':function(_0x259e7e,_0xe7be5a){return _0x259e7e===_0xe7be5a;},'slBwJ':_0x2e9eaa(0xeb),'MoYdx':function(_0x4f96ba,_0x4c0a86){return _0x4f96ba-_0x4c0a86;},'krZSU':function(_0x1d05f3,_0x170622){return _0x1d05f3<_0x170622;},'OCNDI':function(_0x11c029,_0x5ceec3){return _0x11c029(_0x5ceec3);},'kNPDR':function(_0x1d25d9,_0x3e2b0b){return _0x1d25d9>_0x3e2b0b;},'nUaKP':function(_0x5dd1a9,_0x1fd18f,_0x5f3525){return _0x5dd1a9(_0x1fd18f,_0x5f3525);},'hDLIH':function(_0x16234a,_0x12723f){return _0x16234a>_0x12723f;},'cmZWq':function(_0x2bdc0f,_0x4b356c){return _0x2bdc0f!==_0x4b356c;},'KKAwH':_0x2e9eaa(0xb5),'uqhFT':_0x2e9eaa(0xe9),'sdOLS':'jBXiH','giNGT':'ppeaD'};if(_0x2fdb7e&&_0x5200f3[_0x2e9eaa(0xe4)](_0x2fdb7e[_0x2e9eaa(0xd7)],0x0)){if(_0x5200f3[_0x2e9eaa(0xaf)](_0x5200f3[_0x2e9eaa(0xb2)],_0x5200f3[_0x2e9eaa(0xa3)]))return _0x48488e['bindTools'](_0x2fdb7e);else{var _0x1b6a7f=arguments[_0x2e9eaa(0xd7)],_0x4692e9=_0x5200f3[_0x2e9eaa(0x95)](_0x1b6a7f,0x3)?_0x24b638:_0x5200f3[_0x2e9eaa(0xe0)](_0x505468,null)?_0x4a49a9=_0x9f32ad[_0x2e9eaa(0xe5)](_0x22a61a,_0x1bc32e):_0x45f1f3,_0x1eb441;if(typeof _0x466fee===_0x2e9eaa(0xdd)&&_0x5200f3[_0x2e9eaa(0xe0)](typeof _0x2e1690[_0x2e9eaa(0x81)],_0x5200f3[_0x2e9eaa(0x9b)]))_0x4692e9=_0x7b5479[_0x2e9eaa(0x81)](_0x2cdd3f,_0x4b268c,_0x2ce172,_0x5c0a87);else{for(var _0x38a9cd=_0x5200f3[_0x2e9eaa(0x72)](_0x3ce6f8['length'],0x1);_0x38a9cd>=0x0;_0x38a9cd--)if(_0x1eb441=_0x23f796[_0x38a9cd])_0x4692e9=(_0x5200f3[_0x2e9eaa(0xc2)](_0x1b6a7f,0x3)?_0x5200f3['OCNDI'](_0x1eb441,_0x4692e9):_0x5200f3[_0x2e9eaa(0x85)](_0x1b6a7f,0x3)?_0x1eb441(_0x28afdd,_0x42692c,_0x4692e9):_0x5200f3['nUaKP'](_0x1eb441,_0x73148b,_0x2d2298))||_0x4692e9;}return _0x1b6a7f>0x3&&_0x4692e9&&_0x9e344[_0x2e9eaa(0x87)](_0x193d21,_0x38dff9,_0x4692e9),_0x4692e9;}}else return _0x5200f3[_0x2e9eaa(0xd0)]!==_0x5200f3[_0x2e9eaa(0xba)]?_0x48488e:{'false':!![],'message':_0x2e9eaa(0x8a)+_0x5888e1+_0x2e9eaa(0xea)};},FlowEngine['OllamaUseTool']=(_0x3b479f,_0x5a8f0d)=>{const _0x22a8d9=a16_0x3230e5,_0x47ff5c={'VWqug':function(_0x566d2c,_0x4f4094){return _0x566d2c>_0x4f4094;}};return _0x5a8f0d&&_0x47ff5c[_0x22a8d9(0xa6)](_0x5a8f0d[_0x22a8d9(0xd7)],0x0)?_0x3b479f['bind']({'tools':_0x5a8f0d}):_0x3b479f;},exports['FlowEngine']=FlowEngine=FlowEngine_1=__decorate([(0x0,common_1[a16_0x3230e5(0x88)])(),__metadata(a16_0x3230e5(0xb3),[config_1[a16_0x3230e5(0xb8)]])],FlowEngine);
1
+ function a16_0x1e73(_0x2d44ac,_0x431929){const _0x3aa648=a16_0x2540();return a16_0x1e73=function(_0x56b480,_0x526cdc){_0x56b480=_0x56b480-0x188;let _0x25401=_0x3aa648[_0x56b480];return _0x25401;},a16_0x1e73(_0x2d44ac,_0x431929);}const a16_0x4d89ed=a16_0x1e73;(function(_0x2b659d,_0x24ad02){const _0x44b0a8=a16_0x1e73,_0x4c167d=_0x2b659d();while(!![]){try{const _0x372bf5=-parseInt(_0x44b0a8(0x195))/0x1*(-parseInt(_0x44b0a8(0x191))/0x2)+parseInt(_0x44b0a8(0x1d8))/0x3+parseInt(_0x44b0a8(0x202))/0x4*(parseInt(_0x44b0a8(0x1fa))/0x5)+parseInt(_0x44b0a8(0x19f))/0x6*(-parseInt(_0x44b0a8(0x1e7))/0x7)+parseInt(_0x44b0a8(0x19c))/0x8*(parseInt(_0x44b0a8(0x1f9))/0x9)+parseInt(_0x44b0a8(0x1fb))/0xa*(parseInt(_0x44b0a8(0x1d6))/0xb)+-parseInt(_0x44b0a8(0x207))/0xc*(parseInt(_0x44b0a8(0x18a))/0xd);if(_0x372bf5===_0x24ad02)break;else _0x4c167d['push'](_0x4c167d['shift']());}catch(_0x3b5090){_0x4c167d['push'](_0x4c167d['shift']());}}}(a16_0x2540,0x5e711));const a16_0x526cdc=(function(){const _0x5f4dd9=a16_0x1e73,_0x1c10ea={'ewQSH':function(_0x161180,_0x2043b2){return _0x161180!==_0x2043b2;},'zECTl':_0x5f4dd9(0x208),'HPbrk':_0x5f4dd9(0x1ac)};let _0x3d0a6c=!![];return function(_0x4df797,_0x3f2bb4){const _0x2eb4ba=_0x5f4dd9,_0x434c12={'BXJQP':function(_0x54ce07,_0x314e17){return _0x1c10ea['ewQSH'](_0x54ce07,_0x314e17);},'jLUEH':_0x1c10ea[_0x2eb4ba(0x197)]};if('AmxvJ'!==_0x1c10ea[_0x2eb4ba(0x199)]){const _0x2eb3fb=_0x3d0a6c?function(){const _0x477bb6=_0x2eb4ba;if(_0x3f2bb4){if(_0x434c12[_0x477bb6(0x1ff)]('YsVzP',_0x434c12[_0x477bb6(0x1c4)])){const _0x344ee8=_0x3f2bb4[_0x477bb6(0x1c3)](_0x4df797,arguments);return _0x3f2bb4=null,_0x344ee8;}else return this[_0x477bb6(0x1bc)][_0x5701b3[0x0]];}}:function(){};return _0x3d0a6c=![],_0x2eb3fb;}else this[_0x2eb4ba(0x1bc)]={...this['llmRegister'],..._0x1e1958};};}()),a16_0x56b480=a16_0x526cdc(this,function(){const _0x5d1f97=a16_0x1e73,_0x585a9a={'lJJlh':_0x5d1f97(0x188)};return a16_0x56b480[_0x5d1f97(0x209)]()['search'](_0x585a9a[_0x5d1f97(0x1ec)])[_0x5d1f97(0x209)]()['constructor'](a16_0x56b480)[_0x5d1f97(0x1f0)](_0x585a9a[_0x5d1f97(0x1ec)]);});function a16_0x2540(){const _0x187811=['ConfigService','object','Content-Type','pNCaX','LoWNC','error','Delete\x20session\x20','status','Mmomw','RbqKC','xiCSE','11hymzeP','saveSession','816726vectKQ','design:paramtypes','kYFpa','keys','ChatSessionID','cWrab','gIkyM','lWeRK','jJDLF','BGmQz','rLHFK','cFinZ','gAMsN','../session/flow-session','WPKnb','7uhpbJT','jMATa','runStatus','OlMCx','getModelName','lJJlh','YBcCB','@langchain/ollama','HttpContentType','search','hnCVO','getFlow','model','run','FmOvm','__esModule','defineProperty','QlzkZ','41562ukTfsZ','1318425mlpWfs','7431980UZsWOC','RqOcC','YzuRK','gnPzZ','BXJQP','send','length','8aYCSbF','registerModels','contentType','__decorate','flowSession','14232NWkiuH','wgDlq','toString','uNJeQ','getOwnPropertyDescriptor','Zfaem','SybmT','../configs/core-config','XABmq','message','(((.+)+)+)+$','flowRegistry','19838GALGCv','composeHttpResponse','ChatOllama','registerFlows','ErwFF','BAD_REQUEST','kJNPf','665748wlFoLp','session','setup','REVLv','2kzJAlk','metadata','zECTl','fetch','HPbrk','create','FlowEngine','1112zXFYDX','../flow/content-type','header','3922746jtBmus','ZXVTx','aborted','mlGQY','FlowCreator','EyEmr','bind','swXmV','function','save','../session/session-logger','@nestjs/config','endChat','FsOWx','xiBpS','@nestjs/common','JRMMp','getFlowSession','BWlQL','No\x20model\x20registered','getSessionId','OllamaUseTool','eQQHl','qedUr','pIfQg','AeIKC','MrTKF','Plain','JRPZU','llmRegister','handleException','HttpStatus','getModel','registerModel','LeXEG','../flow/flow-creator','apply','jLUEH','bindTools','runFlow','decorate','__metadata','wxGQM','FlowSession'];a16_0x2540=function(){return _0x187811;};return a16_0x2540();}a16_0x56b480();'use strict';var __decorate=this&&this[a16_0x4d89ed(0x205)]||function(_0x2c66cc,_0x320e6e,_0x14fc82,_0xac223a){const _0xdc4946=a16_0x4d89ed,_0x2b0da7={'Zfaem':function(_0x41f262,_0x123ec7){return _0x41f262===_0x123ec7;},'OQrdQ':function(_0x2f152b,_0x2949e2){return _0x2f152b===_0x2949e2;},'xiBpS':function(_0x5346e1,_0x241803){return _0x5346e1===_0x241803;},'ErwFF':function(_0x3966bc,_0x2059c0){return _0x3966bc-_0x2059c0;},'YBcCB':function(_0x5aaffd,_0x586ccb){return _0x5aaffd<_0x586ccb;},'jMATa':function(_0xaa3bf2,_0x113f92){return _0xaa3bf2(_0x113f92);},'TKqCP':function(_0x2dc81c,_0x4b0ea7){return _0x2dc81c>_0x4b0ea7;},'OlMCx':function(_0x2bad8b,_0x4f82ed,_0x2aea26){return _0x2bad8b(_0x4f82ed,_0x2aea26);}};var _0x5ca7dc=arguments[_0xdc4946(0x201)],_0x47762e=_0x5ca7dc<0x3?_0x320e6e:_0x2b0da7[_0xdc4946(0x20c)](_0xac223a,null)?_0xac223a=Object[_0xdc4946(0x20b)](_0x320e6e,_0x14fc82):_0xac223a,_0x5ee4a1;if(_0x2b0da7['OQrdQ'](typeof Reflect,_0xdc4946(0x1cc))&&_0x2b0da7[_0xdc4946(0x1ad)](typeof Reflect[_0xdc4946(0x1c7)],_0xdc4946(0x1a7)))_0x47762e=Reflect[_0xdc4946(0x1c7)](_0x2c66cc,_0x320e6e,_0x14fc82,_0xac223a);else{for(var _0x12b27e=_0x2b0da7[_0xdc4946(0x18e)](_0x2c66cc[_0xdc4946(0x201)],0x1);_0x12b27e>=0x0;_0x12b27e--)if(_0x5ee4a1=_0x2c66cc[_0x12b27e])_0x47762e=(_0x2b0da7[_0xdc4946(0x1ed)](_0x5ca7dc,0x3)?_0x2b0da7[_0xdc4946(0x1e8)](_0x5ee4a1,_0x47762e):_0x2b0da7['TKqCP'](_0x5ca7dc,0x3)?_0x5ee4a1(_0x320e6e,_0x14fc82,_0x47762e):_0x2b0da7[_0xdc4946(0x1ea)](_0x5ee4a1,_0x320e6e,_0x14fc82))||_0x47762e;}return _0x5ca7dc>0x3&&_0x47762e&&Object['defineProperty'](_0x320e6e,_0x14fc82,_0x47762e),_0x47762e;},__metadata=this&&this[a16_0x4d89ed(0x1c8)]||function(_0x15dd2e,_0x445707){const _0x33f181=a16_0x4d89ed,_0x22141b={'kYFpa':function(_0x4fcbaf,_0x233333){return _0x4fcbaf===_0x233333;},'gAMsN':'object','RqOcC':function(_0x187661,_0x443538){return _0x187661===_0x443538;},'rLHFK':_0x33f181(0x1a7)};if(_0x22141b[_0x33f181(0x1da)](typeof Reflect,_0x22141b[_0x33f181(0x1e4)])&&_0x22141b[_0x33f181(0x1fc)](typeof Reflect[_0x33f181(0x196)],_0x22141b[_0x33f181(0x1e2)]))return Reflect['metadata'](_0x15dd2e,_0x445707);},FlowEngine_1;Object[a16_0x4d89ed(0x1f7)](exports,a16_0x4d89ed(0x1f6),{'value':!![]}),exports[a16_0x4d89ed(0x19b)]=void 0x0;const common_1=require(a16_0x4d89ed(0x1ae)),flow_creator_1=require(a16_0x4d89ed(0x1c2)),flow_session_1=require(a16_0x4d89ed(0x1e5)),ollama_1=require(a16_0x4d89ed(0x1ee)),session_logger_1=require(a16_0x4d89ed(0x1a9)),core_config_1=require(a16_0x4d89ed(0x20e)),config_1=require(a16_0x4d89ed(0x1aa)),content_type_1=require(a16_0x4d89ed(0x19d)),constants_1=require('../utils/constants');let FlowEngine=FlowEngine_1=class FlowEngine{constructor(_0x2219cf){const _0x2a5a00=a16_0x4d89ed;this[_0x2a5a00(0x189)]={},this[_0x2a5a00(0x1bc)]={},core_config_1['CoreConfig'][_0x2a5a00(0x193)](_0x2219cf),this[_0x2a5a00(0x206)]=new flow_session_1[(_0x2a5a00(0x1ca))]();}[a16_0x4d89ed(0x1b0)](){return this['flowSession'];}async[a16_0x4d89ed(0x1f4)](_0x4557c1,_0x58a59f,_0x544ae4,_0x42bbef,_0x59435b){const _0x4a4734=a16_0x4d89ed,_0x73216e=await this[_0x4a4734(0x1c6)](_0x58a59f,_0x544ae4,_0x42bbef,{'config':_0x59435b});await this['composeHttpResponse'](_0x73216e,_0x4557c1);}async['runFlow'](_0x128e94,_0x3f7e5f,_0x8a75d8,_0x1a6c98){const _0x1d9b9a=a16_0x4d89ed,_0x5bc934={'qedUr':function(_0x361c56,_0x3afde7){return _0x361c56===_0x3afde7;},'pIfQg':_0x1d9b9a(0x1c1)};let _0x4aae6e;try{_0x4aae6e=await flow_creator_1[_0x1d9b9a(0x1a3)][_0x1d9b9a(0x19a)](_0x128e94,_0x8a75d8,this,_0x1a6c98),_0x8a75d8=_0x4aae6e[_0x1d9b9a(0x1b3)]();const _0x3ae4bb=await _0x4aae6e[_0x1d9b9a(0x1f4)](_0x3f7e5f);return await _0x4aae6e[_0x1d9b9a(0x1d7)](),_0x3ae4bb;}catch(_0x5e2c7a){if(_0x5bc934[_0x1d9b9a(0x1b6)](_0x5bc934[_0x1d9b9a(0x1b7)],_0x5bc934['pIfQg']))return await this[_0x1d9b9a(0x1bd)](_0x4aae6e,_0x8a75d8,_0x5e2c7a);else{if(_0x456ce1){const _0x41e0bc=_0x322268[_0x1d9b9a(0x1c3)](_0x30f4ab,arguments);return _0x4c01d2=null,_0x41e0bc;}}}}[a16_0x4d89ed(0x18b)](_0x253d1f,_0x16e2f1){const _0x42430b=a16_0x4d89ed,_0x1f9064={'XABmq':function(_0x597d4f,_0x29e19b){return _0x597d4f!=_0x29e19b;},'LoWNC':'Content-Type'};_0x16e2f1[_0x42430b(0x19e)](constants_1['K'][_0x42430b(0x1dc)],_0x253d1f[_0x42430b(0x192)]),!_0x253d1f['success']&&_0x16e2f1[_0x42430b(0x1d2)](common_1[_0x42430b(0x1be)][_0x42430b(0x18f)]),_0x253d1f[_0x42430b(0x204)]&&_0x1f9064[_0x42430b(0x20f)](_0x253d1f[_0x42430b(0x204)],content_type_1[_0x42430b(0x1ef)][_0x42430b(0x1ba)])?(_0x16e2f1[_0x42430b(0x19e)](_0x1f9064[_0x42430b(0x1cf)],_0x253d1f[_0x42430b(0x204)]),_0x16e2f1[_0x42430b(0x200)](_0x253d1f[_0x42430b(0x210)])):_0x16e2f1[_0x42430b(0x200)](_0x253d1f);}async[a16_0x4d89ed(0x1bd)](_0x59a5c3,_0x54809a,_0xbb9b64){const _0x1312c9=a16_0x4d89ed,_0x37b2ce={'FmOvm':'aborted','KtqLd':_0x1312c9(0x210)};if(_0x59a5c3)try{const _0x57963a=_0x59a5c3['getSessionDoc']();_0x57963a[_0x1312c9(0x1e9)]=_0x1312c9(0x1a1),new session_logger_1['SessionLogger'](_0x57963a)[_0x1312c9(0x1d0)](_0xbb9b64?.[_0x1312c9(0x210)]),await _0x59a5c3['saveSession']();}catch(_0x3248aa){}else{const [_0x2984bb,_0x27a27e]=await this['flowSession'][_0x1312c9(0x198)](_0x54809a);_0x27a27e[_0x1312c9(0x1e9)]=_0x37b2ce[_0x1312c9(0x1f5)],new session_logger_1['SessionLogger'](_0x27a27e)[_0x1312c9(0x1d0)](_0xbb9b64?.[_0x1312c9(0x210)]),await this[_0x1312c9(0x206)][_0x1312c9(0x1a8)](_0x27a27e);}return{'success':![],'message':_0xbb9b64[_0x37b2ce['KtqLd']],'completed':!![]};}async[a16_0x4d89ed(0x1ab)](_0x240083){const _0xcb40c5=a16_0x4d89ed,_0x47eea2={'uNJeQ':function(_0x4466f0,_0x2de3bd){return _0x4466f0!==_0x2de3bd;},'BGmQz':_0xcb40c5(0x1bb)};try{if(_0x240083){const _0x2d630a=await this['flowSession']['fetchAll'](_0x240083);_0x2d630a&&await this[_0xcb40c5(0x206)]['delete'](_0x2d630a['id']);}}catch(_0x12e3a9){if(_0x47eea2[_0xcb40c5(0x20a)](_0x47eea2[_0xcb40c5(0x1e1)],_0x47eea2[_0xcb40c5(0x1e1)])){let _0x43c85e=_0x47680f['DefaultUseTool'];_0x414a28===_0x281b09[_0xcb40c5(0x18c)]&&(_0x43c85e=_0x320f6f[_0xcb40c5(0x1b4)]),this[_0xcb40c5(0x1bc)]={...this[_0xcb40c5(0x1bc)],[_0xbdd192[_0xcb40c5(0x1f3)]]:{'modelClass':_0x1462a7,'params':_0x772c78,'useTool':_0x43c85e}};}else return{'false':!![],'message':_0xcb40c5(0x1d1)+_0x240083+'\x20failed'};}return{'success':!![],'session':_0x240083};}async[a16_0x4d89ed(0x18d)](_0x15a1f7){const _0x47ddd5=a16_0x4d89ed;this[_0x47ddd5(0x189)]={...this[_0x47ddd5(0x189)],..._0x15a1f7};}[a16_0x4d89ed(0x1f2)](_0x745d21){const _0x219b2a=a16_0x4d89ed;return this[_0x219b2a(0x189)][_0x745d21];}[a16_0x4d89ed(0x203)](_0x2c46b3){const _0x31c070=a16_0x4d89ed;this[_0x31c070(0x1bc)]={...this[_0x31c070(0x1bc)],..._0x2c46b3};}[a16_0x4d89ed(0x1c0)](_0x198116,_0x3e0035){const _0xaa3f7b=a16_0x4d89ed,_0x4d60d1={'wxGQM':_0xaa3f7b(0x1cd),'swXmV':function(_0x3879d7,_0x4097eb){return _0x3879d7===_0x4097eb;},'MrTKF':function(_0x4d8dcf,_0x12d234){return _0x4d8dcf===_0x12d234;},'JRMMp':_0xaa3f7b(0x1e0)};let _0x284cf8=FlowEngine_1['DefaultUseTool'];_0x4d60d1[_0xaa3f7b(0x1a6)](_0x198116,ollama_1[_0xaa3f7b(0x18c)])&&(_0x4d60d1[_0xaa3f7b(0x1b9)](_0x4d60d1['JRMMp'],_0x4d60d1[_0xaa3f7b(0x1af)])?_0x284cf8=FlowEngine_1[_0xaa3f7b(0x1b4)]:(_0x2e611a['header'](_0x4d60d1[_0xaa3f7b(0x1c9)],_0x1e400a[_0xaa3f7b(0x204)]),_0xb0335b[_0xaa3f7b(0x200)](_0x4588d2[_0xaa3f7b(0x210)]))),this[_0xaa3f7b(0x1bc)]={...this[_0xaa3f7b(0x1bc)],[_0x3e0035['model']]:{'modelClass':_0x198116,'params':_0x3e0035,'useTool':_0x284cf8}};}[a16_0x4d89ed(0x1bf)](_0x599871){const _0x1fbaf1=a16_0x4d89ed,_0x5a18b2={'Mmomw':_0x1fbaf1(0x1b2),'WPKnb':function(_0x43bc1e,_0x4a86b8){return _0x43bc1e===_0x4a86b8;},'eQQHl':_0x1fbaf1(0x1dd),'QlzkZ':function(_0x2f8c83,_0x399d2b){return _0x2f8c83===_0x399d2b;}};if(!_0x599871){if(_0x5a18b2[_0x1fbaf1(0x1e6)](_0x5a18b2[_0x1fbaf1(0x1b5)],_0x1fbaf1(0x190)))throw new _0x1b4e27(_0x5a18b2[_0x1fbaf1(0x1d3)]);else{const _0x32f6a2=Object[_0x1fbaf1(0x1db)](this[_0x1fbaf1(0x1bc)]);if(_0x5a18b2[_0x1fbaf1(0x1f8)](_0x32f6a2[_0x1fbaf1(0x201)],0x0))throw new Error(_0x5a18b2[_0x1fbaf1(0x1d3)]);else return this[_0x1fbaf1(0x1bc)][_0x32f6a2[0x0]];}}return this[_0x1fbaf1(0x1bc)][_0x599871];}[a16_0x4d89ed(0x1eb)](_0x2df918){const _0x1da36e=a16_0x4d89ed,_0x3f3413={'cFinZ':function(_0x5d6ceb,_0x32f4f4){return _0x5d6ceb<_0x32f4f4;},'lWeRK':function(_0x515cb0,_0x4091c1){return _0x515cb0===_0x4091c1;},'pNCaX':'object','BWlQL':function(_0x8d9c5f,_0x368f9e){return _0x8d9c5f-_0x368f9e;},'xiCSE':function(_0x254654,_0x5749f1){return _0x254654>_0x5749f1;},'SurFk':function(_0x375a52,_0x347c34,_0x48ce8d,_0x379e7a){return _0x375a52(_0x347c34,_0x48ce8d,_0x379e7a);},'SybmT':function(_0x527da0,_0x516491,_0x39fe5b){return _0x527da0(_0x516491,_0x39fe5b);},'Qqblf':function(_0x3a723b,_0x44237e){return _0x3a723b>_0x44237e;},'hnCVO':_0x1da36e(0x1b2)};if(!_0x2df918){const _0x5c9aa0=Object[_0x1da36e(0x1db)](this['llmRegister']);if(_0x3f3413[_0x1da36e(0x1df)](_0x5c9aa0['length'],0x0)){if(_0x3f3413[_0x1da36e(0x1df)](_0x1da36e(0x1a4),_0x1da36e(0x1a4)))throw new Error(_0x3f3413[_0x1da36e(0x1f1)]);else{var _0x33085a=arguments['length'],_0x503729=_0x3f3413[_0x1da36e(0x1e3)](_0x33085a,0x3)?_0x2f7259:_0x3f3413[_0x1da36e(0x1df)](_0x3eaaf6,null)?_0xf7b8b2=_0x885df7[_0x1da36e(0x20b)](_0x69f56b,_0x458870):_0x29b01c,_0x4c3202;if(_0x3f3413[_0x1da36e(0x1df)](typeof _0x5820e9,_0x3f3413[_0x1da36e(0x1ce)])&&typeof _0x5ad246[_0x1da36e(0x1c7)]===_0x1da36e(0x1a7))_0x503729=_0x3d6b56[_0x1da36e(0x1c7)](_0x3f280b,_0x36a649,_0x46ef77,_0x40f09d);else{for(var _0x464f3e=_0x3f3413[_0x1da36e(0x1b1)](_0x52f054[_0x1da36e(0x201)],0x1);_0x464f3e>=0x0;_0x464f3e--)if(_0x4c3202=_0x3553e5[_0x464f3e])_0x503729=(_0x3f3413[_0x1da36e(0x1e3)](_0x33085a,0x3)?_0x4c3202(_0x503729):_0x3f3413[_0x1da36e(0x1d5)](_0x33085a,0x3)?_0x3f3413['SurFk'](_0x4c3202,_0xc66e8c,_0x1f0675,_0x503729):_0x3f3413[_0x1da36e(0x20d)](_0x4c3202,_0x259886,_0x3a4853))||_0x503729;}return _0x3f3413['Qqblf'](_0x33085a,0x3)&&_0x503729&&_0x3c4247[_0x1da36e(0x1f7)](_0x445566,_0x2297a2,_0x503729),_0x503729;}}else return _0x5c9aa0[0x0];}else return _0x2df918;}};exports[a16_0x4d89ed(0x19b)]=FlowEngine,FlowEngine['DefaultUseTool']=(_0xd84194,_0x1667c9)=>{const _0x6eba71=a16_0x4d89ed,_0x4094a1={'RbqKC':function(_0x502e59,_0x3c5ad9){return _0x502e59>_0x3c5ad9;}};return _0x1667c9&&_0x4094a1[_0x6eba71(0x1d4)](_0x1667c9[_0x6eba71(0x201)],0x0)?_0xd84194[_0x6eba71(0x1c5)](_0x1667c9):_0xd84194;},FlowEngine[a16_0x4d89ed(0x1b4)]=(_0x23c5cc,_0x427414)=>{const _0x1b6713=a16_0x4d89ed,_0x377ba4={'gnPzZ':function(_0x57da54,_0x5f5893){return _0x57da54===_0x5f5893;},'AeIKC':'No\x20model\x20registered','gIkyM':function(_0x1ca204,_0x2587a2){return _0x1ca204>_0x2587a2;},'baCha':function(_0x314494,_0x52ce1d){return _0x314494!==_0x52ce1d;},'YzuRK':'HIntG','REVLv':'ppvgc','ZXVTx':_0x1b6713(0x1a2)};if(_0x427414&&_0x377ba4[_0x1b6713(0x1de)](_0x427414['length'],0x0)){if(_0x377ba4['baCha'](_0x377ba4[_0x1b6713(0x1fd)],_0x377ba4[_0x1b6713(0x194)]))return _0x23c5cc[_0x1b6713(0x1a5)]({'tools':_0x427414});else{if(!_0x426c0f){const _0x17c1f1=_0x20494f[_0x1b6713(0x1db)](this[_0x1b6713(0x1bc)]);if(_0x377ba4[_0x1b6713(0x1fe)](_0x17c1f1[_0x1b6713(0x201)],0x0))throw new _0x4ec34f(_0x377ba4[_0x1b6713(0x1b8)]);else return this[_0x1b6713(0x1bc)][_0x17c1f1[0x0]];}return this[_0x1b6713(0x1bc)][_0x3179b4];}}else return _0x377ba4[_0x1b6713(0x1fe)](_0x1b6713(0x1a2),_0x377ba4[_0x1b6713(0x1a0)])?_0x23c5cc:_0x285633&&_0x4e2d00[_0x1b6713(0x201)]>0x0?_0x21550b['bind']({'tools':_0x54592b}):_0x1d1e5e;},exports[a16_0x4d89ed(0x19b)]=FlowEngine=FlowEngine_1=__decorate([(0x0,common_1['Injectable'])(),__metadata(a16_0x4d89ed(0x1d9),[config_1[a16_0x4d89ed(0x1cb)]])],FlowEngine);