@nuvin/agent-core 0.0.0-rc.11 → 0.0.0-rc.13
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.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-SEP4YYY3.js +1 -1
- package/dist/chunk-T7UKN6FZ.js +1 -0
- package/dist/chunk-WJMBJOVF.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +2 -2
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +47 -4
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-CURkQPbY.d.ts → provider-adapters-BZo_Yh3I.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +15 -3
- package/dist/tools/index.js +1 -1
- package/dist/{types-Df0vlfj-.d.ts → types-DQXrm4dp.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-VDDXTXQ4.js +0 -1
|
@@ -660,7 +660,7 @@ interface OpenAiInputImage {
|
|
|
660
660
|
interface OpenAiInputMessage {
|
|
661
661
|
type: "message";
|
|
662
662
|
role: MessageRole;
|
|
663
|
-
content: Array<OpenAiInputImage | OpenAiInputText>;
|
|
663
|
+
content: Array<OpenAiInputImage | OpenAiInputText | OpenAiOutputTextPart>;
|
|
664
664
|
}
|
|
665
665
|
interface OpenAiFunctionCall {
|
|
666
666
|
type: "function_call";
|
package/package.json
CHANGED
package/dist/chunk-VDDXTXQ4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x4b8a07,_0x211096){const _0x4dd8c0={_0x13c88f:0x11e,_0x211020:0x2bf,_0x49a35b:0x2cd,_0x239a4b:0x2a7,_0xb7e080:0xbf,_0x185c4a:0x2f9,_0xa7e923:0x2e0,_0xdc98da:0xe3,_0x15c2b1:0xe1,_0x5e5d67:0xd4,_0x1b5582:0xdd,_0x321546:0xd5,_0x1a455a:0xdb,_0xb7bbe4:0xc5,_0x4d545a:0xeb,_0x537c57:0x110,_0x4efb77:0xf7,_0x3c9295:0xe6,_0x275704:0xf5,_0x13fae2:0x107,_0x571238:0xf2,_0x4f7d46:0xfc,_0x5cb679:0xe0},_0x238e3f={_0x2bc566:0x3d3},_0xf0811={_0x34472d:0x15};function _0xa22c30(_0x3fe431,_0x35b605,_0x1559cf,_0x9f82cd){return _0x3633(_0x35b605- -_0xf0811._0x34472d,_0x3fe431);}function _0x55d0da(_0x3df326,_0x2bf49c,_0x1e9bbb,_0x3a7571){return _0x3633(_0x1e9bbb- -_0x238e3f._0x2bc566,_0x3df326);}const _0x25ab0b=_0x4b8a07();while(!![]){try{const _0x53d51e=parseInt(_0xa22c30(0xe9,0x107,_0x4dd8c0._0x13c88f,0x11e))/0x1*(-parseInt(_0x55d0da(-0x2b3,-_0x4dd8c0._0x211020,-_0x4dd8c0._0x49a35b,-0x2cb))/0x2)+-parseInt(_0x55d0da(-0x2e2,-_0x4dd8c0._0x239a4b,-0x2c2,-0x2c3))/0x3*(-parseInt(_0xa22c30(0xeb,0xd9,_0x4dd8c0._0xb7e080,0xc5))/0x4)+-parseInt(_0x55d0da(-0x2d2,-_0x4dd8c0._0x185c4a,-_0x4dd8c0._0xa7e923,-0x2ec))/0x5*(-parseInt(_0xa22c30(0xf8,_0x4dd8c0._0xdc98da,0x101,0x102))/0x6)+-parseInt(_0xa22c30(0xe1,_0x4dd8c0._0x15c2b1,0xf0,_0x4dd8c0._0x5e5d67))/0x7*(-parseInt(_0xa22c30(_0x4dd8c0._0x1b5582,_0x4dd8c0._0x321546,_0x4dd8c0._0x1a455a,_0x4dd8c0._0xb7bbe4))/0x8)+-parseInt(_0xa22c30(0xdd,_0x4dd8c0._0x4d545a,_0x4dd8c0._0xdc98da,0xdd))/0x9*(-parseInt(_0xa22c30(_0x4dd8c0._0x537c57,_0x4dd8c0._0x4efb77,0xe3,_0x4dd8c0._0x3c9295))/0xa)+-parseInt(_0xa22c30(0x113,0x10b,_0x4dd8c0._0x275704,0xfa))/0xb+-parseInt(_0xa22c30(_0x4dd8c0._0x13fae2,0xf4,0x10d,_0x4dd8c0._0x571238))/0xc*(parseInt(_0xa22c30(_0x4dd8c0._0x4f7d46,_0x4dd8c0._0x5cb679,0xcf,_0x4dd8c0._0x5e5d67))/0xd);if(_0x53d51e===_0x211096)break;else _0x25ab0b['push'](_0x25ab0b['shift']());}catch(_0x360e7e){_0x25ab0b['push'](_0x25ab0b['shift']());}}}(_0x5293,0xc4eb9));import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';import{normalizeContent}from'./chunk-SEP4YYY3.js';function systemToInstructions(_0x44f057){const _0x15adde={_0x731232:0x9e};function _0x1341f2(_0xa51390,_0x3a422a,_0x910dac,_0x568c80){return _0x3633(_0x910dac-0xc7,_0x3a422a);}function _0x465af9(_0x3e6658,_0x4a93d2,_0x3f4763,_0x497296){return _0x3633(_0x497296-_0x15adde._0x731232,_0x4a93d2);}return normalizeContent(_0x44f057)[_0x465af9(0x1ac,0x1ab,0x1b2,0x1b7)](_0x46e045=>_0x46e045['type']===_0x465af9(0x1a3,0x1a6,0x189,0x19c))[_0x1341f2(0x1d7,0x1de,0x1ce,0x1c1)](_0x2888da=>_0x2888da['text'])['join']('\x0a\x0a');}function pushUserContentMessage(_0x520bcb,_0x5f43e9,_0x3f56f9){const _0x2f0c46={_0x2a14ed:0x7a,_0x31228c:0x95,_0x2a327f:0xac,_0x1fd78e:0xa9};if(_0x3f56f9['length']===0x0)return;function _0x3e4988(_0x303677,_0x20d376,_0x433cfe,_0x43b0a5){return _0x3633(_0x433cfe- -0x73,_0x43b0a5);}function _0x158c61(_0x34224b,_0x28c752,_0x55cd67,_0x3a2ff9){return _0x3633(_0x34224b-0x25e,_0x28c752);}_0x520bcb[_0x3e4988(0x7a,0x7f,0x91,_0x2f0c46._0x2a14ed)]({'type':_0x3e4988(0xa1,_0x2f0c46._0x31228c,_0x2f0c46._0x2a327f,_0x2f0c46._0x1fd78e),'role':_0x5f43e9,'content':_0x3f56f9});}function hasSerializableToolUse(_0x170494){const _0x52d12e={_0x4734cc:0x14b,_0x150774:0x150,_0x4a89e8:0x184,_0x5370fe:0x162,_0x45485d:0x169,_0x154539:0x191,_0x32a61d:0x178,_0x1c668f:0x156,_0x5d125f:0x222},_0x17a3e2={_0x334d60:0x114},_0x186277={_0x43b3d5:0x5b};function _0x4d0074(_0x124eff,_0x4c1eb5,_0x58a134,_0x3fed0f){return _0x3633(_0x3fed0f-_0x186277._0x43b3d5,_0x124eff);}function _0x2375fe(_0x34fff8,_0x2b6ba8,_0x55e6b5,_0x25f999){return _0x3633(_0x55e6b5-_0x17a3e2._0x334d60,_0x25f999);}return _0x170494['id'][_0x4d0074(0x14b,_0x52d12e._0x4734cc,0x134,0x147)]()[_0x4d0074(_0x52d12e._0x150774,_0x52d12e._0x4a89e8,_0x52d12e._0x5370fe,_0x52d12e._0x45485d)]>0x0&&_0x170494[_0x4d0074(0x16c,_0x52d12e._0x154539,0x166,_0x52d12e._0x32a61d)][_0x4d0074(_0x52d12e._0x150774,0x135,_0x52d12e._0x1c668f,0x147)]()[_0x2375fe(0x23f,0x219,_0x52d12e._0x5d125f,0x236)]>0x0;}function hasSerializableToolResult(_0x5a8d4e){const _0x14143b={_0xa8019a:0x4b5,_0x25d1a5:0x4a7},_0x258d2b={_0x960c10:0x3c9};function _0x54e225(_0x30740e,_0xc1d175,_0x413bd0,_0x494e15){return _0x3633(_0xc1d175-_0x258d2b._0x960c10,_0x413bd0);}return _0x5a8d4e['tool_use_id'][_0x54e225(0x499,_0x14143b._0xa8019a,_0x14143b._0x25d1a5,0x4ad)]()['length']>0x0;}function _0x5293(){const _0x4fc4a2=['BgvUz3rO','ChjVDMLKzxjtDgf0zq','BwvZC2fNzxm','nde2ota5mwTzrhPwsa','C3rYAw5N','Aw5WDxrFAw1Hz2u','Dg9VBhm','BwvKAwfFDhLWzq','Aw5WDxrFDgv4Da','zgf0yq','A2v5CW','zMLSDgvY','Dg9VBf9Yzxn1Bhq','Aw5WDxrFC2nOzw1H','ndC5ELrJrhzS','BMfTzq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','BwvZC2fNzq','mtu3mtm5nJjjBeHIr2W','DxnLCG','Dg9VBf91C2u','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','zNvUy3rPB24','DxnLCI12AxnPyMXL','Dg9VBf91C2vFAwq','CM9Szq','ogLUCgPLtG','Bwf4vg9Rzw5Z','DhjPBq','C3bSAwnL','nhnIueP4ua','Aw5WDxq','C3LZDgvT','yMfZzty0','zNvUy3rPB25Fy2fSBf9VDxrWDxq','mtG1mdi3mg53zuT4BG','yxv0BW','mZm4sLHKswfm','mZC5mZuXqMDbELbU','AxnbCNjHEq','mJrTAujes0O','C3vTBwfYEq','o2jHC2u2ncW','C291CMnL','CMvHC29UAw5N','B2jQzwn0','Dgv4Da','zwzMB3j0','mJeWodG0nfDtBvfhzq','Bw9KzwW','y29UDgvUDa','DMLZAwjPBgL0Eq','ChvZAa','zgf0ytO','odyYsezstMv6','BwfW','DhLWzq','mZmWoduYqMrPDe1u','Aw1Hz2u','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','mtbVEgDUBMu','zNvUy3rPB25Fy2fSBa'];_0x5293=function(){return _0x4fc4a2;};return _0x5293();}function isResponseInputObject(_0x36dfb1){const _0x24a367={_0xc84267:0x71,_0x2ed155:0x1b0,_0x201e85:0x1ae,_0x4646a0:0x1ad,_0xaad822:0x195},_0x229017={_0x20be22:0x2a5};if(typeof _0x36dfb1!==_0x4c58b7(-0x4b,-_0x24a367._0xc84267,-0x63,-0x65)||_0x36dfb1===null||Array[_0x4236c9(-_0x24a367._0x2ed155,-_0x24a367._0x201e85,-0x1bf,-0x191)](_0x36dfb1))return![];function _0x4c58b7(_0x24638b,_0xc25ed,_0x47b01b,_0x289fc3){return _0x3633(_0x47b01b- -0x160,_0x24638b);}function _0x4236c9(_0x5e001f,_0x14e31d,_0x1c3e48,_0x5be022){return _0x3633(_0x14e31d- -_0x229017._0x20be22,_0x5be022);}const _0x216e95=_0x36dfb1;return typeof _0x216e95['type']===_0x4236c9(-0x19a,-0x193,-_0x24a367._0x4646a0,-_0x24a367._0xaad822);}function isImageToolResultBlock(_0x21b34f){const _0x27e1ef={_0x44756a:0x164,_0x2755cb:0x186,_0x3c6080:0x173,_0x421bb5:0x192,_0x1ca317:0x18f,_0x22755c:0x19c,_0x1e0008:0x183,_0x2e8f84:0x183,_0x1f2112:0x178,_0x548e7:0x1a0,_0x25ef63:0x172,_0x80b9d2:0x16c,_0x32b730:0x16f},_0x2cc791={_0x35526e:0x288};function _0x473b1b(_0x57891c,_0x38745d,_0x682fdc,_0x191723){return _0x3633(_0x191723- -_0x2cc791._0x35526e,_0x682fdc);}if(typeof _0x21b34f!=='object'||_0x21b34f===null||Array['isArray'](_0x21b34f))return![];function _0x25d439(_0x213c09,_0x3128ea,_0x313cc2,_0xa2dec6){return _0x3633(_0x3128ea-0x88,_0x213c09);}const _0x38249a=_0x21b34f;return _0x38249a[_0x473b1b(-0x18b,-_0x27e1ef._0x44756a,-_0x27e1ef._0x2755cb,-0x180)]===_0x25d439(_0x27e1ef._0x3c6080,_0x27e1ef._0x421bb5,_0x27e1ef._0x1ca317,0x19e)&&_0x38249a['source']?.[_0x25d439(0x176,0x190,0x17f,0x1a2)]===_0x473b1b(-0x1a5,-0x194,-_0x27e1ef._0x22755c,-0x197)&&typeof _0x38249a[_0x25d439(0x173,_0x27e1ef._0x1e0008,0x17c,0x19b)]['media_type']==='string'&&typeof _0x38249a[_0x25d439(0x19d,_0x27e1ef._0x2e8f84,_0x27e1ef._0x1f2112,_0x27e1ef._0x548e7)][_0x473b1b(-_0x27e1ef._0x25ef63,-_0x27e1ef._0x80b9d2,-_0x27e1ef._0x32b730,-0x171)]==='string';}function getToolResultText(_0x3c7eb6){const _0x42897e={_0x4726ae:0x346,_0x145c73:0x343,_0x3d2fd2:0x357,_0x8e3608:0x338,_0x3f548a:0x345,_0x3cba49:0x366,_0x34f621:0x350,_0x1c661a:0x118,_0x55215d:0x124,_0x1c1369:0x10a,_0x4d6b0e:0x124,_0xb04fdc:0x135},_0x4f9953={_0x32f919:0xde,_0x2d0f05:0x29b},_0x5ed4b3={_0x11f6d6:0xff},_0x313ce8={_0x5228f7:0x1d9,_0x459d8b:0xb6},_0x25b5ff={_0x419514:0x249},_0x2c0086={_0x3501d3:0x8};function _0xda06e3(_0x385920,_0x2488ab,_0x10b3d0,_0x19c25b){return _0x3633(_0x10b3d0-_0x2c0086._0x3501d3,_0x2488ab);}if(typeof _0x3c7eb6==='string')return _0x3c7eb6;function _0x14fe98(_0x184534,_0x36cfbc,_0x4c9b53,_0x416180){return _0x3633(_0x416180-_0x25b5ff._0x419514,_0x184534);}const _0x45a8f0=_0x3c7eb6[_0x14fe98(_0x42897e._0x4726ae,_0x42897e._0x145c73,_0x42897e._0x3d2fd2,0x362)](_0x596898=>{function _0x25425b(_0x3a9645,_0x392460,_0x325f83,_0x240d19){return _0x14fe98(_0x325f83,_0x392460-0x1c7,_0x325f83-_0x313ce8._0x5228f7,_0x240d19- -_0x313ce8._0x459d8b);}function _0x38e19e(_0x165d99,_0x337aeb,_0x36d1f8,_0x129204){return _0x14fe98(_0x36d1f8,_0x337aeb-0x1c2,_0x36d1f8-_0x5ed4b3._0x11f6d6,_0x129204- -0x444);}return typeof _0x596898===_0x38e19e(-_0x4f9953._0x32f919,-0xf1,-0xf2,-0xfe)&&_0x596898!==null&&_0x596898[_0x25425b(0x2b6,0x290,0x2b4,_0x4f9953._0x2d0f05)]==='text';})[_0x14fe98(_0x42897e._0x8e3608,_0x42897e._0x3f548a,_0x42897e._0x3cba49,_0x42897e._0x34f621)](_0x26e5ee=>_0x26e5ee[_0xda06e3(0x113,0x115,0x106,0xe8)])['join']('\x0a\x0a')['trim']();return _0x45a8f0[_0xda06e3(_0x42897e._0x1c661a,_0x42897e._0x55215d,0x116,_0x42897e._0x1c1369)]>0x0?_0x45a8f0:_0xda06e3(_0x42897e._0x4d6b0e,_0x42897e._0xb04fdc,0x126,0x118);}function getToolResultImages(_0x3928eb){const _0xd5a51a={_0x1d4911:0x25d,_0x288a9e:0x3b1,_0x411ca6:0x39f},_0x504e08={_0x177a0a:0x286};function _0x4ff60a(_0xd41b8e,_0x3521b4,_0x2d0af0,_0x87b7b8){return _0x3633(_0x3521b4- -0x371,_0x87b7b8);}function _0x39c86e(_0x3cd811,_0x192a18,_0x419736,_0xc100ee){return _0x3633(_0xc100ee-_0x504e08._0x177a0a,_0x419736);}return Array[_0x4ff60a(-0x296,-0x27a,-_0xd5a51a._0x1d4911,-0x296)](_0x3928eb)?_0x3928eb[_0x39c86e(0x3bd,0x3b6,_0xd5a51a._0x288a9e,_0xd5a51a._0x411ca6)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x465ab1){const _0x555007={_0x1822b8:0x5c,_0x1be259:0x4a,_0x5771d3:0x46,_0x1bb72e:0x6a,_0x462f22:0x5f},_0x1dda17={_0x39ee2a:0x146};function _0x4c082c(_0x43c5d3,_0x3e8ddb,_0xedaf6b,_0x42ed6f){return _0x3633(_0x3e8ddb-0x30d,_0x42ed6f);}function _0x498195(_0x35063d,_0x5e9a54,_0x28c8c2,_0x4d2394){return _0x3633(_0x4d2394- -_0x1dda17._0x39ee2a,_0x5e9a54);}return _0x465ab1[_0x498195(-_0x555007._0x1822b8,-0x4c,-0x2b,-_0x555007._0x1be259)]?.[_0x498195(-0x59,-_0x555007._0x5771d3,-0x47,-0x43)]??_0x498195(-_0x555007._0x1bb72e,-0x7c,-0x58,-_0x555007._0x462f22);}function createOpenAiResponsesReasoning(_0x4ec226){const _0x36a5f7={_0x5c0da2:0x25a,_0x439c1c:0x236,_0x200cc4:0x240,_0x2c4543:0x257,_0x905ba3:0x244,_0x446aa8:0x23a,_0x12baea:0x98,_0x572c58:0xc4,_0x59caf2:0xb6,_0x2ea74a:0xa1,_0x44781a:0x22c,_0x4a4702:0x25b,_0x6afb3b:0x9c,_0x23de8b:0x266,_0x2b03bc:0xe8,_0x5addfb:0xc5},_0x2d545c={_0x294ed6:0x49},_0x36779c={_0x15eafe:0x14f},_0x49925d=resolveOpenAiReasoningConfig(_0x4ec226['reasoning']);if(!_0x49925d)return{};function _0x4cc822(_0x8c08a7,_0xb8e08a,_0x14a36a,_0x3edac4){return _0x3633(_0x8c08a7-_0x36779c._0x15eafe,_0x3edac4);}const _0x138eb1={},_0x439419=_0x49925d[_0x4cc822(0x248,0x244,0x237,_0x36a5f7._0x5c0da2)]??(resolveReasoningVisibility(_0x4ec226)===_0x4cc822(_0x36a5f7._0x439c1c,0x236,_0x36a5f7._0x200cc4,0x229)?_0x4cc822(0x243,0x22e,_0x36a5f7._0x2c4543,_0x36a5f7._0x905ba3):void 0x0);_0x49925d[_0x4cc822(0x24e,_0x36a5f7._0x446aa8,0x25a,0x24d)]&&(_0x138eb1[_0x393b63(_0x36a5f7._0x12baea,0xd1,0xb6,0xa9)]=_0x49925d[_0x393b63(0xc2,_0x36a5f7._0x572c58,_0x36a5f7._0x59caf2,_0x36a5f7._0x2ea74a)]);_0x439419&&(_0x138eb1[_0x4cc822(0x248,0x25a,_0x36a5f7._0x44781a,_0x36a5f7._0x4a4702)]=_0x439419);function _0x393b63(_0x3261dc,_0x7e2e23,_0x6a237b,_0x413bdb){return _0x3633(_0x6a237b- -_0x2d545c._0x294ed6,_0x413bdb);}return{..._0x49925d[_0x393b63(0x83,0x9a,_0x36a5f7._0x6afb3b,0x97)]===![]?{}:{'include':[_0x4cc822(_0x36a5f7._0x5c0da2,0x25d,_0x36a5f7._0x23de8b,_0x36a5f7._0x5c0da2)]},...Object[_0x393b63(_0x36a5f7._0x2b03bc,_0x36a5f7._0x5addfb,0xcf,0xbf)](_0x138eb1)['length']>0x0?{'reasoning':_0x138eb1}:{}};}function pushAssistantProviderState(_0x1c9bbe,_0x3bbd63){const _0x4158a6={_0x14dbaf:0x8b,_0x996a5b:0x6c,_0x488feb:0x49b,_0x4a1a5f:0x479},_0x84c167={_0x395a97:0x5e};if(_0x3bbd63[_0x354b7a(_0x4158a6._0x14dbaf,0x7f,0x91,_0x4158a6._0x996a5b)]!=='assistant')return![];const _0x57f7f3=_0x3bbd63[_0x578d7c(0x496,0x468,0x487,0x486)]?.['openaiResponsesOutput']??[];function _0x354b7a(_0x4d832b,_0x29d47a,_0x340f42,_0x24a12a){return _0x3633(_0x4d832b- -_0x84c167._0x395a97,_0x29d47a);}if(_0x57f7f3[_0x578d7c(0x47f,_0x4158a6._0x488feb,0x486,0x47a)]===0x0)return![];for(const _0x439fa2 of _0x57f7f3){isResponseInputObject(_0x439fa2)&&_0x1c9bbe[_0x578d7c(0x46d,0x45d,0x47c,_0x4158a6._0x4a1a5f)](structuredClone(_0x439fa2));}function _0x578d7c(_0x5d6844,_0x1de0e9,_0x704f26,_0x20793d){return _0x3633(_0x704f26-0x378,_0x1de0e9);}return!![];}function _0x3633(_0xba08eb,_0x15a504){_0xba08eb=_0xba08eb-0xe5;const _0x5293eb=_0x5293();let _0x363391=_0x5293eb[_0xba08eb];if(_0x3633['txECuZ']===undefined){var _0x50697c=function(_0xb3caef){const _0x19ce61='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44f057='',_0x46e045='';for(let _0x2888da=0x0,_0x520bcb,_0x5f43e9,_0x3f56f9=0x0;_0x5f43e9=_0xb3caef['charAt'](_0x3f56f9++);~_0x5f43e9&&(_0x520bcb=_0x2888da%0x4?_0x520bcb*0x40+_0x5f43e9:_0x5f43e9,_0x2888da++%0x4)?_0x44f057+=String['fromCharCode'](0xff&_0x520bcb>>(-0x2*_0x2888da&0x6)):0x0){_0x5f43e9=_0x19ce61['indexOf'](_0x5f43e9);}for(let _0x170494=0x0,_0x5a8d4e=_0x44f057['length'];_0x170494<_0x5a8d4e;_0x170494++){_0x46e045+='%'+('00'+_0x44f057['charCodeAt'](_0x170494)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x46e045);};_0x3633['yAYKKG']=_0x50697c,_0x3633['uNxEGF']={},_0x3633['txECuZ']=!![];}const _0xd8e052=_0x5293eb[0x0],_0xe0a9aa=_0xba08eb+_0xd8e052,_0x49a085=_0x3633['uNxEGF'][_0xe0a9aa];return!_0x49a085?(_0x363391=_0x3633['yAYKKG'](_0x363391),_0x3633['uNxEGF'][_0xe0a9aa]=_0x363391):_0x363391=_0x49a085,_0x363391;}function toOpenAiResponsesRequest(_0x4c487f){const _0x18f1dd={_0x22655a:0x1ac,_0x34a27c:0x1ad,_0x2e6dc9:0x27d,_0x10616f:0x294,_0xbdf607:0x1a3,_0x42bfc4:0x196,_0x289a85:0x186,_0x2b03ea:0x18c,_0x3583db:0x18c,_0x23cd8a:0x1bc,_0x43fad6:0x1b9,_0x4447e0:0x1b6,_0x5897b2:0x18a,_0x4e6bf3:0x190,_0x21ad8c:0x17e,_0x20b7d7:0x1ae,_0x5ae782:0x27c,_0x172ba0:0x299,_0x2a533b:0x289,_0x10fdd7:0x267,_0x42f71e:0x170,_0x2915a9:0x17b,_0x23ee40:0x1a7,_0x2ebb33:0x19f,_0x395631:0x15c,_0x2d87bc:0x17b,_0x5214fd:0x159,_0x5e1645:0x175,_0x51170e:0x1a5,_0x1289b1:0x190,_0x53eeba:0x19c,_0x5d72e3:0x1c4,_0x173013:0x19d,_0x2b61ed:0x27a,_0x56d709:0x299,_0x39f328:0x2ad,_0x13bfd6:0x1a2,_0x2d1f84:0x19a,_0x5982b7:0x264,_0x3847ba:0x27b,_0xf9b564:0x285,_0x3e6e3b:0x19c,_0x4ca21a:0x272,_0x1f47c8:0x28e,_0x16d7b2:0x178,_0x4effa8:0x17a,_0x129345:0x172,_0x7d063e:0x17d,_0x4f0578:0x18a,_0x1c416d:0x197,_0x125d3d:0x2a9,_0x2a7ddb:0x2b5,_0xa58b33:0x1a9,_0x67042d:0x1ab,_0x24f8c5:0x2a2,_0x4420af:0x1c0,_0x1f3c3f:0x1ab,_0x5a6f3b:0x194,_0x2e1268:0x26a,_0xd1c7e7:0x274,_0x25e35a:0x18f,_0x2da23b:0x275,_0x935701:0x279,_0x10499e:0x278,_0xf3f291:0x170,_0x4f96fc:0x189,_0x17b900:0x280,_0x32a443:0x28b,_0x54ff03:0x2a4},_0xe5e94b={_0x3b1edb:0x16b,_0x9609f3:0x150,_0xbac12d:0x134,_0x5133c2:0x122,_0x3b215a:0x136,_0x2f3547:0x119,_0x3b78ae:0x12f},_0x35ec49={_0x26705e:0x2d9,_0x2a0aa3:0xa5},_0xb2bd55={_0xf6cb79:0x18c},_0x3727e1={_0x120c34:0x88};function _0x305901(_0x4467bf,_0x38ae0a,_0x10a141,_0x520a28){return _0x3633(_0x10a141-_0x3727e1._0x120c34,_0x4467bf);}const _0x4483f2=[];function _0x51f00c(_0x2d5a70,_0x3e3d92,_0x44521f,_0x70525){return _0x3633(_0x3e3d92-_0xb2bd55._0xf6cb79,_0x44521f);}for(const _0x3b80d3 of _0x4c487f[_0x305901(_0x18f1dd._0x22655a,0x1b7,0x198,_0x18f1dd._0x34a27c)]){if(pushAssistantProviderState(_0x4483f2,_0x3b80d3))continue;const _0x52076e=[];for(const _0x3264bd of normalizeContent(_0x3b80d3['content'])){if(_0x3264bd[_0x51f00c(0x28a,0x294,_0x18f1dd._0x2e6dc9,_0x18f1dd._0x10616f)]===_0x305901(_0x18f1dd._0xbdf607,_0x18f1dd._0x42bfc4,_0x18f1dd._0x289a85,0x187)){_0x52076e[_0x305901(0x17a,0x178,_0x18f1dd._0x2b03ea,_0x18f1dd._0x3583db)]({'type':_0x305901(_0x18f1dd._0x23cd8a,_0x18f1dd._0x43fad6,0x19e,_0x18f1dd._0x4447e0),'text':_0x3264bd['text']});continue;}if(_0x3264bd[_0x305901(_0x18f1dd._0x5897b2,0x18f,_0x18f1dd._0x4e6bf3,_0x18f1dd._0x21ad8c)]==='image'){_0x52076e['push']({'type':_0x305901(_0x18f1dd._0x20b7d7,0x1ac,0x19b,0x19b),'image_url':_0x305901(0x17b,0x1a9,0x18d,0x1a3)+_0x3264bd[_0x51f00c(0x274,0x287,_0x18f1dd._0x5ae782,_0x18f1dd._0x172ba0)]['media_type']+_0x51f00c(_0x18f1dd._0x2a533b,0x286,_0x18f1dd._0x10fdd7,0x28d)+_0x3264bd[_0x305901(_0x18f1dd._0x42f71e,_0x18f1dd._0x2915a9,0x183,0x174)][_0x305901(0x1ac,_0x18f1dd._0x23ee40,_0x18f1dd._0x2ebb33,0x19c)]});continue;}pushUserContentMessage(_0x4483f2,_0x3b80d3[_0x305901(0x16a,_0x18f1dd._0x395631,0x171,0x184)],_0x52076e[_0x305901(_0x18f1dd._0x2d87bc,_0x18f1dd._0x5214fd,_0x18f1dd._0x5e1645,0x178)](0x0));if(_0x3264bd[_0x305901(_0x18f1dd._0x51170e,0x1a4,_0x18f1dd._0x1289b1,0x172)]===_0x305901(_0x18f1dd._0x53eeba,_0x18f1dd._0x5d72e3,0x1aa,_0x18f1dd._0x173013)){if(!hasSerializableToolUse(_0x3264bd))continue;_0x4483f2['push']({'type':_0x51f00c(_0x18f1dd._0x2b61ed,_0x18f1dd._0x56d709,_0x18f1dd._0x39f328,0x28d),'call_id':_0x3264bd['id'],'name':_0x3264bd[_0x305901(_0x18f1dd._0x13bfd6,_0x18f1dd._0x2d1f84,0x1a5,0x1ba)],'arguments':JSON['stringify'](_0x3264bd[_0x51f00c(_0x18f1dd._0x5982b7,_0x18f1dd._0x3847ba,0x299,_0x18f1dd._0xf9b564)]??{})});continue;}if(_0x3264bd['type']===_0x305901(_0x18f1dd._0x3e6e3b,_0x18f1dd._0x42bfc4,_0x18f1dd._0x13bfd6,0x1b0)){if(!hasSerializableToolResult(_0x3264bd))continue;const _0x226e25=getToolResultText(_0x3264bd[_0x51f00c(_0x18f1dd._0x4ca21a,_0x18f1dd._0x1f47c8,0x2a3,0x27e)]);_0x4483f2['push']({'type':_0x305901(0x18c,_0x18f1dd._0x16d7b2,_0x18f1dd._0x4effa8,0x177),'call_id':_0x3264bd[_0x305901(0x155,0x16c,_0x18f1dd._0x42f71e,_0x18f1dd._0x129345)],'output':_0x226e25});const _0x32f7fe=getToolResultImages(_0x3264bd['content']);_0x32f7fe[_0x305901(_0x18f1dd._0x7d063e,_0x18f1dd._0x4e6bf3,_0x18f1dd._0x42bfc4,_0x18f1dd._0x4f0578)]>0x0&&_0x4483f2[_0x305901(_0x18f1dd._0x1c416d,0x181,_0x18f1dd._0x2b03ea,_0x18f1dd._0x4effa8)]({'type':_0x51f00c(_0x18f1dd._0x125d3d,0x2ab,0x2a1,_0x18f1dd._0x2a7ddb),'role':_0x305901(0x198,0x191,_0x18f1dd._0xa58b33,_0x18f1dd._0x67042d),'content':[{'type':_0x51f00c(0x2b4,_0x18f1dd._0x24f8c5,0x2b8,0x2a2),'text':_0x305901(_0x18f1dd._0x4420af,0x19c,_0x18f1dd._0x1f3c3f,_0x18f1dd._0x5a6f3b)+_0x3264bd[_0x51f00c(_0x18f1dd._0x2e1268,_0x18f1dd._0xd1c7e7,0x25b,0x267)]+'.'},..._0x32f7fe[_0x305901(0x1a7,0x1ab,_0x18f1dd._0x25e35a,0x199)](_0x3d904a=>({'type':'input_image','image_url':_0x51f00c(0x2ae,0x291,0x27f,0x278)+_0x3d904a['source'][_0x305901(0x180,0x1b2,0x19d,0x1a1)]+';base64,'+_0x3d904a[_0x51f00c(0x291,0x287,0x279,0x286)][_0x305901(0x1a3,0x1ab,0x19f,0x17f)]}))]});}}pushUserContentMessage(_0x4483f2,_0x3b80d3[_0x51f00c(0x265,_0x18f1dd._0x2da23b,_0x18f1dd._0x935701,_0x18f1dd._0x10499e)],_0x52076e);}return{...createOpenAiResponsesReasoning(_0x4c487f),'model':_0x4c487f[_0x305901(_0x18f1dd._0xf3f291,0x18f,_0x18f1dd._0x4f96fc,0x17f)],'instructions':systemToInstructions(_0x4c487f[_0x51f00c(0x28c,_0x18f1dd._0x5ae782,0x291,_0x18f1dd._0x17b900)]),'input':_0x4483f2,'max_output_tokens':_0x4c487f[_0x51f00c(0x25c,0x277,_0x18f1dd._0x32a443,0x271)],'tools':_0x4c487f[_0x51f00c(0x288,0x2a0,_0x18f1dd._0x54ff03,0x284)]['map'](_0xa304a1=>{const _0x4048cc={_0x2b6b30:0xf6,_0x49c335:0x2f5};function _0x360313(_0x508644,_0x28e949,_0x268876,_0x58aa05){return _0x305901(_0x508644,_0x28e949-_0x4048cc._0x2b6b30,_0x28e949-_0x4048cc._0x49c335,_0x58aa05-0x11b);}function _0x2f3215(_0x3a7401,_0x209afa,_0x4511ed,_0x19af2f){return _0x305901(_0x4511ed,_0x209afa-0x118,_0x209afa- -_0x35ec49._0x26705e,_0x19af2f-_0x35ec49._0x2a0aa3);}return{'type':_0x2f3215(-0x16f,-_0xe5e94b._0x3b1edb,-0x181,-0x172),'name':_0xa304a1[_0x2f3215(-_0xe5e94b._0x9609f3,-_0xe5e94b._0xbac12d,-_0xe5e94b._0x5133c2,-0x144)],'description':_0xa304a1['description'],'parameters':_0xa304a1[_0x2f3215(-0x143,-_0xe5e94b._0x3b215a,-_0xe5e94b._0x2f3547,-_0xe5e94b._0x3b78ae)]};})};}export{toOpenAiResponsesRequest};
|