@nuvin/agent-core 0.3.1-rc.0 → 0.3.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-EQGBU73Q.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -1
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-NJFOEZ6V.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/isolate/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/package.json +2 -2
package/dist/chunk-IUZALP6K.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x543216,_0x10c1cb){var _0x16c64e={_0x50bdfd:0x540,_0x1b99c9:0x53b,_0x499e7c:0x53b,_0x4e5ede:0x53a,_0x4c6d14:0x531,_0xe22e36:0x534,_0x29423c:0x10b,_0x567382:0x109,_0x543240:0x109,_0x897ce2:0x10a,_0x375761:0x10a,_0x3f3744:0x10f,_0x2a5cf9:0x10d,_0x1a7ddf:0x107,_0x1ceb68:0x10c,_0x34f869:0x53c,_0x2b2376:0x105,_0x2267ff:0x109,_0x15b188:0x10f,_0xf82cda:0x107,_0x5cb41d:0x53e,_0x31d637:0x53a,_0x4aaae6:0x116,_0x12f720:0x111},_0x20f4a6=_0x543216();function _0x3c9f7a(_0x41dc55,_0x152b79,_0x2300ac,_0x5685f9){return _0x5403(_0x152b79- -0x2b5,_0x2300ac);}function _0x1b20a0(_0x4e32cb,_0x47629f,_0x5c4f63,_0x1836b9){return _0x5403(_0x5c4f63-0x394,_0x1836b9);}while(!![]){try{var _0x212886=-parseInt(_0x1b20a0(0x542,_0x16c64e._0x50bdfd,_0x16c64e._0x1b99c9,_0x16c64e._0x499e7c))/0x1*(parseInt(_0x1b20a0(_0x16c64e._0x4e5ede,_0x16c64e._0x4c6d14,_0x16c64e._0xe22e36,0x53b))/0x2)+parseInt(_0x3c9f7a(-0x111,-_0x16c64e._0x29423c,-_0x16c64e._0x567382,-_0x16c64e._0x543240))/0x3+parseInt(_0x3c9f7a(-_0x16c64e._0x897ce2,-0x111,-_0x16c64e._0x375761,-0x115))/0x4*(parseInt(_0x3c9f7a(-_0x16c64e._0x3f3744,-_0x16c64e._0x2a5cf9,-_0x16c64e._0x1a7ddf,-_0x16c64e._0x1ceb68))/0x5)+parseInt(_0x1b20a0(0x53a,_0x16c64e._0x34f869,0x537,0x533))/0x6+parseInt(_0x3c9f7a(-0x112,-0x10c,-_0x16c64e._0x2b2376,-_0x16c64e._0x3f3744))/0x7*(parseInt(_0x3c9f7a(-_0x16c64e._0x1a7ddf,-0x109,-0x10a,-_0x16c64e._0x2267ff))/0x8)+parseInt(_0x3c9f7a(-_0x16c64e._0x15b188,-0x10a,-0x10f,-_0x16c64e._0xf82cda))/0x9+parseInt(_0x1b20a0(0x53b,_0x16c64e._0x5cb41d,_0x16c64e._0x31d637,0x53e))/0xa*(-parseInt(_0x3c9f7a(-0x111,-_0x16c64e._0x4aaae6,-0x114,-_0x16c64e._0x12f720))/0xb);if(_0x212886===_0x10c1cb)break;else _0x20f4a6['push'](_0x20f4a6['shift']());}catch(_0x53d5a2){_0x20f4a6['push'](_0x20f4a6['shift']());}}}(_0x5e04,0x81ec5));function resolveAnthropicReasoningConfig(_0x26d93f){var _0x1fe17d={_0x4360f1:0x3fb,_0x20d67d:0x404,_0x432957:0x57d,_0x103ca7:0x57f,_0x15e99a:0x580},_0x34a5c5={_0x33bca7:0x3dc},_0x1e280a={_0x1bf279:0x25e};function _0x435006(_0x5f8375,_0x3dbc3c,_0x32ba23,_0x3c1a7d){return _0x5403(_0x5f8375-_0x1e280a._0x1bf279,_0x32ba23);}function _0x496e39(_0x26be31,_0x126a7b,_0x1b66fd,_0x4d6a1c){return _0x5403(_0x126a7b-_0x34a5c5._0x33bca7,_0x26be31);}return _0x26d93f?.[_0x435006(0x3ff,_0x1fe17d._0x4360f1,0x3fc,_0x1fe17d._0x20d67d)]?structuredClone(_0x26d93f[_0x496e39(0x57a,_0x1fe17d._0x432957,_0x1fe17d._0x103ca7,_0x1fe17d._0x15e99a)]):void 0x0;}function _0x5403(_0x35e907,_0x337a6a){_0x35e907=_0x35e907-0x19f;var _0x5e0405=_0x5e04();var _0x540305=_0x5e0405[_0x35e907];if(_0x5403['zjDMCf']===undefined){var _0x4411d4=function(_0x3904fb){var _0x2baa17='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x26d93f='',_0xe99eaf='';for(var _0x2dcc7f=0x0,_0x132052,_0x3e03e3,_0x4650d4=0x0;_0x3e03e3=_0x3904fb['charAt'](_0x4650d4++);~_0x3e03e3&&(_0x132052=_0x2dcc7f%0x4?_0x132052*0x40+_0x3e03e3:_0x3e03e3,_0x2dcc7f++%0x4)?_0x26d93f+=String['fromCharCode'](0xff&_0x132052>>(-0x2*_0x2dcc7f&0x6)):0x0){_0x3e03e3=_0x2baa17['indexOf'](_0x3e03e3);}for(var _0x4ad9a9=0x0,_0x550ea5=_0x26d93f['length'];_0x4ad9a9<_0x550ea5;_0x4ad9a9++){_0xe99eaf+='%'+('00'+_0x26d93f['charCodeAt'](_0x4ad9a9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xe99eaf);};_0x5403['kGbcwc']=_0x4411d4,_0x5403['DrLJUH']={},_0x5403['zjDMCf']=!![];}var _0x11edee=_0x5e0405[0x0],_0x566c4b=_0x35e907+_0x11edee,_0x352490=_0x5403['DrLJUH'][_0x566c4b];return!_0x352490?(_0x540305=_0x5403['kGbcwc'](_0x540305),_0x5403['DrLJUH'][_0x566c4b]=_0x540305):_0x540305=_0x352490,_0x540305;}function _0x5e04(){var _0x41a166=['mti1otiWmZbHwKD5qM0','mvrcCw5KDa','nxPArg5IqW','nZyZDMDfv3n0','otu5ndm5D0XpuK9P','mtq3mtGYnffpvwvSBa','nJeYmJrTChvksfu','mtfKCvDKrhy','mti3nte4mK51ExPWCa','yw50AhjVCgLJ','y29KzxG','mZyZnZK2ogHJENrvtW','mJaYmdqYmhD6vMPXAa','B3bLBMfP'];_0x5e04=function(){return _0x41a166;};return _0x5e04();}function resolveOpenAiReasoningConfig(_0xe99eaf){var _0xbd54ec={_0x58728e:0xf0,_0x31647b:0xe7,_0x5ef3e2:0xe9,_0x16b5bd:0x20b,_0x5da86d:0x1ff},_0x26652c={_0x1e7594:0x28b},_0xf59754={_0x4c4c7f:0x3a7};function _0x1b7137(_0x36d644,_0x537381,_0x48c4e2,_0x4af435){return _0x5403(_0x48c4e2- -_0xf59754._0x4c4c7f,_0x537381);}function _0x4802cc(_0x18711b,_0x211eb4,_0x17b067,_0x380228){return _0x5403(_0x17b067- -_0x26652c._0x1e7594,_0x380228);}if(_0xe99eaf?.[_0x4802cc(-_0xbd54ec._0x58728e,-_0xbd54ec._0x31647b,-_0xbd54ec._0x5ef3e2,-_0xbd54ec._0x5ef3e2)])return structuredClone(_0xe99eaf[_0x1b7137(-0x205,-_0xbd54ec._0x16b5bd,-0x205,-0x206)]);return _0xe99eaf?.['openai']?structuredClone(_0xe99eaf[_0x1b7137(-_0xbd54ec._0x5da86d,-_0xbd54ec._0x5da86d,-0x202,-0x207)]):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
|
package/dist/chunk-LIE76IJA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x17e08d,_0x59f959){const _0x14e955={_0x4283ed:0x179,_0x176fc7:0x184,_0x4ceb05:0x15e,_0x4b8af8:0x370,_0x135c24:0x35e,_0x27ccc2:0x191,_0x3c9cf4:0x166,_0x4aad36:0x16a,_0x15cd19:0x35b,_0x580e6c:0x170,_0x53755d:0x36a,_0x41b429:0x377,_0x2ce9cf:0x39a,_0x2236f7:0x177,_0x208be3:0x15f,_0x5f5155:0x169,_0x54a51c:0x3ad,_0x5788b5:0x391},_0x50fa1b={_0x3d75b9:0x392};function _0x468edc(_0x27de35,_0x4d64f5,_0xfa78a,_0xf8af90){return _0x1074(_0x27de35- -_0x50fa1b._0x3d75b9,_0x4d64f5);}function _0x4bfb0e(_0x15c3eb,_0x58ca67,_0x2205f4,_0x50fc2f){return _0x1074(_0x58ca67-0x17f,_0x15c3eb);}const _0x5df284=_0x17e08d();while(!![]){try{const _0x596fb1=-parseInt(_0x468edc(-0x19f,-0x197,-0x1b5,-0x1a8))/0x1*(parseInt(_0x468edc(-_0x14e955._0x4283ed,-0x166,-_0x14e955._0x176fc7,-_0x14e955._0x4ceb05))/0x2)+parseInt(_0x4bfb0e(0x358,_0x14e955._0x4b8af8,0x36a,_0x14e955._0x135c24))/0x3+parseInt(_0x468edc(-_0x14e955._0x27ccc2,-0x18b,-0x1a7,-0x18b))/0x4*(parseInt(_0x468edc(-_0x14e955._0x3c9cf4,-0x163,-0x183,-_0x14e955._0x4aad36))/0x5)+parseInt(_0x4bfb0e(0x381,0x37a,_0x14e955._0x15cd19,0x374))/0x6*(-parseInt(_0x468edc(-_0x14e955._0x580e6c,-0x154,-0x173,-0x18a))/0x7)+-parseInt(_0x4bfb0e(_0x14e955._0x53755d,0x37d,_0x14e955._0x41b429,0x36b))/0x8*(parseInt(_0x4bfb0e(0x39f,0x39e,0x394,_0x14e955._0x2ce9cf))/0x9)+-parseInt(_0x468edc(-_0x14e955._0x2236f7,-_0x14e955._0x208be3,-_0x14e955._0x5f5155,-0x15e))/0xa+parseInt(_0x4bfb0e(_0x14e955._0x54a51c,0x3a3,0x3ab,_0x14e955._0x5788b5))/0xb;if(_0x596fb1===_0x59f959)break;else _0x5df284['push'](_0x5df284['shift']());}catch(_0x5742bd){_0x5df284['push'](_0x5df284['shift']());}}}(_0x4db4,0x436d6));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x4f5c95){function _0x2e0440(_0x5969bd,_0x691e96,_0x4315a5,_0x3a5b8c){return _0x1074(_0x691e96- -0x105,_0x4315a5);}return normalizeContent(_0x4f5c95)['filter'](_0x563ebd=>_0x563ebd['type']===_0x2e0440(0xf9,0xff,0xfe,0xfc))['map'](_0x45f5bf=>_0x45f5bf['text'])['join']('\x0a\x0a');}function pushUserContentMessage(_0x135ec9,_0x52bcf5,_0x31d778){const _0x1ca88c={_0x22dcad:0x4f3,_0xbe2bc6:0x4f3,_0x16c51e:0x4c4,_0x6e34d5:0x4c3,_0x3beab7:0x4e8,_0x4f680e:0x510,_0x1805a8:0x4f2},_0x4a82bb={_0x23ea8e:0x2ec};function _0x187240(_0x1d3214,_0x551f60,_0x2dfd15,_0x5af3a5){return _0x1074(_0x2dfd15-_0x4a82bb._0x23ea8e,_0x551f60);}if(_0x31d778[_0x187240(0x4f9,0x4e0,_0x1ca88c._0x22dcad,0x50c)]===0x0)return;function _0x206637(_0x5a6a61,_0x5b6fe2,_0x49d257,_0x3bd51f){return _0x1074(_0x5b6fe2-0x389,_0x49d257);}_0x135ec9[_0x187240(_0x1ca88c._0xbe2bc6,_0x1ca88c._0x16c51e,0x4de,_0x1ca88c._0x6e34d5)]({'type':_0x187240(_0x1ca88c._0x3beab7,_0x1ca88c._0x4f680e,_0x1ca88c._0x1805a8,0x4fe),'role':_0x52bcf5,'content':_0x31d778});}function hasSerializableToolUse(_0x1b7e4a){const _0x3a85cd={_0x395c3c:0x1ab,_0x4b0640:0x1a0,_0x814ff:0x3d7,_0x4eecc9:0x1a3,_0x31c089:0x3c8,_0x264472:0x3f7,_0x221908:0x3e0},_0x244e7c={_0x8655c4:0x3b1},_0x44dd57={_0x1531ae:0x1d9};function _0x4bf4f0(_0xddee88,_0x62c731,_0x3146fa,_0x38373c){return _0x1074(_0x38373c-_0x44dd57._0x1531ae,_0x62c731);}function _0x2d9517(_0x44bc62,_0x4d4b31,_0x420c87,_0xcb2574){return _0x1074(_0xcb2574- -_0x244e7c._0x8655c4,_0x420c87);}return _0x1b7e4a['id'][_0x2d9517(-0x19c,-_0x3a85cd._0x395c3c,-_0x3a85cd._0x4b0640,-0x1a3)]()[_0x4bf4f0(0x3fe,_0x3a85cd._0x814ff,0x3c3,0x3e0)]>0x0&&_0x1b7e4a[_0x4bf4f0(0x3cd,0x3cf,0x3d8,0x3e5)][_0x2d9517(-0x18d,-_0x3a85cd._0x395c3c,-0x1c0,-_0x3a85cd._0x4eecc9)]()[_0x4bf4f0(0x3f0,_0x3a85cd._0x31c089,_0x3a85cd._0x264472,_0x3a85cd._0x221908)]>0x0;}function _0x4db4(){const _0x1a5ea6=['DhjPBq','Bwf4vg9Rzw5Z','zNvUy3rPB24','C3rHDhvZ','Aw5WDxrFDgv4Da','Aw1Hz2u','Aw5WDxq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','A2v5CW','C291CMnL','B3v0Chv0rM9YBwf0','mta2mZyYngDPA0TMAG','C2nOzw1H','ndKWndmWmhDqCw9PDW','DxnLCG','C3vTBwfYEq','CMvHC29UAw5N','nta0ouD1yxfHEq','BwfW','AxnbCNjHEq','n2jWzuLQtq','zgf0ytO','mtqYndmYntfirMjSwgC','B3v0Chv0x3rLEhq','C3rYAwn0','zwzMB3j0','Dg9VBhm','DhLWzq','ANnVBL9Zy2HLBwe','y29UDgvUDa','mtq2mde5nwHvqwLNvq','AM9PBG','Dg9VBf91C2u','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','nduWnJi0AxP4Avjd','ChvZAa','mwnQCgveAa','zgvZy3jPChrPB24','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','DMLZAwjPBgL0Eq','C3LZDgvT','C3rYAw5NAwz5','zNvUy3rPB25Fy2fSBa','zNvUy3rPB25Fy2fSBf9VDxrWDxq','mJyYodyXofHnCMneyq','yMfZzty0','Dg9VBf91C2vFAwq','oejHDuLMzq','zgf0yq','CM9Szq','ng5cD2PNCa','BwvKAwfFDhLWzq','zMLSDgvY','Dgv4Da','Aw5WDxrFAw1Hz2u','BwvZC2fNzq','BgvUz3rO','yxnZAxn0yw50','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','o2jHC2u2ncW','C3rYAw5N','BMfTzq','Bw9KzwW'];_0x4db4=function(){return _0x1a5ea6;};return _0x4db4();}function hasSerializableToolResult(_0x57ee43){const _0x38c48d={_0x5f089d:0x317,_0x29147f:0x334,_0x43e2e4:0x318,_0x570155:0x329,_0x5b27d4:0x321},_0x264c08={_0xb608ed:0x287},_0x1642ce={_0x168221:0x11a};function _0x436477(_0x233497,_0x518f9d,_0x405b7a,_0x3feb00){return _0x1074(_0x405b7a-_0x1642ce._0x168221,_0x233497);}function _0x3859ee(_0x4e014c,_0x5e2e0f,_0x143d9c,_0x39511f){return _0x1074(_0x143d9c-_0x264c08._0xb608ed,_0x39511f);}return _0x57ee43[_0x436477(0x317,0x30e,_0x38c48d._0x5f089d,0x317)][_0x436477(_0x38c48d._0x29147f,_0x38c48d._0x43e2e4,0x328,0x321)]()[_0x436477(0x304,_0x38c48d._0x570155,_0x38c48d._0x5b27d4,0x30c)]>0x0;}function isResponseInputObject(_0x25514d){const _0x405e92={_0x491fd7:0x206,_0x2fa294:0x205,_0x51200b:0x202,_0x2946df:0x50c,_0xa30760:0x503},_0xcb9b24={_0x3b46a5:0x1f},_0x5434f1={_0x5813c7:0x306};if(typeof _0x25514d!=='object'||_0x25514d===null||Array[_0x49aa9a(_0x405e92._0x491fd7,0x1f0,_0x405e92._0x2fa294,_0x405e92._0x51200b)](_0x25514d))return![];const _0x16b7a2=_0x25514d;function _0xc710cc(_0x2eaa24,_0x380e4e,_0x4bb05c,_0x3340c0){return _0x1074(_0x4bb05c-_0x5434f1._0x5813c7,_0x3340c0);}function _0x49aa9a(_0x1b51ce,_0xb5ad58,_0x484be7,_0x52ebd8){return _0x1074(_0x52ebd8- -_0xcb9b24._0x3b46a5,_0xb5ad58);}return typeof _0x16b7a2['type']===_0xc710cc(0x513,_0x405e92._0x2946df,0x511,_0x405e92._0xa30760);}function isImageToolResultBlock(_0x46b8c3){const _0x5bcc94={_0x5cb660:0x200,_0xff0895:0x3d0,_0xf9e4cb:0x3c8,_0x19398c:0x1d4,_0x38b4da:0x1ed,_0x5b6737:0x1c0,_0x5f0a6f:0x1a2,_0x5b1e87:0x3fd,_0x4fe3e9:0x3b5,_0x316595:0x3da,_0x2b5ee1:0x1db,_0x5b5246:0x1d6,_0x5f1960:0x1e7,_0x39f93a:0x3c6,_0x2cb245:0x3d2,_0x4f6aab:0x3d2,_0x5cc6e1:0x1cf,_0x3e1fe7:0x1e8,_0x1c6a27:0x1d8},_0x21deaf={_0x2b8590:0x1c7};if(typeof _0x46b8c3!=='object'||_0x46b8c3===null||Array['isArray'](_0x46b8c3))return![];function _0x2532b4(_0x591556,_0xb73258,_0x4a8291,_0x5139da){return _0x1074(_0x591556- -0x3c,_0x5139da);}function _0x48613e(_0x3af867,_0x44cb8b,_0x2ee0f3,_0x26dffb){return _0x1074(_0x3af867-_0x21deaf._0x2b8590,_0x44cb8b);}const _0x2acb7b=_0x46b8c3;return _0x2acb7b[_0x2532b4(0x1ed,0x1d3,_0x5bcc94._0x5cb660,0x1e9)]===_0x48613e(0x3da,0x3c8,_0x5bcc94._0xff0895,_0x5bcc94._0xf9e4cb)&&_0x2acb7b[_0x2532b4(0x1db,0x1bc,_0x5bcc94._0x19398c,0x1f2)]?.[_0x2532b4(_0x5bcc94._0x38b4da,0x1f9,0x1ff,0x1fa)]===_0x2532b4(_0x5bcc94._0x5b6737,0x1c5,_0x5bcc94._0x5f0a6f,0x1a8)&&typeof _0x2acb7b[_0x48613e(0x3de,0x3f9,_0x5bcc94._0x5b1e87,0x3dc)][_0x48613e(0x3c9,0x3d3,0x3d3,0x3d5)]===_0x48613e(0x3d2,0x3ea,_0x5bcc94._0x4fe3e9,_0x5bcc94._0x316595)&&typeof _0x2acb7b[_0x2532b4(_0x5bcc94._0x2b5ee1,0x1cf,_0x5bcc94._0x5b5246,_0x5bcc94._0x5f1960)][_0x48613e(_0x5bcc94._0x39f93a,_0x5bcc94._0x2cb245,0x3ba,_0x5bcc94._0x4f6aab)]===_0x2532b4(_0x5bcc94._0x5cc6e1,_0x5bcc94._0x3e1fe7,_0x5bcc94._0x1c6a27,0x1c5);}function _0x1074(_0x48ca11,_0x47c9d9){_0x48ca11=_0x48ca11-0x1f0;const _0x4db4bd=_0x4db4();let _0x1074e9=_0x4db4bd[_0x48ca11];if(_0x1074['ecUuLd']===undefined){var _0xbb8cd3=function(_0x37d8aa){const _0x5c4883='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f5c95='',_0x563ebd='';for(let _0x45f5bf=0x0,_0x135ec9,_0x52bcf5,_0x31d778=0x0;_0x52bcf5=_0x37d8aa['charAt'](_0x31d778++);~_0x52bcf5&&(_0x135ec9=_0x45f5bf%0x4?_0x135ec9*0x40+_0x52bcf5:_0x52bcf5,_0x45f5bf++%0x4)?_0x4f5c95+=String['fromCharCode'](0xff&_0x135ec9>>(-0x2*_0x45f5bf&0x6)):0x0){_0x52bcf5=_0x5c4883['indexOf'](_0x52bcf5);}for(let _0x1b7e4a=0x0,_0x57ee43=_0x4f5c95['length'];_0x1b7e4a<_0x57ee43;_0x1b7e4a++){_0x563ebd+='%'+('00'+_0x4f5c95['charCodeAt'](_0x1b7e4a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x563ebd);};_0x1074['FiFUch']=_0xbb8cd3,_0x1074['qbDJsh']={},_0x1074['ecUuLd']=!![];}const _0x25036e=_0x4db4bd[0x0],_0x30d88f=_0x48ca11+_0x25036e,_0x31c8ff=_0x1074['qbDJsh'][_0x30d88f];return!_0x31c8ff?(_0x1074e9=_0x1074['FiFUch'](_0x1074e9),_0x1074['qbDJsh'][_0x30d88f]=_0x1074e9):_0x1074e9=_0x31c8ff,_0x1074e9;}function getToolResultText(_0x14ad64){const _0x5b8f2e={_0x5a9a8e:0x31a,_0x311e6d:0x307,_0x563be9:0x30f,_0x3bf106:0x5f9,_0x3b4597:0x5f7,_0x3aa5f3:0x337,_0x3794af:0x618,_0x59692d:0x60b,_0x350173:0x602,_0x52119d:0x322,_0x20d378:0x306,_0x576b6c:0x30c,_0x569fe3:0x2f1},_0x5a0b2b={_0x194e56:0x549},_0x5dfcc2={_0x58446f:0xfc};function _0x463448(_0x107eb7,_0x353abe,_0x42f1f0,_0x1436a6){return _0x1074(_0x1436a6-_0x5dfcc2._0x58446f,_0x107eb7);}if(typeof _0x14ad64===_0x463448(_0x5b8f2e._0x5a9a8e,_0x5b8f2e._0x311e6d,_0x5b8f2e._0x563be9,0x307))return _0x14ad64;const _0x695258=_0x14ad64[_0x31ade4(_0x5b8f2e._0x3bf106,_0x5b8f2e._0x3b4597,0x5e1,0x5ef)](_0x157eab=>{const _0x2ca8e1={_0x32ecab:0x237};function _0x265718(_0x1001ae,_0x28b136,_0x1b92a2,_0xd6ade5){return _0x463448(_0x1b92a2,_0x28b136-0x101,_0x1b92a2-0x85,_0x28b136-_0x2ca8e1._0x32ecab);}return typeof _0x157eab==='object'&&_0x157eab!==null&&_0x157eab['type']===_0x265718(0x524,0x537,_0x5a0b2b._0x194e56,0x53c);})[_0x463448(_0x5b8f2e._0x3aa5f3,0x328,0x322,0x31c)](_0x4ca255=>_0x4ca255[_0x31ade4(0x5f0,0x5e9,0x5e2,0x5cb)])[_0x31ade4(_0x5b8f2e._0x3794af,0x60d,_0x5b8f2e._0x59692d,_0x5b8f2e._0x350173)]('\x0a\x0a')[_0x463448(0x2f1,_0x5b8f2e._0x52119d,0x31f,0x30a)]();function _0x31ade4(_0x30791c,_0x8be386,_0x53df61,_0x55acb6){return _0x1074(_0x53df61-0x3de,_0x8be386);}return _0x695258[_0x463448(_0x5b8f2e._0x20d378,0x2fc,_0x5b8f2e._0x576b6c,0x303)]>0x0?_0x695258:_0x463448(_0x5b8f2e._0x569fe3,0x2ea,0x307,_0x5b8f2e._0x569fe3);}function getToolResultImages(_0x46dbca){const _0xa28edf={_0x1e5ab3:0x25f,_0x3004dc:0x231};function _0x1b0e70(_0x4116c2,_0x5520f7,_0x538950,_0x7efe29){return _0x1074(_0x7efe29-0x24,_0x4116c2);}return Array[_0x1b0e70(_0xa28edf._0x1e5ab3,_0xa28edf._0x3004dc,0x249,0x245)](_0x46dbca)?_0x46dbca['filter'](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0xa25ef2){const _0x1e543b={_0x290b66:0x47,_0x514194:0x3a,_0x396dd4:0x249},_0x530a27={_0x198134:0x56};function _0x34104a(_0x2e88f2,_0x2f33b5,_0x226a40,_0x58d0f5){return _0x1074(_0x58d0f5- -0x258,_0x226a40);}function _0x2cdfe4(_0xd819c5,_0x1e88bc,_0x32a579,_0x241d1d){return _0x1074(_0x241d1d-_0x530a27._0x198134,_0x32a579);}return _0xa25ef2[_0x34104a(-0x4e,-0x3c,-_0x1e543b._0x290b66,-_0x1e543b._0x514194)]?.[_0x2cdfe4(_0x1e543b._0x396dd4,0x23a,0x26c,0x24c)]??'user-visible';}function createOpenAiResponsesReasoning(_0x1fadb4){const _0x591b41={_0x2e9f4b:0x23f,_0x250f78:0x243,_0x1ed147:0x538,_0x1453fb:0x539,_0x444e98:0x54f,_0x4f5a4b:0x524,_0x2572c2:0x53c,_0x489d1e:0x543,_0xbd7ded:0x526,_0x2a5dbe:0x230,_0xe1bd21:0x242,_0x4cf56d:0x226,_0x495490:0x223,_0x22609a:0x273,_0x67257f:0x258,_0x3e10a9:0x24b,_0x20a57c:0x23b,_0x2068c1:0x21e,_0x55e406:0x213,_0x4704cc:0x245,_0x1379e5:0x22c,_0x438e28:0x23d},_0x1313a0={_0xeacf85:0x25},_0x1f40e8=resolveOpenAiReasoningConfig(_0x1fadb4['reasoning']);function _0x28cdd9(_0x4f6ca8,_0x421fe9,_0x64f85c,_0x19d326){return _0x1074(_0x64f85c-0x31c,_0x421fe9);}function _0xaba056(_0x1eaaf4,_0x35bee0,_0x2b84bb,_0x549f8f){return _0x1074(_0x2b84bb-_0x1313a0._0xeacf85,_0x1eaaf4);}if(!_0x1f40e8)return{};const _0x1b577b={},_0x7cfe6f=_0x1fadb4[_0xaba056(_0x591b41._0x2e9f4b,0x263,_0x591b41._0x250f78,0x25f)]?.['codex']!==void 0x0,_0x259668=(!_0x7cfe6f&&_0x28cdd9(0x526,_0x591b41._0x1ed147,_0x591b41._0x1453fb,_0x591b41._0x444e98)in _0x1f40e8?_0x1f40e8['summary']:void 0x0)??(resolveReasoningVisibility(_0x1fadb4)==='user-visible'?'auto':void 0x0);return _0x1f40e8[_0x28cdd9(_0x591b41._0x4f5a4b,_0x591b41._0x2572c2,_0x591b41._0x489d1e,0x533)]&&(_0x1b577b[_0x28cdd9(_0x591b41._0xbd7ded,0x55c,0x543,0x523)]=_0x1f40e8[_0x28cdd9(0x543,0x557,_0x591b41._0x489d1e,0x538)]),_0x259668&&(_0x1b577b[_0xaba056(0x247,_0x591b41._0x2a5dbe,_0x591b41._0xe1bd21,0x225)]=_0x259668),{...!_0x7cfe6f&&_0xaba056(0x21f,_0x591b41._0x4cf56d,0x22e,_0x591b41._0x495490)in _0x1f40e8&&_0x1f40e8['includeEncryptedContent']===![]?{}:{'include':[_0xaba056(_0x591b41._0x22609a,0x24c,0x254,_0x591b41._0x67257f)]},...Object[_0xaba056(_0x591b41._0x3e10a9,0x238,_0x591b41._0x20a57c,_0x591b41._0x2068c1)](_0x1b577b)[_0xaba056(_0x591b41._0x55e406,_0x591b41._0x4704cc,_0x591b41._0x1379e5,_0x591b41._0x438e28)]>0x0?{'reasoning':_0x1b577b}:{}};}function pushAssistantProviderState(_0x32b043,_0x5d24e6,_0x3f4794){const _0x3a84a5={_0x355058:0x18b,_0x1bb9c4:0x16f,_0x1e68a1:0x17b,_0x20e3da:0x16c,_0x1b17e2:0x165,_0x458f74:0x182,_0x2cc78d:0x1ac,_0x209233:0x181,_0x1e66a8:0x4fb,_0x570974:0x502,_0x3d534a:0x507,_0x1281c1:0x51f,_0x5c49f1:0x161,_0x4fb375:0x156,_0x4c79f5:0x178,_0x3800ff:0x147,_0x294ada:0x166,_0xa3d653:0x155,_0x2c11f0:0x16f,_0x4b2300:0x154},_0x5d0394={_0x389ea7:0x383},_0x5ab77b={_0x89ecb7:0x2ea};if(_0x5d24e6[_0x350b2a(-0x183,-_0x3a84a5._0x355058,-_0x3a84a5._0x1bb9c4,-0x19b)]!==_0x350b2a(-_0x3a84a5._0x1e68a1,-_0x3a84a5._0x20e3da,-_0x3a84a5._0x1b17e2,-0x166))return![];function _0x1fd934(_0xd9c9ec,_0x33c874,_0x600b3f,_0x435908){return _0x1074(_0x600b3f-_0x5ab77b._0x89ecb7,_0x33c874);}if(!isProviderStateCompatible(_0x5d24e6,_0x3f4794))return![];const _0x281467=_0x5d24e6['providerState']?.[_0x350b2a(-0x193,-_0x3a84a5._0x458f74,-_0x3a84a5._0x2cc78d,-_0x3a84a5._0x209233)]??[];if(_0x281467['length']===0x0)return![];function _0x350b2a(_0x132a97,_0x514af2,_0x5ba9b2,_0x27517a){return _0x1074(_0x132a97- -_0x5d0394._0x389ea7,_0x514af2);}for(const _0x2b025f of _0x281467){if(isResponseInputObject(_0x2b025f)){const _0x5943de=structuredClone(_0x2b025f);delete _0x5943de[_0x1fd934(0x4f7,0x4e3,_0x3a84a5._0x1e66a8,0x4f8)],_0x5943de[_0x1fd934(0x528,0x50c,0x513,_0x3a84a5._0x570974)]===_0x1fd934(0x4f3,_0x3a84a5._0x3d534a,0x508,_0x3a84a5._0x1281c1)&&!Array[_0x350b2a(-0x162,-_0x3a84a5._0x5c49f1,-_0x3a84a5._0x4fb375,-0x164)](_0x5943de[_0x350b2a(-0x166,-_0x3a84a5._0x4c79f5,-0x158,-_0x3a84a5._0x3800ff)])&&(_0x5943de[_0x350b2a(-_0x3a84a5._0x294ada,-_0x3a84a5._0xa3d653,-_0x3a84a5._0x2c11f0,-_0x3a84a5._0x4b2300)]=[]),_0x32b043['push'](_0x5943de);}}return!![];}function toOpenAiResponsesRequest(_0x4dd5e3){const _0x45ac94={_0x5ebac2:0x170,_0x4f5d5e:0x17f,_0x52d74f:0x16e,_0x3ff8b4:0x14a,_0x5bf797:0x128,_0x20282c:0x15b,_0x1580a0:0x144,_0x36cee1:0x131,_0x335351:0x13d,_0x4d38b8:0x159,_0x1f107f:0x16a,_0x105874:0x162,_0x4adfe8:0x164,_0xd8c901:0x147,_0xa77ea1:0x13e,_0x3b38ce:0x138,_0x4bb8b9:0x155,_0x2bf6c0:0x127,_0x43466a:0x164,_0xce904c:0x130,_0x16645b:0x147,_0x44867e:0x185,_0x35c231:0x16c,_0x2a73f4:0x16d,_0x398ed5:0x156,_0x1c992f:0x13c,_0x2daa7b:0x12f,_0x16c5ee:0x153,_0x548755:0x140,_0x1790d7:0x148,_0x5262b3:0x156,_0x1f0ca8:0x15a,_0x388aaa:0x135,_0x368800:0x140,_0x52b026:0x15a,_0x339450:0x142,_0x1d1340:0x149,_0x8e1541:0x13b,_0x529c19:0x126,_0x5a1343:0x180,_0x40e38b:0x12e,_0x1cfa72:0x153,_0x149cf3:0x11f,_0x46ca37:0x135,_0x388282:0x128,_0x47f86d:0x128,_0x477d13:0x13c,_0x159258:0x149,_0x25d09b:0x169,_0x2ede9f:0x181,_0x574771:0x184,_0x4fad23:0x168,_0x1c9cba:0x11d,_0x40090c:0x14c,_0x28f6e:0x130,_0x545b34:0x146,_0xee6f3f:0x143,_0x3735cd:0x14f,_0x3b0a79:0x153,_0x1320ed:0x13c,_0x31d137:0x16a,_0x19ff7a:0x153,_0x3c7b4e:0x152,_0x3a2c56:0x153,_0x3fc854:0x13d,_0x1acbb0:0x16f,_0x53157b:0x150,_0x397283:0x138,_0x41129a:0x134,_0x2dc141:0x15b,_0x447081:0x15c,_0x5c4785:0x160,_0x594b5b:0x14b,_0x4993f9:0x145,_0x3239f6:0x165,_0x415956:0x172,_0x5b34f0:0x14e,_0x306d7e:0x155,_0x256f2c:0x16a,_0x2c686c:0x13a,_0x4e83d1:0x153,_0x25ee2b:0x148,_0x45b5a7:0x176,_0x1fbcd8:0x171},_0x25c0c5={_0x2364c3:0x556,_0x59b2ef:0x554,_0x35c1b8:0x565,_0x8972af:0x568,_0x9c1ddb:0x33d,_0x35b62a:0x347},_0x1a3bab={_0x5af1ab:0x1b5},_0x1e553b={_0x3683f6:0xbd},_0x2ee78e={_0xd01fb:0xc3},_0x249cd6=[];function _0x171ba2(_0x5c4c98,_0x378a62,_0x9fdae7,_0x35d574){return _0x1074(_0x35d574- -_0x2ee78e._0xd01fb,_0x5c4c98);}for(const _0x1b8bc0 of _0x4dd5e3['messages']){if(pushAssistantProviderState(_0x249cd6,_0x1b8bc0,_0x4dd5e3))continue;const _0x531ac2=[];for(const _0x4e8a09 of normalizeContent(_0x1b8bc0[_0x234f32(_0x45ac94._0x5ebac2,_0x45ac94._0x4f5d5e,0x161,_0x45ac94._0x52d74f)])){if(_0x4e8a09['type']===_0x234f32(_0x45ac94._0x3ff8b4,_0x45ac94._0x5bf797,_0x45ac94._0x20282c,0x147)){_0x531ac2['push'](_0x1b8bc0[_0x171ba2(_0x45ac94._0x1580a0,0x129,_0x45ac94._0x36cee1,_0x45ac94._0x335351)]==='assistant'?{'type':_0x171ba2(0x15c,_0x45ac94._0x4d38b8,_0x45ac94._0x1f107f,_0x45ac94._0x105874),'text':_0x4e8a09[_0x234f32(0x150,_0x45ac94._0x4adfe8,0x147,_0x45ac94._0xd8c901)]}:{'type':_0x234f32(_0x45ac94._0xa77ea1,_0x45ac94._0x3b38ce,0x142,_0x45ac94._0x4bb8b9),'text':_0x4e8a09[_0x234f32(_0x45ac94._0x2bf6c0,_0x45ac94._0x43466a,_0x45ac94._0xce904c,_0x45ac94._0x16645b)]});continue;}if(_0x4e8a09[_0x234f32(_0x45ac94._0x44867e,0x17a,_0x45ac94._0x20282c,_0x45ac94._0x35c231)]===_0x234f32(_0x45ac94._0x2a73f4,0x14d,0x157,_0x45ac94._0x398ed5)){_0x531ac2[_0x171ba2(_0x45ac94._0x1c992f,0x138,0x146,_0x45ac94._0x2daa7b)]({'type':_0x234f32(_0x45ac94._0x16c5ee,_0x45ac94._0x548755,0x166,_0x45ac94._0x1790d7),'image_url':'data:'+_0x4e8a09[_0x234f32(0x15b,_0x45ac94._0x5262b3,0x142,_0x45ac94._0x1f0ca8)][_0x171ba2(_0x45ac94._0x388aaa,_0x45ac94._0x368800,_0x45ac94._0x52b026,0x13f)]+';base64,'+_0x4e8a09[_0x234f32(0x178,0x149,0x143,0x15a)][_0x234f32(0x13d,0x15b,0x152,_0x45ac94._0x339450)]});continue;}pushUserContentMessage(_0x249cd6,_0x1b8bc0[_0x234f32(_0x45ac94._0x1d1340,_0x45ac94._0x8e1541,_0x45ac94._0x529c19,0x143)],_0x531ac2['splice'](0x0));if(_0x4e8a09['type']===_0x234f32(0x162,0x160,_0x45ac94._0x5a1343,0x171)){if(!hasSerializableToolUse(_0x4e8a09))continue;_0x249cd6[_0x234f32(_0x45ac94._0x40e38b,_0x45ac94._0x1cfa72,_0x45ac94._0x149cf3,_0x45ac94._0x46ca37)]({'type':_0x234f32(_0x45ac94._0x388282,0x122,_0x45ac94._0x47f86d,_0x45ac94._0x477d13),'call_id':_0x4e8a09['id'],'name':_0x4e8a09[_0x171ba2(0x139,_0x45ac94._0x4d38b8,0x138,_0x45ac94._0x159258)],'arguments':JSON[_0x234f32(_0x45ac94._0x16645b,0x142,0x14d,0x13b)](_0x4e8a09[_0x234f32(0x150,_0x45ac94._0x25d09b,0x16e,0x157)]??{})});continue;}if(_0x4e8a09['type']==='tool_result'){if(!hasSerializableToolResult(_0x4e8a09))continue;const _0x13ccaf=getToolResultText(_0x4e8a09[_0x171ba2(0x173,_0x45ac94._0x2ede9f,_0x45ac94._0x574771,_0x45ac94._0x4fad23)]);_0x249cd6[_0x171ba2(_0x45ac94._0x1c9cba,0x120,0x12e,0x12f)]({'type':_0x234f32(0x134,0x12b,0x14f,0x13d),'call_id':_0x4e8a09['tool_use_id'],'output':_0x13ccaf});const _0x579057=getToolResultImages(_0x4e8a09['content']);_0x579057['length']>0x0&&_0x249cd6[_0x234f32(_0x45ac94._0x40090c,0x14a,_0x45ac94._0x28f6e,_0x45ac94._0x46ca37)]({'type':_0x171ba2(0x150,0x15c,_0x45ac94._0x545b34,_0x45ac94._0xee6f3f),'role':_0x171ba2(0x175,0x142,_0x45ac94._0x3735cd,0x159),'content':[{'type':_0x171ba2(_0x45ac94._0x3b0a79,_0x45ac94._0x1320ed,_0x45ac94._0x31d137,_0x45ac94._0x3735cd),'text':_0x171ba2(_0x45ac94._0x339450,_0x45ac94._0x19ff7a,0x171,_0x45ac94._0x3c7b4e)+_0x4e8a09[_0x234f32(0x153,0x158,0x126,0x140)]+'.'},..._0x579057[_0x234f32(0x17d,0x157,_0x45ac94._0x1790d7,0x163)](_0x422d46=>({'type':_0x171ba2(0x132,0x129,0x12f,0x142),'image_url':_0x171ba2(0x148,0x170,0x178,0x160)+_0x422d46[_0x234f32(0x142,0x155,0x152,0x15a)][_0x171ba2(0x131,0x120,0x148,0x13f)]+_0x234f32(0x165,0x137,0x144,0x14d)+_0x422d46[_0x234f32(0x156,0x164,0x174,0x15a)][_0x171ba2(0x13f,0x131,0x128,0x13c)]}))]});}}pushUserContentMessage(_0x249cd6,_0x1b8bc0[_0x171ba2(0x120,0x145,_0x45ac94._0x3a2c56,_0x45ac94._0x3fc854)],_0x531ac2);}function _0x234f32(_0x7cf38b,_0x20a733,_0x1860ab,_0x3373c8){return _0x1074(_0x3373c8- -_0x1e553b._0x3683f6,_0x20a733);}return{...createOpenAiResponsesReasoning(_0x4dd5e3),'model':_0x4dd5e3[_0x234f32(0x13f,_0x45ac94._0x1acbb0,0x155,_0x45ac94._0x53157b)],'instructions':systemToInstructions(_0x4dd5e3[_0x171ba2(0x114,_0x45ac94._0x149cf3,_0x45ac94._0x397283,_0x45ac94._0x41129a)]),'input':_0x249cd6,..._0x4dd5e3[_0x171ba2(0x165,_0x45ac94._0x2dc141,_0x45ac94._0x447081,0x14c)]!==void 0x0?{'max_output_tokens':_0x4dd5e3[_0x171ba2(_0x45ac94._0x16c5ee,_0x45ac94._0x5c4785,_0x45ac94._0x594b5b,_0x45ac94._0x40090c)]}:{},'tools':_0x4dd5e3[_0x171ba2(_0x45ac94._0x4993f9,0x168,_0x45ac94._0x20282c,_0x45ac94._0x3239f6)]['map'](_0x230138=>{const _0x29598d={_0x2517fc:0x2f,_0x39e015:0x400};function _0x22aab9(_0x30baf6,_0x38161a,_0xac9301,_0x5eced5){return _0x234f32(_0x30baf6-_0x29598d._0x2517fc,_0xac9301,_0xac9301-0x1e1,_0x5eced5-_0x29598d._0x39e015);}function _0x3ee6fb(_0x21cc3e,_0xb86aaf,_0x39e718,_0x31be46){return _0x171ba2(_0x31be46,_0xb86aaf-_0x1a3bab._0x5af1ab,_0x39e718-0x2b,_0xb86aaf-0x216);}return{'type':_0x22aab9(_0x25c0c5._0x2364c3,_0x25c0c5._0x59b2ef,_0x25c0c5._0x35c1b8,0x553),'name':_0x230138[_0x22aab9(0x548,0x559,_0x25c0c5._0x8972af,0x54f)],'description':_0x230138[_0x3ee6fb(_0x25c0c5._0x9c1ddb,_0x25c0c5._0x35b62a,0x338,0x361)],'parameters':_0x230138['input_schema']};}),..._0x4dd5e3['outputFormat']?{'text':{'format':{'type':_0x234f32(0x14f,0x189,_0x45ac94._0x415956,0x16d),'name':_0x4dd5e3[_0x171ba2(_0x45ac94._0x5b34f0,_0x45ac94._0x52d74f,_0x45ac94._0x545b34,_0x45ac94._0x306d7e)][_0x234f32(_0x45ac94._0x256f2c,0x164,_0x45ac94._0x2c686c,_0x45ac94._0x3735cd)]??'structured_output','schema':_0x4dd5e3[_0x234f32(0x15f,_0x45ac94._0x415956,_0x45ac94._0x4e83d1,0x15b)][_0x171ba2(0x16d,_0x45ac94._0x25ee2b,_0x45ac94._0x45b5a7,0x157)],'strict':_0x4dd5e3[_0x234f32(0x15a,0x17b,_0x45ac94._0x25ee2b,_0x45ac94._0x2dc141)][_0x234f32(0x14b,_0x45ac94._0x1fbcd8,_0x45ac94._0x415956,0x169)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
|
|
1
|
+
(function(_0x47aa46,_0x146a12){const _0x2321ae={_0x238e8f:0xb7,_0x103903:0xcd,_0x156690:0xac,_0x4cc4bf:0xcf,_0x27a7ec:0xd0,_0x1bd100:0xd1,_0x2b3e35:0x11,_0x574554:0x16,_0x10e235:0xc0,_0x534079:0xba,_0x40141e:0x15,_0x3957a6:0xe,_0x51d4d2:0xc,_0x2a0767:0xa,_0x558f01:0x7,_0x345f20:0x1,_0x2e48a5:0xb1,_0x54fc50:0xc1,_0x3b06be:0x1a,_0x4d102f:0x17,_0x5f0bd9:0xd2,_0x5c3da2:0xcb,_0x391150:0xb2,_0x211ad5:0xa4,_0xab1f68:0xa1},_0x19826c={_0x52d601:0x97};function _0x5370cd(_0x37a327,_0x267fc8,_0x5660af,_0xdc9479){return _0x2a4b(_0x5660af-0x16,_0x37a327);}function _0x182ca0(_0xf646d5,_0x2be60e,_0x4b05f5,_0x17f5fc){return _0x2a4b(_0x4b05f5- -_0x19826c._0x52d601,_0x2be60e);}const _0x1f4f73=_0x47aa46();while(!![]){try{const _0x3ab6b2=-parseInt(_0x5370cd(_0x2321ae._0x238e8f,0xbf,_0x2321ae._0x103903,_0x2321ae._0x156690))/0x1*(-parseInt(_0x5370cd(_0x2321ae._0x4cc4bf,0xc8,_0x2321ae._0x27a7ec,_0x2321ae._0x1bd100))/0x2)+parseInt(_0x182ca0(-_0x2321ae._0x2b3e35,-0x18,0x1,_0x2321ae._0x574554))/0x3*(parseInt(_0x5370cd(_0x2321ae._0x10e235,_0x2321ae._0x534079,0xaf,0x9a))/0x4)+-parseInt(_0x182ca0(0xd,_0x2321ae._0x40141e,-0x6,-_0x2321ae._0x3957a6))/0x5*(-parseInt(_0x182ca0(0x1d,0x16,_0x2321ae._0x51d4d2,_0x2321ae._0x2a0767))/0x6)+parseInt(_0x182ca0(_0x2321ae._0x558f01,_0x2321ae._0x345f20,-0x13,-0x1a))/0x7+parseInt(_0x5370cd(_0x2321ae._0x2e48a5,0xf1,0xcf,_0x2321ae._0x54fc50))/0x8+parseInt(_0x182ca0(_0x2321ae._0x3b06be,_0x2321ae._0x4d102f,0x14,0x16))/0x9*(parseInt(_0x5370cd(0xac,_0x2321ae._0x5f0bd9,_0x2321ae._0x5c3da2,0xd6))/0xa)+-parseInt(_0x5370cd(0xb8,0x8d,0xa1,0xb0))/0xb*(parseInt(_0x5370cd(0xaa,_0x2321ae._0x391150,_0x2321ae._0x211ad5,_0x2321ae._0xab1f68))/0xc);if(_0x3ab6b2===_0x146a12)break;else _0x1f4f73['push'](_0x1f4f73['shift']());}catch(_0x1ff52d){_0x1f4f73['push'](_0x1f4f73['shift']());}}}(_0x2118,0x8b443));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x129376){const _0x40464f={_0xce4ae:0x8b,_0x39092c:0x283,_0x552a29:0x262,_0x314a37:0x291,_0x4b8964:0x29d},_0x58408e={_0x38004c:0x1e5};function _0x37416e(_0x18e821,_0x4573de,_0x554d74,_0x14d331){return _0x2a4b(_0x4573de- -0x37,_0x554d74);}function _0x67ec3c(_0x4988cf,_0x486b55,_0x30a187,_0xca4c5b){return _0x2a4b(_0x486b55-_0x58408e._0x38004c,_0xca4c5b);}return normalizeContent(_0x129376)[_0x37416e(0x8f,_0x40464f._0xce4ae,0x76,0x80)](_0x1a97ab=>_0x1a97ab['type']==='text')[_0x67ec3c(0x29d,_0x40464f._0x39092c,_0x40464f._0x552a29,_0x40464f._0x314a37)](_0x426d34=>_0x426d34['text'])[_0x67ec3c(0x2a1,_0x40464f._0x4b8964,0x2bc,0x2be)]('\x0a\x0a');}function pushUserContentMessage(_0x8e7d38,_0x573bd0,_0x2b44d6){const _0x2b4f7c={_0x1b13c5:0x1f4,_0x1de99a:0x217,_0x40dd97:0x200,_0x3a16a5:0x30e,_0x481870:0x329,_0x5b5dc7:0x31a,_0xda8a38:0x325,_0x4cfee3:0x329},_0x4b65ae={_0x2ca785:0x293},_0x1491a2={_0x5061c1:0x26a};function _0xbaaacd(_0x9500df,_0x3a73f4,_0x463277,_0x425da0){return _0x2a4b(_0x3a73f4-_0x1491a2._0x5061c1,_0x463277);}function _0x548969(_0x10c35f,_0x1bce7d,_0x7a934d,_0x5e29f0){return _0x2a4b(_0x7a934d- -_0x4b65ae._0x2ca785,_0x1bce7d);}if(_0x2b44d6[_0x548969(-_0x2b4f7c._0x1b13c5,-_0x2b4f7c._0x1de99a,-_0x2b4f7c._0x40dd97,-0x216)]===0x0)return;_0x8e7d38[_0xbaaacd(0x30b,_0x2b4f7c._0x3a16a5,_0x2b4f7c._0x481870,0x31a)]({'type':_0xbaaacd(_0x2b4f7c._0x5b5dc7,_0x2b4f7c._0xda8a38,0x332,_0x2b4f7c._0x4cfee3),'role':_0x573bd0,'content':_0x2b44d6});}function hasSerializableToolUse(_0x31eb1e){const _0x3f344c={_0x54e626:0x287,_0x53af15:0x29c,_0x1209bf:0x279,_0x25ea50:0x27f,_0x52ebba:0x29a,_0x140b69:0x29b,_0x31fe1f:0x2b6,_0x3ee1cb:0x26c,_0x409c7d:0x24f,_0x5d3522:0x275,_0x56e6a0:0x36f,_0x28f0b5:0x37c},_0x27f754={_0x1ca0d4:0x32d};function _0x38e030(_0x1be2a7,_0x2b3fd9,_0x23d032,_0x52fb53){return _0x2a4b(_0x2b3fd9- -_0x27f754._0x1ca0d4,_0x52fb53);}function _0x1a296d(_0xb4e13f,_0x33d91d,_0x3ca8e3,_0x5f04bd){return _0x2a4b(_0x5f04bd-0x2e2,_0xb4e13f);}return _0x31eb1e['id'][_0x38e030(-0x27e,-_0x3f344c._0x54e626,-_0x3f344c._0x53af15,-_0x3f344c._0x1209bf)]()[_0x38e030(-_0x3f344c._0x25ea50,-_0x3f344c._0x52ebba,-_0x3f344c._0x140b69,-_0x3f344c._0x31fe1f)]>0x0&&_0x31eb1e[_0x38e030(-0x28c,-_0x3f344c._0x3ee1cb,-_0x3f344c._0x409c7d,-_0x3f344c._0x5d3522)][_0x1a296d(_0x3f344c._0x56e6a0,_0x3f344c._0x28f0b5,0x388,0x388)]()['length']>0x0;}function hasSerializableToolResult(_0x6c1a3c){const _0xc18593={_0x11320b:0x268,_0x51577e:0x230,_0x150e3a:0x22a,_0x175d1f:0x217},_0x439792={_0x408023:0x2d6},_0x5a53ac={_0x235fb3:0x312};function _0x2128df(_0x4bee05,_0xbfdeb8,_0x47389f,_0x1e4a36){return _0x2a4b(_0xbfdeb8-_0x5a53ac._0x235fb3,_0x47389f);}function _0x12ea3a(_0x54ef8e,_0x3888ed,_0x26477d,_0x57c98f){return _0x2a4b(_0x54ef8e- -_0x439792._0x408023,_0x3888ed);}return _0x6c1a3c[_0x12ea3a(-0x247,-0x23c,-0x237,-_0xc18593._0x11320b)][_0x12ea3a(-_0xc18593._0x51577e,-_0xc18593._0x150e3a,-_0xc18593._0x175d1f,-0x247)]()['length']>0x0;}function isResponseInputObject(_0x3c17c3){const _0x12d5aa={_0x5321ab:0x2b6,_0x2e2a39:0x29b,_0x2a6769:0x2d4,_0x1ac971:0x2c1,_0x52aa15:0xf1,_0x1dc5e6:0x100,_0x16e447:0x107,_0x38451f:0x111};if(typeof _0x3c17c3!==_0x168e27(_0x12d5aa._0x5321ab,_0x12d5aa._0x2e2a39,0x29a,0x27b)||_0x3c17c3===null||Array[_0x168e27(0x2db,_0x12d5aa._0x2a6769,_0x12d5aa._0x1ac971,0x2cc)](_0x3c17c3))return![];const _0x39eed8=_0x3c17c3;function _0x168e27(_0x55c74d,_0x3307bc,_0x366212,_0x52afbb){return _0x2a4b(_0x366212-0x215,_0x55c74d);}function _0x4fe7d9(_0x56f118,_0x2b5a49,_0x23ad59,_0x36232d){return _0x2a4b(_0x23ad59- -0x18e,_0x2b5a49);}return typeof _0x39eed8[_0x168e27(0x2ad,0x2e3,0x2c9,0x2b8)]===_0x4fe7d9(-_0x12d5aa._0x52aa15,-_0x12d5aa._0x1dc5e6,-_0x12d5aa._0x16e447,-_0x12d5aa._0x38451f);}function _0x2a4b(_0x2fdeea,_0x52be3b){_0x2fdeea=_0x2fdeea-0x7f;const _0x211893=_0x2118();let _0x2a4b22=_0x211893[_0x2fdeea];if(_0x2a4b['GdMASl']===undefined){var _0x1be042=function(_0x4b5912){const _0x365a86='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x129376='',_0x1a97ab='';for(let _0x426d34=0x0,_0x8e7d38,_0x573bd0,_0x2b44d6=0x0;_0x573bd0=_0x4b5912['charAt'](_0x2b44d6++);~_0x573bd0&&(_0x8e7d38=_0x426d34%0x4?_0x8e7d38*0x40+_0x573bd0:_0x573bd0,_0x426d34++%0x4)?_0x129376+=String['fromCharCode'](0xff&_0x8e7d38>>(-0x2*_0x426d34&0x6)):0x0){_0x573bd0=_0x365a86['indexOf'](_0x573bd0);}for(let _0x31eb1e=0x0,_0x6c1a3c=_0x129376['length'];_0x31eb1e<_0x6c1a3c;_0x31eb1e++){_0x1a97ab+='%'+('00'+_0x129376['charCodeAt'](_0x31eb1e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a97ab);};_0x2a4b['mkRPpz']=_0x1be042,_0x2a4b['ohbGco']={},_0x2a4b['GdMASl']=!![];}const _0xbfb76f=_0x211893[0x0],_0x18d484=_0x2fdeea+_0xbfb76f,_0x3ff91d=_0x2a4b['ohbGco'][_0x18d484];return!_0x3ff91d?(_0x2a4b22=_0x2a4b['mkRPpz'](_0x2a4b22),_0x2a4b['ohbGco'][_0x18d484]=_0x2a4b22):_0x2a4b22=_0x3ff91d,_0x2a4b22;}function isImageToolResultBlock(_0x3e559d){const _0x43fb03={_0x4a5f27:0x76,_0x22b3b4:0x6a,_0x213fd8:0x86,_0x40dc57:0x81,_0xf63edd:0x79,_0x577c6f:0xc1,_0xc4a3b8:0xa9,_0x1675ae:0x64,_0x5d1fbc:0x129,_0x45c5af:0x132,_0x5e19e2:0x146,_0x248184:0x70,_0x565832:0x90,_0xfe27f:0x15d,_0x37ae54:0x15e,_0x34939d:0x142,_0x39b7ab:0x128};if(typeof _0x3e559d!=='object'||_0x3e559d===null||Array[_0x4421f3(-_0x43fb03._0x4a5f27,-0x89,-_0x43fb03._0x22b3b4,-_0x43fb03._0x213fd8)](_0x3e559d))return![];function _0x335682(_0x1d3812,_0x4c0de6,_0x3f78bb,_0x51db0f){return _0x2a4b(_0x51db0f-0x92,_0x1d3812);}function _0x4421f3(_0x265e19,_0x31438d,_0x5b09fb,_0x3dcf3c){return _0x2a4b(_0x31438d- -0x135,_0x5b09fb);}const _0xf18530=_0x3e559d;return _0xf18530[_0x4421f3(-0x85,-_0x43fb03._0x40dc57,-0x9d,-_0x43fb03._0xf63edd)]===_0x4421f3(-_0x43fb03._0x577c6f,-_0x43fb03._0xc4a3b8,-0xb4,-0xb4)&&_0xf18530[_0x4421f3(-0x73,-0x85,-_0x43fb03._0x1675ae,-0x92)]?.[_0x335682(0x149,_0x43fb03._0x5d1fbc,_0x43fb03._0x45c5af,_0x43fb03._0x5e19e2)]===_0x4421f3(-_0x43fb03._0x248184,-0x8c,-_0x43fb03._0x565832,-0xa2)&&typeof _0xf18530[_0x335682(_0x43fb03._0xfe27f,_0x43fb03._0x37ae54,0x140,_0x43fb03._0x34939d)]['media_type']===_0x4421f3(-0xaf,-0xae,-0xc4,-0xa3)&&typeof _0xf18530['source'][_0x335682(0x11d,0x108,0x133,_0x43fb03._0x39b7ab)]==='string';}function getToolResultText(_0x3bb803){const _0x596eb0={_0x354f8a:0xaf,_0x4afe7c:0x1d3,_0x26a0e9:0x1c8,_0x96d7ba:0x1e0,_0x38ddd3:0xa1,_0x45243a:0xac,_0x2045cf:0x7c,_0xb541ee:0xab,_0x18ee14:0x1ae},_0x165160={_0x486bcb:0x0},_0x5d1a6f={_0x306641:0x11b},_0x12678a={_0x16c757:0x237,_0x1e758f:0x231,_0x106d72:0x24a,_0x4a0ad9:0x1f8,_0x3466c2:0x237,_0xfcae2d:0x24d},_0x20b297={_0x584da8:0x2b6,_0x1d599c:0x1b8,_0x2fbfde:0x5d};if(typeof _0x3bb803==='string')return _0x3bb803;const _0x5399ad=_0x3bb803[_0x4195e0(0xae,0xc2,0xca,_0x596eb0._0x354f8a)](_0x3ae5db=>{const _0x499069={_0xab727a:0x281,_0x3a2b07:0xff,_0x49de7d:0x116};function _0x282c04(_0x268dd2,_0x5d17ae,_0x1c0602,_0x39dddb){return _0x4195e0(_0x1c0602,_0x5d17ae- -_0x20b297._0x584da8,_0x1c0602-_0x20b297._0x1d599c,_0x39dddb-_0x20b297._0x2fbfde);}function _0x24ac2e(_0x5e7388,_0x3c14c1,_0x49ed45,_0x79884d){return _0x4195e0(_0x49ed45,_0x5e7388- -_0x499069._0xab727a,_0x49ed45-_0x499069._0x3a2b07,_0x79884d-_0x499069._0x49de7d);}return typeof _0x3ae5db===_0x282c04(-_0x12678a._0x16c757,-_0x12678a._0x1e758f,-_0x12678a._0x106d72,-0x227)&&_0x3ae5db!==null&&_0x3ae5db[_0x282c04(-_0x12678a._0x4a0ad9,-0x202,-0x1f9,-0x1f1)]===_0x282c04(-0x248,-_0x12678a._0x3466c2,-_0x12678a._0xfcae2d,-0x24e);})['map'](_0x1d0a34=>_0x1d0a34[_0x4195e0(0x89,0x7f,0x6f,0x66)])[_0x395f48(_0x596eb0._0x4afe7c,0x1ec,_0x596eb0._0x26a0e9,_0x596eb0._0x96d7ba)]('\x0a\x0a')[_0x4195e0(_0x596eb0._0x38ddd3,0xa6,_0x596eb0._0x45243a,0x97)]();function _0x395f48(_0x499773,_0x31f049,_0xcf33a3,_0x4d24c2){return _0x2a4b(_0x499773-_0x5d1a6f._0x306641,_0xcf33a3);}function _0x4195e0(_0x616413,_0x347f51,_0x8a025a,_0x4cf4d0){return _0x2a4b(_0x347f51-_0x165160._0x486bcb,_0x616413);}return _0x5399ad[_0x4195e0(_0x596eb0._0x2045cf,0x93,0xad,_0x596eb0._0xb541ee)]>0x0?_0x5399ad:_0x395f48(0x1ab,0x19e,0x18b,_0x596eb0._0x18ee14);}function getToolResultImages(_0x2155fa){const _0x5a83e1={_0x46bddf:0x255,_0x9c7cb3:0x273,_0x202d9d:0x25e,_0x411f12:0x243},_0x22cd67={_0x551232:0x19c};function _0x2cdf41(_0x5b3c2a,_0x3e1e43,_0x1f9196,_0x252364){return _0x2a4b(_0x3e1e43-_0x22cd67._0x551232,_0x5b3c2a);}function _0x2bbedc(_0x45a5dc,_0x313290,_0x366d0c,_0x245ddc){return _0x2a4b(_0x313290-0x140,_0x366d0c);}return Array[_0x2cdf41(0x261,0x248,0x22b,_0x5a83e1._0x46bddf)](_0x2155fa)?_0x2155fa[_0x2cdf41(_0x5a83e1._0x9c7cb3,_0x5a83e1._0x202d9d,_0x5a83e1._0x202d9d,_0x5a83e1._0x411f12)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x41037c){const _0x341b1c={_0x296087:0x4d,_0x52391d:0x3d8,_0x58a7de:0x3ca};function _0x5ebcf6(_0x2fc801,_0x2c75cc,_0x2306a0,_0x4e6c4f){return _0x2a4b(_0x2c75cc-0x341,_0x2fc801);}function _0x41792e(_0x3847a3,_0x170319,_0x7dffad,_0x4b90c3){return _0x2a4b(_0x3847a3- -0xfc,_0x4b90c3);}return _0x41037c[_0x41792e(-_0x341b1c._0x296087,-0x5d,-0x47,-0x35)]?.['visibility']??_0x5ebcf6(0x3d8,_0x341b1c._0x52391d,_0x341b1c._0x58a7de,0x3d7);}function createOpenAiResponsesReasoning(_0x48baa4){const _0x131d3e={_0x4cb99d:0x3f7,_0x1bbab4:0x3f6,_0x28bf99:0x3f1,_0x326af9:0x415,_0x59bfd1:0x274,_0x57a72b:0x26a,_0x5ca41a:0x27a,_0x480540:0x277,_0x3b3f1b:0x27d,_0x594291:0x27c,_0x5014ac:0x266,_0x541f1d:0x3ef,_0x279fa4:0x3ef,_0x21e2a0:0x3c8,_0x15f717:0x28b,_0x22ac85:0x274,_0x330894:0x3e7,_0x5bce09:0x407,_0x52ab15:0x3ef,_0x21aab6:0x3dc,_0x5db12f:0x3da},_0x23434e={_0x5ec410:0x1e0};function _0x4b3d87(_0x51eb6,_0x5b0344,_0x7e80cf,_0x2caba5){return _0x2a4b(_0x7e80cf-_0x23434e._0x5ec410,_0x51eb6);}function _0x2a8181(_0x12eb50,_0x203cfa,_0x1647c9,_0x5bc134){return _0x2a4b(_0x5bc134-0x347,_0x12eb50);}const _0x2ae502=resolveOpenAiReasoningConfig(_0x48baa4[_0x2a8181(0x3f2,_0x131d3e._0x4cb99d,_0x131d3e._0x4cb99d,_0x131d3e._0x1bbab4)]);if(!_0x2ae502)return{};const _0x583238={},_0x34dbfb=_0x48baa4[_0x2a8181(_0x131d3e._0x28bf99,_0x131d3e._0x326af9,0x3ed,_0x131d3e._0x1bbab4)]?.['codex']!==void 0x0,_0x47c699=(!_0x34dbfb&&'summary'in _0x2ae502?_0x2ae502[_0x4b3d87(0x296,0x260,_0x131d3e._0x59bfd1,_0x131d3e._0x57a72b)]:void 0x0)??(resolveReasoningVisibility(_0x48baa4)===_0x4b3d87(_0x131d3e._0x5ca41a,0x27b,_0x131d3e._0x480540,_0x131d3e._0x3b3f1b)?_0x4b3d87(0x25b,_0x131d3e._0x594291,_0x131d3e._0x5014ac,0x261):void 0x0);return _0x2ae502[_0x2a8181(_0x131d3e._0x541f1d,_0x131d3e._0x279fa4,_0x131d3e._0x21e2a0,0x3e2)]&&(_0x583238['effort']=_0x2ae502[_0x4b3d87(0x27a,0x289,0x27b,0x268)]),_0x47c699&&(_0x583238[_0x4b3d87(0x264,_0x131d3e._0x15f717,0x274,_0x131d3e._0x22ac85)]=_0x47c699),{...!_0x34dbfb&&_0x2a8181(_0x131d3e._0x330894,0x41a,0x3e6,_0x131d3e._0x5bce09)in _0x2ae502&&_0x2ae502[_0x2a8181(0x3f2,_0x131d3e._0x28bf99,0x423,0x407)]===![]?{}:{'include':[_0x4b3d87(0x26e,0x298,0x27c,_0x131d3e._0x59bfd1)]},...Object['keys'](_0x583238)[_0x2a8181(_0x131d3e._0x52ab15,0x3d2,_0x131d3e._0x21aab6,_0x131d3e._0x5db12f)]>0x0?{'reasoning':_0x583238}:{}};}function pushAssistantProviderState(_0x2ec351,_0x3bc856,_0xdc3091){const _0x191471={_0x5cec9a:0xff,_0x1dbbde:0xf5,_0x210c48:0x1a,_0x37dc2c:0x1c,_0x20e1b6:0x34,_0x58013f:0x1a,_0x253dcc:0xb2,_0xc72e10:0x34,_0xdc978c:0xdf,_0x3a7df7:0xeb,_0x1fc076:0xb5,_0x3b1b80:0xbc,_0x1a65f0:0xd3},_0x2ca328={_0x32be2c:0x89};function _0x3d92f7(_0x4535de,_0x591c9e,_0x5cb506,_0x567609){return _0x2a4b(_0x591c9e- -_0x2ca328._0x32be2c,_0x5cb506);}function _0x208cbc(_0x57ce11,_0x43680a,_0x20167c,_0x42867d){return _0x2a4b(_0x42867d-0x3f,_0x20167c);}if(_0x3bc856['role']!==_0x208cbc(0xea,_0x191471._0x5cec9a,0xf4,_0x191471._0x1dbbde))return![];if(!isProviderStateCompatible(_0x3bc856,_0xdc3091))return![];const _0x242de9=_0x3bc856[_0x3d92f7(_0x191471._0x210c48,_0x191471._0x37dc2c,_0x191471._0x20e1b6,_0x191471._0x58013f)]?.[_0x208cbc(0xb0,_0x191471._0x253dcc,0xbd,0xc2)]??[];if(_0x242de9['length']===0x0)return![];for(const _0x55d032 of _0x242de9){if(isResponseInputObject(_0x55d032)){const _0x3849ef=structuredClone(_0x55d032);delete _0x3849ef['status'],_0x3849ef[_0x3d92f7(0x1c,0x2b,_0x191471._0xc72e10,0x31)]==='reasoning'&&!Array[_0x208cbc(0xfd,_0x191471._0xdc978c,0xe5,_0x191471._0x3a7df7)](_0x3849ef['summary'])&&(_0x3849ef[_0x208cbc(_0x191471._0x1fc076,_0x191471._0x3b1b80,0xbb,_0x191471._0x1a65f0)]=[]),_0x2ec351['push'](_0x3849ef);}}return!![];}function toOpenAiResponsesRequest(_0x2c734c){const _0x52abbe={_0x173f7c:0x3a,_0x16da42:0x5a,_0xb812ab:0x6d,_0xe439cd:0x71,_0x4e4fe2:0x64,_0x18b321:0x10d,_0x66b2e8:0x147,_0x5881c4:0x76,_0x1f69ca:0x78,_0x41b419:0x89,_0x5abd5a:0x133,_0x362fbd:0x117,_0x1cef8d:0xf8,_0x981754:0x107,_0x433b72:0x13c,_0x815ce5:0x11a,_0x5203b8:0x5d,_0x4da8a3:0x7e,_0x40a7e4:0x67,_0x8a7137:0x67,_0x17ef77:0x74,_0x320cf4:0xe1,_0x44434a:0xee,_0xc03f7e:0xf2,_0x39f7be:0xee,_0x34fd2c:0x106,_0x4ace63:0xff,_0x1fe7d2:0x6d,_0x1fd29b:0x2c,_0x239e98:0x4c,_0xd66030:0x3f,_0xc2c23e:0x77,_0x3a1338:0x65,_0x3ad9d7:0x5f,_0x4bebe2:0x10b,_0x41e061:0x125,_0x59b6a1:0x53,_0x417c64:0x6e,_0x2a3eef:0x7f,_0x2d0954:0x4a,_0x5828c2:0x67,_0x5794d7:0x66,_0x604758:0x6b,_0x58a3b7:0x25,_0x14b6ca:0x47,_0xae2a4:0x39,_0x12c92b:0xf9,_0x3a25dd:0x11b,_0x4c509b:0x59,_0x42d1a2:0x56,_0x53f2d2:0x139,_0x2de821:0x131,_0x1c4fa8:0x127,_0x228ce0:0x128,_0x2ba854:0x129,_0x182fdc:0x11b,_0x274436:0x104,_0x2562bd:0xff,_0x5f4afe:0x10d,_0x31769f:0x12e,_0x3888f6:0x117,_0x1ee8a2:0xa5,_0x590a46:0xfb,_0x89f065:0x102,_0x283e0b:0x8b,_0x3dc7bc:0xe7,_0x4e0b07:0x70,_0x39d03b:0x74,_0x439c1d:0x64,_0x5196a9:0x6a,_0x32bbc4:0x2b,_0xdd586c:0x61,_0x2b0f51:0x12c,_0x66e5d1:0x119,_0x374691:0x8e,_0x1356a9:0x99,_0x229e2f:0xea,_0xa7f321:0x105,_0xd58fd6:0x79,_0xf61750:0x124,_0x2fcfce:0x110,_0x5200a7:0x87,_0x98e6e8:0x9b,_0x4e9c08:0xf7,_0x21e0c6:0x111,_0x53f94e:0x12c,_0x2f7e13:0x114,_0x4d40d4:0x111,_0x110f89:0x136,_0x5b6a4e:0x115,_0x53e48a:0x110,_0x453984:0x117,_0x2530f8:0x134,_0x43678e:0x132,_0x452478:0x84,_0x1b7a5d:0xf0},_0x24314b={_0x28d183:0x13f,_0x3d963c:0x15a,_0x89a059:0x178,_0x249c44:0x232,_0x258995:0x1f3,_0x52e89c:0x20b,_0x20aa39:0x1f3,_0x19d354:0x214},_0x55bc6f={_0x282d5f:0x73},_0x2ba1b8=[];for(const _0x34b520 of _0x2c734c[_0x520295(-_0x52abbe._0x173f7c,-0x68,-_0x52abbe._0x16da42,-0x42)]){if(pushAssistantProviderState(_0x2ba1b8,_0x34b520,_0x2c734c))continue;const _0x325086=[];for(const _0x1fac6b of normalizeContent(_0x34b520[_0x520295(-_0x52abbe._0xb812ab,-_0x52abbe._0xe439cd,-0x6e,-_0x52abbe._0x4e4fe2)])){if(_0x1fac6b[_0xe0ab18(0x146,_0x52abbe._0x18b321,_0x52abbe._0x66b2e8,0x127)]===_0x520295(-_0x52abbe._0x5881c4,-_0x52abbe._0x1f69ca,-_0x52abbe._0x41b419,-0x6a)){_0x325086[_0xe0ab18(_0x52abbe._0x5abd5a,0x133,0x123,_0x52abbe._0x362fbd)](_0x34b520[_0xe0ab18(_0x52abbe._0x1cef8d,_0x52abbe._0x981754,_0x52abbe._0x433b72,_0x52abbe._0x815ce5)]===_0x520295(-0x5d,-_0x52abbe._0x5203b8,-0x52,-0x34)?{'type':'output_text','text':_0x1fac6b[_0x520295(-_0x52abbe._0x4da8a3,-_0x52abbe._0x40a7e4,-0x89,-0x6e)]}:{'type':_0x520295(-_0x52abbe._0x8a7137,-_0x52abbe._0x17ef77,-0x88,-0x71),'text':_0x1fac6b[_0xe0ab18(_0x52abbe._0x320cf4,_0x52abbe._0x44434a,0xf9,_0x52abbe._0xc03f7e)]});continue;}if(_0x1fac6b['type']===_0xe0ab18(0xeb,_0x52abbe._0x39f7be,_0x52abbe._0x34fd2c,_0x52abbe._0x4ace63)){_0x325086[_0x520295(-0x4b,-_0x52abbe._0xe439cd,-_0x52abbe._0x4e4fe2,-_0x52abbe._0x1fe7d2)]({'type':'input_image','image_url':'data:'+_0x1fac6b['source'][_0x520295(-_0x52abbe._0x1fd29b,-0x4b,-_0x52abbe._0x239e98,-_0x52abbe._0xd66030)]+_0x520295(-_0x52abbe._0xc2c23e,-_0x52abbe._0x3a1338,-0x7b,-_0x52abbe._0x3ad9d7)+_0x1fac6b[_0xe0ab18(_0x52abbe._0x4bebe2,0x108,_0x52abbe._0x41e061,0x123)][_0x520295(-_0x52abbe._0x59b6a1,-0x78,-0x72,-0x7d)]});continue;}pushUserContentMessage(_0x2ba1b8,_0x34b520['role'],_0x325086[_0x520295(-_0x52abbe._0x417c64,-_0x52abbe._0x2a3eef,-0x69,-0x51)](0x0));if(_0x1fac6b['type']===_0x520295(-_0x52abbe._0x2d0954,-_0x52abbe._0x5828c2,-_0x52abbe._0x5794d7,-_0x52abbe._0x604758)){if(!hasSerializableToolUse(_0x1fac6b))continue;_0x2ba1b8['push']({'type':'function_call','call_id':_0x1fac6b['id'],'name':_0x1fac6b[_0x520295(-_0x52abbe._0x58a3b7,-0x58,-_0x52abbe._0x14b6ca,-_0x52abbe._0xae2a4)],'arguments':JSON[_0xe0ab18(0x120,_0x52abbe._0x12c92b,0x106,_0x52abbe._0x3a25dd)](_0x1fac6b[_0x520295(-_0x52abbe._0x173f7c,-_0x52abbe._0x4c509b,-_0x52abbe._0x42d1a2,-_0x52abbe._0x417c64)]??{})});continue;}if(_0x1fac6b[_0xe0ab18(_0x52abbe._0x53f2d2,0x137,_0x52abbe._0x2de821,_0x52abbe._0x1c4fa8)]===_0xe0ab18(_0x52abbe._0x228ce0,_0x52abbe._0x2ba854,_0x52abbe._0x182fdc,0x130)){if(!hasSerializableToolResult(_0x1fac6b))continue;const _0x411dc2=getToolResultText(_0x1fac6b[_0xe0ab18(_0x52abbe._0x274436,0x111,_0x52abbe._0x2562bd,_0x52abbe._0x5f4afe)]);_0x2ba1b8[_0xe0ab18(_0x52abbe._0x31769f,0x126,0x116,_0x52abbe._0x3888f6)]({'type':_0x520295(-0x8f,-0xa8,-0x86,-_0x52abbe._0x1ee8a2),'call_id':_0x1fac6b[_0xe0ab18(0xf2,0xe7,_0x52abbe._0x590a46,_0x52abbe._0x89f065)],'output':_0x411dc2});const _0x4e32c8=getToolResultImages(_0x1fac6b[_0x520295(-_0x52abbe._0x283e0b,-0x60,-0x6e,-0x6b)]);_0x4e32c8[_0xe0ab18(_0x52abbe._0x3dc7bc,0xef,0xe4,0x106)]>0x0&&_0x2ba1b8[_0x520295(-_0x52abbe._0x4e0b07,-_0x52abbe._0x39d03b,-_0x52abbe._0x439c1d,-_0x52abbe._0x5196a9)]({'type':_0x520295(-_0x52abbe._0x32bbc4,-0x46,-0x4d,-_0x52abbe._0xdd586c),'role':_0xe0ab18(_0x52abbe._0x2b0f51,0x124,_0x52abbe._0x66e5d1,0x11d),'content':[{'type':_0x520295(-_0x52abbe._0x374691,-0xa2,-0x88,-_0x52abbe._0x1356a9),'text':_0xe0ab18(0xfe,0xe5,_0x52abbe._0x229e2f,_0x52abbe._0xa7f321)+_0x1fac6b[_0x520295(-0x8e,-0x5b,-_0x52abbe._0xd58fd6,-0x99)]+'.'},..._0x4e32c8[_0xe0ab18(_0x52abbe._0xf61750,_0x52abbe._0x2ba854,0x10a,0x111)](_0x58cc27=>({'type':_0xe0ab18(0x114,0x106,0x127,0x120),'image_url':_0x520295(-0x94,-0x9d,-0x7e,-0x90)+_0x58cc27[_0x520295(-0x6e,-0x47,-0x58,-0x41)][_0x520295(-0x46,-0x48,-0x4c,-0x5d)]+_0x520295(-0x68,-0x64,-0x7b,-0x83)+_0x58cc27[_0x520295(-0x54,-0x72,-0x58,-0x51)][_0xe0ab18(0x10e,0x10e,0x118,0x109)]}))]});}}pushUserContentMessage(_0x2ba1b8,_0x34b520[_0xe0ab18(0x11a,0x113,0x129,_0x52abbe._0x815ce5)],_0x325086);}function _0x520295(_0x561bb3,_0x41a0fb,_0x2898db,_0x28d7de){return _0x2a4b(_0x2898db- -0x108,_0x28d7de);}function _0xe0ab18(_0x22049d,_0x4e978c,_0x2ad62f,_0x5ff132){return _0x2a4b(_0x5ff132-_0x55bc6f._0x282d5f,_0x4e978c);}return{...createOpenAiResponsesReasoning(_0x2c734c),'model':_0x2c734c[_0x520295(-0x32,-0x3a,-0x4a,-0x2c)],'instructions':systemToInstructions(_0x2c734c[_0xe0ab18(0x139,_0x52abbe._0x2fcfce,_0x52abbe._0x815ce5,_0x52abbe._0xf61750)]),'input':_0x2ba1b8,..._0x2c734c[_0x520295(-0xa3,-0x93,-0x87,-0x88)]!==void 0x0?{'max_output_tokens':_0x2c734c[_0x520295(-0x7e,-0x77,-_0x52abbe._0x5200a7,-_0x52abbe._0x98e6e8)]}:{},'tools':_0x2c734c[_0xe0ab18(_0x52abbe._0x4e9c08,_0x52abbe._0x21e0c6,_0x52abbe._0x53f94e,_0x52abbe._0x2f7e13)][_0xe0ab18(_0x52abbe._0x362fbd,0x116,0x108,_0x52abbe._0x4d40d4)](_0x36a67e=>{const _0x551e57={_0x8b78ca:0x128,_0x1a2367:0x1bf};function _0x4d5bd6(_0x826eb3,_0x3286e0,_0x3c5155,_0xbcfa09){return _0xe0ab18(_0x826eb3-0x128,_0xbcfa09,_0x3c5155-0x1be,_0x3c5155-0x5f);}function _0x19d07c(_0xf5a002,_0x2bdf89,_0x35c475,_0x2c56f9){return _0x520295(_0xf5a002-0x35,_0x2bdf89-_0x551e57._0x8b78ca,_0x2c56f9- -_0x551e57._0x1a2367,_0x2bdf89);}return{'type':_0x4d5bd6(0x164,_0x24314b._0x28d183,_0x24314b._0x3d963c,_0x24314b._0x89a059),'name':_0x36a67e['name'],'description':_0x36a67e[_0x19d07c(-0x213,-0x225,-0x24a,-_0x24314b._0x249c44)],'parameters':_0x36a67e[_0x19d07c(-_0x24314b._0x258995,-_0x24314b._0x52e89c,-_0x24314b._0x20aa39,-_0x24314b._0x19d354)]};}),..._0x2c734c[_0xe0ab18(0x116,0x123,0x14e,_0x52abbe._0x110f89)]?{'text':{'format':{'type':_0xe0ab18(_0x52abbe._0x21e0c6,0x131,_0x52abbe._0x5b6a4e,_0x52abbe._0x53e48a),'name':_0x2c734c[_0x520295(-_0x52abbe._0x5794d7,-0x59,-0x45,-0x23)][_0xe0ab18(0x147,_0x52abbe._0x453984,0x127,_0x52abbe._0x2530f8)]??_0xe0ab18(0x137,0x133,0x110,_0x52abbe._0x43678e),'schema':_0x2c734c['outputFormat'][_0x520295(-_0x52abbe._0x452478,-0x6b,-0x68,-0x6b)],'strict':_0x2c734c['outputFormat'][_0xe0ab18(0x11c,_0x52abbe._0x1b7a5d,0x111,0xfc)]??!![]}}}:{}};}function _0x2118(){const _0x3ccbc5=['Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','BMfTzq','zMLSDgvY','B3v0Chv0rM9YBwf0','Dgv4Da','Aw5WDxrFDgv4Da','Bwf4vg9Rzw5Z','zNvUy3rPB25Fy2fSBf9VDxrWDxq','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','ndq3mte0nvjyEhrKra','B2jQzwn0','yxv0BW','C3rYAw5N','zNvUy3rPB24','C3rYAwn0','zgf0ytO','nJGYq3fUu2rr','Aw1Hz2u','o2jHC2u2ncW','nJu1mJyWCwjSverV','Dg9VBf91C2vFAwq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','nuDUtfLZAq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','BgvUz3rO','C3vTBwfYEq','zgvZy3jPChrPB24','zgf0yq','DxnLCI12AxnPyMXL','mZm0mtrKD3P4tKS','mJbQAgLIsNi','y29UDgvUDa','zwzMB3j0','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','ANnVBL9Zy2HLBwe','BwfW','C3bSAwnL','C2nOzw1H','Dg9VBhm','Dg9VBf91C2u','mJqZmdm2nLrMCevVuG','ChvZAa','ChjVDMLKzxjtDgf0zq','DhjPBq','CM9Szq','C3rYAw5NAwz5','yMfZzty0','DxnLCG','otiYmdi1n1vvwMzADa','AxnbCNjHEq','Aw5WDxrFAw1Hz2u','BwvZC2fNzxm','CMvHC29UAw5N','C291CMnL','C3LZDgvT','Aw5WDxq','Aw5WDxrFC2nOzw1H','DhLWzq','mtbXsuzdywe','yxnZAxn0yw50','nZeZodi3ywD1vNzZ','AM9PBG','odK0nti3mMDxsgn0tG','mKLRrgfQtW','BwvZC2fNzq','BwvKAwfFDhLWzq','Dg9VBf9Yzxn1Bhq','Bw9KzwW','C3rYDwn0DxjLzf9VDxrWDxq'];_0x2118=function(){return _0x3ccbc5;};return _0x2118();}export{toOpenAiResponsesRequest};
|