@nuvin/agent-core 0.0.0-rc.1 → 0.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +1,321 @@
1
- import { e as TextBlock, C as ContentInput, f as ContentBlock, S as SystemInput, g as MessageInput, M as Message, h as CompileRequestInput, i as ModelRequest, j as ChatRequest, k as ModelResponse, l as ChatResponse, m as ToolUseBlock, n as ToolResultBlock, o as ToolResult } from '../types-D11KxtW1.js';
2
- export { t as toOpenAiResponsesRequest } from '../provider-adapters-F0kn75gb.js';
1
+ // Generated by dts-bundle-generator v9.5.1
3
2
 
4
- declare function createTextBlock(text: string): TextBlock;
5
- declare function normalizeTextBlock(block: TextBlock): TextBlock;
6
- declare function normalizeContent(content: ContentInput): ContentBlock[];
7
- declare function normalizeSystem(system?: SystemInput): TextBlock[];
8
- declare function normalizeMessage(message: MessageInput): Message;
9
- declare function compileRequest(input: CompileRequestInput): ModelRequest;
10
- declare function toChatRequest(request: ModelRequest): ChatRequest;
11
- declare function toModelRequest(request: ChatRequest): ModelRequest;
12
- declare function toProviderModelRequest(request: ChatRequest): Omit<ModelRequest, "metadata" | "reasoning">;
13
- declare function toChatResponse(response: ModelResponse): ChatResponse;
14
- declare function toModelResponse(response: ChatResponse): ModelResponse;
15
- declare function responseToAssistantMessage(response: ModelResponse | ChatResponse): Message;
16
- declare function createReasoningMessage(message: Message | undefined): Message | undefined;
17
- declare function createAssistantTextMessage(message: Message | undefined): Message | undefined;
18
- declare function createToolUseMessage(message: Message | undefined): Message | undefined;
19
- declare function getTextFromMessage(message: Message | undefined): string;
20
- declare function getReasoningTextFromMessage(message: Message | undefined): string;
21
- declare function getToolUseBlocks(message: Message | undefined): ToolUseBlock[];
22
- declare function getToolResultBlocks(message: Message | undefined): ToolResultBlock[];
23
- declare function createToolResultUserMessage(toolResults: ToolResult[]): Message;
3
+ export type JsonPrimitive = boolean | number | string | null;
4
+ export interface JsonObject {
5
+ [key: string]: JsonValue;
6
+ }
7
+ export type JsonValue = JsonObject | JsonPrimitive | JsonValue[];
8
+ export interface JsonSchemaString {
9
+ type: "string";
10
+ }
11
+ export interface JsonSchemaNumber {
12
+ type: "number";
13
+ }
14
+ export interface JsonSchemaBoolean {
15
+ type: "boolean";
16
+ }
17
+ export interface JsonSchemaArray<TItem extends JsonSchema = JsonSchema> {
18
+ type: "array";
19
+ items: TItem;
20
+ }
21
+ export interface JsonSchemaObject<TProperties extends Record<string, JsonSchema> = Record<string, JsonSchema>, TRequired extends readonly string[] | undefined = readonly string[] | undefined> {
22
+ type: "object";
23
+ properties: TProperties;
24
+ required?: TRequired;
25
+ }
26
+ export type JsonSchema = JsonSchemaArray | JsonSchemaBoolean | JsonSchemaNumber | JsonSchemaObject | JsonSchemaString;
27
+ export interface TextBlock {
28
+ type: "text";
29
+ text: string;
30
+ }
31
+ export type ImageMediaType = "image/gif" | "image/jpeg" | "image/png" | "image/webp";
32
+ export interface ImageBlock {
33
+ type: "image";
34
+ source: {
35
+ type: "base64";
36
+ media_type: ImageMediaType;
37
+ data: string;
38
+ };
39
+ }
40
+ export type ToolResultContentBlock = ImageBlock | TextBlock;
41
+ export type ToolResultContent = string | ToolResultContentBlock[];
42
+ export interface AnthropicThinkingBlock {
43
+ type: "anthropic_thinking";
44
+ thinking: string;
45
+ signature: string;
46
+ }
47
+ export interface AnthropicRedactedThinkingBlock {
48
+ type: "anthropic_redacted_thinking";
49
+ data: string;
50
+ }
51
+ export interface OpenAiReasoningSummaryText {
52
+ type: "summary_text";
53
+ text: string;
54
+ }
55
+ export interface OpenAiReasoningBlock {
56
+ type: "openai_reasoning";
57
+ encryptedContent?: string;
58
+ id?: string;
59
+ summary: OpenAiReasoningSummaryText[];
60
+ text?: string;
61
+ }
62
+ export interface ToolUseBlock {
63
+ type: "tool_use";
64
+ id: string;
65
+ name: string;
66
+ input: JsonValue;
67
+ }
68
+ export interface ToolResultBlock {
69
+ type: "tool_result";
70
+ tool_use_id: string;
71
+ content: ToolResultContent;
72
+ is_error: boolean;
73
+ }
74
+ export interface AnthropicThinkingWireBlock {
75
+ type: "thinking";
76
+ thinking: string;
77
+ signature: string;
78
+ }
79
+ export interface AnthropicRedactedThinkingWireBlock {
80
+ type: "redacted_thinking";
81
+ data: string;
82
+ }
83
+ export type AnthropicAssistantContentBlock = AnthropicRedactedThinkingWireBlock | AnthropicThinkingWireBlock | TextBlock | ToolUseBlock;
84
+ export type ReasoningVisibility = "continuity-only" | "user-visible";
85
+ export type AutoReasoningEffort = "low" | "medium" | "high";
86
+ export interface AutoReasoningConfig {
87
+ effort: AutoReasoningEffort;
88
+ }
89
+ export type AnthropicThinkingDisplay = "omitted" | "summarized";
90
+ export type AnthropicThinkingEffort = "low" | "medium" | "high";
91
+ export interface AnthropicEnabledThinkingConfig {
92
+ type: "enabled";
93
+ budgetTokens: number;
94
+ display?: AnthropicThinkingDisplay;
95
+ interleaved?: boolean;
96
+ }
97
+ export interface AnthropicAdaptiveThinkingConfig {
98
+ type: "adaptive";
99
+ display?: AnthropicThinkingDisplay;
100
+ effort?: AnthropicThinkingEffort;
101
+ interleaved?: boolean;
102
+ }
103
+ export interface AnthropicDisabledThinkingConfig {
104
+ type: "disabled";
105
+ }
106
+ export type AnthropicThinkingConfig = AnthropicAdaptiveThinkingConfig | AnthropicDisabledThinkingConfig | AnthropicEnabledThinkingConfig;
107
+ export type OpenAiReasoningEffort = "high" | "low" | "medium" | "minimal" | "none" | "xhigh";
108
+ export type OpenAiReasoningSummary = "auto" | "concise" | "detailed";
109
+ export interface OpenAiReasoningConfig {
110
+ effort?: OpenAiReasoningEffort;
111
+ includeEncryptedContent?: boolean;
112
+ summary?: OpenAiReasoningSummary;
113
+ }
114
+ export interface ReasoningConfig {
115
+ auto?: AutoReasoningConfig;
116
+ anthropic?: AnthropicThinkingConfig;
117
+ openai?: OpenAiReasoningConfig;
118
+ visibility?: ReasoningVisibility;
119
+ }
120
+ export interface MessageProviderState {
121
+ anthropicAssistantContent?: AnthropicAssistantContentBlock[];
122
+ openaiResponsesOutput?: OpenAiResponsesOutputItem[];
123
+ openaiResponsesResponseId?: string;
124
+ }
125
+ export type AssistantContentBlock = AnthropicRedactedThinkingBlock | AnthropicThinkingBlock | OpenAiReasoningBlock | TextBlock | ToolUseBlock;
126
+ export type ContentBlock = AssistantContentBlock | ToolResultBlock;
127
+ export type ContentInput = ContentBlock[] | string | null | undefined;
128
+ export type MessageRole = "assistant" | "user";
129
+ export type SystemInput = TextBlock[] | string | null | undefined;
130
+ export interface Message {
131
+ id?: string;
132
+ role: MessageRole;
133
+ content: ContentBlock[];
134
+ providerState?: MessageProviderState;
135
+ }
136
+ export interface MessageInput {
137
+ id?: string;
138
+ role: MessageRole;
139
+ content?: ContentInput;
140
+ providerState?: MessageProviderState;
141
+ }
142
+ export interface ToolSchema {
143
+ name: string;
144
+ description: string;
145
+ input_schema: JsonSchemaObject;
146
+ }
147
+ export interface Usage {
148
+ input_tokens: number;
149
+ output_tokens: number;
150
+ reasoning_tokens?: number;
151
+ }
152
+ export interface ModelRequest {
153
+ model: string;
154
+ max_tokens: number;
155
+ reasoning?: ReasoningConfig;
156
+ system: TextBlock[];
157
+ messages: Message[];
158
+ tools: ToolSchema[];
159
+ metadata: {
160
+ session_id: string;
161
+ turn_id: string;
162
+ };
163
+ }
164
+ export interface ModelResponse {
165
+ id: string;
166
+ type: "message";
167
+ role: "assistant";
168
+ content: AssistantContentBlock[];
169
+ stop_reason: "end_turn" | "tool_use";
170
+ stop_sequence: null | string;
171
+ usage: Usage;
172
+ providerState?: MessageProviderState;
173
+ }
174
+ export interface ChatRequest {
175
+ model: string;
176
+ maxTokens: number;
177
+ reasoning?: ReasoningConfig;
178
+ system: TextBlock[];
179
+ messages: Message[];
180
+ tools: ToolSchema[];
181
+ metadata: {
182
+ sessionId: string;
183
+ turnId: string;
184
+ };
185
+ }
186
+ export interface ChatResponse {
187
+ id: string;
188
+ content: AssistantContentBlock[];
189
+ stopReason: "end_turn" | "tool_use";
190
+ usage: {
191
+ inputTokens: number;
192
+ outputTokens: number;
193
+ reasoningTokens?: number;
194
+ };
195
+ providerState?: MessageProviderState;
196
+ }
197
+ export interface ToolResultMeta {
198
+ truncated?: boolean;
199
+ originalBytes?: number;
200
+ transforms: string[];
201
+ }
202
+ export interface ToolResultChunk {
203
+ output: string;
204
+ structured: JsonObject;
205
+ content?: ToolResultContent;
206
+ }
207
+ export interface ToolResult {
208
+ callId: string;
209
+ toolName: string;
210
+ status: "error" | "ok";
211
+ output: string;
212
+ structured: JsonObject;
213
+ content?: ToolResultContent;
214
+ chunks: ToolResultChunk[];
215
+ meta: ToolResultMeta;
216
+ }
217
+ export interface CompileRequestInput {
218
+ sessionId: string;
219
+ turnId: string;
220
+ reasoning?: ReasoningConfig;
221
+ system?: SystemInput;
222
+ messages: MessageInput[];
223
+ tools?: ToolSchema[];
224
+ model?: string;
225
+ max_tokens?: number;
226
+ }
227
+ export interface OpenAiInputText {
228
+ type: "input_text";
229
+ text: string;
230
+ }
231
+ export interface OpenAiInputImage {
232
+ type: "input_image";
233
+ image_url: string;
234
+ detail?: string;
235
+ }
236
+ export interface OpenAiInputMessage {
237
+ type: "message";
238
+ role: MessageRole;
239
+ content: Array<OpenAiInputImage | OpenAiInputText>;
240
+ }
241
+ export interface OpenAiFunctionCall {
242
+ type: "function_call";
243
+ call_id: string;
244
+ name: string;
245
+ arguments: string;
246
+ }
247
+ export interface OpenAiFunctionCallOutput {
248
+ type: "function_call_output";
249
+ call_id: string;
250
+ output: string;
251
+ }
252
+ export interface OpenAiOutputTextPart {
253
+ type: "output_text";
254
+ text: string;
255
+ }
256
+ export interface OpenAiRefusalPart {
257
+ type: "refusal";
258
+ refusal: string;
259
+ }
260
+ export interface OpenAiOutputMessage {
261
+ type: "message";
262
+ content?: Array<OpenAiOutputTextPart | OpenAiRefusalPart>;
263
+ role?: string;
264
+ status?: string;
265
+ }
266
+ export interface OpenAiReasoningOutputItem {
267
+ type: "reasoning";
268
+ content?: Array<{
269
+ text?: string;
270
+ type?: string;
271
+ }>;
272
+ encrypted_content?: string;
273
+ id?: string;
274
+ status?: string;
275
+ summary?: OpenAiReasoningSummaryText[];
276
+ text?: string;
277
+ }
278
+ export type OpenAiResponsesOutputItem = JsonObject | OpenAiFunctionCall | OpenAiOutputMessage | OpenAiReasoningOutputItem;
279
+ export interface OpenAiResponsesReasoningParam {
280
+ effort?: OpenAiReasoningEffort;
281
+ generate_summary?: OpenAiReasoningSummary;
282
+ summary?: OpenAiReasoningSummary;
283
+ }
284
+ export interface OpenAiFunctionTool {
285
+ type: "function";
286
+ name: string;
287
+ description: string;
288
+ parameters: JsonSchemaObject;
289
+ }
290
+ export interface OpenAiResponsesRequest {
291
+ include?: string[];
292
+ model: string;
293
+ instructions: string;
294
+ input: Array<OpenAiFunctionCall | OpenAiFunctionCallOutput | OpenAiInputMessage | OpenAiResponsesOutputItem>;
295
+ max_output_tokens?: number;
296
+ reasoning?: OpenAiResponsesReasoningParam;
297
+ tools: OpenAiFunctionTool[];
298
+ }
299
+ export declare function createTextBlock(text: string): TextBlock;
300
+ export declare function normalizeTextBlock(block: TextBlock): TextBlock;
301
+ export declare function normalizeContent(content: ContentInput): ContentBlock[];
302
+ export declare function normalizeSystem(system?: SystemInput): TextBlock[];
303
+ export declare function normalizeMessage(message: MessageInput): Message;
304
+ export declare function compileRequest(input: CompileRequestInput): ModelRequest;
305
+ export declare function toChatRequest(request: ModelRequest): ChatRequest;
306
+ export declare function toModelRequest(request: ChatRequest): ModelRequest;
307
+ export declare function toProviderModelRequest(request: ChatRequest): Omit<ModelRequest, "metadata" | "reasoning">;
308
+ export declare function toChatResponse(response: ModelResponse): ChatResponse;
309
+ export declare function toModelResponse(response: ChatResponse): ModelResponse;
310
+ export declare function responseToAssistantMessage(response: ModelResponse | ChatResponse): Message;
311
+ export declare function createReasoningMessage(message: Message | undefined): Message | undefined;
312
+ export declare function createAssistantTextMessage(message: Message | undefined): Message | undefined;
313
+ export declare function createToolUseMessage(message: Message | undefined): Message | undefined;
314
+ export declare function getTextFromMessage(message: Message | undefined): string;
315
+ export declare function getReasoningTextFromMessage(message: Message | undefined): string;
316
+ export declare function getToolUseBlocks(message: Message | undefined): ToolUseBlock[];
317
+ export declare function getToolResultBlocks(message: Message | undefined): ToolResultBlock[];
318
+ export declare function createToolResultUserMessage(toolResults: ToolResult[]): Message;
319
+ export declare function toOpenAiResponsesRequest(request: ChatRequest): OpenAiResponsesRequest;
24
320
 
25
- export { compileRequest, createAssistantTextMessage, createReasoningMessage, createTextBlock, createToolResultUserMessage, createToolUseMessage, getReasoningTextFromMessage, getTextFromMessage, getToolResultBlocks, getToolUseBlocks, normalizeContent, normalizeMessage, normalizeSystem, normalizeTextBlock, responseToAssistantMessage, toChatRequest, toChatResponse, toModelRequest, toModelResponse, toProviderModelRequest };
321
+ export {};
@@ -1 +1 @@
1
- (function(_0x43283c,_0x4134cd){var _0x3f15fb={_0x15134b:0xee,_0x2fd125:0xf2,_0x59d5cd:0xea,_0x503f0c:0xea,_0x92f82c:0x42,_0x4594fe:0x43,_0x370390:0xf4,_0x3aeef5:0xfa,_0x9dc323:0xf8,_0x349307:0xfd,_0x5b5f0b:0xf5,_0x256838:0x3f,_0xbe41ca:0x43,_0x59daef:0x3e,_0x26c676:0x45,_0x31308f:0xfb,_0x5cb7db:0x3a,_0x153f2a:0x47,_0x577569:0x42,_0x38f3ce:0x41,_0x166c29:0xf1,_0x2d7e8a:0xf3},_0x1c7e4f=_0x43283c();function _0x43a027(_0x2fb67c,_0xd275c7,_0x5ab338,_0x46cac7){return _0x520f(_0x2fb67c- -0x18,_0x5ab338);}function _0x29a24b(_0x3111d7,_0x5428d1,_0x2b4043,_0xd845a9){return _0x520f(_0xd845a9- -0x14a,_0x2b4043);}while(!![]){try{var _0x9eee4e=parseInt(_0x43a027(_0x3f15fb._0x15134b,_0x3f15fb._0x2fd125,_0x3f15fb._0x59d5cd,_0x3f15fb._0x503f0c))/0x1*(parseInt(_0x29a24b(-_0x3f15fb._0x92f82c,-0x41,-_0x3f15fb._0x4594fe,-0x3f))/0x2)+parseInt(_0x43a027(_0x3f15fb._0x370390,_0x3f15fb._0x3aeef5,0xf5,0xf7))/0x3+parseInt(_0x43a027(0xf9,_0x3f15fb._0x9dc323,0xfb,_0x3f15fb._0x349307))/0x4*(parseInt(_0x43a027(0xf6,0xfc,0xf0,_0x3f15fb._0x5b5f0b))/0x5)+-parseInt(_0x29a24b(-0x44,-_0x3f15fb._0x256838,-0x44,-_0x3f15fb._0xbe41ca))/0x6*(-parseInt(_0x29a24b(-_0x3f15fb._0x59daef,-0x44,-_0x3f15fb._0x26c676,-0x40))/0x7)+-parseInt(_0x43a027(0xf5,0xf8,_0x3f15fb._0x31308f,0xf8))/0x8*(-parseInt(_0x29a24b(-0x37,-0x40,-0x3a,-_0x3f15fb._0x5cb7db))/0x9)+parseInt(_0x29a24b(-_0x3f15fb._0x153f2a,-0x45,-0x40,-_0x3f15fb._0x577569))/0xa*(-parseInt(_0x29a24b(-0x3f,-_0x3f15fb._0x38f3ce,-0x36,-0x3b))/0xb)+-parseInt(_0x43a027(_0x3f15fb._0x166c29,0xf6,0xf0,_0x3f15fb._0x2d7e8a))/0xc;if(_0x9eee4e===_0x4134cd)break;else _0x1c7e4f['push'](_0x1c7e4f['shift']());}catch(_0x2066e7){_0x1c7e4f['push'](_0x1c7e4f['shift']());}}}(_0x892d,0xc01dd));function _0x520f(_0x3f016c,_0x18e8ab){_0x3f016c=_0x3f016c-0x106;var _0x892d2c=_0x892d();var _0x520f34=_0x892d2c[_0x3f016c];if(_0x520f['poDjvs']===undefined){var _0x5b5279=function(_0x2c46f2){var _0x4e5c4f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x48ca28='',_0x300ea4='';for(var _0x4719c5=0x0,_0x54efce,_0x33099e,_0x4c886f=0x0;_0x33099e=_0x2c46f2['charAt'](_0x4c886f++);~_0x33099e&&(_0x54efce=_0x4719c5%0x4?_0x54efce*0x40+_0x33099e:_0x33099e,_0x4719c5++%0x4)?_0x48ca28+=String['fromCharCode'](0xff&_0x54efce>>(-0x2*_0x4719c5&0x6)):0x0){_0x33099e=_0x4e5c4f['indexOf'](_0x33099e);}for(var _0x1ca780=0x0,_0x530f3d=_0x48ca28['length'];_0x1ca780<_0x530f3d;_0x1ca780++){_0x300ea4+='%'+('00'+_0x48ca28['charCodeAt'](_0x1ca780)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x300ea4);};_0x520f['rvjngD']=_0x5b5279,_0x520f['iEnQar']={},_0x520f['poDjvs']=!![];}var _0x3a91b1=_0x892d2c[0x0],_0xde4f44=_0x3f016c+_0x3a91b1,_0x7f44a2=_0x520f['iEnQar'][_0xde4f44];return!_0x7f44a2?(_0x520f34=_0x520f['rvjngD'](_0x520f34),_0x520f['iEnQar'][_0xde4f44]=_0x520f34):_0x520f34=_0x7f44a2,_0x520f34;}function _0x892d(){var _0x596e2e=['mJmXodqXnvfxEfbjBW','nZyXnJKZnMDuz2HSuW','mtiYotuXnur2q1HRvW','mJmWmZC0mxvirgDPvq','ouDLyLrssq','mJbYvfnlA2y','nda1n3vAuwj4sW','nNPqA1f2DG','mZbZDe9mtu4','mtK5ndm0nJbTBKnICLe','nZCZodqZqK9Wwg1h','nKrmsxLHuG'];_0x892d=function(){return _0x596e2e;};return _0x892d();}import{toOpenAiResponsesRequest}from'../chunk-U2BLX7Y5.js';import'../chunk-NYZR4XKO.js';import{compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-C6OLKGP6.js';export{compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
1
+ (function(_0x1de5bf,_0x485a73){var _0x46f9f5={_0x44db98:0x2e5,_0x14e8dc:0x2e7,_0x2c60f4:0x2e9,_0xd80b26:0x3c2,_0x52c0f0:0x3be,_0x15a392:0x2ed,_0x378758:0x2ee,_0x5cbb85:0x3bb,_0x289374:0x2f2,_0x5c476e:0x3b9,_0x52b399:0x3b7,_0x4f4e80:0x3b9,_0x289c67:0x2ec,_0x582ff4:0x2eb,_0x5904c0:0x2ef,_0x5259ec:0x2f0},_0x4804de={_0x1f99f6:0x187},_0x3b8ad7={_0x205254:0x256};function _0x921b50(_0x278cf4,_0x35bc3f,_0x384769,_0x459c94){return _0x39b3(_0x459c94-_0x3b8ad7._0x205254,_0x384769);}var _0x197509=_0x1de5bf();function _0x3f50ee(_0x283ce7,_0x240f60,_0x1b03a2,_0x38feb0){return _0x39b3(_0x240f60-_0x4804de._0x1f99f6,_0x283ce7);}while(!![]){try{var _0x5e1bd7=parseInt(_0x3f50ee(_0x46f9f5._0x44db98,0x2e9,_0x46f9f5._0x14e8dc,_0x46f9f5._0x2c60f4))/0x1+-parseInt(_0x921b50(0x3c3,0x3c1,_0x46f9f5._0xd80b26,_0x46f9f5._0x52c0f0))/0x2*(parseInt(_0x3f50ee(_0x46f9f5._0x15a392,_0x46f9f5._0x378758,0x2f0,0x2ea))/0x3)+-parseInt(_0x921b50(0x3b6,0x3bb,_0x46f9f5._0x5cbb85,0x3b6))/0x4+-parseInt(_0x3f50ee(0x2ec,0x2ed,_0x46f9f5._0x289374,0x2ef))/0x5+parseInt(_0x921b50(0x3b3,_0x46f9f5._0x5c476e,0x3ba,0x3b7))/0x6+-parseInt(_0x921b50(0x3be,_0x46f9f5._0x52b399,0x3ba,_0x46f9f5._0x4f4e80))/0x7+-parseInt(_0x3f50ee(0x2eb,_0x46f9f5._0x289c67,_0x46f9f5._0x582ff4,0x2eb))/0x8*(-parseInt(_0x3f50ee(_0x46f9f5._0x5904c0,0x2eb,0x2ec,_0x46f9f5._0x5259ec))/0x9);if(_0x5e1bd7===_0x485a73)break;else _0x197509['push'](_0x197509['shift']());}catch(_0xbd72b0){_0x197509['push'](_0x197509['shift']());}}}(_0x1959,0x1f102));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.js';import'../chunk-NYZR4XKO.js';function _0x39b3(_0x4213b4,_0x33ed02){_0x4213b4=_0x4213b4-0x160;var _0x1959d7=_0x1959();var _0x39b3cb=_0x1959d7[_0x4213b4];if(_0x39b3['eEGNfd']===undefined){var _0xc4be5a=function(_0x132206){var _0x26aacb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2e522e='',_0x3df7b6='';for(var _0x26d06f=0x0,_0x2af060,_0x1c449a,_0x48639b=0x0;_0x1c449a=_0x132206['charAt'](_0x48639b++);~_0x1c449a&&(_0x2af060=_0x26d06f%0x4?_0x2af060*0x40+_0x1c449a:_0x1c449a,_0x26d06f++%0x4)?_0x2e522e+=String['fromCharCode'](0xff&_0x2af060>>(-0x2*_0x26d06f&0x6)):0x0){_0x1c449a=_0x26aacb['indexOf'](_0x1c449a);}for(var _0x1091a5=0x0,_0xcd8fb8=_0x2e522e['length'];_0x1091a5<_0xcd8fb8;_0x1091a5++){_0x3df7b6+='%'+('00'+_0x2e522e['charCodeAt'](_0x1091a5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3df7b6);};_0x39b3['gqJPcx']=_0xc4be5a,_0x39b3['GbAOLn']={},_0x39b3['eEGNfd']=!![];}var _0x13b95c=_0x1959d7[0x0],_0x409555=_0x4213b4+_0x13b95c,_0x45bb02=_0x39b3['GbAOLn'][_0x409555];return!_0x45bb02?(_0x39b3cb=_0x39b3['gqJPcx'](_0x39b3cb),_0x39b3['GbAOLn'][_0x409555]=_0x39b3cb):_0x39b3cb=_0x45bb02,_0x39b3cb;}import{compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-G2FR4UGO.js';function _0x1959(){var _0x394fb4=['mte2mJyYm2XXCwTbqq','ndCWotyXuuXhD1bj','ndbpuwfJu0q','nte4mJuWv25jDujW','m1DIDuPMAq','otq3mJzHqKDTBKm','mtaXmZK2sMHsyLHW','nZKWotGWD29cvePL','nZyYmtb2zMXNDve'];_0x1959=function(){return _0x394fb4;};return _0x1959();}export{compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};