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

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,321 +1,25 @@
1
- // Generated by dts-bundle-generator v9.5.1
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';
2
3
 
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;
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;
320
24
 
321
- export {};
25
+ export { compileRequest, createAssistantTextMessage, createReasoningMessage, createTextBlock, createToolResultUserMessage, createToolUseMessage, getReasoningTextFromMessage, getTextFromMessage, getToolResultBlocks, getToolUseBlocks, normalizeContent, normalizeMessage, normalizeSystem, normalizeTextBlock, responseToAssistantMessage, toChatRequest, toChatResponse, toModelRequest, toModelResponse, toProviderModelRequest };
@@ -1 +1 @@
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};
1
+ (function(_0x29cab1,_0x59e0e5){var _0x133fad={_0x5c7022:0x1ee,_0x18c684:0x1e7,_0x14e88e:0x1ec,_0x378dbc:0x17e,_0x9f15c:0x17d,_0x2d0f5e:0x176,_0x5acbe9:0x1e2,_0x36f93f:0x17b,_0x578632:0x177,_0x59c630:0x1e9,_0x25075a:0x1e8,_0x576ead:0x1e8},_0xbf7441={_0x166514:0x169};function _0x3746bb(_0x46a76f,_0x3ec041,_0xa3f42,_0xdba7a3){return _0x24b4(_0x3ec041-_0xbf7441._0x166514,_0xa3f42);}var _0x2f1f3c=_0x29cab1();function _0x473549(_0x5c6e5b,_0x38c817,_0x539ee4,_0x2a2932){return _0x24b4(_0x5c6e5b- -0x1f9,_0x2a2932);}while(!![]){try{var _0x4e703f=-parseInt(_0x3746bb(_0x133fad._0x5c7022,0x1eb,_0x133fad._0x18c684,_0x133fad._0x14e88e))/0x1+parseInt(_0x3746bb(0x1f0,_0x133fad._0x14e88e,0x1ef,_0x133fad._0x5c7022))/0x2*(parseInt(_0x473549(-0x178,-0x177,-0x173,-0x17c))/0x3)+-parseInt(_0x473549(-_0x133fad._0x378dbc,-0x17c,-0x182,-0x17a))/0x4*(-parseInt(_0x473549(-0x179,-0x176,-_0x133fad._0x9f15c,-_0x133fad._0x2d0f5e))/0x5)+-parseInt(_0x3746bb(0x1e1,0x1e6,_0x133fad._0x5acbe9,0x1e2))/0x6+parseInt(_0x473549(-_0x133fad._0x9f15c,-0x17a,-_0x133fad._0x9f15c,-0x17c))/0x7+-parseInt(_0x473549(-_0x133fad._0x36f93f,-0x17a,-_0x133fad._0x578632,-0x17d))/0x8+parseInt(_0x3746bb(_0x133fad._0x59c630,_0x133fad._0x25075a,_0x133fad._0x576ead,_0x133fad._0x576ead))/0x9;if(_0x4e703f===_0x59e0e5)break;else _0x2f1f3c['push'](_0x2f1f3c['shift']());}catch(_0x390c4e){_0x2f1f3c['push'](_0x2f1f3c['shift']());}}}(_0x3411,0xdc567));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';function _0x3411(){var _0x5e5ffd=['mJa3mdq4mdz1uMzzruW','nJe3odeXnuXeDMvMsq','mJqXmZy1seXjtwDI','mte4mdm5mKDTDMXvua','mtrltNnnCNK','nfnjBu9jsW','ndaWmZqWnvvbrhHLrW','nZe1mdm2mNzOzhzdqq','mteXnZmWodbnwhD5Evy'];_0x3411=function(){return _0x5e5ffd;};return _0x3411();}function _0x24b4(_0x5c6275,_0x38c7d9){_0x5c6275=_0x5c6275-0x7b;var _0x3411b7=_0x3411();var _0x24b45a=_0x3411b7[_0x5c6275];if(_0x24b4['VlQUws']===undefined){var _0x205214=function(_0x56fa29){var _0x183022='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x55098a='',_0x108234='';for(var _0x3e909e=0x0,_0x5053c7,_0x10358e,_0x3ecba8=0x0;_0x10358e=_0x56fa29['charAt'](_0x3ecba8++);~_0x10358e&&(_0x5053c7=_0x3e909e%0x4?_0x5053c7*0x40+_0x10358e:_0x10358e,_0x3e909e++%0x4)?_0x55098a+=String['fromCharCode'](0xff&_0x5053c7>>(-0x2*_0x3e909e&0x6)):0x0){_0x10358e=_0x183022['indexOf'](_0x10358e);}for(var _0xacbeec=0x0,_0x60d2da=_0x55098a['length'];_0xacbeec<_0x60d2da;_0xacbeec++){_0x108234+='%'+('00'+_0x55098a['charCodeAt'](_0xacbeec)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x108234);};_0x24b4['JEtSdr']=_0x205214,_0x24b4['WhmKdk']={},_0x24b4['VlQUws']=!![];}var _0x865c5d=_0x3411b7[0x0],_0xf833c3=_0x5c6275+_0x865c5d,_0x504230=_0x24b4['WhmKdk'][_0xf833c3];return!_0x504230?(_0x24b45a=_0x24b4['JEtSdr'](_0x24b45a),_0x24b4['WhmKdk'][_0xf833c3]=_0x24b45a):_0x24b45a=_0x504230,_0x24b45a;}export{compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};