@nuvin/agent-core 0.0.0-rc.2 → 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-QPBW5jHO.js';
2
- export { t as toOpenAiResponsesRequest } from '../provider-adapters-Cb5hUJoD.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 _0x51e6(_0x1af917,_0xab6cb9){_0x1af917=_0x1af917-0xb6;var _0x45d42a=_0x45d4();var _0x51e6bf=_0x45d42a[_0x1af917];if(_0x51e6['NPMQQE']===undefined){var _0x1c6666=function(_0x40fc88){var _0x178b46='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x51ad83='',_0x16bf54='';for(var _0x5194c6=0x0,_0x1c116a,_0x1dae14,_0x58ca01=0x0;_0x1dae14=_0x40fc88['charAt'](_0x58ca01++);~_0x1dae14&&(_0x1c116a=_0x5194c6%0x4?_0x1c116a*0x40+_0x1dae14:_0x1dae14,_0x5194c6++%0x4)?_0x51ad83+=String['fromCharCode'](0xff&_0x1c116a>>(-0x2*_0x5194c6&0x6)):0x0){_0x1dae14=_0x178b46['indexOf'](_0x1dae14);}for(var _0x52afa5=0x0,_0x208ea9=_0x51ad83['length'];_0x52afa5<_0x208ea9;_0x52afa5++){_0x16bf54+='%'+('00'+_0x51ad83['charCodeAt'](_0x52afa5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x16bf54);};_0x51e6['JYstYu']=_0x1c6666,_0x51e6['tKdwsL']={},_0x51e6['NPMQQE']=!![];}var _0x1aa8f9=_0x45d42a[0x0],_0x548226=_0x1af917+_0x1aa8f9,_0x10f515=_0x51e6['tKdwsL'][_0x548226];return!_0x10f515?(_0x51e6bf=_0x51e6['JYstYu'](_0x51e6bf),_0x51e6['tKdwsL'][_0x548226]=_0x51e6bf):_0x51e6bf=_0x10f515,_0x51e6bf;}function _0x45d4(){var _0x485181=['mtbwuhPVthC','mJG2nJC0ngjtu1zpyq','m3j3vhDlta','otq3nta1oxz6suPvAq','mJi3mdrsreTTBhq','mZCWm01bqvbJrq','mte1mduZodrbDM5UyKy','mZbhCfHpCLm','mJq3nJaYogXbEKP2uq','oteXmdm2C1DVqwrf','nJu3oda1yLHVD0nZ'];_0x45d4=function(){return _0x485181;};return _0x45d4();}(function(_0xfd0581,_0x46a5f1){var _0x5a78a9={_0x3adf56:0x329,_0x37c7c4:0x32b,_0x218b61:0x328,_0x14e5c1:0x410,_0xd3a793:0x412,_0x4faeb0:0x32e,_0x1fb9de:0x32c,_0x5b0aff:0x32c,_0x2f28aa:0x32b,_0x88699d:0x328,_0x326f37:0x327,_0x1fda91:0x324,_0x2e3229:0x409,_0x54f17c:0x405,_0x6ef0ce:0x408,_0x42667c:0x413,_0x37b9c0:0x40c,_0x51ba2e:0x415,_0x51d948:0x32d,_0x219217:0x32f,_0x22884f:0x335,_0x2a99da:0x331,_0x9be4d9:0x330},_0x18dc83={_0x2f843d:0x352};function _0x4609f2(_0x5edc42,_0x3283ba,_0x41b335,_0x3da025){return _0x51e6(_0x41b335-_0x18dc83._0x2f843d,_0x5edc42);}function _0x3ad6fa(_0x571a6c,_0x2baf97,_0xdf8d16,_0x389785){return _0x51e6(_0xdf8d16-0x271,_0x571a6c);}var _0x38e25a=_0xfd0581();while(!![]){try{var _0x37de14=-parseInt(_0x3ad6fa(0x327,_0x5a78a9._0x3adf56,_0x5a78a9._0x37c7c4,0x330))/0x1+-parseInt(_0x3ad6fa(_0x5a78a9._0x218b61,0x329,0x32a,0x328))/0x2*(-parseInt(_0x4609f2(0x40a,0x40d,_0x5a78a9._0x14e5c1,_0x5a78a9._0xd3a793))/0x3)+-parseInt(_0x3ad6fa(_0x5a78a9._0x4faeb0,0x330,_0x5a78a9._0x4faeb0,_0x5a78a9._0x1fb9de))/0x4+-parseInt(_0x3ad6fa(0x32f,_0x5a78a9._0x1fb9de,_0x5a78a9._0x5b0aff,_0x5a78a9._0x2f28aa))/0x5*(parseInt(_0x3ad6fa(_0x5a78a9._0x88699d,_0x5a78a9._0x326f37,0x329,_0x5a78a9._0x1fda91))/0x6)+-parseInt(_0x4609f2(_0x5a78a9._0x2e3229,_0x5a78a9._0x54f17c,_0x5a78a9._0x6ef0ce,0x40a))/0x7*(-parseInt(_0x4609f2(_0x5a78a9._0x42667c,_0x5a78a9._0x37b9c0,_0x5a78a9._0xd3a793,_0x5a78a9._0x51ba2e))/0x8)+parseInt(_0x4609f2(0x405,0x405,0x409,0x40b))/0x9+-parseInt(_0x3ad6fa(0x32e,_0x5a78a9._0x51d948,0x32d,_0x5a78a9._0x219217))/0xa*(parseInt(_0x3ad6fa(_0x5a78a9._0x22884f,_0x5a78a9._0x2a99da,_0x5a78a9._0x9be4d9,0x334))/0xb);if(_0x37de14===_0x46a5f1)break;else _0x38e25a['push'](_0x38e25a['shift']());}catch(_0x997dcc){_0x38e25a['push'](_0x38e25a['shift']());}}}(_0x45d4,0xd498c));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.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-G2FR4UGO.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};