@nuvin/agent-core 0.0.0-rc.0 → 0.0.0-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/LICENSE +202 -0
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +3 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-C6OLKGP6.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-U2BLX7Y5.js +1 -1
- package/dist/chunk-WVVWOCQ5.js +1 -0
- 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 +3 -3
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-BHDQNPHa.d.ts → provider-adapters-F0kn75gb.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 +168 -4
- package/dist/tools/index.js +1 -1
- package/dist/{types-BueDJWnx.d.ts → types-D11KxtW1.d.ts} +1 -0
- package/package.json +12 -11
- package/dist/chunk-EJTTW4JQ.js +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2025 Marsch Huynh
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/dist/VERSION
CHANGED
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RunTurnDeps, M as Message, A as AgentOptions, a as AgentInput, b as AgentSendOptions, T as TurnResult, E as ExtensionRegistry, c as TurnInput } from '../types-
|
|
2
|
-
export { d as TurnState } from '../types-
|
|
1
|
+
import { R as RunTurnDeps, M as Message, A as AgentOptions, a as AgentInput, b as AgentSendOptions, T as TurnResult, E as ExtensionRegistry, c as TurnInput } from '../types-D11KxtW1.js';
|
|
2
|
+
export { d as TurnState } from '../types-D11KxtW1.js';
|
|
3
3
|
|
|
4
4
|
declare class Agent {
|
|
5
5
|
readonly deps: RunTurnDeps;
|
|
@@ -9,6 +9,7 @@ declare class Agent {
|
|
|
9
9
|
readonly defaultMessage?: Message;
|
|
10
10
|
turnIndex: number;
|
|
11
11
|
constructor(options?: AgentOptions);
|
|
12
|
+
setTools(tools?: AgentOptions["tools"]): void;
|
|
12
13
|
send(input?: AgentInput | undefined, options?: AgentSendOptions): Promise<TurnResult>;
|
|
13
14
|
}
|
|
14
15
|
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0xfcbe(_0x562f16,_0x550b74){_0x562f16=_0x562f16-0xf0;var _0x2f7c66=_0x2f7c();var _0xfcbe3b=_0x2f7c66[_0x562f16];if(_0xfcbe['meNMFP']===undefined){var _0x18b50e=function(_0x528d40){var _0x2256de='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x45f76c='',_0x31f3cf='';for(var _0x5542a4=0x0,_0x2fd966,_0x3db34d,_0x322e25=0x0;_0x3db34d=_0x528d40['charAt'](_0x322e25++);~_0x3db34d&&(_0x2fd966=_0x5542a4%0x4?_0x2fd966*0x40+_0x3db34d:_0x3db34d,_0x5542a4++%0x4)?_0x45f76c+=String['fromCharCode'](0xff&_0x2fd966>>(-0x2*_0x5542a4&0x6)):0x0){_0x3db34d=_0x2256de['indexOf'](_0x3db34d);}for(var _0x40c5f1=0x0,_0xf2f13e=_0x45f76c['length'];_0x40c5f1<_0xf2f13e;_0x40c5f1++){_0x31f3cf+='%'+('00'+_0x45f76c['charCodeAt'](_0x40c5f1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x31f3cf);};_0xfcbe['IwznxQ']=_0x18b50e,_0xfcbe['mLVVuV']={},_0xfcbe['meNMFP']=!![];}var _0x27c20e=_0x2f7c66[0x0],_0x3f8de8=_0x562f16+_0x27c20e,_0xc0056=_0xfcbe['mLVVuV'][_0x3f8de8];return!_0xc0056?(_0xfcbe3b=_0xfcbe['IwznxQ'](_0xfcbe3b),_0xfcbe['mLVVuV'][_0x3f8de8]=_0xfcbe3b):_0xfcbe3b=_0xc0056,_0xfcbe3b;}function _0x2f7c(){var _0x50ff12=['nZiXotHcrM9eBee','mtyXuKfJuw5u','ndKWmZyZmMzPC1bXCq','mtv5BvvYzwq','mJC2ndb5DxPND00','mJbuAKPMqLK','mJm5nJqWmKHQEMDqsW','m2Xfz0zRzW','odCYntm1ne1Wyu9lrq','mJa1mdrky0vOvva','odKZnZa2reTzrxLz'];_0x2f7c=function(){return _0x50ff12;};return _0x2f7c();}(function(_0x38e08d,_0x13188f){var _0x2c18f2={_0x5afb06:0x462,_0x346f5c:0x460,_0x207876:0x45a,_0x372d15:0x462,_0x12e053:0x413,_0x4ae4cc:0x45d,_0x4d293a:0x45b,_0x1197d6:0x462,_0x584b29:0x45e,_0x4cfdcf:0x463,_0x2c8ffe:0x45a,_0x546c4f:0x45f,_0x2140da:0x458,_0x5875b9:0x459,_0x3276ae:0x461},_0x4e7565=_0x38e08d();function _0x3ec43(_0xfd158a,_0x40fc4a,_0x405cf2,_0xf2c22c){return _0xfcbe(_0x40fc4a-0x36a,_0xf2c22c);}function _0x289ddc(_0x50ed84,_0x47d3d0,_0x320659,_0x23f061){return _0xfcbe(_0x47d3d0-0x31c,_0x23f061);}while(!![]){try{var _0xaf9685=parseInt(_0x3ec43(_0x2c18f2._0x5afb06,0x464,0x461,0x465))/0x1+parseInt(_0x3ec43(0x460,0x45f,_0x2c18f2._0x346f5c,_0x2c18f2._0x207876))/0x2*(parseInt(_0x3ec43(0x45b,0x460,0x45e,_0x2c18f2._0x372d15))/0x3)+parseInt(_0x289ddc(_0x2c18f2._0x12e053,0x414,0x419,0x415))/0x4+-parseInt(_0x3ec43(_0x2c18f2._0x4ae4cc,0x45c,_0x2c18f2._0x4d293a,_0x2c18f2._0x1197d6))/0x5*(-parseInt(_0x3ec43(_0x2c18f2._0x584b29,_0x2c18f2._0x4cfdcf,0x45e,0x469))/0x6)+-parseInt(_0x3ec43(0x45a,_0x2c18f2._0x2c8ffe,_0x2c18f2._0x546c4f,0x45c))/0x7*(-parseInt(_0x3ec43(_0x2c18f2._0x2140da,0x45d,0x45f,0x462))/0x8)+parseInt(_0x3ec43(0x460,_0x2c18f2._0x4d293a,_0x2c18f2._0x5875b9,0x45e))/0x9+parseInt(_0x3ec43(0x462,_0x2c18f2._0x584b29,0x464,0x45d))/0xa*(-parseInt(_0x3ec43(_0x2c18f2._0x584b29,0x461,_0x2c18f2._0x3276ae,_0x2c18f2._0x584b29))/0xb);if(_0xaf9685===_0x13188f)break;else _0x4e7565['push'](_0x4e7565['shift']());}catch(_0x5f1203){_0x4e7565['push'](_0x4e7565['shift']());}}}(_0x2f7c,0xb99c7));import{Agent,createExtensionRegistry,runTurn}from'../chunk-WVVWOCQ5.js';import'../chunk-C6OLKGP6.js';import'../chunk-X7VAACWY.js';export{Agent,createExtensionRegistry,runTurn};
|
package/dist/chunk-C6OLKGP6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x48a0e6,_0x2a7baf){const _0x297576={_0x3ba69b:0x275,_0x2e874c:0x265,_0x5d8839:0x262,_0x2984ec:0x137,_0x35fb1c:0x138,_0x5d0788:0x136,_0xd67d97:0x13d,_0x2abd4a:0x151,_0x2a9d40:0x15a,_0x19ad8f:0x14e,_0x2d5d2b:0x17d,_0x213f46:0x285,_0x7da120:0x127,_0x3fb38e:0x145,_0x1c3d53:0x278,_0x13f022:0x292,_0x68eb8:0x272,_0x379206:0x2a4,_0xc199ab:0x292,_0x30de21:0x166},_0x5b714a={_0x2487a2:0x2d3};function _0x5f1ccb(_0x5d0381,_0x54c1ed,_0x4e92bb,_0x2d684a){return _0x37d0(_0x4e92bb- -_0x5b714a._0x2487a2,_0x54c1ed);}function _0x3e46d6(_0x353507,_0x2c7908,_0x4119ce,_0x26a061){return _0x37d0(_0x2c7908-0xef,_0x353507);}const _0x1c7ca1=_0x48a0e6();while(!![]){try{const _0x4ecadb=parseInt(_0x3e46d6(0x257,0x272,0x25e,_0x297576._0x3ba69b))/0x1+parseInt(_0x3e46d6(_0x297576._0x2e874c,_0x297576._0x5d8839,_0x297576._0x5d8839,0x257))/0x2*(parseInt(_0x5f1ccb(-0x139,-_0x297576._0x2984ec,-0x14f,-_0x297576._0x35fb1c))/0x3)+-parseInt(_0x5f1ccb(-0x151,-_0x297576._0x5d0788,-0x13e,-0x123))/0x4+-parseInt(_0x5f1ccb(-_0x297576._0xd67d97,-0x149,-_0x297576._0x2abd4a,-0x144))/0x5*(-parseInt(_0x5f1ccb(-_0x297576._0x2a9d40,-_0x297576._0x19ad8f,-0x168,-_0x297576._0x2d5d2b))/0x6)+parseInt(_0x3e46d6(_0x297576._0x213f46,0x279,0x280,0x280))/0x7*(-parseInt(_0x5f1ccb(-_0x297576._0x7da120,-0x151,-_0x297576._0x3fb38e,-0x15d))/0x8)+parseInt(_0x3e46d6(_0x297576._0x1c3d53,0x288,_0x297576._0x13f022,_0x297576._0x68eb8))/0x9+parseInt(_0x3e46d6(_0x297576._0x379206,0x28b,0x286,_0x297576._0xc199ab))/0xa*(-parseInt(_0x5f1ccb(-_0x297576._0x30de21,-0x151,-0x15d,-_0x297576._0x2abd4a))/0xb);if(_0x4ecadb===_0x2a7baf)break;else _0x1c7ca1['push'](_0x1c7ca1['shift']());}catch(_0x3302e3){_0x1c7ca1['push'](_0x1c7ca1['shift']());}}}(_0x3bde,0xd1c38));function createTextBlock(_0x1f64fc){const _0x3dcfbc={_0x12f2f0:0x161,_0x273beb:0x14d,_0xe670f5:0x13c};function _0x4b3040(_0x3666c9,_0x52d5ec,_0x45d9bc,_0xb10708){return _0x37d0(_0x45d9bc- -0x30,_0x3666c9);}return{'type':_0x4b3040(_0x3dcfbc._0x12f2f0,0x137,_0x3dcfbc._0x273beb,_0x3dcfbc._0xe670f5),'text':_0x1f64fc};}function normalizeTextBlock(_0x46dcfb){const _0x23b02f={_0x2a0b71:0x1e7,_0x1e909f:0x1f6},_0x3745ca={_0x18dc93:0x364};function _0x1df157(_0x1f58d2,_0xa52d3b,_0x15c71a,_0x3a1b0f){return _0x37d0(_0xa52d3b- -_0x3745ca._0x18dc93,_0x15c71a);}return createTextBlock(_0x46dcfb[_0x1df157(-0x1e7,-_0x23b02f._0x2a0b71,-_0x23b02f._0x1e909f,-0x205)]??'');}function normalizeContent(_0x3520fb){const _0x133ea8={_0x18a11d:0x270,_0xdac1c2:0x294,_0x4dc47e:0x1e8,_0x5dc019:0x1da,_0x2d1e87:0x204,_0x30125b:0x2a4,_0x1082f0:0x2b8},_0x4e3c28={_0x43e76e:0x222,_0x28a915:0x248,_0x510c89:0x225,_0x1bdc17:0x207},_0x56964b={_0x500ff5:0x510,_0xd6d3b6:0xc2},_0x2eec58={_0x3452ce:0x112};function _0x204cb3(_0xd29d7f,_0x9c1180,_0x1cdd5d,_0x175ff5){return _0x37d0(_0xd29d7f- -0x354,_0x1cdd5d);}if(typeof _0x3520fb===_0x980f25(0x27b,_0x133ea8._0x18a11d,0x260,_0x133ea8._0xdac1c2))return[createTextBlock(_0x3520fb)];function _0x980f25(_0x5ada20,_0x33cad8,_0x5705b1,_0x37fe16){return _0x37d0(_0x5ada20-_0x2eec58._0x3452ce,_0x5705b1);}if(!Array[_0x204cb3(-_0x133ea8._0x4dc47e,-_0x133ea8._0x5dc019,-_0x133ea8._0x2d1e87,-0x1e5)](_0x3520fb))return[];return _0x3520fb[_0x980f25(_0x133ea8._0x30125b,0x2bb,0x2c0,_0x133ea8._0x1082f0)](_0x434f91=>{const _0x5d00bb={_0x38dd6b:0x3eb,_0xcb6249:0x57};function _0x703a6a(_0x41c099,_0x26f824,_0x1d5496,_0x11086d){return _0x204cb3(_0x26f824-_0x56964b._0x500ff5,_0x26f824-0x1c9,_0x41c099,_0x11086d-_0x56964b._0xd6d3b6);}if(_0x434f91[_0x275177(0x23d,_0x4e3c28._0x43e76e,0x236,_0x4e3c28._0x28a915)]===_0x275177(_0x4e3c28._0x510c89,0x214,0x214,_0x4e3c28._0x1bdc17))return normalizeTextBlock(_0x434f91);function _0x275177(_0x1e8355,_0x523a82,_0x62c743,_0xf991a){return _0x204cb3(_0x62c743-_0x5d00bb._0x38dd6b,_0x523a82-0x4c,_0x523a82,_0xf991a-_0x5d00bb._0xcb6249);}return structuredClone(_0x434f91);});}function normalizeSystem(_0xce1f6f=[]){const _0x3d1b31={_0x535cd3:0x4c3,_0x330f2c:0x4d2,_0x341c4c:0x4dc,_0x12b419:0x4e6},_0x158535={_0x58bb4b:0x35d};function _0x5894c2(_0x43bc40,_0x42fb64,_0x4dbf0,_0x279a26){return _0x37d0(_0x4dbf0-_0x158535._0x58bb4b,_0x42fb64);}function _0x4d4727(_0x4f058c,_0x41752b,_0x506862,_0x33a737){return _0x37d0(_0x33a737- -0x129,_0x41752b);}return normalizeContent(_0xce1f6f)[_0x5894c2(_0x3d1b31._0x535cd3,_0x3d1b31._0x330f2c,_0x3d1b31._0x341c4c,_0x3d1b31._0x12b419)](_0x43f020=>_0x43f020[_0x4d4727(0x93,0x7d,0x82,0x76)]===_0x5894c2(0x4d4,0x4eb,0x4da,0x4ec));}function normalizeMessage(_0x292cde){const _0x220aeb={_0x23f6b1:0x185,_0x5aa06c:0x17c,_0x212ace:0x162,_0x5831cf:0x144,_0x38ed96:0x14d,_0x3aee5c:0x1e5,_0x5f0878:0x20d,_0x11c750:0x1ff,_0x51dfe1:0x1f7},_0x546034={_0x8772eb:0x2e3};function _0x672ccc(_0x54a1b8,_0x2b2990,_0x1e3e5b,_0x10e3d9){return _0x37d0(_0x10e3d9- -_0x546034._0x8772eb,_0x1e3e5b);}function _0x1a34c4(_0x3805ec,_0x75806d,_0x453251,_0x51513d){return _0x37d0(_0x51513d-0x73,_0x453251);}return{...typeof _0x292cde['id']==='string'?{'id':_0x292cde['id']}:{},'role':_0x292cde[_0x672ccc(-_0x220aeb._0x23f6b1,-_0x220aeb._0x5aa06c,-0x185,-0x179)],'content':normalizeContent(_0x292cde[_0x672ccc(-_0x220aeb._0x212ace,-0x13c,-_0x220aeb._0x5831cf,-_0x220aeb._0x38ed96)]),..._0x292cde[_0x1a34c4(_0x220aeb._0x3aee5c,0x1f3,_0x220aeb._0x5f0878,_0x220aeb._0x11c750)]?{'providerState':structuredClone(_0x292cde[_0x1a34c4(_0x220aeb._0x51dfe1,0x1fd,0x1fd,0x1ff)])}:{}};}function compileRequest(_0x55eeba){const _0x1301fd={_0x237c1d:0x285,_0x24d031:0x269,_0x29f29b:0x273,_0x420b84:0xe,_0x21bb35:0xd,_0x3c4213:0x26,_0x13c3c6:0x17,_0x245801:0x2a4,_0x18a547:0x2a0,_0x21adbe:0x2a0,_0x1a293f:0x2ba,_0xbf6d4e:0x19,_0x4b2ff8:0xc,_0x2244c0:0x2b,_0x4c2612:0x55},_0x5ba567={_0x135e8e:0x1ab},_0x12f670={_0x26ff70:0x110};function _0x211522(_0x4fdb73,_0x3f6b4a,_0xbb5f77,_0x3e59cb){return _0x37d0(_0x4fdb73-_0x12f670._0x26ff70,_0x3f6b4a);}function _0x56310c(_0x50f23f,_0x3f58f2,_0x3c96e1,_0x3b9110){return _0x37d0(_0x50f23f- -_0x5ba567._0x135e8e,_0x3f58f2);}return{'model':_0x55eeba[_0x211522(_0x1301fd._0x237c1d,_0x1301fd._0x24d031,0x282,_0x1301fd._0x29f29b)]??_0x56310c(-_0x1301fd._0x420b84,_0x1301fd._0x21bb35,-_0x1301fd._0x3c4213,-_0x1301fd._0x13c3c6),'max_tokens':_0x55eeba[_0x211522(_0x1301fd._0x245801,0x2a2,0x2bb,_0x1301fd._0x18a547)]??0x400,..._0x55eeba['reasoning']?{'reasoning':structuredClone(_0x55eeba[_0x211522(_0x1301fd._0x21adbe,0x2aa,0x285,_0x1301fd._0x1a293f)])}:{},'system':normalizeSystem(_0x55eeba[_0x56310c(-0x44,-0x2b,-0x3e,-0x5d)]),'messages':_0x55eeba['messages'][_0x56310c(-_0x1301fd._0xbf6d4e,-0x2,-_0x1301fd._0x4b2ff8,-_0x1301fd._0x2244c0)](normalizeMessage),'tools':structuredClone(_0x55eeba[_0x56310c(-0x39,-_0x1301fd._0x4c2612,-0x33,-0x28)]??[]),'metadata':{'session_id':_0x55eeba['sessionId'],'turn_id':_0x55eeba['turnId']}};}function toChatRequest(_0x105f1d){const _0x18bf1e={_0x50ecbd:0xca,_0x415d06:0xba,_0x53639c:0xea,_0x40054d:0xa5,_0x4f2dc5:0xa1,_0x1899f9:0xb5,_0x27f21:0x36c,_0x94e8c:0x363,_0x50c893:0x377,_0x20a3ab:0x343,_0xd7fc71:0x35b,_0x552901:0x34e,_0x359ed9:0x34a,_0x567d17:0x32f,_0x283f1b:0x332,_0xb49847:0xc2,_0x13fe81:0xe3,_0x54ee67:0xcf};function _0x5da2b4(_0x50cbe5,_0x38b034,_0x2acefe,_0x2f912d){return _0x37d0(_0x2f912d- -0x246,_0x38b034);}function _0x34f0df(_0x3e4698,_0x3129fa,_0x39aa3b,_0x660abd){return _0x37d0(_0x3e4698-0x1dc,_0x39aa3b);}return{'model':_0x105f1d[_0x5da2b4(-_0x18bf1e._0x50ecbd,-_0x18bf1e._0x415d06,-_0x18bf1e._0x53639c,-0xd1)],'maxTokens':_0x105f1d[_0x5da2b4(-_0x18bf1e._0x40054d,-_0x18bf1e._0x4f2dc5,-_0x18bf1e._0x1899f9,-0xb2)],..._0x105f1d['reasoning']?{'reasoning':structuredClone(_0x105f1d[_0x34f0df(_0x18bf1e._0x27f21,0x366,_0x18bf1e._0x94e8c,_0x18bf1e._0x50c893)])}:{},'system':structuredClone(_0x105f1d[_0x34f0df(_0x18bf1e._0x20a3ab,_0x18bf1e._0xd7fc71,0x332,0x33f)]),'messages':structuredClone(_0x105f1d['messages']),'tools':structuredClone(_0x105f1d[_0x34f0df(_0x18bf1e._0x552901,0x346,0x347,0x35a)]),'metadata':{'sessionId':_0x105f1d[_0x34f0df(_0x18bf1e._0x359ed9,_0x18bf1e._0x567d17,_0x18bf1e._0x283f1b,0x352)][_0x5da2b4(-_0x18bf1e._0xb49847,-0xc6,-_0x18bf1e._0x13fe81,-_0x18bf1e._0x54ee67)],'turnId':_0x105f1d['metadata']['turn_id']}};}function toModelRequest(_0x12f370){const _0x33a522={_0x3da257:0x3c9,_0x50c5b7:0x3bf,_0x4ef0ee:0x14f,_0x496970:0x155,_0x3ee732:0x3cc,_0x3063cd:0x167,_0x36bdd3:0x14a,_0x2625c4:0x12e,_0x1a6d59:0x3ad,_0x1d141e:0x3bd,_0x281727:0x3a8,_0x3795f3:0x130,_0x15c481:0x141},_0x27aa3b={_0x305d63:0x2ce};function _0x214f09(_0x17fd8d,_0x2db341,_0x1c44bf,_0x58b092){return _0x37d0(_0x58b092-0x24a,_0x2db341);}function _0x1b312f(_0x1c84c4,_0x50eaed,_0x4202dd,_0x1a4e87){return _0x37d0(_0x1a4e87- -_0x27aa3b._0x305d63,_0x4202dd);}return{'model':_0x12f370[_0x214f09(_0x33a522._0x3da257,0x3d6,0x3c0,_0x33a522._0x50c5b7)],'max_tokens':_0x12f370[_0x1b312f(-0x15b,-0x140,-_0x33a522._0x4ef0ee,-_0x33a522._0x496970)],..._0x12f370[_0x214f09(0x3e1,_0x33a522._0x3ee732,_0x33a522._0x3da257,0x3da)]?{'reasoning':structuredClone(_0x12f370[_0x1b312f(-0x13d,-0x12f,-0x130,-0x13e)])}:{},'system':structuredClone(_0x12f370[_0x1b312f(-0x17a,-0x168,-0x174,-_0x33a522._0x3063cd)]),'messages':structuredClone(_0x12f370[_0x1b312f(-0x15d,-_0x33a522._0x36bdd3,-_0x33a522._0x2625c4,-0x146)]),'tools':structuredClone(_0x12f370['tools']),'metadata':{'session_id':_0x12f370['metadata']['sessionId'],'turn_id':_0x12f370[_0x214f09(_0x33a522._0x1a6d59,_0x33a522._0x1d141e,_0x33a522._0x281727,0x3b8)][_0x1b312f(-0x158,-_0x33a522._0x3795f3,-_0x33a522._0x15c481,-0x13d)]}};}function toProviderModelRequest(_0x57af2a){const _0x4b18fe={_0x28cd40:0x493,_0x2f7ef6:0x4be,_0x3c00f3:0x493,_0x5ba898:0x353,_0x5ef27d:0x356,_0x4097f1:0x36c,_0x453b45:0x34c,_0x2355c6:0x340,_0x4455aa:0x35c,_0x53030f:0x34f},_0x381c07={_0x3ba6e4:0x329};function _0x1fd002(_0x417430,_0x16784f,_0x2c4637,_0x48b7ee){return _0x37d0(_0x48b7ee-_0x381c07._0x3ba6e4,_0x16784f);}function _0x4b48d3(_0x328b38,_0x1716e2,_0x3251bd,_0x114a2d){return _0x37d0(_0x1716e2-0x1ce,_0x3251bd);}return{'model':_0x57af2a[_0x1fd002(0x4ad,0x48d,_0x4b18fe._0x28cd40,0x49e)],'max_tokens':_0x57af2a[_0x1fd002(0x4b9,_0x4b18fe._0x2f7ef6,0x48a,0x4a2)],'system':structuredClone(_0x57af2a[_0x1fd002(0x478,_0x4b18fe._0x3c00f3,0x48f,0x490)]),'messages':structuredClone(_0x57af2a[_0x4b48d3(_0x4b18fe._0x5ba898,_0x4b18fe._0x5ef27d,_0x4b18fe._0x4097f1,0x363)]),'tools':structuredClone(_0x57af2a[_0x4b48d3(_0x4b18fe._0x453b45,_0x4b18fe._0x2355c6,_0x4b18fe._0x4455aa,_0x4b18fe._0x53030f)])};}function toChatResponse(_0x216c4c){const _0x267235={_0x302f93:0x534,_0x11016e:0x16d,_0x3ebd9e:0x160,_0x18ef77:0x155,_0x1ce2e7:0x18f,_0x798a08:0x182,_0x2fac1b:0x19b,_0x1b98ff:0x536,_0x3d469e:0x52b,_0xa7f633:0x176,_0x43ea14:0x17d,_0x12e60f:0x160,_0xf4fec4:0x196,_0x444da9:0x52d,_0x3c2bbd:0x512,_0x3fec5d:0x4e0,_0x40e4de:0x4e5,_0x22e53a:0x15d,_0x4d7079:0x15d,_0x40483f:0x161,_0x1f45a8:0x172},_0x40cfab={_0x115abf:0x2fe};function _0x4d2c39(_0x4332ee,_0x5f1e4b,_0x5ddc61,_0x53dab5){return _0x37d0(_0x4332ee-0x38f,_0x5ddc61);}function _0x386b56(_0x452c05,_0x5045b0,_0x1960e0,_0x11d4e3){return _0x37d0(_0x1960e0- -_0x40cfab._0x115abf,_0x11d4e3);}return{'id':_0x216c4c['id'],'content':structuredClone(_0x216c4c[_0x4d2c39(0x525,_0x267235._0x302f93,0x512,0x531)]),'stopReason':_0x216c4c[_0x4d2c39(0x50d,0x4f1,0x501,0x4f5)],'usage':{'inputTokens':_0x216c4c[_0x386b56(-_0x267235._0x11016e,-0x170,-_0x267235._0x3ebd9e,-_0x267235._0x18ef77)][_0x386b56(-_0x267235._0x1ce2e7,-_0x267235._0x11016e,-_0x267235._0x798a08,-_0x267235._0x2fac1b)],'outputTokens':_0x216c4c[_0x4d2c39(0x52d,_0x267235._0x1b98ff,_0x267235._0x3d469e,0x529)][_0x386b56(-0x177,-0x145,-0x15e,-_0x267235._0x3ebd9e)],..._0x216c4c[_0x386b56(-_0x267235._0xa7f633,-_0x267235._0x43ea14,-_0x267235._0x12e60f,-0x17c)][_0x386b56(-0x17a,-0x17a,-_0x267235._0xf4fec4,-0x180)]!==void 0x0?{'reasoningTokens':_0x216c4c[_0x4d2c39(_0x267235._0x444da9,0x525,0x545,_0x267235._0x3c2bbd)][_0x4d2c39(0x4f7,0x4ec,_0x267235._0x3fec5d,_0x267235._0x40e4de)]}:{}},..._0x216c4c[_0x386b56(-_0x267235._0x22e53a,-0x189,-0x172,-0x180)]?{'providerState':structuredClone(_0x216c4c[_0x386b56(-_0x267235._0x4d7079,-_0x267235._0x40483f,-_0x267235._0x1f45a8,-0x183)])}:{}};}function toModelResponse(_0xa03122){const _0x5062a7={_0x2ccfa4:0x248,_0x1c49da:0x309,_0x92126:0x284,_0x4f5b74:0x278,_0x48030f:0x26e,_0x5d029a:0x281,_0x2f416f:0x2fc,_0x597fba:0x2ff,_0x52b40a:0x304,_0x2d6180:0x318,_0x3f387f:0x291,_0x36487e:0x265,_0x3f41fc:0x31a,_0x3b766b:0x334,_0x3b532b:0x32c,_0x3502fe:0x2fe,_0x239fad:0x322,_0x15dc9c:0x315,_0x4f1468:0x307,_0x5327bc:0x306};function _0x33b6e0(_0x5e5c52,_0x4be719,_0x34980e,_0x1ad7a9){return _0x37d0(_0x34980e-0x17a,_0x5e5c52);}function _0x42fefa(_0x13e40b,_0x5ee0a7,_0x50f30d,_0x22eb66){return _0x37d0(_0x13e40b-0xda,_0x22eb66);}return{'id':_0xa03122['id'],'type':_0x42fefa(0x24b,0x22d,0x24f,_0x5062a7._0x2ccfa4),'role':_0x33b6e0(0x321,0x30d,_0x5062a7._0x1c49da,0x320),'content':structuredClone(_0xa03122['content']),'stop_reason':_0xa03122[_0x42fefa(0x271,0x265,_0x5062a7._0x92126,0x287)],'stop_sequence':null,'usage':{'input_tokens':_0xa03122[_0x42fefa(_0x5062a7._0x4f5b74,0x27d,_0x5062a7._0x48030f,_0x5062a7._0x5d029a)][_0x33b6e0(0x306,_0x5062a7._0x2f416f,0x2fa,_0x5062a7._0x597fba)],'output_tokens':_0xa03122[_0x33b6e0(_0x5062a7._0x52b40a,0x324,_0x5062a7._0x2d6180,0x31e)]['outputTokens'],..._0xa03122[_0x42fefa(0x278,_0x5062a7._0x3f387f,_0x5062a7._0x36487e,0x25b)][_0x33b6e0(0x324,0x300,0x315,_0x5062a7._0x3f41fc)]!==void 0x0?{'reasoning_tokens':_0xa03122[_0x33b6e0(_0x5062a7._0x3b766b,0x331,_0x5062a7._0x2d6180,_0x5062a7._0x3b532b)][_0x33b6e0(_0x5062a7._0x3502fe,_0x5062a7._0x239fad,_0x5062a7._0x15dc9c,0x2fd)]}:{}},..._0xa03122[_0x42fefa(0x266,0x253,0x254,0x282)]?{'providerState':structuredClone(_0xa03122[_0x33b6e0(0x2f3,_0x5062a7._0x4f1468,_0x5062a7._0x5327bc,0x303)])}:{}};}function responseToAssistantMessage(_0x1a7e7d){const _0x1de1ef={_0x5bae90:0x27c,_0x5dd3ff:0x272,_0x442732:0x254,_0x408cd2:0x1a8,_0x5bcc44:0x1b9,_0x13b3b4:0x1ab,_0x5dab19:0x253,_0x16d48e:0x25b,_0x2cc9ea:0x26c,_0x52a466:0x1c6},_0x31bbae={_0x14d591:0xe0};function _0x420b22(_0x347814,_0x54bf9a,_0x531d4d,_0xe25f36){return _0x37d0(_0x531d4d-_0x31bbae._0x14d591,_0xe25f36);}function _0x220519(_0x262150,_0x2bc9e0,_0x3331a3,_0x30398c){return _0x37d0(_0x3331a3-0x23,_0x262150);}return{'role':_0x420b22(_0x1de1ef._0x5bae90,_0x1de1ef._0x5dd3ff,0x26f,_0x1de1ef._0x442732),'content':normalizeContent(_0x1a7e7d[_0x220519(_0x1de1ef._0x408cd2,0x1ce,_0x1de1ef._0x5bcc44,_0x1de1ef._0x13b3b4)]),..._0x1a7e7d[_0x420b22(_0x1de1ef._0x5dab19,_0x1de1ef._0x16d48e,_0x1de1ef._0x2cc9ea,0x27f)]?{'providerState':structuredClone(_0x1a7e7d[_0x220519(_0x1de1ef._0x52a466,0x1af,0x1af,0x193)])}:{}};}function createReasoningMessage(_0x21be4f){const _0x17c470={_0x30e089:0x567,_0x4fc0a8:0x55e,_0xf1b737:0x55d},_0x48c474={_0x4086e0:0x3db},_0x10720f={_0xa3016b:0x1bc,_0x1d4c3b:0x1d4,_0x8b8bef:0x1ca,_0x7eb68f:0x1c0,_0x386c02:0x1ba,_0x2f9316:0x9d,_0x415fcd:0xa9,_0x4b5bd9:0xa6},_0x398cde={_0x220b84:0x48,_0x531b9a:0x3ae},_0x3de11f=normalizeContent(_0x21be4f?.[_0x50f43e(_0x17c470._0x30e089,0x56d,0x560,0x571)])[_0x50f43e(0x546,_0x17c470._0x4fc0a8,_0x17c470._0xf1b737,0x55a)](_0x4a42cd=>{const _0x4a8326={_0x29662:0x1cd,_0x54dbac:0xc6};function _0x1c31c5(_0x2a8da7,_0xd4e128,_0x3b67e7,_0x1965eb){return _0x50f43e(_0x2a8da7-_0x398cde._0x220b84,_0xd4e128,_0x3b67e7-0xbe,_0x1965eb- -_0x398cde._0x531b9a);}function _0x5bcdcb(_0x5c35b4,_0x49c24e,_0x3474a7,_0x547348){return _0x92cd8c(_0x3474a7,_0x49c24e- -0x278,_0x3474a7-_0x4a8326._0x29662,_0x547348-_0x4a8326._0x54dbac);}return _0x4a42cd[_0x1c31c5(_0x10720f._0xa3016b,0x1df,_0x10720f._0x1d4c3b,0x1cc)]===_0x1c31c5(_0x10720f._0x8b8bef,_0x10720f._0x7eb68f,_0x10720f._0x386c02,0x1c0)||_0x4a42cd[_0x1c31c5(0x1d8,0x1de,_0x10720f._0x7eb68f,0x1cc)]==='anthropic_thinking'||_0x4a42cd[_0x1c31c5(0x1ca,0x1cc,0x1df,0x1cc)]===_0x5bcdcb(_0x10720f._0x2f9316,_0x10720f._0x415fcd,_0x10720f._0x4b5bd9,0xc5);});if(_0x3de11f['length']===0x0)return void 0x0;function _0x92cd8c(_0x53e373,_0x1f6bef,_0x5b3c3a,_0x526836){return _0x37d0(_0x1f6bef-0x19a,_0x53e373);}function _0x50f43e(_0x5a3a34,_0x88957a,_0x43527d,_0x4aae3b){return _0x37d0(_0x4aae3b-_0x48c474._0x4086e0,_0x88957a);}return{'role':'assistant','content':_0x3de11f};}function createAssistantTextMessage(_0x192769){const _0x203f3a={_0x306290:0x24a,_0x8f6655:0x22d,_0x162c87:0x243,_0x2b64df:0x249,_0x2fdee2:0x469,_0x19c5ca:0x445,_0x4314f1:0x454,_0x546a72:0x447},_0x3a789c={_0x53a8b7:0x80,_0x470c2b:0x95};function _0x4d284c(_0x2d4517,_0x123a91,_0x413f43,_0x41bc4f){return _0x37d0(_0x413f43- -0x3d9,_0x123a91);}const _0x1ff70a=normalizeContent(_0x192769?.[_0x4d284c(-_0x203f3a._0x306290,-_0x203f3a._0x8f6655,-_0x203f3a._0x162c87,-_0x203f3a._0x2b64df)])[_0xdd09ef(0x41d,0x435,0x41e,0x432)](_0x4a6004=>{function _0x3f791b(_0x19cf80,_0x266321,_0x278f8c,_0x2e1aa1){return _0x4d284c(_0x19cf80-0xb6,_0x2e1aa1,_0x266321-0x2bb,_0x2e1aa1-0x5f);}return _0x4a6004[_0x3f791b(0x75,0x81,_0x3a789c._0x53a8b7,_0x3a789c._0x470c2b)]==='text';});function _0xdd09ef(_0x34b18a,_0x4c1b9a,_0xcff3e4,_0x664eaa){return _0x37d0(_0x4c1b9a-0x2b6,_0xcff3e4);}if(_0x1ff70a[_0xdd09ef(0x46d,0x457,0x454,_0x203f3a._0x2fdee2)]===0x0)return void 0x0;return{'role':_0xdd09ef(0x446,_0x203f3a._0x19c5ca,_0x203f3a._0x4314f1,_0x203f3a._0x546a72),'content':_0x1ff70a};}function _0x3bde(){const _0x35a4a6=['m0j3zhHyuq','C3rHDhvZ','Dg9VBf9Yzxn1Bhq','B3bLBMfPx3jLyxnVBMLUzW','BwvZC2fNzxm','AM9PBG','mte2mdqZouDsChDTsa','C3vTBwfYEq','ChjVDMLKzxjtDgf0zq','kgvUy3j5ChrLzcbYzwfZB25PBMCP','ndbiuLPtCwC','yxnZAxn0yw50','CMvHC29UAw5N','DhvYBKLK','BwfW','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','Bwf4x3rVA2vUCW','mZu3mdi2meLNBvnPtq','y29UDgvUDa','C3rVCfjLyxnVBG','DxnLCG','ndyXmtu5mxPvDNDcuG','y2fSBeLK','CMvHC29UAw5Nvg9Rzw5Z','ntmWzMTMDLro','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','DxnHz2u','DhLWzq','B3v0Chv0x3rVA2vUCW','BgvUz3rO','C3LZDgvT','CMvHC29UAw5Nx3rVA2vUCW','C3rYAw5N','CM9Szq','mtaWmtG3ntjiBuz4s1m','AxnbCNjHEq','DhjPBq','Bwv0ywrHDge','zw5JCNLWDgvKq29UDgvUDa','zMXHDe1HCa','BwvZC2fNzq','Dg9VBhm','mtGZmtu0rhjWvwHW','DgHPBMTPBMC','Bw9KzwW','mtaWmtmZD0LTAKfv','C2vZC2LVBL9Pza','B3v0Chv0','Bwf4vg9Rzw5Z','zxjYB3i','Dg9VBf91C2u','Aw5WDxrFDg9Rzw5Z','Dgv4Da','C3rVCf9YzwfZB24','zMLSDgvY','Aw5WDxruB2TLBNm','yw50AhjVCgLJx3rOAw5RAw5N','nwjfuhLSwG','nZG5mZmZANvzBwTH'];_0x3bde=function(){return _0x35a4a6;};return _0x3bde();}function createToolUseMessage(_0x4dff19){const _0x1579ca={_0xe3898c:0x1be,_0x2e0159:0x1ac,_0x4c9cd2:0x1af,_0x570495:0x19f,_0x52cbb0:0x199,_0x41afbd:0xfe,_0x209e94:0x109,_0x5b2afb:0x101,_0x5886e3:0x114},_0x321fed={_0x4d83b6:0x342},_0x503235={_0x5bb8ba:0x2d1,_0x3f7fc8:0x542,_0x19e46b:0x542},_0x29b101={_0x3172d:0x1b4,_0xce7fff:0x709},_0x1af5b4={_0x38a0d2:0x8e};function _0x10688a(_0x77df33,_0x5d58a4,_0x19a462,_0x12a21f){return _0x37d0(_0x19a462- -_0x1af5b4._0x38a0d2,_0x5d58a4);}const _0x1373c2=normalizeContent(_0x4dff19?.[_0x5f0ac8(-_0x1579ca._0xe3898c,-0x1bd,-0x1c1,-_0x1579ca._0x2e0159)])['filter'](_0x39e600=>{function _0x5d02f8(_0x4fd2f9,_0xd1497a,_0x50be4d,_0x595c01){return _0x5f0ac8(_0x595c01,_0xd1497a-_0x29b101._0x3172d,_0x50be4d-0x2e,_0x50be4d-_0x29b101._0xce7fff);}function _0x243a76(_0x182942,_0x45ddbe,_0x5b7de0,_0x4e3f82){return _0x5f0ac8(_0x4e3f82,_0x45ddbe-0x1a,_0x5b7de0-0x1d,_0x182942-0x474);}return _0x39e600[_0x243a76(_0x503235._0x5bb8ba,0x2dd,0x2bc,0x2ee)]===_0x5d02f8(0x52b,_0x503235._0x3f7fc8,_0x503235._0x19e46b,0x526);});if(_0x1373c2[_0x5f0ac8(-_0x1579ca._0x4c9cd2,-_0x1579ca._0x570495,-_0x1579ca._0x52cbb0,-0x1a1)]===0x0)return void 0x0;function _0x5f0ac8(_0x5d7cf1,_0x2b0223,_0x2ab62e,_0x4d0f25){return _0x37d0(_0x4d0f25- -_0x321fed._0x4d83b6,_0x5d7cf1);}return{'role':_0x10688a(_0x1579ca._0x41afbd,_0x1579ca._0x209e94,_0x1579ca._0x5b2afb,_0x1579ca._0x5886e3),'content':_0x1373c2};}function getTextFromMessage(_0x696700){const _0x8fa069={_0x49a14c:0x24c,_0x3ddd44:0x22f,_0x32eeb1:0x256,_0x510aaf:0x213,_0x56f849:0x209,_0x5e95db:0x234,_0x3a2dbd:0x23f,_0x213c0f:0x246},_0xdb12dd={_0x1ea225:0xb6},_0x1c0c24={_0x22e08d:0x388};function _0x290834(_0x37d71b,_0x3285fa,_0x45f1f2,_0x4b6b79){return _0x37d0(_0x45f1f2- -_0x1c0c24._0x22e08d,_0x37d71b);}function _0x582cf2(_0x5755f7,_0x134db2,_0x499f78,_0x14eeaa){return _0x37d0(_0x5755f7-_0xdb12dd._0x1ea225,_0x134db2);}return normalizeContent(_0x696700?.[_0x582cf2(_0x8fa069._0x49a14c,_0x8fa069._0x3ddd44,0x240,_0x8fa069._0x32eeb1)])[_0x290834(-_0x8fa069._0x510aaf,-0x201,-_0x8fa069._0x56f849,-0x1fb)](_0x9d8940=>_0x9d8940['type']==='text')[_0x582cf2(0x248,_0x8fa069._0x32eeb1,0x238,_0x8fa069._0x5e95db)](_0x496649=>_0x496649[_0x582cf2(0x233,0x241,0x21d,0x241)])[_0x582cf2(_0x8fa069._0x3a2dbd,_0x8fa069._0x213c0f,0x258,0x258)]('\x0a');}function getReasoningTextFromMessage(_0x555dc9){const _0x379ff7={_0x21e21a:0x8a,_0x54cd74:0x7f,_0x796051:0x8f,_0x31b436:0xa5,_0x42e667:0x7e,_0xdb20d3:0x8c,_0x4986a0:0x6f},_0x6c7dab={_0x4917b6:0x3c4,_0x59aa2a:0x3b1,_0x670a73:0x3b6,_0x5ebdb5:0x39f,_0x8635d7:0x3e1,_0x335f15:0x3bc,_0x3c46a6:0x3f2,_0x30ec7b:0x3c9,_0x184852:0x3be,_0x532bcf:0x1c,_0x4b6c04:0x30,_0x2df418:0x1d,_0x30e9c6:0x3c8,_0x2fc516:0x3d2,_0x455625:0x3cb,_0x50cc72:0x3e3,_0x3c569d:0x3a6,_0x30b2ad:0x36,_0x7eb7b0:0x3c,_0x326c59:0x3e9,_0x27affd:0x3b1,_0x3e54c3:0x3ad,_0x5ad72c:0x3b7,_0x963f65:0xd,_0x5cb0b7:0x1b},_0x2c53ff={_0x3ad464:0xff,_0x760e30:0x141},_0x33080b={_0x2a28de:0x149,_0x35850f:0x137,_0x55b585:0x59},_0x7a58fb={_0x471547:0x215},_0x197600={_0x583838:0x14e};function _0x195ede(_0x352f08,_0x362fed,_0x48a7de,_0x4bd21b){return _0x37d0(_0x48a7de- -_0x197600._0x583838,_0x4bd21b);}function _0x542072(_0x5328a6,_0x377954,_0x17fa48,_0x59e327){return _0x37d0(_0x17fa48- -_0x7a58fb._0x471547,_0x377954);}return normalizeContent(_0x555dc9?.[_0x542072(-_0x379ff7._0x21e21a,-0x94,-_0x379ff7._0x54cd74,-_0x379ff7._0x796051)])[_0x542072(-0xc2,-0x8d,-_0x379ff7._0x31b436,-0xb7)](_0x3f112d=>{function _0x388fb1(_0x2696ff,_0x4da7cb,_0x2ba60d,_0x39d3d4){return _0x195ede(_0x2696ff-_0x33080b._0x2a28de,_0x4da7cb-_0x33080b._0x35850f,_0x2696ff- -_0x33080b._0x55b585,_0x4da7cb);}if(_0x3f112d['type']===_0x3db328(0x3c3,_0x6c7dab._0x4917b6,0x3c3,_0x6c7dab._0x59aa2a))return _0x3f112d[_0x3db328(_0x6c7dab._0x670a73,0x3b6,0x3a2,_0x6c7dab._0x5ebdb5)][_0x3db328(0x3af,0x3be,0x3a8,0x393)]()[_0x3db328(0x3e3,0x3f1,_0x6c7dab._0x8635d7,0x3e7)]>0x0?[_0x3f112d['thinking']]:[];function _0x3db328(_0x3d137d,_0x5087a9,_0x3d8cd7,_0x31659a){return _0x195ede(_0x3d137d-_0x2c53ff._0x3ad464,_0x5087a9-_0x2c53ff._0x760e30,_0x3d137d-0x390,_0x5087a9);}if(_0x3f112d[_0x3db328(_0x6c7dab._0x8635d7,0x3f7,_0x6c7dab._0x8635d7,0x3df)]===_0x3db328(0x3d5,_0x6c7dab._0x335f15,0x3c2,_0x6c7dab._0x3c46a6))return['(redacted\x20reasoning)'];if(_0x3f112d['type']!==_0x3db328(0x3c9,_0x6c7dab._0x30ec7b,0x3bb,_0x6c7dab._0x184852))return[];const _0x524522=_0x3f112d[_0x388fb1(-_0x6c7dab._0x532bcf,-_0x6c7dab._0x4b6c04,-0x23,-_0x6c7dab._0x2df418)][_0x3db328(0x3d4,_0x6c7dab._0x30e9c6,_0x6c7dab._0x2fc516,0x3c6)](_0x5ecc50=>_0x5ecc50[_0x388fb1(-0x2a,-0x2f,-0x43,-0x1c)])['filter'](_0x215cf8=>_0x215cf8[_0x388fb1(-0x3a,-0x39,-0x2a,-0x3f)]()[_0x388fb1(-0x6,-0xa,-0x24,-0x22)]>0x0)[_0x3db328(_0x6c7dab._0x455625,0x3d5,0x3d5,_0x6c7dab._0x50cc72)]('\x0a\x0a');if(_0x524522['length']>0x0)return[_0x524522];if(_0x3f112d[_0x3db328(0x3bf,_0x6c7dab._0x3c569d,0x3ad,_0x6c7dab._0x3c569d)]&&_0x3f112d[_0x3db328(0x3bf,_0x6c7dab._0x3c569d,0x3d5,0x3b0)][_0x388fb1(-0x3a,-0x3c,-_0x6c7dab._0x30b2ad,-_0x6c7dab._0x7eb7b0)]()[_0x3db328(0x3e3,_0x6c7dab._0x326c59,0x3f0,0x3cb)]>0x0)return[_0x3f112d['text']];return _0x3f112d[_0x3db328(_0x6c7dab._0x27affd,_0x6c7dab._0x3e54c3,_0x6c7dab._0x5ad72c,_0x6c7dab._0x3e54c3)]?[_0x388fb1(-0x1a,-_0x6c7dab._0x963f65,-_0x6c7dab._0x5cb0b7,-0x2d)]:[];})[_0x542072(-0x7c,-_0x379ff7._0x42e667,-_0x379ff7._0xdb20d3,-_0x379ff7._0x4986a0)]('\x0a\x0a');}function getToolUseBlocks(_0x88389e){const _0x5288fa={_0x46bc7a:0x2a1,_0x353f72:0x2a0,_0x325b06:0x46d,_0x32309b:0x485,_0x24c9b5:0x47d};function _0x4d51be(_0x1fa618,_0x3e098f,_0x5bb308,_0x631732){return _0x37d0(_0x5bb308-0xff,_0x631732);}function _0x368790(_0x33bf13,_0x3b8ce7,_0xd4d1da,_0x24d527){return _0x37d0(_0xd4d1da-0x306,_0x24d527);}return normalizeContent(_0x88389e?.[_0x4d51be(0x288,_0x5288fa._0x46bc7a,0x295,_0x5288fa._0x353f72)])[_0x368790(_0x5288fa._0x325b06,0x492,_0x5288fa._0x32309b,_0x5288fa._0x24c9b5)](_0x505075=>_0x505075[_0x368790(0x4b2,0x4c1,0x4a5,0x488)]===_0x368790(0x493,0x488,0x481,0x474));}function _0x37d0(_0x375812,_0x278b02){_0x375812=_0x375812-0x167;const _0x3bdeaa=_0x3bde();let _0x37d0a7=_0x3bdeaa[_0x375812];if(_0x37d0['ttZHxl']===undefined){var _0x12409b=function(_0x38024f){const _0x22f8bc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f64fc='',_0x46dcfb='';for(let _0x3520fb=0x0,_0x434f91,_0xce1f6f,_0x43f020=0x0;_0xce1f6f=_0x38024f['charAt'](_0x43f020++);~_0xce1f6f&&(_0x434f91=_0x3520fb%0x4?_0x434f91*0x40+_0xce1f6f:_0xce1f6f,_0x3520fb++%0x4)?_0x1f64fc+=String['fromCharCode'](0xff&_0x434f91>>(-0x2*_0x3520fb&0x6)):0x0){_0xce1f6f=_0x22f8bc['indexOf'](_0xce1f6f);}for(let _0x292cde=0x0,_0x55eeba=_0x1f64fc['length'];_0x292cde<_0x55eeba;_0x292cde++){_0x46dcfb+='%'+('00'+_0x1f64fc['charCodeAt'](_0x292cde)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x46dcfb);};_0x37d0['tOpwIy']=_0x12409b,_0x37d0['ylukdw']={},_0x37d0['ttZHxl']=!![];}const _0x1ebe94=_0x3bdeaa[0x0],_0x1d7453=_0x375812+_0x1ebe94,_0x41046c=_0x37d0['ylukdw'][_0x1d7453];return!_0x41046c?(_0x37d0a7=_0x37d0['tOpwIy'](_0x37d0a7),_0x37d0['ylukdw'][_0x1d7453]=_0x37d0a7):_0x37d0a7=_0x41046c,_0x37d0a7;}function getToolResultBlocks(_0x599ea7){const _0x32d9ae={_0x45103f:0x20},_0x42f8db={_0x27fe79:0x1b6};function _0x138624(_0x2f4a57,_0x228529,_0x2fb685,_0x2c6a42){return _0x37d0(_0x2f4a57- -_0x42f8db._0x27fe79,_0x228529);}function _0x456bdc(_0x2225f6,_0x41f42d,_0x1bc060,_0xfc785d){return _0x37d0(_0x1bc060- -0x20,_0x2225f6);}return normalizeContent(_0x599ea7?.[_0x138624(-_0x32d9ae._0x45103f,-0x37,-0x3d,-0x37)])['filter'](_0x5a6306=>_0x5a6306[_0x456bdc(0x192,0x172,0x17f,0x168)]===_0x138624(-0x30,-0x44,-0x38,-0x44));}function createToolResultUserMessage(_0x113f6f){const _0x11beb1={_0x4f928b:0x1b7,_0x12fa73:0x1d2,_0x5dff6a:0x1ca,_0x3b5730:0x1c3},_0x2d69c8={_0x515824:0x166,_0x10e6fc:0x157,_0x1c1ea7:0x14b,_0x2de1d0:0x151,_0x3abfb7:0x141,_0x5e897a:0x4df,_0x777796:0x4f1},_0x152859={_0x4a5db6:0x32a,_0x58757c:0xaa},_0xea045b={_0x4c4466:0x364},_0x1cab08={_0x2de596:0x2a0};function _0xb48533(_0x184c5d,_0x2ca032,_0x5a6445,_0x2688ef){return _0x37d0(_0x5a6445- -_0x1cab08._0x2de596,_0x184c5d);}function _0x5b3b54(_0x29d747,_0x5b3e12,_0x51c1ad,_0x2cf08c){return _0x37d0(_0x29d747- -_0xea045b._0x4c4466,_0x5b3e12);}return{'role':_0x5b3b54(-0x1cc,-_0x11beb1._0x4f928b,-0x1e9,-0x1e9),'content':_0x113f6f[_0x5b3b54(-_0x11beb1._0x12fa73,-0x1cc,-_0x11beb1._0x5dff6a,-_0x11beb1._0x3b5730)](_0x212904=>{const _0x1acee9={_0x3667b3:0x6c9,_0x2ffc88:0xd0};function _0x433337(_0x4a07f9,_0x413af5,_0x435cef,_0x24ab9b){return _0x5b3b54(_0x4a07f9-_0x152859._0x4a5db6,_0x435cef,_0x435cef-0x5,_0x24ab9b-_0x152859._0x58757c);}function _0x4878e0(_0x4888f8,_0xecf830,_0x4f1953,_0x4e662a){return _0x5b3b54(_0xecf830-_0x1acee9._0x3667b3,_0x4f1953,_0x4f1953-_0x1acee9._0x2ffc88,_0x4e662a-0x48);}return{'type':'tool_result','tool_use_id':_0x212904[_0x433337(0x160,_0x2d69c8._0x515824,_0x2d69c8._0x10e6fc,0x162)],'content':_0x212904[_0x4878e0(0x4d0,0x4dd,0x4e4,0x4d1)],'is_error':_0x212904[_0x433337(_0x2d69c8._0x1c1ea7,0x138,_0x2d69c8._0x2de1d0,_0x2d69c8._0x3abfb7)]===_0x4878e0(0x4e4,_0x2d69c8._0x5e897a,0x4f3,_0x2d69c8._0x777796)};})};}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage};
|
|
1
|
+
(function(_0x47fef7,_0x424c34){const _0x494267={_0x4d8501:0xf4,_0x580ac6:0x117,_0x5b2c41:0xf5,_0x5b27e0:0xf0,_0x44d41c:0x11a,_0x31c2c1:0x189,_0x3ee9e0:0x172,_0x215fc5:0x11b,_0x5bcb84:0xf8,_0x1b1e1f:0xf7,_0x34e5fd:0x108,_0x2e3028:0xf3,_0x4ac254:0x164,_0x5012c8:0x16b,_0x178f5c:0x176,_0x43a540:0xde,_0x363636:0x18f,_0x13a19b:0x109,_0x5f372a:0x103,_0x1efc3d:0xf0},_0x5134e6={_0x49747c:0x27b},_0xc2e94d={_0x58bf96:0x6};function _0x243450(_0x276364,_0x4627a8,_0x36b190,_0x5234c1){return _0x28a9(_0x5234c1- -_0xc2e94d._0x58bf96,_0x4627a8);}function _0x54236b(_0x578030,_0x5b4ad8,_0x358279,_0x2843d8){return _0x28a9(_0x5b4ad8- -_0x5134e6._0x49747c,_0x578030);}const _0x5ca4a8=_0x47fef7();while(!![]){try{const _0x5b4d9b=parseInt(_0x243450(0x10f,0xfb,_0x494267._0x4d8501,0x100))/0x1+parseInt(_0x243450(0x108,0x120,0x12d,_0x494267._0x580ac6))/0x2*(-parseInt(_0x243450(_0x494267._0x5b2c41,_0x494267._0x5b27e0,_0x494267._0x44d41c,0xff))/0x3)+parseInt(_0x54236b(-0x18e,-_0x494267._0x31c2c1,-0x196,-_0x494267._0x3ee9e0))/0x4+parseInt(_0x243450(_0x494267._0x215fc5,0x11a,0x10e,0x102))/0x5*(-parseInt(_0x243450(0x119,0x11d,0xfb,0x10b))/0x6)+parseInt(_0x243450(_0x494267._0x5bcb84,_0x494267._0x1b1e1f,_0x494267._0x34e5fd,_0x494267._0x2e3028))/0x7*(-parseInt(_0x54236b(-_0x494267._0x4ac254,-_0x494267._0x5012c8,-0x173,-_0x494267._0x178f5c))/0x8)+-parseInt(_0x243450(0xee,0xe1,_0x494267._0x43a540,0xe7))/0x9+parseInt(_0x54236b(-0x1a3,-_0x494267._0x363636,-0x18d,-0x1a0))/0xa*(parseInt(_0x243450(0xe3,_0x494267._0x13a19b,_0x494267._0x5f372a,_0x494267._0x1efc3d))/0xb);if(_0x5b4d9b===_0x424c34)break;else _0x5ca4a8['push'](_0x5ca4a8['shift']());}catch(_0x5e2685){_0x5ca4a8['push'](_0x5ca4a8['shift']());}}}(_0x1c0b,0xbd53e));function _0x1c0b(){const _0x4ded7d=['AM9PBG','mtaYmdy2ndb3sM5xu1y','nNnmy2n3va','C3vTBwfYEq','Dgv4Da','Bwv0ywrHDge','Bwf4x3rVA2vUCW','B3v0Chv0vg9Rzw5Z','DxnHz2u','zMLSDgvY','C3LZDgvT','DhjPBq','C3rVCfjLyxnVBG','C2vZC2LVBKLK','mZaWmdKXneHgy3jvDW','Dg9VBf9Yzxn1Bhq','kgvUy3j5ChrLzcbYzwfZB25PBMCP','DhvYBL9Pza','CMvHC29UAw5Nvg9Rzw5Z','DhLWzq','mtiZotGZme1Nv2nrua','mti0nJu0ndfzENfYzKO','Dg9VBhm','ChjVDMLKzxjtDgf0zq','y29UDgvUDa','DgHPBMTPBMC','ntGWnZC3nLH2t3bAwG','AxnbCNjHEq','yw50AhjVCgLJx3rOAw5RAw5N','C2vZC2LVBL9Pza','mJK3r0TVExPJ','C3rHDhvZ','BgvUz3rO','n0fbyvDgsa','Aw5WDxruB2TLBNm','DhvYBKLK','B3bLBMfPx3jLyxnVBMLUzW','BwvZC2fNzxm','khjLzgfJDgvKihjLyxnVBMLUzYK','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','zw5JCNLWDgvKq29UDgvUDa','BwfW','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','Aw5WDxrFDg9Rzw5Z','CM9Szq','m3LLzfn0zW','mtm4oti0mwnHEKzMuq','yxnZAxn0yw50','nJi1otuYmg9btxDVBq','DxnLCG','Bwf4vg9Rzw5Z','B3v0Chv0x3rVA2vUCW','C3rYAw5N','CMvHC29UAw5N','Bw9KzwW'];_0x1c0b=function(){return _0x4ded7d;};return _0x1c0b();}function createTextBlock(_0x5416f0){const _0x36e8e3={_0x2b5f7f:0x3a};function _0x3c837d(_0x5ec6aa,_0x35088c,_0x5d53af,_0x8498d3){return _0x28a9(_0x5d53af- -0x14d,_0x5ec6aa);}return{'type':_0x3c837d(-0x2c,-0x38,-_0x36e8e3._0x2b5f7f,-0x4a),'text':_0x5416f0};}function _0x28a9(_0x127c89,_0x2770f1){_0x127c89=_0x127c89-0xec;const _0x1c0b39=_0x1c0b();let _0x28a91a=_0x1c0b39[_0x127c89];if(_0x28a9['awPwof']===undefined){var _0x363e1c=function(_0x4ce34c){const _0x40c8e3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5416f0='',_0x2390f2='';for(let _0x40ed44=0x0,_0x3035bb,_0x2c7180,_0x110522=0x0;_0x2c7180=_0x4ce34c['charAt'](_0x110522++);~_0x2c7180&&(_0x3035bb=_0x40ed44%0x4?_0x3035bb*0x40+_0x2c7180:_0x2c7180,_0x40ed44++%0x4)?_0x5416f0+=String['fromCharCode'](0xff&_0x3035bb>>(-0x2*_0x40ed44&0x6)):0x0){_0x2c7180=_0x40c8e3['indexOf'](_0x2c7180);}for(let _0x5b5363=0x0,_0x1a83bf=_0x5416f0['length'];_0x5b5363<_0x1a83bf;_0x5b5363++){_0x2390f2+='%'+('00'+_0x5416f0['charCodeAt'](_0x5b5363)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2390f2);};_0x28a9['cghXAQ']=_0x363e1c,_0x28a9['gJsICE']={},_0x28a9['awPwof']=!![];}const _0x71f0c9=_0x1c0b39[0x0],_0x3405e9=_0x127c89+_0x71f0c9,_0x32d03a=_0x28a9['gJsICE'][_0x3405e9];return!_0x32d03a?(_0x28a91a=_0x28a9['cghXAQ'](_0x28a91a),_0x28a9['gJsICE'][_0x3405e9]=_0x28a91a):_0x28a91a=_0x32d03a,_0x28a91a;}function normalizeTextBlock(_0x2390f2){const _0x4f29d7={_0x511131:0x29b,_0x13c52e:0x298,_0x411822:0x2a5};function _0x56c175(_0x30bb98,_0x2690fe,_0x5133d7,_0x5d2ae5){return _0x28a9(_0x5d2ae5- -0x3b8,_0x2690fe);}return createTextBlock(_0x2390f2[_0x56c175(-_0x4f29d7._0x511131,-0x294,-_0x4f29d7._0x13c52e,-_0x4f29d7._0x411822)]??'');}function normalizeContent(_0x40ed44){const _0x555467={_0x1ff709:0x45c,_0x58df74:0x2fd,_0xeb99dc:0x2ec},_0x270a02={_0x52250e:0x4c,_0x107fd4:0x52,_0xc31bcf:0x2d,_0x3fda7a:0x19d},_0x5e1a97={_0x5f37ac:0x1d1},_0xdc51e7={_0x4b292d:0x350},_0x2c8e04={_0x1f926c:0x1fe};if(typeof _0x40ed44===_0x1b938f(0x469,_0x555467._0x1ff709,0x464,0x44f))return[createTextBlock(_0x40ed44)];function _0x44b151(_0x5bd695,_0x461b0d,_0x43eab0,_0x9b6b37){return _0x28a9(_0x5bd695-_0x2c8e04._0x1f926c,_0x43eab0);}if(!Array[_0x44b151(0x2f1,_0x555467._0x58df74,_0x555467._0xeb99dc,0x2f3)](_0x40ed44))return[];function _0x1b938f(_0x4bbe19,_0xa5e758,_0xf956e8,_0x5e73e3){return _0x28a9(_0xa5e758-_0xdc51e7._0x4b292d,_0xf956e8);}return _0x40ed44['map'](_0x3035bb=>{const _0x1b4077={_0x216247:0x163,_0x5ce0db:0x115};function _0x2025a9(_0x16bbb1,_0x1bd293,_0x4a3916,_0x247a5f){return _0x44b151(_0x16bbb1- -0x4a1,_0x1bd293-_0x5e1a97._0x5f37ac,_0x4a3916,_0x247a5f-0xc);}if(_0x3035bb[_0x3913b2(_0x270a02._0x52250e,_0x270a02._0x107fd4,0x37,_0x270a02._0xc31bcf)]===_0x2025a9(-0x190,-_0x270a02._0x3fda7a,-0x1a9,-0x19b))return normalizeTextBlock(_0x3035bb);function _0x3913b2(_0x1e22f6,_0x3aef87,_0x5e3e82,_0x3a716a){return _0x44b151(_0x5e3e82- -0x2e9,_0x3aef87-_0x1b4077._0x216247,_0x3aef87,_0x3a716a-_0x1b4077._0x5ce0db);}return structuredClone(_0x3035bb);});}function normalizeSystem(_0x2c7180=[]){const _0x885f17={_0x343b54:0xcf};function _0x50f23d(_0x3d2ca6,_0x5d4392,_0x1d9552,_0x1c7727){return _0x28a9(_0x1d9552-0x3e3,_0x1c7727);}function _0x44c555(_0x4eaefb,_0x3d380b,_0x3c4372,_0x1d447d){return _0x28a9(_0x4eaefb- -0x1f8,_0x3c4372);}return normalizeContent(_0x2c7180)[_0x44c555(-0xe0,-0xcd,-_0x885f17._0x343b54,-0xde)](_0x110522=>_0x110522[_0x44c555(-0xd6,-0xce,-0xde,-0xdf)]===_0x50f23d(0x4ef,0x4e7,0x4f6,0x4eb));}function normalizeMessage(_0x5b5363){const _0x1e801e={_0x138d25:0x2a3,_0x23b6ea:0x2c7,_0x4fa6cd:0x2d4,_0x574d46:0x2c4,_0x3ce3fc:0x2d3,_0x55b530:0x2da,_0x2f69a9:0x2c8,_0x36d7d2:0x2d0,_0x14b46b:0x2c6,_0x2d0fc4:0x2c3,_0x166aaf:0x2ca},_0x15299f={_0x2c9c28:0x1e3},_0x4b2347={_0xc43a3f:0x3b5};function _0x47d1de(_0x11a1ae,_0x4863e9,_0xc5f928,_0x3dc5b2){return _0x28a9(_0x3dc5b2- -_0x4b2347._0xc43a3f,_0x4863e9);}function _0xa9b119(_0x18665b,_0x46f47a,_0x46ba29,_0x36fe0b){return _0x28a9(_0x36fe0b-_0x15299f._0x2c9c28,_0x46f47a);}return{...typeof _0x5b5363['id']==='string'?{'id':_0x5b5363['id']}:{},'role':_0x5b5363[_0x47d1de(-_0x1e801e._0x138d25,-0x29b,-_0x1e801e._0x23b6ea,-0x2b1)],'content':normalizeContent(_0x5b5363[_0xa9b119(0x2b8,_0x1e801e._0x4fa6cd,_0x1e801e._0x574d46,_0x1e801e._0x3ce3fc)]),..._0x5b5363[_0x47d1de(-_0x1e801e._0x55b530,-_0x1e801e._0x2f69a9,-_0x1e801e._0x36d7d2,-_0x1e801e._0x14b46b)]?{'providerState':structuredClone(_0x5b5363[_0x47d1de(-0x2b8,-_0x1e801e._0x2d0fc4,-_0x1e801e._0x166aaf,-0x2c6)])}:{}};}function compileRequest(_0x1a83bf){const _0x50bca6={_0x59f68f:0x29e,_0x530a27:0x298,_0x2d9101:0x290,_0x1bf4df:0x283,_0x715e7d:0x282,_0x5cb7af:0x297,_0x9346a9:0x1a2,_0x5a0532:0x1b1,_0x45102b:0x1be,_0x4b0f31:0x281,_0x289dc0:0x296,_0x55f583:0x2a5,_0x420b73:0x1a5,_0x7493da:0x26f,_0x46cbb8:0x27b};function _0x410992(_0x3a99a3,_0x58aa09,_0x5adf2a,_0x221a51){return _0x28a9(_0x3a99a3-0xa4,_0x221a51);}function _0x357e56(_0x4f9551,_0x459377,_0x24ebb5,_0x207e23){return _0x28a9(_0x24ebb5- -0x397,_0x459377);}return{'model':_0x1a83bf['model']??_0x357e56(-0x2a1,-_0x50bca6._0x59f68f,-_0x50bca6._0x530a27,-0x29a),'max_tokens':_0x1a83bf[_0x357e56(-_0x50bca6._0x2d9101,-_0x50bca6._0x1bf4df,-_0x50bca6._0x715e7d,-_0x50bca6._0x5cb7af)]??0x400,..._0x1a83bf[_0x410992(0x1b1,0x196,_0x50bca6._0x9346a9,0x1cb)]?{'reasoning':structuredClone(_0x1a83bf[_0x410992(_0x50bca6._0x5a0532,_0x50bca6._0x45102b,0x1cd,0x1a3)])}:{},'system':normalizeSystem(_0x1a83bf[_0x357e56(-0x268,-0x298,-0x27e,-_0x50bca6._0x4b0f31)]),'messages':_0x1a83bf[_0x357e56(-_0x50bca6._0x289dc0,-0x286,-0x29a,-_0x50bca6._0x55f583)][_0x410992(_0x50bca6._0x420b73,0x1a3,_0x50bca6._0x45102b,0x1ba)](normalizeMessage),'tools':structuredClone(_0x1a83bf['tools']??[]),'metadata':{'session_id':_0x1a83bf[_0x357e56(-_0x50bca6._0x7493da,-0x289,-_0x50bca6._0x46cbb8,-_0x50bca6._0x4b0f31)],'turn_id':_0x1a83bf['turnId']}};}function toChatRequest(_0x13809d){const _0x1b6b0b={_0x3f541e:0x2f0,_0x3535b7:0x3af,_0x5849e0:0x3c2,_0x233b89:0x39f,_0x4795b9:0x3a6,_0x40b1e6:0x300,_0xe09c72:0x2d8,_0x32d0a3:0x3a0,_0x56750c:0x38f,_0x5f1ecc:0x398,_0x48fa8b:0x3a3,_0x1d5bc0:0x38c,_0x3d75d0:0x301,_0x4b9024:0x2e4,_0x362667:0x2ed},_0x18fdf0={_0x5b4ab7:0x2a3};function _0x3dd3ae(_0x528a76,_0x4247bc,_0x2ea363,_0x5435ff){return _0x28a9(_0x528a76-_0x18fdf0._0x5b4ab7,_0x4247bc);}function _0x4319ed(_0x5527f9,_0x365802,_0x1e2436,_0x23a013){return _0x28a9(_0x23a013-0x1d9,_0x365802);}return{'model':_0x13809d[_0x4319ed(_0x1b6b0b._0x3f541e,0x2f8,0x2d9,0x2e7)],'maxTokens':_0x13809d[_0x3dd3ae(0x3b8,_0x1b6b0b._0x3535b7,0x3cb,_0x1b6b0b._0x5849e0)],..._0x13809d[_0x3dd3ae(0x3b0,_0x1b6b0b._0x233b89,_0x1b6b0b._0x4795b9,0x3b0)]?{'reasoning':structuredClone(_0x13809d['reasoning'])}:{},'system':structuredClone(_0x13809d[_0x4319ed(0x2f7,_0x1b6b0b._0x40b1e6,_0x1b6b0b._0xe09c72,0x2f2)]),'messages':structuredClone(_0x13809d[_0x3dd3ae(_0x1b6b0b._0x32d0a3,0x3aa,0x3b4,0x38d)]),'tools':structuredClone(_0x13809d[_0x3dd3ae(0x391,_0x1b6b0b._0x56750c,0x38b,0x37a)]),'metadata':{'sessionId':_0x13809d['metadata'][_0x3dd3ae(_0x1b6b0b._0x5f1ecc,_0x1b6b0b._0x48fa8b,0x391,_0x1b6b0b._0x1d5bc0)],'turnId':_0x13809d[_0x4319ed(_0x1b6b0b._0x3d75d0,_0x1b6b0b._0x4b9024,0x2d5,_0x1b6b0b._0x362667)][_0x3dd3ae(0x3c3,0x3ca,0x3db,0x3ae)]}};}function toModelRequest(_0x438a9a){const _0x58f434={_0x4fc4e5:0x1d0,_0x584d23:0x1cc,_0x341644:0x1e7,_0x419306:0x1be,_0x87ed96:0x1d3,_0x32ba0a:0x1e0,_0x483299:0x1ca,_0x1804bf:0x21c,_0x42cd5b:0x216,_0x25fd24:0x227,_0x173331:0x1ba,_0x5f4826:0x1d5,_0x54e6e7:0x1bb,_0x1f0d0f:0x1b9,_0x1e241f:0x1c0,_0x15dee9:0x1da,_0x345843:0x1e8,_0x15215b:0x1d9,_0x434128:0x1bb},_0x59f5e4={_0x34207f:0xc6};function _0x5b4bbc(_0x47b82d,_0x3e4b8a,_0x3e86ac,_0x546df3){return _0x28a9(_0x47b82d- -0x335,_0x3e4b8a);}function _0x48fab7(_0x479e32,_0x51a9f8,_0x37e830,_0x3dd56d){return _0x28a9(_0x479e32-_0x59f5e4._0x34207f,_0x51a9f8);}return{'model':_0x438a9a['model'],'max_tokens':_0x438a9a[_0x48fab7(_0x58f434._0x4fc4e5,0x1c7,_0x58f434._0x584d23,_0x58f434._0x341644)],..._0x438a9a[_0x48fab7(0x1d3,0x1bc,_0x58f434._0x419306,_0x58f434._0x87ed96)]?{'reasoning':structuredClone(_0x438a9a[_0x48fab7(0x1d3,_0x58f434._0x32ba0a,_0x58f434._0x483299,0x1c4)])}:{},'system':structuredClone(_0x438a9a[_0x5b4bbc(-_0x58f434._0x1804bf,-_0x58f434._0x42cd5b,-_0x58f434._0x25fd24,-0x201)]),'messages':structuredClone(_0x438a9a[_0x48fab7(0x1c3,_0x58f434._0x173331,_0x58f434._0x5f4826,_0x58f434._0x54e6e7)]),'tools':structuredClone(_0x438a9a[_0x48fab7(0x1b4,_0x58f434._0x1f0d0f,0x1a3,_0x58f434._0x1e241f)]),'metadata':{'session_id':_0x438a9a[_0x48fab7(_0x58f434._0x15dee9,0x1f6,_0x58f434._0x345843,_0x58f434._0x483299)]['sessionId'],'turn_id':_0x438a9a['metadata'][_0x48fab7(0x1c1,0x1bf,_0x58f434._0x15215b,_0x58f434._0x434128)]}};}function toProviderModelRequest(_0x182829){const _0x28bd1b={_0x165997:0x2d,_0x1509e0:0x41,_0x3cc4ed:0x4c2,_0x4cf0a8:0x4b7,_0x3f9043:0x4cd,_0x424b7d:0x15,_0x4dc30d:0x33,_0x42f3e5:0x24,_0x1bc267:0x1e},_0x55f3ed={_0x2ec791:0xd0};function _0x489ae8(_0x1096e2,_0x45e42b,_0xdad165,_0x451161){return _0x28a9(_0x451161- -_0x55f3ed._0x2ec791,_0x1096e2);}function _0x4393c5(_0xdd5f23,_0x324567,_0x82c8,_0x567671){return _0x28a9(_0x82c8-0x3b4,_0x324567);}return{'model':_0x182829[_0x489ae8(0x4b,_0x28bd1b._0x165997,_0x28bd1b._0x1509e0,0x3e)],'max_tokens':_0x182829[_0x4393c5(0x4ac,_0x28bd1b._0x3cc4ed,0x4be,0x4bb)],'system':structuredClone(_0x182829[_0x4393c5(0x4c1,_0x28bd1b._0x4cf0a8,_0x28bd1b._0x3f9043,0x4c0)]),'messages':structuredClone(_0x182829[_0x489ae8(_0x28bd1b._0x424b7d,_0x28bd1b._0x4dc30d,0x40,0x2d)]),'tools':structuredClone(_0x182829[_0x489ae8(0x18,0x1a,_0x28bd1b._0x42f3e5,_0x28bd1b._0x1bc267)])};}function toChatResponse(_0x13a436){const _0x1d75af={_0x5cba2a:0x2c8,_0x5470d0:0x2ef,_0x517062:0x2fb,_0x346e64:0x2fa,_0x15f393:0x23f,_0x36028c:0x2e3,_0x3d7c94:0x2f4,_0x4eeabd:0x2ca,_0x3c7c2c:0x2f4,_0x55a556:0x2e8,_0x197158:0x229,_0x3cfd12:0x255,_0x5b2c29:0x236},_0xd0aede={_0xc03dd2:0x1d8};function _0x9bda98(_0x49ca23,_0x58cc42,_0x15e2e0,_0x28c76f){return _0x28a9(_0x49ca23- -0x335,_0x58cc42);}function _0x31db38(_0x4f3a7e,_0x5da36c,_0x1f04e4,_0x5a76bc){return _0x28a9(_0x5da36c-_0xd0aede._0xc03dd2,_0x4f3a7e);}return{'id':_0x13a436['id'],'content':structuredClone(_0x13a436[_0x31db38(0x2d4,0x2c8,0x2de,_0x1d75af._0x5cba2a)]),'stopReason':_0x13a436['stop_reason'],'usage':{'inputTokens':_0x13a436[_0x31db38(0x2ed,_0x1d75af._0x5470d0,_0x1d75af._0x517062,_0x1d75af._0x346e64)][_0x9bda98(-0x232,-0x22e,-_0x1d75af._0x15f393,-0x23d)],'outputTokens':_0x13a436[_0x31db38(0x2e4,0x2ef,_0x1d75af._0x36028c,0x30a)][_0x31db38(_0x1d75af._0x3d7c94,0x2e3,_0x1d75af._0x4eeabd,_0x1d75af._0x3c7c2c)],..._0x13a436[_0x31db38(_0x1d75af._0x55a556,_0x1d75af._0x5470d0,0x307,0x2f8)]['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x13a436[_0x9bda98(-0x21e,-0x20f,-0x23a,-_0x1d75af._0x197158)]['reasoning_tokens']}:{}},..._0x13a436[_0x9bda98(-0x246,-0x258,-0x238,-_0x1d75af._0x3cfd12)]?{'providerState':structuredClone(_0x13a436[_0x9bda98(-0x246,-_0x1d75af._0x5b2c29,-0x235,-0x241)])}:{}};}function toModelResponse(_0x164552){const _0x24182a={_0x311329:0x10f,_0xc0e435:0x170,_0x1decdb:0x17e,_0x4ee92b:0x168,_0x400325:0x177,_0x2a188e:0x185,_0x11aaa0:0x119,_0x2d9238:0x162,_0x10eaaf:0x158,_0x42f13e:0x15e},_0x38cc7a={_0x1fd774:0x22a};function _0x4dfb15(_0x51a3e3,_0x376d3b,_0x14812a,_0x4cf47){return _0x28a9(_0x4cf47- -_0x38cc7a._0x1fd774,_0x51a3e3);}function _0x2a1fd2(_0x1249cd,_0x47e800,_0x1ed897,_0xdcd4a2){return _0x28a9(_0xdcd4a2- -0x27f,_0x47e800);}return{'id':_0x164552['id'],'type':'message','role':'assistant','content':structuredClone(_0x164552[_0x4dfb15(-0x133,-0x128,-0x137,-0x13a)]),'stop_reason':_0x164552[_0x4dfb15(-0xfc,-0x113,-0x11a,-_0x24182a._0x311329)],'stop_sequence':null,'usage':{'input_tokens':_0x164552[_0x2a1fd2(-_0x24182a._0xc0e435,-0x156,-_0x24182a._0x1decdb,-_0x24182a._0x4ee92b)][_0x2a1fd2(-0x17c,-0x193,-_0x24182a._0x400325,-_0x24182a._0x2a188e)],'output_tokens':_0x164552['usage'][_0x4dfb15(-_0x24182a._0x11aaa0,-0x10e,-0x101,-0x114)],..._0x164552['usage']['reasoningTokens']!==void 0x0?{'reasoning_tokens':_0x164552['usage'][_0x2a1fd2(-0x160,-_0x24182a._0x2d9238,-_0x24182a._0x10eaaf,-_0x24182a._0x42f13e)]}:{}},..._0x164552['providerState']?{'providerState':structuredClone(_0x164552['providerState'])}:{}};}function responseToAssistantMessage(_0x25f70d){const _0x389929={_0xe4ebcb:0xe9,_0x3cfcb4:0xa,_0x2af406:0xc1,_0xd4f579:0xca},_0x36c41a={_0x1b6dc7:0xe3};function _0x59831d(_0x3ce318,_0x239544,_0x2c244e,_0x3eb39a){return _0x28a9(_0x3eb39a- -0x1c8,_0x3ce318);}function _0x249fa0(_0x235ad7,_0x37a987,_0x247903,_0x14f781){return _0x28a9(_0x37a987- -_0x36c41a._0x1b6dc7,_0x14f781);}return{'role':'assistant','content':normalizeContent(_0x25f70d[_0x59831d(-_0x389929._0xe4ebcb,-0xd9,-0xc1,-0xd8)]),..._0x25f70d[_0x249fa0(0x10,0xc,-_0x389929._0x3cfcb4,0x22)]?{'providerState':structuredClone(_0x25f70d[_0x59831d(-0xf1,-_0x389929._0x2af406,-_0x389929._0xd4f579,-0xd9)])}:{}};}function createReasoningMessage(_0x4cb70b){const _0x2cb33f={_0x171d3b:0x203,_0x287c6d:0x202,_0x431b73:0x6e,_0x57a72a:0x72,_0x859d4:0x74,_0x4ec536:0x81,_0x5562dc:0x1f5,_0x20e1c4:0x1fa},_0x1e385f={_0x4ff63f:0x2f2},_0x382e78={_0x2ce33c:0x29,_0x5ee1ff:0x35,_0x246158:0x3b,_0x2066da:0x20,_0x1b7b8d:0x4b,_0x8bee2d:0x31,_0x33b300:0x1a,_0x1bc76a:0x2c,_0x497e43:0x57,_0x248a49:0x3f,_0x1f7468:0x62,_0x27464d:0x4a,_0xcac1f0:0x2d,_0x528d1c:0x32,_0x39d3df:0x3d,_0x509ac0:0x63,_0x47bc34:0x4c},_0x2c675f={_0x49fa99:0xa1,_0x465e9c:0x1a9},_0x331de7={_0x1f7cad:0xb3,_0x403ee1:0xe1},_0x20df52=normalizeContent(_0x4cb70b?.[_0x2b0bda(-0x208,-_0x2cb33f._0x171d3b,-0x1ea,-_0x2cb33f._0x287c6d)])[_0x2a1f12(_0x2cb33f._0x431b73,_0x2cb33f._0x57a72a,_0x2cb33f._0x859d4,_0x2cb33f._0x4ec536)](_0x126a82=>{function _0x305069(_0x4b3c0c,_0x1430cd,_0x47640d,_0x15c9ad){return _0x2a1f12(_0x1430cd- -_0x331de7._0x1f7cad,_0x47640d,_0x47640d-_0x331de7._0x403ee1,_0x15c9ad-0x1e6);}function _0x2ffe3c(_0x13b0e2,_0x3cb858,_0x226af9,_0xb91cc9){return _0x2a1f12(_0x13b0e2- -_0x2c675f._0x49fa99,_0xb91cc9,_0x226af9-0x156,_0xb91cc9-_0x2c675f._0x465e9c);}return _0x126a82[_0x2ffe3c(-_0x382e78._0x2ce33c,-_0x382e78._0x5ee1ff,-_0x382e78._0x246158,-_0x382e78._0x2066da)]===_0x2ffe3c(-0x49,-_0x382e78._0x1b7b8d,-0x42,-_0x382e78._0x8bee2d)||_0x126a82[_0x2ffe3c(-0x29,-0x40,-_0x382e78._0x33b300,-_0x382e78._0x1bc76a)]===_0x2ffe3c(-_0x382e78._0x497e43,-_0x382e78._0x248a49,-_0x382e78._0x1f7468,-_0x382e78._0x27464d)||_0x126a82[_0x2ffe3c(-_0x382e78._0x2ce33c,-_0x382e78._0xcac1f0,-_0x382e78._0x528d1c,-_0x382e78._0x39d3df)]===_0x305069(-_0x382e78._0x509ac0,-0x61,-0x5d,-_0x382e78._0x47bc34);});function _0x2b0bda(_0x3cbab5,_0x176908,_0x436b5b,_0x276b55){return _0x28a9(_0x276b55- -_0x1e385f._0x4ff63f,_0x3cbab5);}if(_0x20df52[_0x2b0bda(-0x1e7,-_0x2cb33f._0x5562dc,-0x1f7,-_0x2cb33f._0x20e1c4)]===0x0)return void 0x0;function _0x2a1f12(_0x40396b,_0x486df5,_0xaf3b01,_0x552fca){return _0x28a9(_0x40396b- -0xaa,_0x486df5);}return{'role':'assistant','content':_0x20df52};}function createAssistantTextMessage(_0x1ce067){const _0x86bc24={_0x47714d:0x8,_0x174ae7:0x4ae,_0x3c7ece:0x4c3,_0x54dcd2:0x4a3,_0x393566:0x475,_0x3d1c96:0x49d,_0x42ca57:0x486,_0x5ca223:0x4af},_0x2c8220={_0x5f215b:0x13e},_0x38293d={_0x2cebe9:0x17a,_0x5701df:0x172},_0x383140={_0x32b57d:0x396};function _0x534cc0(_0x1eaf37,_0x1eeafd,_0x50a1de,_0x42117b){return _0x28a9(_0x1eaf37-_0x383140._0x32b57d,_0x1eeafd);}const _0x57bc64=normalizeContent(_0x1ce067?.[_0x25af73(-_0x86bc24._0x47714d,0x21,0x1e,0xe)])[_0x534cc0(_0x86bc24._0x174ae7,0x4b9,_0x86bc24._0x3c7ece,_0x86bc24._0x54dcd2)](_0x396c6a=>{const _0x55ce72={_0x242a5b:0x9d};function _0x4fc54a(_0x3b63ee,_0x3914f3,_0x49261e,_0x3b1ef8){return _0x25af73(_0x3b63ee-_0x55ce72._0x242a5b,_0x3b63ee,_0x49261e-0x81,_0x3b1ef8-0x114);}function _0x29f7a3(_0x28d34e,_0x23b922,_0x563613,_0xa8d638){return _0x25af73(_0x28d34e-_0x38293d._0x2cebe9,_0x563613,_0x563613-_0x38293d._0x5701df,_0xa8d638- -0x2c);}return _0x396c6a[_0x4fc54a(0x139,0x16d,0x155,0x154)]===_0x4fc54a(0x15b,_0x2c8220._0x5f215b,0x140,0x145);});if(_0x57bc64[_0x534cc0(0x48e,0x490,0x483,_0x86bc24._0x393566)]===0x0)return void 0x0;function _0x25af73(_0x182531,_0x57ef4b,_0x52bdd5,_0xb70f94){return _0x28a9(_0xb70f94- -0xe2,_0x57ef4b);}return{'role':_0x534cc0(_0x86bc24._0x3d1c96,_0x86bc24._0x42ca57,0x490,_0x86bc24._0x5ca223),'content':_0x57bc64};}function createToolUseMessage(_0x4b2c9b){const _0x78e6c9={_0x2bd6eb:0x130,_0x181b3b:0xfb,_0x320b55:0x10e,_0x336b0f:0x142,_0x4ff97f:0x132,_0x13bd87:0x102,_0x530a46:0x104,_0x4fbaa1:0xf6},_0x4b1d28={_0x3c9ab2:0x4a},_0x544fc9={_0x132fc2:0x1b2,_0x77f83e:0x1cd,_0x5bbda4:0x1c1},_0x56ff3f=normalizeContent(_0x4b2c9b?.[_0x38f20a(0x137,0x13a,_0x78e6c9._0x2bd6eb,0x129)])[_0x2797c3(-_0x78e6c9._0x181b3b,-_0x78e6c9._0x320b55,-0xe9,-0x117)](_0x52bc24=>{const _0x3a763={_0x359972:0x171};function _0x42a51b(_0x23ec8e,_0xd22356,_0x44110d,_0x2b0bfa){return _0x2797c3(_0x23ec8e- -0xc6,_0xd22356,_0x44110d-_0x3a763._0x359972,_0x2b0bfa-0x135);}return _0x52bc24[_0x42a51b(-0x1b7,-_0x544fc9._0x132fc2,-_0x544fc9._0x77f83e,-_0x544fc9._0x5bbda4)]==='tool_use';});function _0x38f20a(_0x3d5c9d,_0x501626,_0x3ae0f2,_0x49494b){return _0x28a9(_0x501626-_0x4b1d28._0x3c9ab2,_0x3ae0f2);}function _0x2797c3(_0x1f789a,_0x267576,_0x1080c2,_0x57d27d){return _0x28a9(_0x1f789a- -0x213,_0x267576);}if(_0x56ff3f[_0x38f20a(0x142,_0x78e6c9._0x336b0f,0x156,_0x78e6c9._0x4ff97f)]===0x0)return void 0x0;return{'role':_0x2797c3(-0x10c,-_0x78e6c9._0x13bd87,-_0x78e6c9._0x530a46,-_0x78e6c9._0x4fbaa1),'content':_0x56ff3f};}function getTextFromMessage(_0x16bfde){const _0x37fd65={_0x4b7954:0x69,_0x2642c7:0x18e,_0x115d24:0x173,_0x5b1278:0x157,_0x36d35e:0x159,_0x17c81c:0x15c},_0x296132={_0x2e7bca:0x5b};function _0xa260bb(_0x4e9b56,_0x2c8c0b,_0x180142,_0x1455cc){return _0x28a9(_0x1455cc-_0x296132._0x2e7bca,_0x4e9b56);}function _0x537360(_0x2ef05d,_0x1ffb4c,_0x4892a6,_0x17e1e5){return _0x28a9(_0x1ffb4c- -0x13f,_0x4892a6);}return normalizeContent(_0x16bfde?.[_0x537360(-_0x37fd65._0x4b7954,-0x4f,-0x5a,-0x51)])[_0xa260bb(0x15f,0x15b,_0x37fd65._0x2642c7,_0x37fd65._0x115d24)](_0x8fda73=>_0x8fda73[_0x537360(-0x27,-0x1d,-0x7,-0x2e)]==='text')[_0xa260bb(0x16a,_0x37fd65._0x5b1278,_0x37fd65._0x36d35e,_0x37fd65._0x17c81c)](_0x25591e=>_0x25591e[_0x537360(-0x27,-0x2c,-0x37,-0x41)])['join']('\x0a');}function getReasoningTextFromMessage(_0x464331){const _0x2eefb1={_0x380c4e:0x14a,_0x1116c2:0x142,_0x58bd1b:0x131,_0x55a92e:0x124,_0x486203:0x12d,_0x2b1b6c:0x10a,_0x4a4e30:0xdd,_0x3e57db:0xdb,_0x5080a4:0xe8,_0x163842:0x165,_0x309e28:0x167,_0x46d1fd:0x11c,_0x932771:0x12a,_0x3ee887:0xe0,_0xb9c971:0xf7,_0x57cf70:0xdb,_0x4648b0:0xd9,_0x2da96d:0xea,_0x43e777:0x118,_0x4b51dd:0xfc,_0x23955c:0x103,_0x4cb43c:0xf7,_0x21b8a2:0xcf,_0x3477cd:0xd7,_0x402e0a:0xf8,_0x44e798:0x114,_0x1c9c22:0xe2,_0x3753dd:0xd6,_0x1772b7:0xe7,_0x9d8e55:0xe3,_0x1d42a9:0xf1,_0x23e20c:0xee,_0x250818:0x13e,_0xd7d7ec:0xfd,_0x3955f2:0xf4,_0x4b7140:0x115};return normalizeContent(_0x464331?.['content'])['flatMap'](_0x30be5f=>{if(_0x30be5f['type']===_0x38727a(-_0x2eefb1._0x380c4e,-_0x2eefb1._0x1116c2,-0x140,-_0x2eefb1._0x58bd1b))return _0x30be5f['thinking'][_0x38727a(-_0x2eefb1._0x55a92e,-_0x2eefb1._0x486203,-_0x2eefb1._0x2b1b6c,-0x115)]()[_0x277a7f(0xd6,_0x2eefb1._0x4a4e30,_0x2eefb1._0x3e57db,_0x2eefb1._0x5080a4)]>0x0?[_0x30be5f[_0x38727a(-0x14d,-0x13f,-_0x2eefb1._0x163842,-_0x2eefb1._0x309e28)]]:[];if(_0x30be5f[_0x38727a(-_0x2eefb1._0x46d1fd,-0x117,-0x127,-_0x2eefb1._0x932771)]===_0x277a7f(_0x2eefb1._0x3ee887,0xf4,_0x2eefb1._0xb9c971,_0x2eefb1._0x57cf70))return[_0x277a7f(0xdc,0xf6,_0x2eefb1._0x4648b0,0xdc)];function _0x277a7f(_0x4499b4,_0xd96432,_0x1e3095,_0x1c2c48){return _0x28a9(_0x4499b4- -0x22,_0xd96432);}if(_0x30be5f[_0x277a7f(0x100,_0x2eefb1._0x2da96d,_0x2eefb1._0x43e777,0xfb)]!=='openai_reasoning')return[];const _0x23f227=_0x30be5f[_0x277a7f(0xf0,0xda,0xf8,_0x2eefb1._0x4b51dd)]['map'](_0x372ee8=>_0x372ee8[_0x38727a(-0x12b,-0x13f,-0x135,-0x110)])['filter'](_0x37be1f=>_0x37be1f[_0x277a7f(0xf8,0xf3,0xf0,0xf9)]()['length']>0x0)[_0x277a7f(0xed,_0x2eefb1._0xb9c971,_0x2eefb1._0x23955c,_0x2eefb1._0x4cb43c)]('\x0a\x0a');if(_0x23f227[_0x277a7f(0xd6,0xd2,_0x2eefb1._0x21b8a2,0xbe)]>0x0)return[_0x23f227];function _0x38727a(_0xa1e35a,_0xae4b27,_0x48126a,_0x200a7d){return _0x28a9(_0xa1e35a- -0x23e,_0xae4b27);}if(_0x30be5f[_0x277a7f(0xf1,0xf9,_0x2eefb1._0x3477cd,0xd9)]&&_0x30be5f[_0x277a7f(0xf1,0x10b,0xdd,0xef)][_0x277a7f(_0x2eefb1._0x402e0a,_0x2eefb1._0x44e798,_0x2eefb1._0x1c9c22,0x10e)]()[_0x277a7f(_0x2eefb1._0x3753dd,_0x2eefb1._0x1772b7,0xd0,_0x2eefb1._0x9d8e55)]>0x0)return[_0x30be5f[_0x277a7f(_0x2eefb1._0x1d42a9,_0x2eefb1._0x23e20c,0xe9,0xd6)]];return _0x30be5f[_0x38727a(-_0x2eefb1._0x250818,-0x143,-0x12f,-0x13b)]?[_0x277a7f(_0x2eefb1._0xd7d7ec,_0x2eefb1._0x3955f2,_0x2eefb1._0xd7d7ec,_0x2eefb1._0x4b7140)]:[];})['join']('\x0a\x0a');}function getToolUseBlocks(_0x641f12){const _0x43f08a={_0x5c59dc:0x356,_0x5e924a:0x340,_0x1f0be6:0x350,_0x1470cf:0x34c,_0x4c3f7f:0x383,_0x570ff1:0x374},_0xcbf06f={_0x2f2bdb:0x67};function _0x410386(_0x2a2354,_0x2f0866,_0xb5524e,_0x47f091){return _0x28a9(_0x2f0866-_0xcbf06f._0x2f2bdb,_0x2a2354);}function _0x5a62e8(_0x31c746,_0x43cb7d,_0x336f92,_0x226cc4){return _0x28a9(_0x226cc4-0x25c,_0x336f92);}return normalizeContent(_0x641f12?.[_0x5a62e8(_0x43f08a._0x5c59dc,_0x43f08a._0x5e924a,_0x43f08a._0x1f0be6,_0x43f08a._0x1470cf)])[_0x5a62e8(0x370,_0x43f08a._0x4c3f7f,0x38e,_0x43f08a._0x570ff1)](_0x55e8b1=>_0x55e8b1[_0x5a62e8(0x36c,0x37f,0x36c,0x37e)]==='tool_use');}function getToolResultBlocks(_0x4e3a7f){const _0x1577a9={_0x5b4c8d:0xb6,_0x591e8f:0xe0,_0x1ea18d:0x1d4,_0x10f5bf:0x1aa},_0x1724ba={_0x1cbe8a:0x2d7};function _0x3cebad(_0x5e5489,_0x219960,_0x22c2e6,_0x55e4b8){return _0x28a9(_0x22c2e6- -0x23,_0x5e5489);}function _0x1b9308(_0x2fef2a,_0xf3219f,_0x35c733,_0x3ce77f){return _0x28a9(_0x35c733- -_0x1724ba._0x1cbe8a,_0x2fef2a);}return normalizeContent(_0x4e3a7f?.[_0x3cebad(_0x1577a9._0x5b4c8d,_0x1577a9._0x591e8f,0xcd,0xe7)])[_0x1b9308(-_0x1577a9._0x1ea18d,-0x1c8,-0x1bf,-_0x1577a9._0x10f5bf)](_0x3c57f6=>_0x3c57f6['type']===_0x1b9308(-0x1b3,-0x1a0,-0x1b9,-0x1bc));}function createToolResultUserMessage(_0x3f617b){const _0x2d9ff8={_0x1e7234:0x234,_0x5dc31a:0x244,_0x5d5bd8:0x226},_0x39dd67={_0x5bbddc:0x55,_0x198725:0x3f,_0x1654aa:0x56,_0x20fad5:0x1f,_0x23a9fa:0x29},_0x42b131={_0x414828:0x263},_0x2dfc2e={_0x52469b:0x13f};function _0x27016d(_0x2cbf9a,_0x127447,_0x34c111,_0x199141){return _0x28a9(_0x2cbf9a-_0x2dfc2e._0x52469b,_0x199141);}function _0x292590(_0x295601,_0x59c15c,_0x57a777,_0x2e934d){return _0x28a9(_0x2e934d- -_0x42b131._0x414828,_0x57a777);}return{'role':_0x27016d(0x248,_0x2d9ff8._0x1e7234,0x239,_0x2d9ff8._0x5dc31a),'content':_0x3f617b[_0x27016d(0x240,_0x2d9ff8._0x5d5bd8,0x255,0x232)](_0x105060=>{const _0xfee0e8={_0xfeab21:0xf2,_0x44f61d:0x184};function _0x31bb71(_0x226bf8,_0x4a4ab0,_0x4d996a,_0x297d59){return _0x292590(_0x226bf8-_0xfee0e8._0xfeab21,_0x4a4ab0-0x1af,_0x226bf8,_0x4a4ab0-_0xfee0e8._0x44f61d);}function _0x4e87a7(_0x5df170,_0x2a663a,_0x4c6a48,_0x164c3c){return _0x292590(_0x5df170-0x65,_0x2a663a-0x1c0,_0x5df170,_0x164c3c-0x18e);}return{'type':_0x31bb71(_0x39dd67._0x5bbddc,_0x39dd67._0x198725,0x34,_0x39dd67._0x1654aa),'tool_use_id':_0x105060['callId'],'content':_0x105060['output'],'is_error':_0x105060[_0x4e87a7(_0x39dd67._0x20fad5,0x26,_0x39dd67._0x23a9fa,0x22)]==='error'};})};}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage};
|
package/dist/chunk-NYZR4XKO.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x524f51,_0x324f25){var _0x5a7bcf={_0x50903f:0x48,_0x477cb2:0x46,_0x11a16a:0x54,_0x38152d:0x56,_0x21b392:0x4e,_0x319f9e:0x53,_0x741c3a:0x4c,_0x2c3bd1:0x154,_0x18997a:0x14e,_0x20a847:0x153,_0x4d2585:0x156,_0x5471d4:0x14f,_0x240039:0x156,_0x441b4e:0x15a,_0x384133:0x158,_0x558f84:0x155,_0x211cc5:0x15a,_0x5d3548:0x5a,_0x5a9f93:0x164,_0xb39b1a:0x15c,_0x8bac49:0x160,_0x39a3f0:0x15e,_0x4ed7eb:0x47,_0x38125d:0x4b,_0xbd86b5:0x163,_0x2f57db:0x15e},_0x189183={_0x3e71ca:0xf9},_0x3d76c4=_0x524f51();function _0x1f2775(_0x4d75e2,_0x2e231a,_0x50c1e4,_0x30ab0e){return _0x5776(_0x30ab0e- -_0x189183._0x3e71ca,_0x2e231a);}function _0x9a661(_0xac3237,_0x32446f,_0x482a27,_0x408871){return _0x5776(_0x408871- -0x204,_0x482a27);}while(!![]){try{var _0x1d0753=-parseInt(_0x1f2775(-_0x5a7bcf._0x50903f,-0x3f,-0x42,-_0x5a7bcf._0x477cb2))/0x1*(parseInt(_0x1f2775(-_0x5a7bcf._0x11a16a,-_0x5a7bcf._0x38152d,-_0x5a7bcf._0x21b392,-0x4e))/0x2)+-parseInt(_0x1f2775(-0x49,-_0x5a7bcf._0x319f9e,-_0x5a7bcf._0x741c3a,-0x4d))/0x3+-parseInt(_0x9a661(-0x158,-0x156,-0x14e,-0x152))/0x4*(-parseInt(_0x9a661(-0x14f,-_0x5a7bcf._0x2c3bd1,-_0x5a7bcf._0x18997a,-_0x5a7bcf._0x20a847))/0x5)+-parseInt(_0x9a661(-_0x5a7bcf._0x4d2585,-0x153,-_0x5a7bcf._0x5471d4,-_0x5a7bcf._0x240039))/0x6*(-parseInt(_0x9a661(-_0x5a7bcf._0x441b4e,-_0x5a7bcf._0x384133,-0x153,-_0x5a7bcf._0x558f84))/0x7)+-parseInt(_0x9a661(-_0x5a7bcf._0x211cc5,-0x151,-0x14f,-_0x5a7bcf._0x2c3bd1))/0x8*(parseInt(_0x1f2775(-0x4d,-_0x5a7bcf._0x11a16a,-_0x5a7bcf._0x5d3548,-0x52))/0x9)+-parseInt(_0x9a661(-_0x5a7bcf._0x5a9f93,-_0x5a7bcf._0xb39b1a,-_0x5a7bcf._0x8bac49,-_0x5a7bcf._0x39a3f0))/0xa*(parseInt(_0x1f2775(-_0x5a7bcf._0x4ed7eb,-_0x5a7bcf._0x38125d,-0x47,-0x45))/0xb)+parseInt(_0x9a661(-_0x5a7bcf._0xbd86b5,-_0x5a7bcf._0x2f57db,-0x158,-0x15c))/0xc;if(_0x1d0753===_0x324f25)break;else _0x3d76c4['push'](_0x3d76c4['shift']());}catch(_0x23fd78){_0x3d76c4['push'](_0x3d76c4['shift']());}}}(_0x2a72,0x4036e));var ANTHROPIC_AUTO_BUDGET_TOKENS={'low':0x400,'medium':0x800,'high':0x1000};function _0x2a72(){var _0x2acb6c=['nJG1ntiYz1PRBKfW','mte0nZe0ovrmsLnuCa','zw5HyMXLza','mtGWnMHjrMLdDq','mtCYoxvLANvprq','nte5nJa4qxHirvbO','ndG4mZvWuKPjtKG','mtKYC3b0wMvS','mxfUDvPzqW','mJG5nZi5Egfku09q','yxv0BW','mZbwAM9sCMK','oujLvufxwG','nZa2nZy1mK5OEfzWsG','zwzMB3j0','B3bLBMfP'];_0x2a72=function(){return _0x2acb6c;};return _0x2a72();}function mapAutoReasoningEffortToBudgetTokens(_0x15cedb){return ANTHROPIC_AUTO_BUDGET_TOKENS[_0x15cedb];}function resolveAnthropicThinkingConfig(_0x5cad2e){var _0x6dcf39={_0x2c7449:0xda,_0x299058:0xd5,_0x2957b4:0xe0,_0x3a0b04:0xe5,_0x25722e:0xe3,_0x481962:0xdf,_0xfe13a9:0xe1,_0x5adf7f:0xdd};if(!_0x5cad2e)return void 0x0;function _0x2a6ee5(_0x38918f,_0x1c5c3e,_0x30cf07,_0x2d244d){return _0x5776(_0x2d244d-0x19b,_0x30cf07);}if(_0x5cad2e['anthropic'])return structuredClone(_0x5cad2e['anthropic']);if(!_0x5cad2e['auto'])return void 0x0;function _0x4df7d3(_0xbfaf80,_0x44d10b,_0x563f25,_0x4a5cab){return _0x5776(_0x563f25- -0x188,_0x4a5cab);}return{'type':_0x4df7d3(-_0x6dcf39._0x2c7449,-_0x6dcf39._0x299058,-0xdb,-_0x6dcf39._0x2957b4),'budgetTokens':mapAutoReasoningEffortToBudgetTokens(_0x5cad2e[_0x4df7d3(-0xe7,-_0x6dcf39._0x3a0b04,-_0x6dcf39._0x25722e,-_0x6dcf39._0x481962)][_0x4df7d3(-_0x6dcf39._0xfe13a9,-_0x6dcf39._0x5adf7f,-0xdf,-0xd8)])};}function resolveOpenAiReasoningConfig(_0x105239){var _0xd220c={_0x5d73f0:0xe2,_0x12f089:0xee,_0x9ea1d7:0x4a,_0x22d2d3:0x4f,_0x41f488:0xf1,_0xd0076e:0xf0,_0x126171:0xe9};if(!_0x105239)return void 0x0;function _0x49ae85(_0x379da5,_0xb7a779,_0x5a8f05,_0x3ab809){return _0x5776(_0x5a8f05- -0x5b,_0x379da5);}const _0x59045b=_0x105239[_0x4072f5(_0xd220c._0x5d73f0,_0xd220c._0x12f089,0xe2,0xe9)]?{'effort':_0x105239[_0x49ae85(0x4b,0x44,_0xd220c._0x9ea1d7,_0xd220c._0x22d2d3)][_0x4072f5(_0xd220c._0x41f488,_0xd220c._0xd0076e,0xee,0xed)]}:void 0x0;function _0x4072f5(_0x492b08,_0x6e5c5a,_0x32ebe0,_0x3b43c6){return _0x5776(_0x3b43c6-0x44,_0x32ebe0);}if(!_0x105239[_0x4072f5(_0xd220c._0x126171,0xec,0xf6,0xee)])return _0x59045b;return{..._0x59045b??{},...structuredClone(_0x105239['openai'])};}function _0x5776(_0x1d70f1,_0x5e9e34){_0x1d70f1=_0x1d70f1-0xa5;var _0x2a728c=_0x2a72();var _0x577626=_0x2a728c[_0x1d70f1];if(_0x5776['IRMoen']===undefined){var _0x2004ce=function(_0x5954b8){var _0xba7b23='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x15cedb='',_0x5cad2e='';for(var _0x105239=0x0,_0x59045b,_0x114840,_0x109f28=0x0;_0x114840=_0x5954b8['charAt'](_0x109f28++);~_0x114840&&(_0x59045b=_0x105239%0x4?_0x59045b*0x40+_0x114840:_0x114840,_0x105239++%0x4)?_0x15cedb+=String['fromCharCode'](0xff&_0x59045b>>(-0x2*_0x105239&0x6)):0x0){_0x114840=_0xba7b23['indexOf'](_0x114840);}for(var _0xd07d05=0x0,_0x5a2e30=_0x15cedb['length'];_0xd07d05<_0x5a2e30;_0xd07d05++){_0x5cad2e+='%'+('00'+_0x15cedb['charCodeAt'](_0xd07d05)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5cad2e);};_0x5776['BJJBtJ']=_0x2004ce,_0x5776['dzPMeO']={},_0x5776['IRMoen']=!![];}var _0xa163da=_0x2a728c[0x0],_0x3a5840=_0x1d70f1+_0xa163da,_0x482655=_0x5776['dzPMeO'][_0x3a5840];return!_0x482655?(_0x577626=_0x5776['BJJBtJ'](_0x577626),_0x5776['dzPMeO'][_0x3a5840]=_0x577626):_0x577626=_0x482655,_0x577626;}export{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig};
|
package/dist/chunk-U2BLX7Y5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x672178,_0x321848){const _0x3cf8d5={_0x3b69ff:0xd5,_0x9e8469:0x18c,_0x2af6fc:0x195,_0x42bee3:0x18b,_0x26ce96:0x192,_0x270ddc:0x18b,_0x3ebda9:0x17f,_0x2189a0:0x190,_0x49d49d:0xfb,_0x2e0dbf:0xf8,_0x46a624:0xfe,_0x18eb45:0xf2,_0x438432:0x1a3,_0x199c7f:0x17d,_0x350b42:0x10f,_0x3169b4:0xfd,_0x52e2a:0x102,_0x312f5d:0x17a,_0x36fab1:0x182,_0x395eff:0x16e},_0x20806c={_0x326f1c:0x2b1};function _0x232010(_0x19a481,_0x4d9356,_0x171763,_0x14b4e6){return _0x79ff(_0x171763- -_0x20806c._0x326f1c,_0x19a481);}const _0x45ef5d=_0x672178();function _0x3777dd(_0x2c2fe5,_0x39d49b,_0x2bde97,_0x4c9577){return _0x79ff(_0x4c9577- -0x220,_0x2c2fe5);}while(!![]){try{const _0x3d8c1a=parseInt(_0x3777dd(-_0x3cf8d5._0x3b69ff,-0xf5,-0xdb,-0xe4))/0x1+-parseInt(_0x232010(-0x19f,-_0x3cf8d5._0x9e8469,-0x18f,-_0x3cf8d5._0x2af6fc))/0x2+parseInt(_0x232010(-_0x3cf8d5._0x42bee3,-_0x3cf8d5._0x26ce96,-0x193,-0x1a6))/0x3+parseInt(_0x232010(-_0x3cf8d5._0x270ddc,-_0x3cf8d5._0x3ebda9,-_0x3cf8d5._0x2189a0,-0x195))/0x4*(-parseInt(_0x3777dd(-_0x3cf8d5._0x49d49d,-_0x3cf8d5._0x2e0dbf,-_0x3cf8d5._0x46a624,-_0x3cf8d5._0x18eb45))/0x5)+-parseInt(_0x232010(-_0x3cf8d5._0x438432,-0x1a3,-0x19a,-0x19c))/0x6+-parseInt(_0x232010(-0x18c,-_0x3cf8d5._0x199c7f,-0x17f,-0x18c))/0x7*(parseInt(_0x3777dd(-_0x3cf8d5._0x350b42,-0x105,-0xfa,-0x10c))/0x8)+parseInt(_0x3777dd(-0xf8,-_0x3cf8d5._0x3169b4,-_0x3cf8d5._0x52e2a,-0x101))/0x9*(parseInt(_0x232010(-0x177,-_0x3cf8d5._0x312f5d,-_0x3cf8d5._0x36fab1,-_0x3cf8d5._0x395eff))/0xa);if(_0x3d8c1a===_0x321848)break;else _0x45ef5d['push'](_0x45ef5d['shift']());}catch(_0xafadff){_0x45ef5d['push'](_0x45ef5d['shift']());}}}(_0x1bb4,0x44b40));import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';import{normalizeContent}from'./chunk-C6OLKGP6.js';function systemToInstructions(_0x2f4739){const _0x46696a={_0x1f69d9:0x104,_0x42ab49:0x110,_0x6ed05a:0x100,_0x467213:0x359,_0x152e89:0x354},_0x2b2320={_0x321931:0x22f},_0x589bc1={_0x140c95:0x211};function _0x539f79(_0x536244,_0x46ca74,_0x15d7d1,_0x3f2d98){return _0x79ff(_0x15d7d1- -_0x589bc1._0x140c95,_0x536244);}function _0x37e738(_0x1a9857,_0x2414e4,_0x53636e,_0x9a9b23){return _0x79ff(_0x53636e-_0x2b2320._0x321931,_0x1a9857);}return normalizeContent(_0x2f4739)[_0x539f79(-_0x46696a._0x1f69d9,-_0x46696a._0x42ab49,-0xfb,-_0x46696a._0x6ed05a)](_0x2e8b87=>_0x2e8b87[_0x37e738(0x366,0x35c,0x367,0x356)]===_0x539f79(-0xe9,-0xd9,-0xe8,-0xe7))[_0x37e738(_0x46696a._0x467213,0x349,_0x46696a._0x152e89,0x361)](_0x588a95=>_0x588a95['text'])['join']('\x0a\x0a');}function _0x79ff(_0x4aaf10,_0x4d7927){_0x4aaf10=_0x4aaf10-0x112;const _0x1bb4de=_0x1bb4();let _0x79ff70=_0x1bb4de[_0x4aaf10];if(_0x79ff['UWOWRN']===undefined){var _0x47c72b=function(_0x439539){const _0x37d33a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2f4739='',_0x2e8b87='';for(let _0x588a95=0x0,_0x39b9d9,_0x1f7371,_0x167128=0x0;_0x1f7371=_0x439539['charAt'](_0x167128++);~_0x1f7371&&(_0x39b9d9=_0x588a95%0x4?_0x39b9d9*0x40+_0x1f7371:_0x1f7371,_0x588a95++%0x4)?_0x2f4739+=String['fromCharCode'](0xff&_0x39b9d9>>(-0x2*_0x588a95&0x6)):0x0){_0x1f7371=_0x37d33a['indexOf'](_0x1f7371);}for(let _0x31af56=0x0,_0x365f58=_0x2f4739['length'];_0x31af56<_0x365f58;_0x31af56++){_0x2e8b87+='%'+('00'+_0x2f4739['charCodeAt'](_0x31af56)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e8b87);};_0x79ff['UmxKtm']=_0x47c72b,_0x79ff['yKzOvJ']={},_0x79ff['UWOWRN']=!![];}const _0x12b095=_0x1bb4de[0x0],_0x2dcf45=_0x4aaf10+_0x12b095,_0x1b8972=_0x79ff['yKzOvJ'][_0x2dcf45];return!_0x1b8972?(_0x79ff70=_0x79ff['UmxKtm'](_0x79ff70),_0x79ff['yKzOvJ'][_0x2dcf45]=_0x79ff70):_0x79ff70=_0x1b8972,_0x79ff70;}function pushTextMessage(_0x39b9d9,_0x1f7371,_0x167128){const _0x5b16b0={_0x4b80f5:0x184,_0x3d9b8f:0x18c,_0x2b3ded:0xe2,_0x368570:0xd4,_0x695559:0xf6,_0xe23cde:0xd3,_0x19c873:0x197,_0x229b89:0x1b0,_0xd9e7da:0x1a7,_0x3875e5:0x1a7},_0x1a18b6={_0x327c63:0x6c},_0x1d9d98={_0x19366e:0xbf,_0xac0516:0xe1},_0x59bdba={_0x1a7aca:0x11,_0x3ea6a1:0x14e,_0x1b3d45:0x262};function _0x3d43d1(_0x56c93a,_0x21c041,_0x4473fb,_0x3fb4eb){return _0x79ff(_0x4473fb- -0x206,_0x56c93a);}if(_0x167128[_0xcc3615(0x182,_0x5b16b0._0x4b80f5,0x185,_0x5b16b0._0x3d9b8f)]===0x0)return;const _0x31af56={'type':_0x3d43d1(-0xe8,-0xdf,-_0x5b16b0._0x2b3ded,-_0x5b16b0._0x368570),'role':_0x1f7371,'content':_0x167128[_0x3d43d1(-0xea,-_0x5b16b0._0x695559,-0xe1,-_0x5b16b0._0xe23cde)](_0x365f58=>{function _0x260cbc(_0x5b25c0,_0x2953e7,_0x261b90,_0x4fc2d7){return _0xcc3615(_0x4fc2d7,_0x2953e7-_0x59bdba._0x1a7aca,_0x261b90-_0x59bdba._0x3ea6a1,_0x261b90- -_0x59bdba._0x1b3d45);}return{'type':'input_text','text':_0x365f58[_0x260cbc(-_0x1d9d98._0x19366e,-_0x1d9d98._0xac0516,-0xcd,-0xcc)]};})};function _0xcc3615(_0x4b47a1,_0xe70ebf,_0x5b2c63,_0x3d9a9f){return _0x79ff(_0x3d9a9f-_0x1a18b6._0x327c63,_0x4b47a1);}_0x39b9d9[_0xcc3615(_0x5b16b0._0x19c873,_0x5b16b0._0x229b89,_0x5b16b0._0xd9e7da,_0x5b16b0._0x3875e5)](_0x31af56);}function hasSerializableToolUse(_0x5b7671){const _0x56c914={_0x1baaa3:0x134,_0x2f9a70:0x11f,_0x1810f3:0x121},_0x41ed59={_0x2dfd32:0xc};function _0x133a53(_0x40483d,_0x2e93aa,_0x8b3aac,_0x4f1c82){return _0x79ff(_0x40483d- -0x34,_0x2e93aa);}function _0x1d496e(_0x208692,_0x386ddd,_0x404dd6,_0x302422){return _0x79ff(_0x302422-_0x41ed59._0x2dfd32,_0x386ddd);}return _0x5b7671['id']['trim']()['length']>0x0&&_0x5b7671[_0x1d496e(_0x56c914._0x1baaa3,0x118,_0x56c914._0x2f9a70,_0x56c914._0x1810f3)][_0x1d496e(0x155,0x150,0x135,0x13f)]()['length']>0x0;}function hasSerializableToolResult(_0x546659){const _0x1ac211={_0x487e31:0x19e,_0x332135:0x190,_0x1cc376:0x19f,_0x37a72f:0x18a,_0x3fb461:0x196,_0x1e3bcb:0xb4,_0x3722b0:0xbc,_0x436516:0xac};function _0x41f3b2(_0x35e08b,_0x3f7ff6,_0x227dde,_0x1f45f5){return _0x79ff(_0x227dde- -0x2c9,_0x1f45f5);}function _0x1242e3(_0x365168,_0x2ab6a1,_0x4d7464,_0x2585b7){return _0x79ff(_0x365168- -0x6c,_0x4d7464);}return _0x546659[_0x41f3b2(-_0x1ac211._0x487e31,-_0x1ac211._0x332135,-_0x1ac211._0x1cc376,-0x19d)][_0x41f3b2(-0x19d,-_0x1ac211._0x37a72f,-_0x1ac211._0x3fb461,-0x193)]()[_0x1242e3(_0x1ac211._0x1e3bcb,_0x1ac211._0x3722b0,0xa9,_0x1ac211._0x436516)]>0x0;}function isResponseInputObject(_0x3fe487){const _0x2bda59={_0x3cb0f8:0x38e,_0x6d9c3f:0x56,_0x1bd503:0x6b,_0x28f683:0x60},_0x3e5acf={_0x1aacd8:0x198},_0x32c4cf={_0x485040:0x268};function _0xc1b343(_0x35fe7b,_0x549fd8,_0x1753a7,_0xa001fe){return _0x79ff(_0xa001fe-_0x32c4cf._0x485040,_0x549fd8);}if(typeof _0x3fe487!=='object'||_0x3fe487===null||Array[_0xc1b343(0x37e,_0x2bda59._0x3cb0f8,0x38d,0x380)](_0x3fe487))return![];const _0x36a849=_0x3fe487;function _0xaa208d(_0x4edc4c,_0x40e7f8,_0x3d7155,_0x42a446){return _0x79ff(_0x42a446- -_0x3e5acf._0x1aacd8,_0x3d7155);}return typeof _0x36a849[_0xaa208d(-_0x2bda59._0x6d9c3f,-_0x2bda59._0x1bd503,-0x5f,-_0x2bda59._0x28f683)]==='string';}function resolveReasoningVisibility(_0x4a13d0){const _0x5cabfc={_0x49f323:0x292,_0x5cf3b7:0x2b6,_0x47197f:0x2b1,_0x506222:0x2c9,_0x312049:0x2ab},_0x29be76={_0x32b2cc:0x18b};function _0x5ce6a7(_0x3fae29,_0x1cc504,_0x493cfd,_0x4c2263){return _0x79ff(_0x3fae29-_0x29be76._0x32b2cc,_0x1cc504);}function _0x46b2ed(_0x259452,_0x4d2462,_0x4a6745,_0x655b4f){return _0x79ff(_0x4a6745-0x27d,_0x655b4f);}return _0x4a13d0[_0x5ce6a7(0x2a7,_0x5cabfc._0x49f323,_0x5cabfc._0x5cf3b7,_0x5cabfc._0x47197f)]?.['visibility']??_0x5ce6a7(0x2c1,0x2d7,_0x5cabfc._0x506222,_0x5cabfc._0x312049);}function createOpenAiResponsesReasoning(_0x80fa37){const _0x1c0db6={_0x300166:0x3ee,_0x5b5730:0x3f7,_0x3be9e2:0x410,_0x13b71a:0x402,_0xf606bf:0x6e,_0x23bb16:0x406,_0x1161d7:0x412,_0x4d715d:0x3fa,_0x43107c:0x3ef,_0x4eb232:0x3f3,_0x218204:0x3e1,_0x29326d:0x3f8,_0x168a4b:0x3f9,_0x2446ee:0x405,_0x110cda:0x404,_0x462857:0x3ed,_0x45938a:0x7b,_0x312263:0x7c,_0x11a95d:0x6f,_0x1e4d67:0x7c,_0x190560:0x92,_0x1019e1:0x98,_0x3dd8a7:0x3f6,_0x1b5605:0x409,_0x25670f:0x3e5},_0x487324=resolveOpenAiReasoningConfig(_0x80fa37[_0x339f78(0x3f2,0x3f4,_0x1c0db6._0x300166,_0x1c0db6._0x5b5730)]);if(!_0x487324)return{};function _0x339f78(_0x59ef0b,_0x4121d9,_0x4d8710,_0x5b1382){return _0x79ff(_0x59ef0b-0x2d6,_0x5b1382);}const _0x4363d7={},_0x379a7a=_0x487324[_0x339f78(0x3fe,0x409,_0x1c0db6._0x3be9e2,_0x1c0db6._0x13b71a)]??(resolveReasoningVisibility(_0x80fa37)===_0x35debc(-0x88,-0x7f,-0x72,-_0x1c0db6._0xf606bf)?_0x339f78(_0x1c0db6._0x23bb16,_0x1c0db6._0x1161d7,_0x1c0db6._0x4d715d,0x3f4):void 0x0);_0x487324[_0x339f78(0x3f3,_0x1c0db6._0x43107c,_0x1c0db6._0x43107c,0x3f1)]&&(_0x4363d7[_0x339f78(_0x1c0db6._0x4eb232,_0x1c0db6._0x218204,0x3ff,0x404)]=_0x487324[_0x339f78(0x3f3,_0x1c0db6._0x29326d,0x3ff,_0x1c0db6._0x168a4b)]);_0x379a7a&&(_0x4363d7[_0x339f78(0x3fe,_0x1c0db6._0x2446ee,_0x1c0db6._0x110cda,_0x1c0db6._0x462857)]=_0x379a7a);function _0x35debc(_0x398933,_0x4154b3,_0x402732,_0x3605e2){return _0x79ff(_0x4154b3- -0x1b5,_0x402732);}return{..._0x487324[_0x35debc(-_0x1c0db6._0x45938a,-_0x1c0db6._0x312263,-_0x1c0db6._0x11a95d,-0x8c)]===![]?{}:{'include':['reasoning.encrypted_content']},...Object[_0x35debc(-_0x1c0db6._0x1e4d67,-_0x1c0db6._0x190560,-_0x1c0db6._0x1019e1,-0x93)](_0x4363d7)[_0x339f78(_0x1c0db6._0x3dd8a7,_0x1c0db6._0x1b5605,_0x1c0db6._0x25670f,0x400)]>0x0?{'reasoning':_0x4363d7}:{}};}function pushAssistantProviderState(_0x3b01e0,_0x3c788c){const _0x2f55f6={_0x1466c9:0x4e7,_0x5986f0:0x4d5,_0x1da3ff:0x4e2,_0x2239d0:0x4c5,_0x42f038:0x4b7,_0x2f1a12:0x4ce,_0x14ec55:0x289,_0x41a2e1:0x29d,_0xa8d053:0x4dc};if(_0x3c788c[_0x132c4f(_0x2f55f6._0x1466c9,_0x2f55f6._0x5986f0,0x4d3,_0x2f55f6._0x1da3ff)]!==_0x132c4f(_0x2f55f6._0x2239d0,_0x2f55f6._0x42f038,0x4b6,_0x2f55f6._0x2f1a12))return![];const _0x5817aa=_0x3c788c['providerState']?.['openaiResponsesOutput']??[];if(_0x5817aa[_0x50546c(-_0x2f55f6._0x14ec55,-0x292,-0x2a2,-_0x2f55f6._0x41a2e1)]===0x0)return![];function _0x132c4f(_0x4667ee,_0x41e5d5,_0xa7766c,_0x4e874a){return _0x79ff(_0x4667ee-0x3b2,_0xa7766c);}for(const _0x3bb300 of _0x5817aa){isResponseInputObject(_0x3bb300)&&_0x3b01e0[_0x132c4f(0x4ed,0x4e7,_0x2f55f6._0xa8d053,0x4e4)](structuredClone(_0x3bb300));}function _0x50546c(_0x5ffe0f,_0x23e99e,_0xea3961,_0x232234){return _0x79ff(_0x232234- -0x3bd,_0x5ffe0f);}return!![];}function toOpenAiResponsesRequest(_0x775841){const _0x5313c1={_0x59d2eb:0x295,_0x244925:0x293,_0x8b6560:0x251,_0x4b4572:0x24b,_0x5cd278:0x258,_0x30c620:0x2a2,_0x339322:0x298,_0x1bca7d:0x238,_0x3e035d:0x241,_0x44f80c:0x225,_0x30c86f:0x232,_0x126378:0x2ba,_0x578d6d:0x250,_0x375524:0x24e,_0x19ba24:0x240,_0x2cef6a:0x2ab,_0x5db06e:0x2b1,_0x1109ff:0x24c,_0x30e2d1:0x232,_0x197f52:0x248,_0x5c4078:0x2a4,_0x902c21:0x2a9,_0x464e25:0x2ce,_0x2a5e01:0x2b9,_0x54ad3e:0x2c4,_0x42871f:0x239,_0x507834:0x224,_0x3a8089:0x228,_0x878029:0x2a5,_0x45f312:0x2ac,_0x4415cb:0x2a4,_0x528181:0x2c3,_0x1ad21e:0x21d,_0x551e6a:0x239,_0x2b422e:0x22d,_0x15949b:0x29e,_0x12ea12:0x29d,_0x131abc:0x242,_0x33d945:0x24a,_0xf78647:0x248,_0x55ec00:0x234,_0x2d26f9:0x2a1},_0x4f1b5f={_0x37e4c0:0x2aa,_0x4fc20d:0x405},_0x5ac3dc={_0x1fafe6:0x5c,_0x59d714:0x170},_0x5807f1={_0x3b11cc:0x29},_0x339b10={_0x24d210:0x17f},_0x1dc06b={_0x32497d:0x113},_0x433af7=[];for(const _0x55fb5f of _0x775841[_0x59cc80(_0x5313c1._0x59d2eb,0x29a,_0x5313c1._0x244925,0x2a0)]){if(pushAssistantProviderState(_0x433af7,_0x55fb5f))continue;const _0x190c0f=[];for(const _0x256b13 of normalizeContent(_0x55fb5f['content'])){if(_0x256b13[_0x5c1c1d(_0x5313c1._0x8b6560,_0x5313c1._0x4b4572,0x23f,_0x5313c1._0x5cd278)]===_0x59cc80(_0x5313c1._0x30c620,0x2a8,_0x5313c1._0x339322,0x2a4)){_0x190c0f['push'](_0x256b13);continue;}pushTextMessage(_0x433af7,_0x55fb5f[_0x5c1c1d(_0x5313c1._0x5cd278,0x248,_0x5313c1._0x1bca7d,_0x5313c1._0x3e035d)],_0x190c0f[_0x5c1c1d(0x228,_0x5313c1._0x44f80c,_0x5313c1._0x30c86f,0x215)](0x0));if(_0x256b13[_0x59cc80(_0x5313c1._0x126378,0x2b7,0x2be,0x2b4)]==='tool_use'){if(!hasSerializableToolUse(_0x256b13))continue;_0x433af7[_0x5c1c1d(_0x5313c1._0x578d6d,_0x5313c1._0x375524,0x25c,_0x5313c1._0x19ba24)]({'type':'function_call','call_id':_0x256b13['id'],'name':_0x256b13['name'],'arguments':JSON[_0x59cc80(_0x5313c1._0x2cef6a,0x2a6,_0x5313c1._0x5db06e,0x2b3)](_0x256b13[_0x59cc80(0x296,0x2aa,0x2ac,0x29f)]??{})});continue;}if(_0x256b13['type']===_0x5c1c1d(_0x5313c1._0x1109ff,0x247,0x246,_0x5313c1._0x30e2d1)){if(!hasSerializableToolResult(_0x256b13))continue;_0x433af7[_0x5c1c1d(0x255,0x24e,_0x5313c1._0x197f52,0x245)]({'type':'function_call_output','call_id':_0x256b13[_0x59cc80(_0x5313c1._0x5c4078,_0x5313c1._0x902c21,0x2bf,0x2b4)],'output':typeof _0x256b13['content']===_0x59cc80(_0x5313c1._0x464e25,_0x5313c1._0x2a5e01,_0x5313c1._0x2cef6a,_0x5313c1._0x54ad3e)?_0x256b13[_0x5c1c1d(0x24c,_0x5313c1._0x42871f,0x224,_0x5313c1._0x507834)]:JSON[_0x5c1c1d(_0x5313c1._0x3a8089,0x23a,0x238,0x242)](_0x256b13[_0x59cc80(0x2a3,_0x5313c1._0x878029,_0x5313c1._0x45f312,_0x5313c1._0x4415cb)])});}}pushTextMessage(_0x433af7,_0x55fb5f[_0x59cc80(0x2bf,0x2b4,_0x5313c1._0x528181,0x2bd)],_0x190c0f);}function _0x5c1c1d(_0x1a3995,_0x1b510a,_0x169c72,_0x3cf13d){return _0x79ff(_0x1b510a-_0x1dc06b._0x32497d,_0x1a3995);}function _0x59cc80(_0x8f17b2,_0x4c2a7c,_0x127ca1,_0x2ec032){return _0x79ff(_0x4c2a7c-_0x339b10._0x24d210,_0x127ca1);}return{...createOpenAiResponsesReasoning(_0x775841),'model':_0x775841[_0x5c1c1d(0x23f,0x22c,_0x5313c1._0x1ad21e,_0x5313c1._0x551e6a)],'instructions':systemToInstructions(_0x775841[_0x5c1c1d(0x239,_0x5313c1._0x2b422e,0x23b,0x21e)]),'input':_0x433af7,'max_output_tokens':_0x775841[_0x59cc80(0x29f,0x2b0,_0x5313c1._0x15949b,_0x5313c1._0x12ea12)],'tools':_0x775841[_0x5c1c1d(_0x5313c1._0x131abc,_0x5313c1._0x33d945,_0x5313c1._0xf78647,_0x5313c1._0x55ec00)][_0x59cc80(0x2a9,0x2a4,_0x5313c1._0x30c620,_0x5313c1._0x2d26f9)](_0x344289=>{function _0x1d404c(_0x52bbb2,_0xe2409c,_0x41dd55,_0x99f47d){return _0x5c1c1d(_0x99f47d,_0x41dd55- -0x4d4,_0x41dd55-0xe4,_0x99f47d-_0x5807f1._0x3b11cc);}function _0x30e89f(_0x1ed339,_0x16009f,_0x3bd629,_0x4fca77){return _0x59cc80(_0x1ed339-_0x5ac3dc._0x1fafe6,_0x3bd629-_0x5ac3dc._0x59d714,_0x1ed339,_0x4fca77-0x50);}return{'type':_0x1d404c(-0x295,-0x2a9,-0x294,-0x287),'name':_0x344289[_0x1d404c(-0x2ae,-_0x4f1b5f._0x37e4c0,-0x2ac,-0x29b)],'description':_0x344289['description'],'parameters':_0x344289[_0x30e89f(0x41d,0x40a,0x41b,_0x4f1b5f._0x4fc20d)]};})};}export{toOpenAiResponsesRequest};function _0x1bb4(){const _0xa64960=['DhjPBq','Dg9VBf9Yzxn1Bhq','CM9Szq','DxnLCI12AxnPyMXL','Dg9VBhm','DhLWzq','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','C3rYAw5N','ChvZAa','mtm0ndq2v0zos0HO','C3bSAwnL','yxnZAxn0yw50','mtKYzfnovvfX','BMfTzq','zMLSDgvY','mJC3ndaWneDgEenVyG','AxnbCNjHEq','Bw9KzwW','C3LZDgvT','BwvZC2fNzxm','CMvHC29UAw5N','zwzMB3j0','mtm4mJiXn1LZsLHzEa','ndqXoujnshnLuG','BgvUz3rO','mZe0ofnVue9HDa','nJiZnte4thbJAfns','A2v5CW','BwvZC2fNzq','BwfW','y29UDgvUDa','C3rYAw5NAwz5','C3vTBwfYEq','Dgv4Da','Dg9VBf91C2vFAwq','Aw5WDxq','Aw5WDxrFC2nOzw1H','zNvUy3rPB24','mtaXnxPzr2DSqq','mtu4mZbOzKviwwS','yxv0BW','Bwf4vg9Rzw5Z','ndu4ndnXy1DhCK4'];_0x1bb4=function(){return _0xa64960;};return _0x1bb4();}
|
|
1
|
+
(function(_0x3219ad,_0x27bd41){const _0x45cff2={_0x482ad7:0x42f,_0x47767c:0x459,_0x135656:0x454,_0x37148f:0x44b,_0x10e542:0x438,_0x221668:0x465,_0x1de868:0x16f,_0x55cea4:0x169,_0x2a6f5f:0x447,_0x484125:0x43d,_0x3559b8:0x185,_0x4d5280:0x17b,_0x102f45:0x460,_0x4cf329:0x473,_0x36e831:0x44b,_0x4333c0:0x170,_0x13f6b2:0x177,_0xd4df3c:0x190,_0x3224d8:0x17c,_0x35cd79:0x180,_0x471fb1:0x17e},_0x5535c7={_0x54b2cc:0x2a4},_0x410133={_0x4fe4a1:0x334};function _0x5cff50(_0x114c4a,_0x236d70,_0x23f49a,_0x1c5080){return _0x2d34(_0x236d70- -_0x410133._0x4fe4a1,_0x114c4a);}function _0x2257ad(_0x28ba63,_0x16c75d,_0x46daf6,_0x19c969){return _0x2d34(_0x28ba63-_0x5535c7._0x54b2cc,_0x16c75d);}const _0x457678=_0x3219ad();while(!![]){try{const _0x2bf81b=-parseInt(_0x2257ad(0x446,_0x45cff2._0x482ad7,0x439,_0x45cff2._0x47767c))/0x1*(-parseInt(_0x2257ad(0x45f,0x45c,0x461,0x45e))/0x2)+parseInt(_0x2257ad(_0x45cff2._0x135656,_0x45cff2._0x37148f,0x44f,0x46b))/0x3*(-parseInt(_0x2257ad(0x450,_0x45cff2._0x10e542,0x460,_0x45cff2._0x221668))/0x4)+-parseInt(_0x5cff50(-_0x45cff2._0x1de868,-_0x45cff2._0x55cea4,-0x159,-0x15e))/0x5*(-parseInt(_0x2257ad(_0x45cff2._0x2a6f5f,_0x45cff2._0x484125,0x435,0x449))/0x6)+-parseInt(_0x5cff50(-0x18b,-_0x45cff2._0x3559b8,-0x17a,-_0x45cff2._0x4d5280))/0x7+-parseInt(_0x2257ad(_0x45cff2._0x102f45,0x45a,0x451,_0x45cff2._0x4cf329))/0x8+parseInt(_0x2257ad(_0x45cff2._0x36e831,0x436,0x461,0x461))/0x9*(parseInt(_0x5cff50(-_0x45cff2._0x4333c0,-_0x45cff2._0x13f6b2,-0x17b,-_0x45cff2._0xd4df3c))/0xa)+parseInt(_0x5cff50(-0x186,-0x17d,-0x190,-_0x45cff2._0x3224d8))/0xb*(parseInt(_0x5cff50(-0x190,-_0x45cff2._0x35cd79,-_0x45cff2._0x471fb1,-0x168))/0xc);if(_0x2bf81b===_0x27bd41)break;else _0x457678['push'](_0x457678['shift']());}catch(_0xeede9a){_0x457678['push'](_0x457678['shift']());}}}(_0x4845,0x33964));import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';import{normalizeContent}from'./chunk-C6OLKGP6.js';function systemToInstructions(_0x6ea58a){const _0x40b7bd={_0x5c4052:0x50f,_0x35a9f1:0x4e1,_0x2db8db:0x4f0};function _0x59ef81(_0x33f260,_0x4b31a3,_0x14e968,_0x24c9e1){return _0x2d34(_0x33f260-0x34a,_0x24c9e1);}function _0x3877fb(_0x145ceb,_0x5cacfa,_0x1f670e,_0x41a4dc){return _0x2d34(_0x145ceb-0x1c9,_0x41a4dc);}return normalizeContent(_0x6ea58a)['filter'](_0x3e53a5=>_0x3e53a5[_0x59ef81(0x50c,0x4f6,0x501,0x511)]===_0x3877fb(0x393,0x393,0x3aa,0x389))[_0x59ef81(0x4f8,_0x40b7bd._0x5c4052,0x4f5,_0x40b7bd._0x35a9f1)](_0x16a64f=>_0x16a64f['text'])[_0x59ef81(0x503,_0x40b7bd._0x2db8db,0x50b,0x50a)]('\x0a\x0a');}function pushTextMessage(_0x1c1dfd,_0x5843d7,_0x23df1e){const _0x538990={_0x47aab2:0xca,_0x540daa:0xe4,_0x6e1bec:0xd3,_0x2f418c:0x380,_0x3aa02b:0x378},_0x17e365={_0x5cd623:0x48e,_0x3d2ca6:0x48f},_0x1302da={_0x224fb3:0x12f,_0x3dab8d:0x3a8},_0x11bfe0={_0x1b4769:0x1b2},_0x3f00d1={_0x4fd33b:0xd3};function _0x42fc99(_0x18200b,_0xd276ef,_0x2b0648,_0x2855f6){return _0x2d34(_0x2855f6- -_0x3f00d1._0x4fd33b,_0x2b0648);}if(_0x23df1e[_0x42fc99(_0x538990._0x47aab2,0xc7,_0x538990._0x540daa,_0x538990._0x6e1bec)]===0x0)return;function _0x70845e(_0x40fab0,_0x29c751,_0x343a78,_0x563cea){return _0x2d34(_0x343a78-_0x11bfe0._0x1b4769,_0x40fab0);}const _0x4e64ea={'type':_0x70845e(0x36b,0x342,0x353,0x343),'role':_0x5843d7,'content':_0x23df1e['map'](_0x52a532=>{function _0x277d34(_0x210509,_0x10645f,_0x3befb5,_0x41a76f){return _0x42fc99(_0x210509-0x34,_0x10645f-_0x1302da._0x224fb3,_0x3befb5,_0x10645f-_0x1302da._0x3dab8d);}return{'type':_0x277d34(_0x17e365._0x5cd623,0x48d,_0x17e365._0x3d2ca6,0x4a0),'text':_0x52a532['text']};})};_0x1c1dfd[_0x70845e(0x36c,_0x538990._0x2f418c,0x36c,_0x538990._0x3aa02b)](_0x4e64ea);}function hasSerializableToolUse(_0x2d62b6){const _0x2a530f={_0x4c0c6a:0x333,_0x237218:0x335,_0x293292:0x345,_0x54bc04:0x344,_0x1e9ac1:0x1fc},_0x2d57a2={_0x3d280c:0x19a};function _0x25dfb9(_0x24b78f,_0x50d494,_0x3e33de,_0x340974){return _0x2d34(_0x340974-0x56,_0x50d494);}function _0xfeae4a(_0x1cc975,_0x1bc50c,_0x13905b,_0x3a8fa1){return _0x2d34(_0x1cc975-_0x2d57a2._0x3d280c,_0x13905b);}return _0x2d62b6['id'][_0xfeae4a(0x345,0x332,_0x2a530f._0x4c0c6a,_0x2a530f._0x237218)]()['length']>0x0&&_0x2d62b6['name'][_0xfeae4a(_0x2a530f._0x293292,_0x2a530f._0x54bc04,0x359,0x358)]()[_0x25dfb9(0x20a,0x1ee,0x1ec,_0x2a530f._0x1e9ac1)]>0x0;}function hasSerializableToolResult(_0x309d76){const _0x54a414={_0x2f93d1:0x20d,_0x3e9722:0x1fd},_0xb3b307={_0x1478df:0x4c};function _0x3d4a3a(_0x23ecdd,_0x3beda2,_0x2f5a8a,_0x14ad16){return _0x2d34(_0x14ad16-_0xb3b307._0x1478df,_0x3beda2);}function _0x3a6016(_0x3c8480,_0x3cf183,_0x2ae614,_0x54f2a9){return _0x2d34(_0x3c8480- -0x12d,_0x3cf183);}return _0x309d76[_0x3d4a3a(0x229,0x20b,_0x54a414._0x2f93d1,0x218)]['trim']()[_0x3d4a3a(_0x54a414._0x3e9722,0x1e2,0x209,0x1f2)]>0x0;}function isResponseInputObject(_0x2a4eaa){const _0xa02b3b={_0x31ab17:0x3ec,_0x19a3b9:0x410,_0x39f618:0x3f4,_0xfa12f9:0x3f3,_0x31146a:0x40d,_0xc8c32b:0xf,_0xde7f3a:0x17,_0x533f6b:0x3f4,_0x47c440:0x3f3},_0x86124c={_0x645dd3:0x22f};function _0xda3012(_0x2bfd36,_0x43c2d7,_0x29a6e9,_0x5b84db){return _0x2d34(_0x43c2d7-_0x86124c._0x645dd3,_0x5b84db);}if(typeof _0x2a4eaa!==_0xda3012(0x3f1,0x3fc,_0xa02b3b._0x31ab17,_0xa02b3b._0x19a3b9)||_0x2a4eaa===null||Array[_0xda3012(_0xa02b3b._0x39f618,0x3f8,_0xa02b3b._0xfa12f9,_0xa02b3b._0x31146a)](_0x2a4eaa))return![];const _0x2fabc5=_0x2a4eaa;function _0x544150(_0x5a88ff,_0xce2ac0,_0x15d525,_0x1f5293){return _0x2d34(_0x5a88ff- -0x1c3,_0xce2ac0);}return typeof _0x2fabc5[_0x544150(-0x1,-_0xa02b3b._0xc8c32b,-_0xa02b3b._0xde7f3a,-0x1)]===_0xda3012(_0xa02b3b._0x533f6b,0x3f7,_0xa02b3b._0x47c440,0x3e0);}function _0x4845(){const _0x1af9b9=['mZC4oxjcCuDMrG','yxv0BW','zwzMB3j0','ChjVDMLKzxjtDgf0zq','DhjPBq','mty1mdHqr25jyK4','CM9Szq','BwfW','mtuXmJK1mMfWAKPysW','mty1uvLNDuzq','BMfTzq','C3rYAw5NAwz5','Dg9VBf9Yzxn1Bhq','mtjQC0fOwfC','DxnLCI12AxnPyMXL','CMvHC29UAw5N','ntq2mde4we54uKfo','Aw5WDxrFDgv4Da','AM9PBG','ChvZAa','mJmWmtH5y09yDeu','mZyZnJCYqMLlwwn0','ntiXmePPDKDtza','y29UDgvUDa','zNvUy3rPB25Fy2fSBa','C3LZDgvT','DMLZAwjPBgL0Eq','DhLWzq','C3vTBwfYEq','Aw5WDxrFC2nOzw1H','zNvUy3rPB24','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','Aw5WDxq','C3rYAw5N','AxnbCNjHEq','Dgv4Da','mtiZnZbZqKPtA0y','Dg9VBf91C2vFAwq','B2jQzwn0','C3bSAwnL','Bwf4vg9Rzw5Z','yxnZAxn0yw50','Dg9VBf91C2u','BwvZC2fNzq','mtf4v1zKBxu','nZm4ywLns25b','Bw9KzwW','A2v5CW','BgvUz3rO'];_0x4845=function(){return _0x1af9b9;};return _0x4845();}function resolveReasoningVisibility(_0x3d5ac3){const _0x18be4e={_0x586454:0x12b,_0xcf38a4:0x12e,_0x375f60:0x113,_0x28c2fe:0x11c,_0x301695:0x126,_0x2038d3:0x12b,_0x33c0e4:0x11a,_0x147da5:0x12d,_0x4a0fe5:0x132},_0x42af94={_0xa51191:0x8a};function _0xd0dbaa(_0x35b5a2,_0x20c7f7,_0x184a9f,_0x5426a7){return _0x2d34(_0x184a9f- -0x2dd,_0x5426a7);}function _0x56327b(_0x19192c,_0x295514,_0xc094a5,_0x50bf8b){return _0x2d34(_0x19192c- -_0x42af94._0xa51191,_0x50bf8b);}return _0x3d5ac3[_0xd0dbaa(-0x121,-0x114,-0x127,-_0x18be4e._0x586454)]?.[_0xd0dbaa(-_0x18be4e._0xcf38a4,-_0x18be4e._0x375f60,-_0x18be4e._0x28c2fe,-_0x18be4e._0x301695)]??_0x56327b(_0x18be4e._0x2038d3,_0x18be4e._0x33c0e4,_0x18be4e._0x147da5,_0x18be4e._0x4a0fe5);}function createOpenAiResponsesReasoning(_0x1e5811){const _0x530ec3={_0x459c30:0x133,_0x5a9408:0x137,_0x5e1b55:0x279,_0x57b2a9:0x268,_0x543eb4:0x13d,_0x29e362:0x11b,_0x44ea14:0x12b,_0x49ed96:0x145,_0x54efbb:0x145,_0x365fe6:0x143,_0x610677:0x14e,_0x4b5092:0x148,_0x1a3098:0x129,_0x40d327:0x127,_0x5a057e:0x120,_0x16d865:0x128},_0x463d1e={_0x4f40b6:0xd1},_0x5e8582=resolveOpenAiReasoningConfig(_0x1e5811['reasoning']);function _0x1e22d8(_0x5d177d,_0xe9f6d6,_0x95ef00,_0x41e8e7){return _0x2d34(_0x95ef00- -0x7e,_0x5d177d);}if(!_0x5e8582)return{};const _0x39af02={},_0x12e2e4=_0x5e8582['summary']??(resolveReasoningVisibility(_0x1e5811)===_0x1e22d8(_0x530ec3._0x459c30,0x132,_0x530ec3._0x5a9408,0x14f)?_0x342bc1(0x267,_0x530ec3._0x5e1b55,0x28d,_0x530ec3._0x57b2a9):void 0x0);_0x5e8582[_0x1e22d8(_0x530ec3._0x543eb4,0x138,0x12b,0x12d)]&&(_0x39af02['effort']=_0x5e8582[_0x1e22d8(_0x530ec3._0x29e362,0x130,_0x530ec3._0x44ea14,0x116)]);function _0x342bc1(_0x39c42f,_0x1d44a3,_0x591067,_0x26ebd1){return _0x2d34(_0x1d44a3-_0x463d1e._0x4f40b6,_0x591067);}return _0x12e2e4&&(_0x39af02[_0x1e22d8(0x133,_0x530ec3._0x49ed96,_0x530ec3._0x54efbb,0x143)]=_0x12e2e4),{..._0x5e8582['includeEncryptedContent']===![]?{}:{'include':[_0x1e22d8(_0x530ec3._0x365fe6,_0x530ec3._0x610677,_0x530ec3._0x4b5092,0x161)]},...Object[_0x1e22d8(_0x530ec3._0x543eb4,_0x530ec3._0x1a3098,_0x530ec3._0x40d327,_0x530ec3._0x5a057e)](_0x39af02)[_0x1e22d8(_0x530ec3._0x459c30,0x125,_0x530ec3._0x16d865,0x118)]>0x0?{'reasoning':_0x39af02}:{}};}function pushAssistantProviderState(_0x33cfdd,_0x1a3822){const _0x186a22={_0x17adcc:0x4ca,_0x394adf:0x4b5,_0x24643d:0x4d3,_0x38a4bc:0x4d0,_0x343006:0x4c7,_0x5eaf64:0x4b0,_0x5d22c8:0x1f2,_0x455825:0x1e3,_0x1d6f9c:0x1d5};function _0x44e922(_0x11a077,_0x198ba0,_0x27b2c6,_0xbf1abc){return _0x2d34(_0x198ba0- -0x38f,_0xbf1abc);}if(_0x1a3822[_0x15681c(_0x186a22._0x17adcc,0x4c5,_0x186a22._0x394adf,0x4c4)]!==_0x15681c(0x4bc,_0x186a22._0x24643d,0x4bc,_0x186a22._0x38a4bc))return![];const _0x2822ef=_0x1a3822[_0x15681c(0x4c7,_0x186a22._0x343006,0x4da,_0x186a22._0x5eaf64)]?.['openaiResponsesOutput']??[];if(_0x2822ef[_0x44e922(-_0x186a22._0x5d22c8,-0x1e9,-0x1fb,-_0x186a22._0x455825)]===0x0)return![];function _0x15681c(_0x461bde,_0x5f0baf,_0x2e1c3b,_0x287893){return _0x2d34(_0x461bde-0x31d,_0x2e1c3b);}for(const _0x5dd8fd of _0x2822ef){isResponseInputObject(_0x5dd8fd)&&_0x33cfdd[_0x44e922(-0x1c2,-_0x186a22._0x1d6f9c,-0x1ce,-0x1ea)](structuredClone(_0x5dd8fd));}return!![];}function _0x2d34(_0x1269d2,_0x50a3da){_0x1269d2=_0x1269d2-0x19f;const _0x484586=_0x4845();let _0x2d34c6=_0x484586[_0x1269d2];if(_0x2d34['SUKwmg']===undefined){var _0x5f0d37=function(_0x273ab1){const _0x57bb6e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x6ea58a='',_0x3e53a5='';for(let _0x16a64f=0x0,_0x1c1dfd,_0x5843d7,_0x23df1e=0x0;_0x5843d7=_0x273ab1['charAt'](_0x23df1e++);~_0x5843d7&&(_0x1c1dfd=_0x16a64f%0x4?_0x1c1dfd*0x40+_0x5843d7:_0x5843d7,_0x16a64f++%0x4)?_0x6ea58a+=String['fromCharCode'](0xff&_0x1c1dfd>>(-0x2*_0x16a64f&0x6)):0x0){_0x5843d7=_0x57bb6e['indexOf'](_0x5843d7);}for(let _0x4e64ea=0x0,_0x52a532=_0x6ea58a['length'];_0x4e64ea<_0x52a532;_0x4e64ea++){_0x3e53a5+='%'+('00'+_0x6ea58a['charCodeAt'](_0x4e64ea)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e53a5);};_0x2d34['XkgrbL']=_0x5f0d37,_0x2d34['QDapIb']={},_0x2d34['SUKwmg']=!![];}const _0x5eafcb=_0x484586[0x0],_0x4ee57e=_0x1269d2+_0x5eafcb,_0xf99ee6=_0x2d34['QDapIb'][_0x4ee57e];return!_0xf99ee6?(_0x2d34c6=_0x2d34['XkgrbL'](_0x2d34c6),_0x2d34['QDapIb'][_0x4ee57e]=_0x2d34c6):_0x2d34c6=_0xf99ee6,_0x2d34c6;}function toOpenAiResponsesRequest(_0x560357){const _0x3e9c90={_0x394412:0x3,_0x210c3a:0xe,_0x84f861:0x6,_0x63682c:0x1d9,_0x55c01b:0x1f4,_0x1733cf:0xf,_0x17de88:0xd,_0x1420e9:0xa,_0x34b65d:0x8,_0x462e24:0x17,_0x6bbf3a:0x9,_0x2ea58a:0x12,_0xefffbf:0x21,_0x8c5c16:0x35,_0x159055:0x1b,_0x35416b:0x7,_0x5d4c55:0x5,_0xd96699:0x6,_0x3df2ba:0x209,_0x1df946:0x204,_0xa4983f:0x1ff,_0x4f3bf2:0x1f0,_0xfd052d:0x1fb,_0x4deabe:0x10,_0x57c708:0x2,_0x24e9eb:0x11,_0x555b47:0x20,_0x604331:0x29,_0x384f6c:0x2a,_0x145135:0x1f1,_0x5ab4b4:0x1f7,_0x9df5e1:0xe,_0x23553d:0x1d,_0x5c112a:0x200,_0x1cc882:0x210,_0xf815c:0x1fa,_0x4eaed1:0x1e6,_0x113691:0x8,_0x22eaee:0x0,_0x236ee0:0x12,_0x41e079:0x8,_0x2e32ac:0x14,_0x46a1e9:0x209,_0x1bdfcd:0x21e,_0x36b408:0x2b,_0x28f4e9:0x1c,_0x1e473a:0x24,_0x149dac:0x20e,_0x1bb6dc:0x1f6,_0x4a28d6:0x1f2,_0x18e1d0:0x12,_0x56e935:0x5,_0x3fe6ad:0x208},_0x3df7fd={_0xbd9ba9:0x155,_0x55ee7e:0x163,_0x4786f4:0x11a,_0x5c744c:0x124,_0x5d2afa:0x166,_0x48a202:0x15d,_0xf18418:0x170},_0x4c32f2={_0x1ef22e:0x358},_0x570133={_0x80a9d4:0x3b6},_0x282e70={_0x15c788:0x1c4},_0x3c853b=[];function _0x101f98(_0x83ef12,_0x327d87,_0x3737e2,_0x397f94){return _0x2d34(_0x3737e2- -_0x282e70._0x15c788,_0x397f94);}function _0x203712(_0x557c24,_0x36e4ca,_0x5c1b1e,_0x33a341){return _0x2d34(_0x36e4ca- -_0x570133._0x80a9d4,_0x33a341);}for(const _0x8be624 of _0x560357['messages']){if(pushAssistantProviderState(_0x3c853b,_0x8be624))continue;const _0x29b72d=[];for(const _0x1427d6 of normalizeContent(_0x8be624[_0x101f98(_0x3e9c90._0x394412,-_0x3e9c90._0x210c3a,-_0x3e9c90._0x84f861,-0x14)])){if(_0x1427d6['type']===_0x203712(-_0x3e9c90._0x63682c,-0x1ec,-_0x3e9c90._0x55c01b,-0x1f8)){_0x29b72d[_0x101f98(-_0x3e9c90._0x1733cf,-_0x3e9c90._0x17de88,-_0x3e9c90._0x1420e9,-_0x3e9c90._0x34b65d)](_0x1427d6);continue;}pushTextMessage(_0x3c853b,_0x8be624[_0x101f98(-_0x3e9c90._0x462e24,0x0,-_0x3e9c90._0x462e24,-_0x3e9c90._0x6bbf3a)],_0x29b72d[_0x101f98(0x8,_0x3e9c90._0x2ea58a,_0x3e9c90._0x1420e9,0x1a)](0x0));if(_0x1427d6['type']===_0x101f98(-_0x3e9c90._0xefffbf,-_0x3e9c90._0x8c5c16,-0x24,-0x10)){if(!hasSerializableToolUse(_0x1427d6))continue;_0x3c853b[_0x101f98(-_0x3e9c90._0x159055,-0xf,-_0x3e9c90._0x1420e9,0x4)]({'type':_0x101f98(-_0x3e9c90._0x35416b,0x3,-_0x3e9c90._0x5d4c55,-0xa),'call_id':_0x1427d6['id'],'name':_0x1427d6[_0x101f98(-0x1,_0x3e9c90._0xd96699,-0x13,-0x1e)],'arguments':JSON[_0x203712(-_0x3e9c90._0x3df2ba,-_0x3e9c90._0x1df946,-_0x3e9c90._0xa4983f,-0x1ff)](_0x1427d6[_0x203712(-_0x3e9c90._0x4f3bf2,-0x1ef,-_0x3e9c90._0xfd052d,-0x1f1)]??{})});continue;}if(_0x1427d6[_0x101f98(0x9,_0x3e9c90._0x4deabe,-_0x3e9c90._0x57c708,-_0x3e9c90._0x24e9eb)]===_0x101f98(-_0x3e9c90._0x555b47,-_0x3e9c90._0x604331,-0x11,-_0x3e9c90._0x384f6c)){if(!hasSerializableToolResult(_0x1427d6))continue;_0x3c853b[_0x203712(-_0x3e9c90._0x145135,-0x1fc,-_0x3e9c90._0x5ab4b4,-0x1f3)]({'type':'function_call_output','call_id':_0x1427d6[_0x101f98(-_0x3e9c90._0x9df5e1,_0x3e9c90._0x23553d,0x8,0x6)],'output':typeof _0x1427d6[_0x203712(-_0x3e9c90._0x5c112a,-0x1f8,-_0x3e9c90._0x1cc882,-0x202)]===_0x203712(-_0x3e9c90._0xf815c,-0x1ee,-0x1f2,-_0x3e9c90._0x4eaed1)?_0x1427d6[_0x101f98(_0x3e9c90._0x113691,-0x1f,-0x6,-0x1)]:JSON[_0x101f98(_0x3e9c90._0x22eaee,-0xd,-_0x3e9c90._0x236ee0,-_0x3e9c90._0x41e079)](_0x1427d6[_0x101f98(-_0x3e9c90._0x2e32ac,-0x4,-0x6,0x7)])});}}pushTextMessage(_0x3c853b,_0x8be624[_0x203712(-0x1f3,-_0x3e9c90._0x46a1e9,-_0x3e9c90._0x1bdfcd,-0x1f6)],_0x29b72d);}return{...createOpenAiResponsesReasoning(_0x560357),'model':_0x560357[_0x101f98(-_0x3e9c90._0x36b408,-_0x3e9c90._0x28f4e9,-0x20,-_0x3e9c90._0x1e473a)],'instructions':systemToInstructions(_0x560357[_0x203712(-_0x3e9c90._0x149dac,-_0x3e9c90._0x1bb6dc,-_0x3e9c90._0x4a28d6,-_0x3e9c90._0x1bb6dc)]),'input':_0x3c853b,'max_output_tokens':_0x560357[_0x101f98(_0x3e9c90._0x18e1d0,_0x3e9c90._0x56e935,0xb,0x8)],'tools':_0x560357['tools'][_0x203712(-0x1f3,-_0x3e9c90._0x3fe6ad,-0x215,-0x206)](_0x547b6d=>{const _0x3483fb={_0x230879:0x169,_0x3a4d0b:0x141,_0x5b3577:0x12d};function _0x436788(_0x293170,_0x113dc5,_0x166875,_0x21ac79){return _0x101f98(_0x293170-_0x3483fb._0x230879,_0x113dc5-_0x3483fb._0x3a4d0b,_0x113dc5-_0x3483fb._0x5b3577,_0x293170);}function _0x500623(_0x446c19,_0x25414f,_0x4329a0,_0x1a73f1){return _0x203712(_0x446c19-0x53,_0x446c19-_0x4c32f2._0x1ef22e,_0x4329a0-0x78,_0x25414f);}return{'type':_0x500623(0x167,0x17a,_0x3df7fd._0xbd9ba9,_0x3df7fd._0x55ee7e),'name':_0x547b6d[_0x436788(0x12e,_0x3df7fd._0x4786f4,_0x3df7fd._0x5c744c,0x107)],'description':_0x547b6d['description'],'parameters':_0x547b6d[_0x500623(_0x3df7fd._0x5d2afa,_0x3df7fd._0x48a202,0x15f,_0x3df7fd._0xf18418)]};})};}export{toOpenAiResponsesRequest};
|