@nuvin/agent-core 0.0.0-rc.3 → 0.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +28 -525
- package/dist/agent/index.js +1 -1
- package/dist/chunk-G2FR4UGO.js +1 -1
- package/dist/chunk-LXQDGX4K.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-P54V754C.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +23 -319
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +330 -634
- package/dist/models/index.js +1 -1
- package/dist/shared/index.d.ts +14 -709
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +583 -967
- package/dist/tools/index.js +1 -1
- package/package.json +9 -1
- package/dist/chunk-VFTQW5WK.js +0 -1
package/dist/formats/index.d.ts
CHANGED
|
@@ -1,321 +1,25 @@
|
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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 };
|
package/dist/formats/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2e5f(_0x27c16c,_0x11319b){_0x27c16c=_0x27c16c-0x1af;var _0x5c07b5=_0x5c07();var _0x2e5fdf=_0x5c07b5[_0x27c16c];if(_0x2e5f['tKrrnA']===undefined){var _0x5d53de=function(_0x3822a9){var _0x169ce1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x24dbb1='',_0x22ffaa='';for(var _0x4129f8=0x0,_0xf9e80e,_0x167c9b,_0x4456c4=0x0;_0x167c9b=_0x3822a9['charAt'](_0x4456c4++);~_0x167c9b&&(_0xf9e80e=_0x4129f8%0x4?_0xf9e80e*0x40+_0x167c9b:_0x167c9b,_0x4129f8++%0x4)?_0x24dbb1+=String['fromCharCode'](0xff&_0xf9e80e>>(-0x2*_0x4129f8&0x6)):0x0){_0x167c9b=_0x169ce1['indexOf'](_0x167c9b);}for(var _0x5e9c5e=0x0,_0x1ec4fa=_0x24dbb1['length'];_0x5e9c5e<_0x1ec4fa;_0x5e9c5e++){_0x22ffaa+='%'+('00'+_0x24dbb1['charCodeAt'](_0x5e9c5e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x22ffaa);};_0x2e5f['rRaLCo']=_0x5d53de,_0x2e5f['Sngprk']={},_0x2e5f['tKrrnA']=!![];}var _0x1ff21e=_0x5c07b5[0x0],_0x4f46e9=_0x27c16c+_0x1ff21e,_0x1be097=_0x2e5f['Sngprk'][_0x4f46e9];return!_0x1be097?(_0x2e5fdf=_0x2e5f['rRaLCo'](_0x2e5fdf),_0x2e5f['Sngprk'][_0x4f46e9]=_0x2e5fdf):_0x2e5fdf=_0x1be097,_0x2e5fdf;}(function(_0x4abd83,_0x4ae537){var _0x4ad720={_0x54e174:0x16e,_0x20deb4:0x16d,_0x3caeef:0x16b,_0x5e4300:0x1a,_0x40e6f5:0x173,_0x9b225f:0x17,_0x4c3baa:0x19,_0x27f4e6:0x16,_0x142c0c:0x170,_0x5b115b:0x168,_0x502d05:0x14,_0x58b93f:0x10,_0x35ff11:0x1a,_0x2b6f82:0x17,_0x4de13d:0x16f},_0x118fb0={_0x46c815:0x322},_0x4c6ef4={_0x3d6f3c:0x19b};function _0x5e176a(_0x347f52,_0x103118,_0x7658f4,_0x1a866e){return _0x2e5f(_0x103118- -_0x4c6ef4._0x3d6f3c,_0x7658f4);}var _0x2fe2f1=_0x4abd83();function _0x8536b4(_0x415222,_0x5ee797,_0x137a4a,_0x2552b2){return _0x2e5f(_0x2552b2- -_0x118fb0._0x46c815,_0x137a4a);}while(!![]){try{var _0x11bade=-parseInt(_0x8536b4(-0x169,-_0x4ad720._0x54e174,-_0x4ad720._0x20deb4,-_0x4ad720._0x3caeef))/0x1+parseInt(_0x5e176a(0x1a,_0x4ad720._0x5e4300,0x1c,0x17))/0x2+-parseInt(_0x8536b4(-_0x4ad720._0x40e6f5,-0x173,-0x175,-0x172))/0x3+-parseInt(_0x5e176a(_0x4ad720._0x9b225f,_0x4ad720._0x4c3baa,_0x4ad720._0x27f4e6,0x14))/0x4+-parseInt(_0x8536b4(-0x16b,-0x16c,-0x174,-_0x4ad720._0x142c0c))/0x5*(-parseInt(_0x8536b4(-_0x4ad720._0x5b115b,-0x16f,-0x167,-0x16c))/0x6)+parseInt(_0x5e176a(0x15,_0x4ad720._0x502d05,0x13,_0x4ad720._0x58b93f))/0x7*(parseInt(_0x5e176a(0x13,_0x4ad720._0x27f4e6,_0x4ad720._0x35ff11,_0x4ad720._0x2b6f82))/0x8)+parseInt(_0x8536b4(-0x172,-_0x4ad720._0x4de13d,-_0x4ad720._0x142c0c,-0x16f))/0x9;if(_0x11bade===_0x4ae537)break;else _0x2fe2f1['push'](_0x2fe2f1['shift']());}catch(_0x23c307){_0x2fe2f1['push'](_0x2fe2f1['shift']());}}}(_0x5c07,0x6d526));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.js';import'../chunk-NYZR4XKO.js';function _0x5c07(){var _0x3dba7a=['mJm4mZu1BKH1zfPd','mZi0nZa5q21esMff','mtGWnZa5oefmruPQwa','mtuYrxbpy29X','mJe1ndKWqwXeBLz0','mtq3otuYohnLA09uBW','mtG5mZq4mgXTrgHTqq','nJu2ndKYww9ysLPe','ntrYCeXnEwG'];_0x5c07=function(){return _0x3dba7a;};return _0x5c07();}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};
|