@nuvin/agent-core 0.3.0-rc.8 → 0.3.1-rc.0
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/models/routed-model.d.ts +1 -0
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/shell/bash-output-tool.d.ts +1 -4
- package/package.json +2 -2
package/dist/chunk-IUZALP6K.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x3365d2,_0x3f375e){var _0x54b6ac={_0x2ba275:0x20d,_0x5a61e9:0x29e,_0xb9209d:0x2a1,_0x44d3ac:0x2a2,_0x5e558a:0x2a0,_0x16e200:0x2a5,_0x25e6cd:0x2a6,_0x541be5:0x2a5,_0x3a7b14:0x29c,_0x16a4af:0x20c,_0x4701aa:0x205,_0x1a0146:0x29a,_0x1e9270:0x29f,_0x3c091b:0x202,_0x1733a4:0x1ff},_0x3cb397={_0x2e8fe2:0x35b},_0x249270={_0x3e086f:0x14d};function _0x3a61a4(_0x262421,_0x1af80b,_0x4c4b8e,_0x457aa2){return _0x470f(_0x4c4b8e-_0x249270._0x3e086f,_0x457aa2);}var _0x7b17e=_0x3365d2();function _0x2e1aa4(_0x11938b,_0x489fca,_0x3b35ba,_0x504579){return _0x470f(_0x11938b- -_0x3cb397._0x2e8fe2,_0x489fca);}while(!![]){try{var _0x1fcf51=-parseInt(_0x2e1aa4(-0x208,-0x20a,-_0x54b6ac._0x2ba275,-0x20c))/0x1*(parseInt(_0x3a61a4(_0x54b6ac._0x5a61e9,_0x54b6ac._0xb9209d,_0x54b6ac._0x44d3ac,_0x54b6ac._0x5e558a))/0x2)+parseInt(_0x3a61a4(_0x54b6ac._0x16e200,0x2a6,_0x54b6ac._0x25e6cd,_0x54b6ac._0x541be5))/0x3+parseInt(_0x3a61a4(_0x54b6ac._0x3a7b14,0x2a1,0x29d,0x2a2))/0x4+-parseInt(_0x2e1aa4(-0x207,-_0x54b6ac._0x16a4af,-0x202,-_0x54b6ac._0x4701aa))/0x5+-parseInt(_0x3a61a4(_0x54b6ac._0x1a0146,0x299,_0x54b6ac._0x1e9270,0x2a4))/0x6+parseInt(_0x2e1aa4(-0x203,-_0x54b6ac._0x3c091b,-0x203,-0x1ff))/0x7+parseInt(_0x2e1aa4(-0x204,-_0x54b6ac._0x1733a4,-0x204,-0x1ff))/0x8;if(_0x1fcf51===_0x3f375e)break;else _0x7b17e['push'](_0x7b17e['shift']());}catch(_0x7a02a0){_0x7b17e['push'](_0x7b17e['shift']());}}}(_0x5c91,0xabeb3));function _0x470f(_0x29577e,_0x29c176){_0x29577e=_0x29577e-0x150;var _0x5c91bd=_0x5c91();var _0x470fa4=_0x5c91bd[_0x29577e];if(_0x470f['qPPogb']===undefined){var _0x45bc3f=function(_0x1db701){var _0x3c1172='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4fed95='',_0x9c5c7b='';for(var _0x400636=0x0,_0x192c0c,_0x53d591,_0x363a3a=0x0;_0x53d591=_0x1db701['charAt'](_0x363a3a++);~_0x53d591&&(_0x192c0c=_0x400636%0x4?_0x192c0c*0x40+_0x53d591:_0x53d591,_0x400636++%0x4)?_0x4fed95+=String['fromCharCode'](0xff&_0x192c0c>>(-0x2*_0x400636&0x6)):0x0){_0x53d591=_0x3c1172['indexOf'](_0x53d591);}for(var _0x270cb3=0x0,_0x4e9aac=_0x4fed95['length'];_0x270cb3<_0x4e9aac;_0x270cb3++){_0x9c5c7b+='%'+('00'+_0x4fed95['charCodeAt'](_0x270cb3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x9c5c7b);};_0x470f['cnoMkJ']=_0x45bc3f,_0x470f['EtVYhV']={},_0x470f['qPPogb']=!![];}var _0x2299dd=_0x5c91bd[0x0],_0x4e974d=_0x29577e+_0x2299dd,_0x4d1287=_0x470f['EtVYhV'][_0x4e974d];return!_0x4d1287?(_0x470fa4=_0x470f['cnoMkJ'](_0x470fa4),_0x470f['EtVYhV'][_0x4e974d]=_0x470fa4):_0x470fa4=_0x4d1287,_0x470fa4;}function _0x5c91(){var _0x1be528=['mZiWmZa2mu1ywM1hAa','y29KzxG','nZCYnJaWD2jyExjW','yw50AhjVCgLJ','nZu4mte1mevhzvDVBa','mNLeC25syW','mti3ntG5mhjuthrbDq','nJy1mdK4sK9LBwnh','B3bLBMfP','nZK2mZqZmM9ArMzcDa','ndqYmtK5ofLRB3rWBG'];_0x5c91=function(){return _0x1be528;};return _0x5c91();}function resolveAnthropicReasoningConfig(_0x4fed95){var _0x3d21de={_0x53a555:0x3dd,_0xe2d21d:0x3d9},_0x1abbab={_0x16306e:0x28c};function _0x358aee(_0x25fb54,_0x2ca94c,_0x54b41c,_0x457eb5){return _0x470f(_0x25fb54-_0x1abbab._0x16306e,_0x2ca94c);}return _0x4fed95?.[_0x358aee(_0x3d21de._0x53a555,0x3e1,0x3e0,_0x3d21de._0xe2d21d)]?structuredClone(_0x4fed95['anthropic']):void 0x0;}function resolveOpenAiReasoningConfig(_0x9c5c7b){var _0x4915da={_0x2c48f9:0x270,_0x270433:0x274,_0x26561a:0x275,_0xe25db7:0x271,_0x17cd43:0x272,_0x3b4ae9:0x277};function _0x2f76ff(_0x23ce9b,_0x62be98,_0x92492,_0x1fa487){return _0x470f(_0x62be98- -0x251,_0x23ce9b);}if(_0x9c5c7b?.[_0x4f4572(-0x274,-_0x4915da._0x2c48f9,-_0x4915da._0x270433,-_0x4915da._0x26561a)])return structuredClone(_0x9c5c7b[_0x4f4572(-_0x4915da._0xe25db7,-0x270,-_0x4915da._0x17cd43,-0x270)]);function _0x4f4572(_0x234219,_0x588105,_0x315496,_0x4202ed){return _0x470f(_0x588105- -0x3ca,_0x315496);}return _0x9c5c7b?.[_0x4f4572(-_0x4915da._0x3b4ae9,-0x274,-0x274,-0x274)]?structuredClone(_0x9c5c7b['openai']):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
|
package/dist/chunk-LIE76IJA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1badde,_0x1ef0d8){const _0x1aa572={_0x37ecc7:0xb4,_0x9868a3:0x32,_0x352aa1:0x30,_0x33d86e:0x62,_0x4ced06:0x41,_0x8a2209:0x65,_0x24e321:0x51,_0x440d62:0x60,_0x35dde4:0x39,_0x28b6a1:0x3,_0x5a5d9d:0x22,_0x8195d9:0x39,_0x1bf794:0x25,_0x1d1d77:0x4e,_0x380372:0x57,_0x593a65:0x76,_0x4dbe76:0xa9,_0x3aa963:0x93,_0x2dfb08:0xb1,_0x533ca2:0xa1,_0x511fd4:0xc1,_0x2bde8e:0x36,_0x10ff0e:0x19,_0x2235cb:0xad,_0x363057:0xa7,_0x458a05:0x9e,_0x166376:0x92,_0x1bf4de:0xb0,_0x4564c8:0x91,_0x3b1eed:0xb2,_0x19f14e:0xcc},_0xee0c99={_0x1c923e:0x113};function _0x4d7b92(_0x2b4a4e,_0x1fafa0,_0x1005c5,_0x3987bb){return _0x12ad(_0x2b4a4e- -0x168,_0x1005c5);}const _0x371edc=_0x1badde();function _0x2e3fe4(_0x5c80d9,_0x55a3f2,_0x3f3bb5,_0x114989){return _0x12ad(_0x55a3f2- -_0xee0c99._0x1c923e,_0x3f3bb5);}while(!![]){try{const _0x1995fc=-parseInt(_0x2e3fe4(_0x1aa572._0x37ecc7,0x96,0x7a,0xa7))/0x1+parseInt(_0x4d7b92(_0x1aa572._0x9868a3,_0x1aa572._0x352aa1,0x4c,0x3a))/0x2*(parseInt(_0x4d7b92(_0x1aa572._0x33d86e,0x42,_0x1aa572._0x4ced06,0x73))/0x3)+parseInt(_0x4d7b92(_0x1aa572._0x8a2209,_0x1aa572._0x24e321,_0x1aa572._0x440d62,0x59))/0x4*(-parseInt(_0x4d7b92(0x25,_0x1aa572._0x35dde4,0x14,_0x1aa572._0x28b6a1))/0x5)+-parseInt(_0x4d7b92(0x3a,_0x1aa572._0x352aa1,0x3c,_0x1aa572._0x5a5d9d))/0x6*(parseInt(_0x4d7b92(_0x1aa572._0x8195d9,_0x1aa572._0x1bf794,_0x1aa572._0x1d1d77,_0x1aa572._0x380372))/0x7)+parseInt(_0x2e3fe4(_0x1aa572._0x593a65,0x94,_0x1aa572._0x4dbe76,_0x1aa572._0x3aa963))/0x8*(parseInt(_0x2e3fe4(0xb3,_0x1aa572._0x2dfb08,_0x1aa572._0x533ca2,_0x1aa572._0x511fd4))/0x9)+parseInt(_0x4d7b92(0x24,0x41,_0x1aa572._0x2bde8e,_0x1aa572._0x10ff0e))/0xa*(-parseInt(_0x2e3fe4(0xab,_0x1aa572._0x2235cb,_0x1aa572._0x363057,_0x1aa572._0x458a05))/0xb)+parseInt(_0x2e3fe4(_0x1aa572._0x166376,_0x1aa572._0x1bf4de,0xab,_0x1aa572._0x4564c8))/0xc*(parseInt(_0x2e3fe4(0xd0,_0x1aa572._0x3b1eed,_0x1aa572._0x19f14e,0xd1))/0xd);if(_0x1995fc===_0x1ef0d8)break;else _0x371edc['push'](_0x371edc['shift']());}catch(_0x5e71c5){_0x371edc['push'](_0x371edc['shift']());}}}(_0x3f75,0xa9d79));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function _0x3f75(){const _0x300e34=['o2jHC2u2ncW','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','BwvZC2fNzxm','DxnLCI12AxnPyMXL','Aw1Hz2u','C3rYDwn0DxjLzf9VDxrWDxq','zgf0yq','zwzMB3j0','BMfTzq','Bwf4vg9Rzw5Z','y29KzxG','Aw5WDxq','B3v0Chv0x3rLEhq','C3rYAw5NAwz5','C3LZDgvT','C3vTBwfYEq','AxnbCNjHEq','Dgv4Da','mtm4mZq3uNnytxbh','Aw5WDxrFC2nOzw1H','BgvUz3rO','mtG1mZe5nNvwzfDPAG','mZGXmZmXofPMyLrhvG','mty5q3Dms1fW','yxv0BW','Aw5WDxrFDgv4Da','AM9PBG','zNvUy3rPB25Fy2fSBf9VDxrWDxq','nJLqBhLNrgy','zMLSDgvY','BwvKAwfFDhLWzq','nejfrMjRwG','zNvUy3rPB25Fy2fSBa','nZeWCejMv016','ntq0ntm1mhvUr3L4Eq','Dg9VBhm','Dg9VBf91C2u','DhjPBq','C3rYAw5N','ChjVDMLKzxjtDgf0zq','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','DhLWzq','zgf0ytO','Dg9VBf91C2vFAwq','B2jQzwn0','BwfW','Bw9KzwW','otyYmZzlCwvnzwG','C291CMnL','y29UDgvUDa','ANnVBL9Zy2HLBwe','CMvHC29UAw5N','zgvZy3jPChrPB24','yxnZAxn0yw50','n1DSsxbACW','mZe5mtqXmKTxz1nswq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','A2v5CW','ChvZAa','ohHzrKDHqq','BwvZC2fNzq','mZi4ndmZtKD0ChzA','Aw5WDxrFAw1Hz2u','CM9Szq','C2nOzw1H','B3v0Chv0rM9YBwf0'];_0x3f75=function(){return _0x300e34;};return _0x3f75();}function systemToInstructions(_0x24383f){const _0x392c8b={_0x20484a:0x4ab,_0x2b76d9:0x495,_0x3afb14:0x4a7,_0x41cc47:0x5f,_0x4f710f:0x483},_0x15e0ad={_0x46239b:0x2ca},_0x8c813={_0x5ac498:0x1e6};function _0x3b8777(_0x3c0304,_0x124a6b,_0x31f9eb,_0x5e9d57){return _0x12ad(_0x5e9d57- -_0x8c813._0x5ac498,_0x124a6b);}function _0x148125(_0x31ab3e,_0x230b68,_0x149b4e,_0x5bad49){return _0x12ad(_0x230b68-_0x15e0ad._0x46239b,_0x31ab3e);}return normalizeContent(_0x24383f)[_0x148125(_0x392c8b._0x20484a,_0x392c8b._0x2b76d9,0x493,_0x392c8b._0x3afb14)](_0x54ccdb=>_0x54ccdb[_0x3b8777(-0x5d,-0x32,-0x73,-0x52)]===_0x3b8777(-0xa,-0x1b,-0x36,-0x27))[_0x3b8777(-_0x392c8b._0x41cc47,-0x3d,-0x37,-0x4e)](_0x4b4d81=>_0x4b4d81[_0x3b8777(-0x26,-0x3c,-0x3b,-0x27)])[_0x148125(0x47c,0x492,_0x392c8b._0x4f710f,0x496)]('\x0a\x0a');}function pushUserContentMessage(_0x334f35,_0x1f05b8,_0x5c4b72){const _0xd10409={_0x247dfd:0x2a8,_0x15af6c:0x2aa,_0x2e9d2c:0x2b1,_0xbe777c:0x2c6},_0x1da392={_0x264826:0x2b2};function _0x2a4a74(_0x431f61,_0x457618,_0x48ff4a,_0x238eeb){return _0x12ad(_0x431f61-_0x1da392._0x264826,_0x48ff4a);}function _0x418f64(_0x4562b9,_0x4bcbaf,_0x2300e8,_0x1cb135){return _0x12ad(_0x1cb135-0x107,_0x4562b9);}if(_0x5c4b72[_0x418f64(0x2bc,_0xd10409._0x247dfd,0x2da,0x2c9)]===0x0)return;_0x334f35[_0x418f64(0x28e,0x2ca,_0xd10409._0x15af6c,0x2ad)]({'type':_0x418f64(_0xd10409._0x2e9d2c,_0xd10409._0xbe777c,0x28e,0x2af),'role':_0x1f05b8,'content':_0x5c4b72});}function hasSerializableToolUse(_0x17d609){const _0x3f6663={_0x30fedb:0x1dd,_0x3b85b4:0x517,_0x3316e5:0x501,_0x40bde0:0x1ab,_0x36048d:0x1b2},_0xa459dc={_0x34b2d7:0x36d};function _0x3ceb6e(_0x5abcde,_0x1f1cbb,_0x3b3a36,_0x552dfb){return _0x12ad(_0x3b3a36- -_0xa459dc._0x34b2d7,_0x552dfb);}function _0x22499e(_0x4be677,_0x4ba53b,_0x197d55,_0x12f5fa){return _0x12ad(_0x197d55-0x351,_0x12f5fa);}return _0x17d609['id'][_0x3ceb6e(-0x1e8,-0x1cb,-_0x3f6663._0x30fedb,-0x1e6)]()[_0x22499e(0x4ff,_0x3f6663._0x3b85b4,0x513,0x4f8)]>0x0&&_0x17d609[_0x22499e(_0x3f6663._0x3316e5,0x51f,0x507,0x4f1)]['trim']()[_0x3ceb6e(-_0x3f6663._0x40bde0,-_0x3f6663._0x36048d,-_0x3f6663._0x40bde0,-0x1c5)]>0x0;}function hasSerializableToolResult(_0x2ecc04){const _0x34307b={_0x39ba8e:0x4ec,_0x28107a:0x4fa,_0x268d11:0x24,_0x1df3c6:0x7,_0x57171b:0x2e},_0x3dad22={_0x363950:0x356},_0x10804d={_0x3621d8:0x194};function _0x2f586d(_0x1babb6,_0x2a4935,_0x5da50a,_0x1fadf3){return _0x12ad(_0x1babb6- -_0x10804d._0x3621d8,_0x1fadf3);}function _0x517d6f(_0x1ba4a4,_0x49bb76,_0x5af571,_0x3a5d59){return _0x12ad(_0x1ba4a4-_0x3dad22._0x363950,_0x49bb76);}return _0x2ecc04[_0x517d6f(_0x34307b._0x39ba8e,0x4f5,_0x34307b._0x28107a,0x4fb)][_0x2f586d(-0x4,-_0x34307b._0x268d11,-0x19,_0x34307b._0x1df3c6)]()[_0x2f586d(_0x34307b._0x57171b,0x38,0x17,0x2d)]>0x0;}function isResponseInputObject(_0x454844){const _0x368125={_0x55c68a:0x3ed,_0x2c78a7:0x3e1,_0x2342be:0x3f1},_0x4c14bc={_0x2df793:0x25d};function _0x1c34de(_0x32039f,_0x579ae5,_0x4138c0,_0x5438d7){return _0x12ad(_0x579ae5-_0x4c14bc._0x2df793,_0x5438d7);}if(typeof _0x454844!==_0x1c34de(0x413,0x3f4,_0x368125._0x55c68a,0x3e5)||_0x454844===null||Array['isArray'](_0x454844))return![];function _0x1c8160(_0x342645,_0x2215cb,_0x5deab5,_0x5f08f0){return _0x12ad(_0x5deab5- -0x24c,_0x342645);}const _0x1e6a88=_0x454844;return typeof _0x1e6a88[_0x1c34de(_0x368125._0x2c78a7,_0x368125._0x2342be,0x3e1,0x3de)]==='string';}function isImageToolResultBlock(_0x17840d){const _0x9e567e={_0x144dce:0x268,_0xed1d60:0xea,_0x3e79c6:0xf6,_0x3158c4:0x100,_0x488d84:0x263,_0x39d534:0x27d,_0x1a2e63:0x262,_0x3b160c:0x277,_0x225e5a:0x113,_0x49f281:0x119,_0x56b1f2:0x244,_0x991d45:0x232,_0x3b1b2e:0xff,_0x192b47:0x10f,_0x41799e:0x264,_0x8903b:0x24c,_0x520b3e:0x241,_0xbbe91c:0x227},_0x2afc86={_0x50e90c:0xb0};if(typeof _0x17840d!==_0x3bb714(_0x9e567e._0x144dce,0x247,0x263,0x22e)||_0x17840d===null||Array[_0x271f46(-_0x9e567e._0xed1d60,-_0x9e567e._0x3e79c6,-_0x9e567e._0x3158c4,-0x113)](_0x17840d))return![];function _0x271f46(_0x50a8e9,_0x13caec,_0xed1860,_0x274ef4){return _0x12ad(_0x13caec- -0x2b4,_0x50a8e9);}const _0x534618=_0x17840d;function _0x3bb714(_0x1bedc5,_0x72fdea,_0x3aa604,_0x2cf9a5){return _0x12ad(_0x72fdea-_0x2afc86._0x50e90c,_0x2cf9a5);}return _0x534618[_0x3bb714(0x24d,0x244,_0x9e567e._0x488d84,0x251)]===_0x3bb714(_0x9e567e._0x39d534,_0x9e567e._0x1a2e63,_0x9e567e._0x3b160c,0x24e)&&_0x534618[_0x271f46(-_0x9e567e._0x225e5a,-_0x9e567e._0x49f281,-0x10f,-0x114)]?.[_0x3bb714(0x263,_0x9e567e._0x56b1f2,0x229,_0x9e567e._0x991d45)]==='base64'&&typeof _0x534618[_0x271f46(-0x11e,-0x119,-_0x9e567e._0x3b1b2e,-_0x9e567e._0x192b47)]['media_type']==='string'&&typeof _0x534618['source'][_0x3bb714(0x27a,_0x9e567e._0x41799e,_0x9e567e._0x8903b,0x243)]===_0x3bb714(0x257,_0x9e567e._0x520b3e,0x25f,_0x9e567e._0xbbe91c);}function getToolResultText(_0xc54e17){const _0x3fd581={_0x31130d:0x21a,_0x326367:0x26b,_0x39487c:0x254,_0x51c756:0x26e,_0x172ad1:0x117,_0xbb3424:0x119,_0x516f07:0x11e,_0x95399b:0xf8,_0x8b55ad:0xd0,_0x2fbad1:0xef,_0x20aa3d:0xfa,_0x1d1a76:0x108,_0x4c2756:0xee,_0x2525a2:0x10e,_0x1a06b4:0xee},_0xe738ae={_0x4f70e2:0x540,_0x3a838f:0x541,_0x5bed35:0x57a},_0x48b704={_0x571db0:0x7b},_0x4af939={_0x34abbd:0x2b1};function _0xf36458(_0x4b51fc,_0x10281f,_0x467f3b,_0x2aab0a){return _0x12ad(_0x467f3b- -_0x4af939._0x34abbd,_0x10281f);}if(typeof _0xc54e17===_0x5212b6(0x21a,_0x3fd581._0x31130d,0x229,0x239))return _0xc54e17;const _0x28b18c=_0xc54e17[_0x5212b6(_0x3fd581._0x326367,_0x3fd581._0x39487c,_0x3fd581._0x51c756,0x25a)](_0x4dd3a1=>{const _0x5da5fa={_0x225b08:0x181};function _0x36f651(_0x5bf198,_0x44d193,_0x468b2b,_0xbed2da){return _0xf36458(_0x5bf198-0x4c,_0x468b2b,_0x44d193-_0x5da5fa._0x225b08,_0xbed2da-0x189);}function _0x19608b(_0x3ff1d4,_0xeee995,_0x4d4ddd,_0x107a6c){return _0xf36458(_0x3ff1d4-_0x48b704._0x571db0,_0x4d4ddd,_0x107a6c-0x65b,_0x107a6c-0x4b);}return typeof _0x4dd3a1===_0x19608b(0x52f,0x52d,_0xe738ae._0x4f70e2,_0xe738ae._0x3a838f)&&_0x4dd3a1!==null&&_0x4dd3a1['type']===_0x19608b(0x569,0x560,_0xe738ae._0x5bed35,0x569);})[_0xf36458(-_0x3fd581._0x172ad1,-0x100,-_0x3fd581._0xbb3424,-_0x3fd581._0x516f07)](_0x7194f7=>_0x7194f7[_0x5212b6(0x263,0x248,0x246,0x254)])[_0xf36458(-_0x3fd581._0x95399b,-_0x3fd581._0x8b55ad,-0xe9,-0xf4)]('\x0a\x0a')[_0xf36458(-0x10d,-0x128,-0x121,-0x137)]();function _0x5212b6(_0x275382,_0x53fb60,_0x2e4ffa,_0x45bcb4){return _0x12ad(_0x53fb60-0x89,_0x45bcb4);}return _0x28b18c[_0xf36458(-0xf5,-_0x3fd581._0x8b55ad,-_0x3fd581._0x2fbad1,-_0x3fd581._0x20aa3d)]>0x0?_0x28b18c:_0xf36458(-_0x3fd581._0x1d1a76,-_0x3fd581._0x4c2756,-_0x3fd581._0x2525a2,-_0x3fd581._0x1a06b4);}function getToolResultImages(_0x3f917f){const _0x184a0d={_0x286b5a:0x558,_0x1a31dd:0x554,_0x55a9e8:0x580,_0x18dd8f:0x548,_0x36b7a5:0x56d},_0x52db81={_0x26a76b:0xc7},_0x31ce66={_0x191d93:0x396};function _0x8c0660(_0x59d0fc,_0x25fe51,_0x30e29e,_0x1e7c76){return _0x12ad(_0x30e29e-_0x31ce66._0x191d93,_0x25fe51);}function _0x4f5cf2(_0x90e3b0,_0x27f78b,_0x140ac2,_0x2f65df){return _0x12ad(_0x27f78b- -_0x52db81._0x26a76b,_0x140ac2);}return Array[_0x8c0660(0x55b,_0x184a0d._0x286b5a,_0x184a0d._0x1a31dd,0x56f)](_0x3f917f)?_0x3f917f[_0x8c0660(_0x184a0d._0x55a9e8,_0x184a0d._0x18dd8f,0x561,_0x184a0d._0x36b7a5)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x45ec76){const _0xb7d6ab={_0x241d93:0x381,_0x4effe0:0x36b,_0x2a4bd7:0x366},_0x5382c1={_0xe05e1c:0x1ba};function _0x43f973(_0x4b9933,_0x167650,_0x5cd389,_0x19c5ce){return _0x12ad(_0x167650-_0x5382c1._0xe05e1c,_0x19c5ce);}return _0x45ec76['reasoning']?.['visibility']??_0x43f973(_0xb7d6ab._0x241d93,_0xb7d6ab._0x4effe0,_0xb7d6ab._0x2a4bd7,0x356);}function createOpenAiResponsesReasoning(_0x4b890b){const _0x4fb372={_0x3506d2:0x1a2,_0x5f5d35:0x1cf,_0x23b900:0x1bd,_0x388d6f:0x1d8,_0x9be98b:0xb2,_0x1afe6a:0xca,_0x444c93:0xac,_0x4dafe4:0xb7,_0x458a5f:0xb1,_0x5c8a83:0x1ca,_0x25e4f9:0x9a,_0x503d6d:0xcf,_0x5be511:0x1c1,_0xddc43f:0x1b2,_0x4c47dd:0x1b9,_0x23c09b:0x1ad,_0xcd7864:0x1d7,_0x552f8e:0x1c6,_0x3dfa86:0x197,_0x3be3f7:0x197,_0x4b9cc7:0x18d,_0x3997e7:0xc5,_0x1e6a80:0xa6},_0x380293={_0x236937:0x4},_0x31e711=resolveOpenAiReasoningConfig(_0x4b890b[_0x29ac5c(-0xad,-0xca,-0xdc,-0xd4)]);if(!_0x31e711)return{};function _0x272f83(_0x6b7f25,_0x4b854d,_0x105e3e,_0x59c717){return _0x12ad(_0x105e3e-_0x380293._0x236937,_0x6b7f25);}const _0x35ddbc={},_0x2bd564=_0x4b890b[_0x272f83(0x1be,0x19e,_0x4fb372._0x3506d2,0x1b1)]?.[_0x272f83(_0x4fb372._0x5f5d35,_0x4fb372._0x23b900,0x1bc,_0x4fb372._0x388d6f)]!==void 0x0;function _0x29ac5c(_0x3db39b,_0x9876de,_0x932885,_0x76a52c){return _0x12ad(_0x9876de- -0x268,_0x3db39b);}const _0x11a882=(!_0x2bd564&&_0x29ac5c(-_0x4fb372._0x9be98b,-0xab,-_0x4fb372._0x1afe6a,-0xc2)in _0x31e711?_0x31e711['summary']:void 0x0)??(resolveReasoningVisibility(_0x4b890b)===_0x29ac5c(-_0x4fb372._0x444c93,-_0x4fb372._0x4dafe4,-_0x4fb372._0x458a5f,-0x9f)?_0x272f83(0x1ba,0x1b5,_0x4fb372._0x5c8a83,0x1eb):void 0x0);return _0x31e711[_0x29ac5c(-_0x4fb372._0x25e4f9,-0xb3,-_0x4fb372._0x503d6d,-0xb2)]&&(_0x35ddbc[_0x272f83(_0x4fb372._0x5be511,_0x4fb372._0xddc43f,_0x4fb372._0x4c47dd,_0x4fb372._0x23c09b)]=_0x31e711[_0x272f83(_0x4fb372._0xcd7864,_0x4fb372._0x552f8e,_0x4fb372._0x4c47dd,0x1c4)]),_0x11a882&&(_0x35ddbc['summary']=_0x11a882),{...!_0x2bd564&&'includeEncryptedContent'in _0x31e711&&_0x31e711[_0x272f83(0x1b3,0x1a2,_0x4fb372._0x3dfa86,0x19b)]===![]?{}:{'include':[_0x272f83(0x18b,_0x4fb372._0x3be3f7,0x1a8,_0x4fb372._0x4b9cc7)]},...Object[_0x29ac5c(-0xb0,-0xc3,-0xa4,-_0x4fb372._0x3997e7)](_0x35ddbc)[_0x29ac5c(-0xc7,-_0x4fb372._0x1e6a80,-_0x4fb372._0x4dafe4,-0xb6)]>0x0?{'reasoning':_0x35ddbc}:{}};}function _0x12ad(_0x4f0f6c,_0x627150){_0x4f0f6c=_0x4f0f6c-0x18b;const _0x3f752c=_0x3f75();let _0x12ad74=_0x3f752c[_0x4f0f6c];if(_0x12ad['TByMBy']===undefined){var _0x29e31b=function(_0x16b891){const _0x501c58='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x24383f='',_0x54ccdb='';for(let _0x4b4d81=0x0,_0x334f35,_0x1f05b8,_0x5c4b72=0x0;_0x1f05b8=_0x16b891['charAt'](_0x5c4b72++);~_0x1f05b8&&(_0x334f35=_0x4b4d81%0x4?_0x334f35*0x40+_0x1f05b8:_0x1f05b8,_0x4b4d81++%0x4)?_0x24383f+=String['fromCharCode'](0xff&_0x334f35>>(-0x2*_0x4b4d81&0x6)):0x0){_0x1f05b8=_0x501c58['indexOf'](_0x1f05b8);}for(let _0x17d609=0x0,_0x2ecc04=_0x24383f['length'];_0x17d609<_0x2ecc04;_0x17d609++){_0x54ccdb+='%'+('00'+_0x24383f['charCodeAt'](_0x17d609)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54ccdb);};_0x12ad['fARoVK']=_0x29e31b,_0x12ad['pEKzAV']={},_0x12ad['TByMBy']=!![];}const _0x378438=_0x3f752c[0x0],_0x40917b=_0x4f0f6c+_0x378438,_0x39796f=_0x12ad['pEKzAV'][_0x40917b];return!_0x39796f?(_0x12ad74=_0x12ad['fARoVK'](_0x12ad74),_0x12ad['pEKzAV'][_0x40917b]=_0x12ad74):_0x12ad74=_0x39796f,_0x12ad74;}function pushAssistantProviderState(_0x5d345f,_0x2e08af,_0x4dc744){const _0x46f2f5={_0x45364b:0x193,_0x285fca:0x17b,_0x232dd9:0x169,_0x32477f:0x14a,_0x2d377e:0x17e,_0x4c4900:0x15b,_0x4ec414:0x156,_0xd22234:0x177,_0x42f8e7:0x18e,_0x1dbc96:0x171,_0x9a043a:0xe6,_0x3e187b:0xee,_0x470d59:0xce,_0x44b3b0:0xb6,_0x2f514c:0xdf,_0xb181b5:0xce,_0xcef0e2:0x186,_0x2d767a:0x181,_0x5e501a:0xea,_0x2dc9c1:0xf2};if(_0x2e08af[_0x420677(0x174,_0x46f2f5._0x45364b,_0x46f2f5._0x285fca,0x18c)]!==_0x420677(_0x46f2f5._0x232dd9,0x16d,_0x46f2f5._0x32477f,_0x46f2f5._0x2d377e))return![];if(!isProviderStateCompatible(_0x2e08af,_0x4dc744))return![];const _0x5f5ceb=_0x2e08af[_0x420677(_0x46f2f5._0x4c4900,0x148,_0x46f2f5._0x4ec414,0x169)]?.['openaiResponsesOutput']??[];function _0x45faa4(_0xb1c742,_0x59eb7e,_0x54e1b4,_0x83f9b5){return _0x12ad(_0x54e1b4- -0x28c,_0x83f9b5);}if(_0x5f5ceb[_0x420677(0x18b,_0x46f2f5._0xd22234,0x19f,_0x46f2f5._0x42f8e7)]===0x0)return![];function _0x420677(_0x33dee2,_0x139ca1,_0xf2526a,_0x3dcd38){return _0x12ad(_0x33dee2- -0x37,_0xf2526a);}for(const _0x5df81a of _0x5f5ceb){if(isResponseInputObject(_0x5df81a)){const _0x13eeda=structuredClone(_0x5df81a);delete _0x13eeda['status'],_0x13eeda[_0x420677(0x15d,0x141,0x153,_0x46f2f5._0x1dbc96)]===_0x45faa4(-_0x46f2f5._0x9a043a,-0xcd,-_0x46f2f5._0x3e187b,-_0x46f2f5._0x470d59)&&!Array[_0x45faa4(-_0x46f2f5._0x44b3b0,-_0x46f2f5._0x2f514c,-_0x46f2f5._0xb181b5,-0xba)](_0x13eeda['summary'])&&(_0x13eeda[_0x420677(_0x46f2f5._0xcef0e2,_0x46f2f5._0x2d767a,0x16c,0x187)]=[]),_0x5d345f[_0x45faa4(-0x106,-_0x46f2f5._0x5e501a,-0xe6,-_0x46f2f5._0x2dc9c1)](_0x13eeda);}}return!![];}function toOpenAiResponsesRequest(_0xf7e6a4){const _0x431181={_0xe47e20:0x1f1,_0x7e616b:0x1ef,_0x27d19c:0x1fc,_0x11e2d9:0x1e6,_0x5b1a8a:0x1f6,_0x86c89e:0x208,_0xf2a31a:0x1f2,_0x411386:0x1f3,_0x583607:0x1ec,_0x496e0d:0x1e0,_0x59002e:0x125,_0x35abb7:0x128,_0x2f7133:0x12b,_0xf50aa9:0x1d9,_0x4c6a85:0x1c4,_0x294ffa:0x14c,_0x1883c9:0x14e,_0x1030d6:0x165,_0x1fc354:0x153,_0x2ac938:0x14d,_0x8792b1:0x204,_0x453f17:0x220,_0x45c69d:0x210,_0x399bc8:0x211,_0x3403b9:0x1f4,_0x58db82:0x151,_0x25b1da:0x201,_0x340eec:0x205,_0x363bc8:0x13c,_0x16a0be:0x133,_0x2fcfe2:0x205,_0x25d9ea:0x1d2,_0x10d766:0x1f8,_0x32b85b:0x1f0,_0x4afc0d:0x110,_0x3fb396:0xf9,_0x7c7a0a:0x131,_0x544420:0x1f0,_0x5b485c:0x1df,_0x5363c1:0x1c0,_0x275559:0x119,_0x3e81c7:0x1fc,_0x3be04f:0x20c,_0x291229:0x1f2,_0x369bca:0x1f5,_0x5c7846:0x1de,_0x518a43:0x20a,_0x4c8d7f:0x16c,_0x5f3f10:0x219,_0x1b9e84:0x134,_0x4039ab:0x11d,_0x34c374:0x1f2,_0x1354d9:0x1e4,_0x58373c:0x168,_0x499b0a:0x162,_0x57795b:0x1e9,_0x223884:0x1d8,_0x25ea55:0x1ef,_0xfa4d17:0x209,_0x3eaf23:0x1ee,_0x4364d7:0x130,_0x58ff09:0x13f,_0x5a2180:0x13f,_0x26c7ba:0x10c,_0x4d07a1:0x1dc,_0x2f7167:0x1ef,_0x87e0a3:0x1db,_0x2e45cb:0x13b,_0x27ede6:0x120,_0x3aa310:0x123,_0xc78b57:0x200,_0x12e925:0x122,_0x5b138b:0x138,_0x1589ff:0x131,_0x4cc990:0x1eb,_0x374b8d:0x209,_0x1c557e:0x1f8,_0x255fb2:0x1c5,_0xa60965:0x1e7,_0x1dd5b0:0x131,_0x554365:0x12f,_0x1fa3bb:0x113},_0x3717d4={_0x133419:0x449,_0x45f848:0x453,_0x3c9ceb:0x2a9,_0x12709b:0x45d,_0x32f5e8:0x454},_0x38b5f0={_0x50b89c:0x101};function _0x566e7e(_0x32d486,_0xaba2ba,_0x3951cd,_0x2b8161){return _0x12ad(_0x32d486- -0x7b,_0xaba2ba);}const _0x38b54a=[];function _0x3b8f80(_0x18dd56,_0x488a24,_0x517c09,_0xcb3c6f){return _0x12ad(_0x18dd56- -0x398,_0x488a24);}for(const _0x53cc1b of _0xf7e6a4[_0x3b8f80(-0x1e8,-_0x431181._0xe47e20,-_0x431181._0x7e616b,-0x1f0)]){if(pushAssistantProviderState(_0x38b54a,_0x53cc1b,_0xf7e6a4))continue;const _0x204038=[];for(const _0x299ef9 of normalizeContent(_0x53cc1b[_0x3b8f80(-_0x431181._0x27d19c,-_0x431181._0x11e2d9,-0x1e7,-_0x431181._0x5b1a8a)])){if(_0x299ef9[_0x3b8f80(-0x204,-_0x431181._0x86c89e,-0x1f9,-0x21f)]===_0x3b8f80(-0x1d9,-_0x431181._0xf2a31a,-_0x431181._0x411386,-0x1ea)){_0x204038[_0x3b8f80(-_0x431181._0xf2a31a,-0x20e,-0x1d4,-_0x431181._0x583607)](_0x53cc1b[_0x3b8f80(-0x1ed,-0x1f9,-0x1f1,-_0x431181._0x496e0d)]===_0x566e7e(_0x431181._0x59002e,0x10c,0x138,0x11b)?{'type':_0x566e7e(0x13f,_0x431181._0x35abb7,0x14d,_0x431181._0x2f7133),'text':_0x299ef9[_0x3b8f80(-_0x431181._0xf50aa9,-_0x431181._0x4c6a85,-0x1e9,-0x1d0)]}:{'type':_0x566e7e(_0x431181._0x294ffa,0x144,0x14d,_0x431181._0x1883c9),'text':_0x299ef9[_0x566e7e(0x144,_0x431181._0x1030d6,_0x431181._0x1fc354,_0x431181._0x2ac938)]});continue;}if(_0x299ef9[_0x3b8f80(-_0x431181._0x8792b1,-_0x431181._0x453f17,-_0x431181._0x45c69d,-0x212)]==='image'){_0x204038[_0x3b8f80(-_0x431181._0xf2a31a,-0x1da,-0x1d6,-0x1ec)]({'type':'input_image','image_url':_0x3b8f80(-0x203,-_0x431181._0x399bc8,-0x212,-_0x431181._0x3403b9)+_0x299ef9['source'][_0x566e7e(_0x431181._0x58db82,0x13b,0x134,0x150)]+_0x3b8f80(-0x1ea,-_0x431181._0x25b1da,-0x1e5,-_0x431181._0x340eec)+_0x299ef9[_0x566e7e(0x120,_0x431181._0x363bc8,_0x431181._0x16a0be,0x107)][_0x3b8f80(-0x1e4,-0x1ed,-0x1d3,-_0x431181._0x2fcfe2)]});continue;}pushUserContentMessage(_0x38b54a,_0x53cc1b[_0x3b8f80(-0x1ed,-_0x431181._0x25d9ea,-0x1ef,-_0x431181._0x10d766)],_0x204038['splice'](0x0));if(_0x299ef9['type']===_0x3b8f80(-0x209,-0x227,-0x21a,-_0x431181._0x32b85b)){if(!hasSerializableToolUse(_0x299ef9))continue;_0x38b54a['push']({'type':_0x566e7e(_0x431181._0x4afc0d,_0x431181._0x3fb396,_0x431181._0x7c7a0a,0xf1),'call_id':_0x299ef9['id'],'name':_0x299ef9['name'],'arguments':JSON[_0x3b8f80(-0x1dd,-0x1ea,-0x1f1,-_0x431181._0x544420)](_0x299ef9[_0x3b8f80(-_0x431181._0x5b485c,-0x201,-_0x431181._0x5363c1,-0x1db)]??{})});continue;}if(_0x299ef9[_0x566e7e(_0x431181._0x275559,0x114,0x102,0x12f)]==='tool_result'){if(!hasSerializableToolResult(_0x299ef9))continue;const _0x1125ae=getToolResultText(_0x299ef9[_0x3b8f80(-_0x431181._0x3e81c7,-0x1fe,-0x216,-_0x431181._0x3be04f)]);_0x38b54a[_0x3b8f80(-_0x431181._0x291229,-_0x431181._0x369bca,-_0x431181._0x5c7846,-_0x431181._0x518a43)]({'type':_0x566e7e(0x14e,_0x431181._0x4c8d7f,0x135,0x165),'call_id':_0x299ef9[_0x3b8f80(-0x202,-0x1fe,-0x1f1,-_0x431181._0x5f3f10)],'output':_0x1125ae});const _0x2334f3=getToolResultImages(_0x299ef9[_0x566e7e(0x121,_0x431181._0x1b9e84,_0x431181._0x4039ab,0x139)]);_0x2334f3['length']>0x0&&_0x38b54a[_0x3b8f80(-_0x431181._0x34c374,-_0x431181._0x496e0d,-_0x431181._0x1354d9,-0x1e8)]({'type':'message','role':'user','content':[{'type':_0x566e7e(0x14c,0x13a,_0x431181._0x58373c,_0x431181._0x499b0a),'text':_0x3b8f80(-_0x431181._0x57795b,-_0x431181._0x223884,-0x1ec,-0x1d4)+_0x299ef9[_0x3b8f80(-0x202,-_0x431181._0x25ea55,-_0x431181._0xfa4d17,-0x217)]+'.'},..._0x2334f3[_0x3b8f80(-0x200,-0x21b,-_0x431181._0x3eaf23,-0x210)](_0x3a3d09=>({'type':_0x566e7e(0x12f,0x11f,0x118,0x13f),'image_url':_0x3b8f80(-0x203,-0x209,-0x1e2,-0x20b)+_0x3a3d09[_0x566e7e(0x120,0x106,0x10a,0x109)][_0x3b8f80(-0x1cc,-0x1d0,-0x1bd,-0x1b1)]+';base64,'+_0x3a3d09[_0x566e7e(0x120,0x12a,0x10b,0x10a)]['data']}))]});}}pushUserContentMessage(_0x38b54a,_0x53cc1b[_0x566e7e(_0x431181._0x4364d7,0x137,0x113,_0x431181._0x58ff09)],_0x204038);}return{...createOpenAiResponsesReasoning(_0xf7e6a4),'model':_0xf7e6a4[_0x566e7e(0x11e,_0x431181._0x5a2180,_0x431181._0x26c7ba,0x139)],'instructions':systemToInstructions(_0xf7e6a4[_0x3b8f80(-_0x431181._0x4d07a1,-_0x431181._0x2f7167,-0x1db,-_0x431181._0x87e0a3)]),'input':_0x38b54a,..._0xf7e6a4[_0x566e7e(_0x431181._0x363bc8,_0x431181._0x2e45cb,0x14b,0x145)]!==void 0x0?{'max_output_tokens':_0xf7e6a4[_0x566e7e(_0x431181._0x363bc8,_0x431181._0x27ede6,_0x431181._0x3aa310,0x150)]}:{},'tools':_0xf7e6a4[_0x3b8f80(-0x20a,-_0x431181._0xe47e20,-0x1f7,-0x1f1)][_0x3b8f80(-_0x431181._0xc78b57,-_0x431181._0x5b1a8a,-0x1df,-_0x431181._0xe47e20)](_0x58baa5=>{const _0x2282f9={_0x4a0c32:0x185,_0x51d04d:0xa0};function _0x1a6520(_0x5b6572,_0x193a8f,_0x13a801,_0x4d340a){return _0x3b8f80(_0x13a801-0x62b,_0x4d340a,_0x13a801-_0x38b5f0._0x50b89c,_0x4d340a-0xf5);}function _0x2e3640(_0x2db686,_0x3db528,_0x4b5271,_0x26fdcf){return _0x566e7e(_0x2db686-_0x2282f9._0x4a0c32,_0x26fdcf,_0x4b5271-_0x2282f9._0x51d04d,_0x26fdcf-0x7b);}return{'type':'function','name':_0x58baa5[_0x1a6520(0x463,0x461,_0x3717d4._0x133419,_0x3717d4._0x45f848)],'description':_0x58baa5[_0x2e3640(_0x3717d4._0x3c9ceb,0x2b7,0x2b3,0x297)],'parameters':_0x58baa5[_0x1a6520(_0x3717d4._0x12709b,0x45d,_0x3717d4._0x32f5e8,0x44b)]};}),..._0xf7e6a4['outputFormat']?{'text':{'format':{'type':_0x566e7e(_0x431181._0x12e925,_0x431181._0x5b138b,0x128,_0x431181._0x1589ff),'name':_0xf7e6a4[_0x3b8f80(-_0x431181._0x4cc990,-0x1f7,-0x1e8,-_0x431181._0x374b8d)][_0x3b8f80(-0x1e2,-0x1c8,-_0x431181._0x1c557e,-_0x431181._0x255fb2)]??_0x3b8f80(-0x1e5,-0x1dd,-_0x431181._0x57795b,-0x205),'schema':_0xf7e6a4[_0x3b8f80(-0x1eb,-_0x431181._0x87e0a3,-_0x431181._0xc78b57,-_0x431181._0xa60965)][_0x566e7e(_0x431181._0x1dd5b0,0x12c,_0x431181._0x554365,_0x431181._0x1fa3bb)],'strict':_0xf7e6a4['outputFormat']['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
|
|
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};
|