@nuvin/agent-core 0.0.0-rc.2 → 0.0.0-rc.20
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/agent.d.ts +28 -0
- package/dist/agent/context-compactor.d.ts +8 -0
- package/dist/agent/extension-registry.d.ts +3 -0
- package/dist/agent/index.d.ts +8 -30
- package/dist/agent/index.js +1 -1
- package/dist/agent/messages-to-text.d.ts +3 -0
- package/dist/agent/metrics.d.ts +30 -0
- package/dist/agent/topic-reminder-extension.d.ts +32 -0
- package/dist/agent/turn-engine.d.ts +3 -0
- package/dist/chunk-FFIZ6TKW.js +1 -0
- package/dist/chunk-HRU363DY.js +1 -0
- package/dist/chunk-NHBKADBW.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/base64-image-content.d.ts +4 -0
- package/dist/formats/index.d.ts +4 -25
- package/dist/formats/index.js +1 -1
- package/dist/formats/message-format.d.ts +33 -0
- package/dist/formats/provider-adapters.d.ts +3 -0
- package/dist/hooks/executor.d.ts +3 -0
- package/dist/hooks/extensions.d.ts +28 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/registry.d.ts +8 -0
- package/dist/hooks/types.d.ts +40 -0
- package/dist/lsp/client.d.ts +11 -0
- package/dist/lsp/index.d.ts +24 -0
- package/dist/lsp/installer.d.ts +11 -0
- package/dist/lsp/language.d.ts +2 -0
- package/dist/lsp/server.d.ts +6 -0
- package/dist/lsp/types.d.ts +68 -0
- package/dist/models/anthropic-model.d.ts +27 -0
- package/dist/models/anthropic-surface.d.ts +5 -0
- package/dist/models/chat-model.d.ts +31 -0
- package/dist/models/github-model.d.ts +32 -0
- package/dist/models/http-transport.d.ts +10 -0
- package/dist/models/index.d.ts +16 -344
- package/dist/models/index.js +1 -1
- package/dist/models/mock-model.d.ts +15 -0
- package/dist/models/model-errors.d.ts +16 -0
- package/dist/models/model-limits.d.ts +7 -0
- package/dist/models/model-registry.d.ts +44 -0
- package/dist/models/model-surface-router.d.ts +19 -0
- package/dist/models/model-transports.d.ts +17 -0
- package/dist/models/openai-model.d.ts +67 -0
- package/dist/models/openai-surfaces.d.ts +74 -0
- package/dist/models/provider-adapter.d.ts +23 -0
- package/dist/models/provider-session.d.ts +16 -0
- package/dist/models/routed-model.d.ts +90 -0
- package/dist/shared/abort.d.ts +9 -0
- package/dist/shared/index.d.ts +5 -17
- package/dist/shared/index.js +1 -1
- package/dist/shared/reasoning-config.d.ts +5 -0
- package/dist/shared/turn-failed.d.ts +6 -0
- package/dist/shared/types.d.ts +737 -0
- package/dist/tools/ask-user-tool.d.ts +55 -0
- package/dist/tools/bash-tool.d.ts +63 -0
- package/dist/tools/command-tool.d.ts +23 -0
- package/dist/tools/file-edit-tool.d.ts +29 -0
- package/dist/tools/file-new-tool.d.ts +21 -0
- package/dist/tools/file-read-tool.d.ts +27 -0
- package/dist/tools/glob-tool.d.ts +26 -0
- package/dist/tools/grep-tool.d.ts +34 -0
- package/dist/tools/index.d.ts +28 -480
- package/dist/tools/index.js +1 -1
- package/dist/tools/internal-tool-runtime.d.ts +8 -0
- package/dist/tools/ls-tool.d.ts +20 -0
- package/dist/tools/lsp-tool.d.ts +36 -0
- package/dist/tools/mcp-oauth-provider.d.ts +11 -0
- package/dist/tools/mcp-server-manager.d.ts +43 -0
- package/dist/tools/mcp-tool-adapter.d.ts +47 -0
- package/dist/tools/mock-tool-runtime.d.ts +3 -0
- package/dist/tools/ripgrep.d.ts +20 -0
- package/dist/tools/runtime-manager-tools.d.ts +58 -0
- package/dist/tools/safe-fetch.d.ts +36 -0
- package/dist/tools/skill-tool.d.ts +33 -0
- package/dist/tools/todo-write-tool.d.ts +66 -0
- package/dist/tools/tool-output-offload.d.ts +12 -0
- package/dist/tools/tools.d.ts +24 -0
- package/dist/tools/update-topic-tool.d.ts +12 -0
- package/dist/tools/view-file-tool.d.ts +22 -0
- package/dist/tools/web-fetch-tool.d.ts +23 -0
- package/dist/tools/web-search-tool.d.ts +75 -0
- package/dist/tools/workspace-paths.d.ts +5 -0
- package/package.json +17 -4
- package/dist/chunk-G2FR4UGO.js +0 -1
- package/dist/chunk-LXQDGX4K.js +0 -1
- package/dist/chunk-VFTQW5WK.js +0 -1
- package/dist/provider-adapters-Cb5hUJoD.d.ts +0 -5
- package/dist/types-QPBW5jHO.d.ts +0 -695
package/dist/types-QPBW5jHO.d.ts
DELETED
|
@@ -1,695 +0,0 @@
|
|
|
1
|
-
type JsonPrimitive = boolean | number | string | null;
|
|
2
|
-
interface JsonObject {
|
|
3
|
-
[key: string]: JsonValue;
|
|
4
|
-
}
|
|
5
|
-
type JsonValue = JsonObject | JsonPrimitive | JsonValue[];
|
|
6
|
-
type JsonSchemaType = "array" | "boolean" | "number" | "object" | "string";
|
|
7
|
-
interface JsonSchemaString {
|
|
8
|
-
type: "string";
|
|
9
|
-
}
|
|
10
|
-
interface JsonSchemaNumber {
|
|
11
|
-
type: "number";
|
|
12
|
-
}
|
|
13
|
-
interface JsonSchemaBoolean {
|
|
14
|
-
type: "boolean";
|
|
15
|
-
}
|
|
16
|
-
interface JsonSchemaArray<TItem extends JsonSchema = JsonSchema> {
|
|
17
|
-
type: "array";
|
|
18
|
-
items: TItem;
|
|
19
|
-
}
|
|
20
|
-
interface JsonSchemaObject<TProperties extends Record<string, JsonSchema> = Record<string, JsonSchema>, TRequired extends readonly string[] | undefined = readonly string[] | undefined> {
|
|
21
|
-
type: "object";
|
|
22
|
-
properties: TProperties;
|
|
23
|
-
required?: TRequired;
|
|
24
|
-
}
|
|
25
|
-
type JsonSchema = JsonSchemaArray | JsonSchemaBoolean | JsonSchemaNumber | JsonSchemaObject | JsonSchemaString;
|
|
26
|
-
interface TextBlock {
|
|
27
|
-
type: "text";
|
|
28
|
-
text: string;
|
|
29
|
-
}
|
|
30
|
-
type ImageMediaType = "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
31
|
-
interface ImageBlock {
|
|
32
|
-
type: "image";
|
|
33
|
-
source: {
|
|
34
|
-
type: "base64";
|
|
35
|
-
media_type: ImageMediaType;
|
|
36
|
-
data: string;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
type ToolResultContentBlock = ImageBlock | TextBlock;
|
|
40
|
-
type ToolResultContent = string | ToolResultContentBlock[];
|
|
41
|
-
interface AnthropicThinkingBlock {
|
|
42
|
-
type: "anthropic_thinking";
|
|
43
|
-
thinking: string;
|
|
44
|
-
signature: string;
|
|
45
|
-
}
|
|
46
|
-
interface AnthropicRedactedThinkingBlock {
|
|
47
|
-
type: "anthropic_redacted_thinking";
|
|
48
|
-
data: string;
|
|
49
|
-
}
|
|
50
|
-
interface OpenAiReasoningSummaryText {
|
|
51
|
-
type: "summary_text";
|
|
52
|
-
text: string;
|
|
53
|
-
}
|
|
54
|
-
interface OpenAiReasoningBlock {
|
|
55
|
-
type: "openai_reasoning";
|
|
56
|
-
encryptedContent?: string;
|
|
57
|
-
id?: string;
|
|
58
|
-
summary: OpenAiReasoningSummaryText[];
|
|
59
|
-
text?: string;
|
|
60
|
-
}
|
|
61
|
-
interface ToolUseBlock {
|
|
62
|
-
type: "tool_use";
|
|
63
|
-
id: string;
|
|
64
|
-
name: string;
|
|
65
|
-
input: JsonValue;
|
|
66
|
-
}
|
|
67
|
-
interface ToolResultBlock {
|
|
68
|
-
type: "tool_result";
|
|
69
|
-
tool_use_id: string;
|
|
70
|
-
content: ToolResultContent;
|
|
71
|
-
is_error: boolean;
|
|
72
|
-
}
|
|
73
|
-
interface AnthropicThinkingWireBlock {
|
|
74
|
-
type: "thinking";
|
|
75
|
-
thinking: string;
|
|
76
|
-
signature: string;
|
|
77
|
-
}
|
|
78
|
-
interface AnthropicRedactedThinkingWireBlock {
|
|
79
|
-
type: "redacted_thinking";
|
|
80
|
-
data: string;
|
|
81
|
-
}
|
|
82
|
-
type AnthropicAssistantContentBlock = AnthropicRedactedThinkingWireBlock | AnthropicThinkingWireBlock | TextBlock | ToolUseBlock;
|
|
83
|
-
type ReasoningVisibility = "continuity-only" | "user-visible";
|
|
84
|
-
type AutoReasoningEffort = "low" | "medium" | "high";
|
|
85
|
-
interface AutoReasoningConfig {
|
|
86
|
-
effort: AutoReasoningEffort;
|
|
87
|
-
}
|
|
88
|
-
type AnthropicThinkingDisplay = "omitted" | "summarized";
|
|
89
|
-
type AnthropicThinkingEffort = "low" | "medium" | "high";
|
|
90
|
-
interface AnthropicEnabledThinkingConfig {
|
|
91
|
-
type: "enabled";
|
|
92
|
-
budgetTokens: number;
|
|
93
|
-
display?: AnthropicThinkingDisplay;
|
|
94
|
-
interleaved?: boolean;
|
|
95
|
-
}
|
|
96
|
-
interface AnthropicAdaptiveThinkingConfig {
|
|
97
|
-
type: "adaptive";
|
|
98
|
-
display?: AnthropicThinkingDisplay;
|
|
99
|
-
effort?: AnthropicThinkingEffort;
|
|
100
|
-
interleaved?: boolean;
|
|
101
|
-
}
|
|
102
|
-
interface AnthropicDisabledThinkingConfig {
|
|
103
|
-
type: "disabled";
|
|
104
|
-
}
|
|
105
|
-
type AnthropicThinkingConfig = AnthropicAdaptiveThinkingConfig | AnthropicDisabledThinkingConfig | AnthropicEnabledThinkingConfig;
|
|
106
|
-
type OpenAiReasoningEffort = "high" | "low" | "medium" | "minimal" | "none" | "xhigh";
|
|
107
|
-
type OpenAiReasoningSummary = "auto" | "concise" | "detailed";
|
|
108
|
-
interface OpenAiReasoningConfig {
|
|
109
|
-
effort?: OpenAiReasoningEffort;
|
|
110
|
-
includeEncryptedContent?: boolean;
|
|
111
|
-
summary?: OpenAiReasoningSummary;
|
|
112
|
-
}
|
|
113
|
-
interface ReasoningConfig {
|
|
114
|
-
auto?: AutoReasoningConfig;
|
|
115
|
-
anthropic?: AnthropicThinkingConfig;
|
|
116
|
-
openai?: OpenAiReasoningConfig;
|
|
117
|
-
visibility?: ReasoningVisibility;
|
|
118
|
-
}
|
|
119
|
-
interface MessageProviderState {
|
|
120
|
-
anthropicAssistantContent?: AnthropicAssistantContentBlock[];
|
|
121
|
-
openaiResponsesOutput?: OpenAiResponsesOutputItem[];
|
|
122
|
-
openaiResponsesResponseId?: string;
|
|
123
|
-
}
|
|
124
|
-
type AssistantContentBlock = AnthropicRedactedThinkingBlock | AnthropicThinkingBlock | OpenAiReasoningBlock | TextBlock | ToolUseBlock;
|
|
125
|
-
type ContentBlock = AssistantContentBlock | ToolResultBlock;
|
|
126
|
-
type ContentInput = ContentBlock[] | string | null | undefined;
|
|
127
|
-
type MessageRole = "assistant" | "user";
|
|
128
|
-
type SystemInput = TextBlock[] | string | null | undefined;
|
|
129
|
-
interface Message {
|
|
130
|
-
id?: string;
|
|
131
|
-
role: MessageRole;
|
|
132
|
-
content: ContentBlock[];
|
|
133
|
-
providerState?: MessageProviderState;
|
|
134
|
-
}
|
|
135
|
-
interface IdentifiedMessage extends Message {
|
|
136
|
-
id: string;
|
|
137
|
-
}
|
|
138
|
-
interface MessageInput {
|
|
139
|
-
id?: string;
|
|
140
|
-
role: MessageRole;
|
|
141
|
-
content?: ContentInput;
|
|
142
|
-
providerState?: MessageProviderState;
|
|
143
|
-
}
|
|
144
|
-
interface ToolSchema {
|
|
145
|
-
name: string;
|
|
146
|
-
description: string;
|
|
147
|
-
input_schema: JsonSchemaObject;
|
|
148
|
-
}
|
|
149
|
-
interface Usage {
|
|
150
|
-
input_tokens: number;
|
|
151
|
-
output_tokens: number;
|
|
152
|
-
reasoning_tokens?: number;
|
|
153
|
-
}
|
|
154
|
-
interface ModelRequest {
|
|
155
|
-
model: string;
|
|
156
|
-
max_tokens: number;
|
|
157
|
-
reasoning?: ReasoningConfig;
|
|
158
|
-
system: TextBlock[];
|
|
159
|
-
messages: Message[];
|
|
160
|
-
tools: ToolSchema[];
|
|
161
|
-
metadata: {
|
|
162
|
-
session_id: string;
|
|
163
|
-
turn_id: string;
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
interface ModelResponse {
|
|
167
|
-
id: string;
|
|
168
|
-
type: "message";
|
|
169
|
-
role: "assistant";
|
|
170
|
-
content: AssistantContentBlock[];
|
|
171
|
-
stop_reason: "end_turn" | "tool_use";
|
|
172
|
-
stop_sequence: null | string;
|
|
173
|
-
usage: Usage;
|
|
174
|
-
providerState?: MessageProviderState;
|
|
175
|
-
}
|
|
176
|
-
interface ChatRequest {
|
|
177
|
-
model: string;
|
|
178
|
-
maxTokens: number;
|
|
179
|
-
reasoning?: ReasoningConfig;
|
|
180
|
-
system: TextBlock[];
|
|
181
|
-
messages: Message[];
|
|
182
|
-
tools: ToolSchema[];
|
|
183
|
-
metadata: {
|
|
184
|
-
sessionId: string;
|
|
185
|
-
turnId: string;
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
interface ChatResponse {
|
|
189
|
-
id: string;
|
|
190
|
-
content: AssistantContentBlock[];
|
|
191
|
-
stopReason: "end_turn" | "tool_use";
|
|
192
|
-
usage: {
|
|
193
|
-
inputTokens: number;
|
|
194
|
-
outputTokens: number;
|
|
195
|
-
reasoningTokens?: number;
|
|
196
|
-
};
|
|
197
|
-
providerState?: MessageProviderState;
|
|
198
|
-
}
|
|
199
|
-
interface ContentDeltaChunk {
|
|
200
|
-
type: "content_delta";
|
|
201
|
-
index?: number;
|
|
202
|
-
text?: string;
|
|
203
|
-
}
|
|
204
|
-
interface ToolUseDeltaChunk {
|
|
205
|
-
type: "tool_use_delta";
|
|
206
|
-
id: string;
|
|
207
|
-
index: number;
|
|
208
|
-
inputDelta?: string;
|
|
209
|
-
name?: string;
|
|
210
|
-
}
|
|
211
|
-
interface AnthropicThinkingDeltaChunk {
|
|
212
|
-
type: "anthropic_thinking_delta";
|
|
213
|
-
index: number;
|
|
214
|
-
thinking: string;
|
|
215
|
-
}
|
|
216
|
-
interface AnthropicSignatureDeltaChunk {
|
|
217
|
-
type: "anthropic_signature_delta";
|
|
218
|
-
index: number;
|
|
219
|
-
signature: string;
|
|
220
|
-
}
|
|
221
|
-
interface OpenAiReasoningDeltaChunk {
|
|
222
|
-
type: "openai_reasoning_delta";
|
|
223
|
-
contentIndex: number;
|
|
224
|
-
delta: string;
|
|
225
|
-
itemId: string;
|
|
226
|
-
outputIndex: number;
|
|
227
|
-
}
|
|
228
|
-
interface OpenAiReasoningSummaryDeltaChunk {
|
|
229
|
-
type: "openai_reasoning_summary_delta";
|
|
230
|
-
delta: string;
|
|
231
|
-
itemId: string;
|
|
232
|
-
outputIndex: number;
|
|
233
|
-
summaryIndex: number;
|
|
234
|
-
}
|
|
235
|
-
interface ChatResponseChunk {
|
|
236
|
-
type: "anthropic_signature_delta" | "anthropic_thinking_delta" | "content_delta" | "done" | "openai_reasoning_delta" | "openai_reasoning_summary_delta" | "tool_use_delta";
|
|
237
|
-
contentIndex?: number;
|
|
238
|
-
delta?: string;
|
|
239
|
-
index?: number;
|
|
240
|
-
itemId?: string;
|
|
241
|
-
outputIndex?: number;
|
|
242
|
-
signature?: string;
|
|
243
|
-
summaryIndex?: number;
|
|
244
|
-
text?: string;
|
|
245
|
-
thinking?: string;
|
|
246
|
-
inputDelta?: string;
|
|
247
|
-
name?: string;
|
|
248
|
-
id?: string;
|
|
249
|
-
response?: ChatResponse;
|
|
250
|
-
}
|
|
251
|
-
interface ModelLimits {
|
|
252
|
-
contextWindow?: number;
|
|
253
|
-
maxOutput?: number;
|
|
254
|
-
}
|
|
255
|
-
interface ModelInfo {
|
|
256
|
-
id: string;
|
|
257
|
-
name: string;
|
|
258
|
-
limits?: ModelLimits;
|
|
259
|
-
supportedEndpoints?: string[];
|
|
260
|
-
}
|
|
261
|
-
interface ToolResultMeta {
|
|
262
|
-
truncated?: boolean;
|
|
263
|
-
originalBytes?: number;
|
|
264
|
-
transforms: string[];
|
|
265
|
-
}
|
|
266
|
-
interface ToolResultChunk {
|
|
267
|
-
output: string;
|
|
268
|
-
structured: JsonObject;
|
|
269
|
-
content?: ToolResultContent;
|
|
270
|
-
}
|
|
271
|
-
interface ToolOutputEnvelope {
|
|
272
|
-
output: string;
|
|
273
|
-
structured?: JsonObject;
|
|
274
|
-
content?: ToolResultContent;
|
|
275
|
-
}
|
|
276
|
-
interface ToolResult {
|
|
277
|
-
callId: string;
|
|
278
|
-
toolName: string;
|
|
279
|
-
status: "error" | "ok";
|
|
280
|
-
output: string;
|
|
281
|
-
structured: JsonObject;
|
|
282
|
-
content?: ToolResultContent;
|
|
283
|
-
chunks: ToolResultChunk[];
|
|
284
|
-
meta: ToolResultMeta;
|
|
285
|
-
}
|
|
286
|
-
interface TurnInput {
|
|
287
|
-
sessionId: string;
|
|
288
|
-
turnId: string;
|
|
289
|
-
streaming?: boolean;
|
|
290
|
-
signal?: AbortSignal;
|
|
291
|
-
system?: SystemInput;
|
|
292
|
-
messages?: MessageInput[];
|
|
293
|
-
message: MessageInput;
|
|
294
|
-
}
|
|
295
|
-
interface TurnState {
|
|
296
|
-
sessionId: string;
|
|
297
|
-
turnId: string;
|
|
298
|
-
system: TextBlock[];
|
|
299
|
-
messages: Message[];
|
|
300
|
-
lastResponse?: ChatResponse;
|
|
301
|
-
toolResults: ToolResult[];
|
|
302
|
-
finalMessage?: IdentifiedMessage;
|
|
303
|
-
}
|
|
304
|
-
type TurnResultStatus = "completed" | "aborted";
|
|
305
|
-
interface TurnResult {
|
|
306
|
-
status: TurnResultStatus;
|
|
307
|
-
finalMessage?: IdentifiedMessage;
|
|
308
|
-
state: TurnState;
|
|
309
|
-
}
|
|
310
|
-
type ProviderCredentialKind = "api-key" | "oauth-token" | "session-token";
|
|
311
|
-
interface ProviderCredential {
|
|
312
|
-
kind: ProviderCredentialKind;
|
|
313
|
-
value: string;
|
|
314
|
-
}
|
|
315
|
-
interface ProviderEndpoints {
|
|
316
|
-
api?: string;
|
|
317
|
-
originTracker?: string;
|
|
318
|
-
proxy?: string;
|
|
319
|
-
telemetry?: string;
|
|
320
|
-
}
|
|
321
|
-
interface ResolvedProviderSession {
|
|
322
|
-
credential: ProviderCredential;
|
|
323
|
-
endpoints?: ProviderEndpoints;
|
|
324
|
-
metadata?: Record<string, string>;
|
|
325
|
-
}
|
|
326
|
-
interface ProviderSessionResolver {
|
|
327
|
-
resolve(signal?: AbortSignal): Promise<ResolvedProviderSession>;
|
|
328
|
-
}
|
|
329
|
-
interface PrepareRequestInput {
|
|
330
|
-
sessionId: string;
|
|
331
|
-
turnId: string;
|
|
332
|
-
reasoning?: ReasoningConfig;
|
|
333
|
-
system: TextBlock[];
|
|
334
|
-
messages: Message[];
|
|
335
|
-
tools: ToolSchema[];
|
|
336
|
-
maxTokens?: number;
|
|
337
|
-
}
|
|
338
|
-
interface PreparedRequest {
|
|
339
|
-
request: ModelRequest;
|
|
340
|
-
session?: ResolvedProviderSession;
|
|
341
|
-
}
|
|
342
|
-
type ProviderRequestMutator = (preparedRequest: PreparedRequest) => PreparedRequest | Promise<PreparedRequest>;
|
|
343
|
-
interface ChatModel {
|
|
344
|
-
prepareRequest(request: PrepareRequestInput): ModelRequest;
|
|
345
|
-
complete(request: ModelRequest): Promise<ModelResponse>;
|
|
346
|
-
}
|
|
347
|
-
interface ModelExecutionOptions {
|
|
348
|
-
signal?: AbortSignal;
|
|
349
|
-
}
|
|
350
|
-
interface EngineChatModel {
|
|
351
|
-
model: string;
|
|
352
|
-
maxTokens?: number;
|
|
353
|
-
complete(request: ChatRequest, options?: ModelExecutionOptions): Promise<ChatResponse>;
|
|
354
|
-
stream?(request: ChatRequest, options?: ModelExecutionOptions): AsyncIterable<ChatResponseChunk>;
|
|
355
|
-
getModels?(signal?: AbortSignal): Promise<ModelInfo[]>;
|
|
356
|
-
}
|
|
357
|
-
interface BaseChatModelOptions {
|
|
358
|
-
model: string;
|
|
359
|
-
maxTokens?: number;
|
|
360
|
-
reasoning?: ReasoningConfig;
|
|
361
|
-
providerSessionResolver?: ProviderSessionResolver;
|
|
362
|
-
requestMutators?: ProviderRequestMutator[];
|
|
363
|
-
}
|
|
364
|
-
interface AgentEventContext {
|
|
365
|
-
sessionId: string;
|
|
366
|
-
turnId: string;
|
|
367
|
-
state: TurnState;
|
|
368
|
-
}
|
|
369
|
-
interface ToolExecutionContext extends AgentEventContext {
|
|
370
|
-
signal: AbortSignal;
|
|
371
|
-
toolCallId?: string;
|
|
372
|
-
}
|
|
373
|
-
interface ToolRuntimeStartedEvent {
|
|
374
|
-
type: "tool_started";
|
|
375
|
-
toolCall: ToolUseBlock;
|
|
376
|
-
}
|
|
377
|
-
interface ToolRuntimeOutputChunkEvent {
|
|
378
|
-
type: "tool_output_chunk";
|
|
379
|
-
toolCall: ToolUseBlock;
|
|
380
|
-
chunk: ToolResultChunk;
|
|
381
|
-
}
|
|
382
|
-
interface ToolRuntimeCompletedEvent {
|
|
383
|
-
type: "tool_completed";
|
|
384
|
-
toolCall: ToolUseBlock;
|
|
385
|
-
result: ToolResult;
|
|
386
|
-
}
|
|
387
|
-
interface ToolRuntimeRejectedEvent {
|
|
388
|
-
type: "tool_rejected";
|
|
389
|
-
toolCall: ToolUseBlock;
|
|
390
|
-
result: ToolResult;
|
|
391
|
-
}
|
|
392
|
-
type ToolRuntimeEvent = ToolRuntimeOutputChunkEvent | ToolRuntimeCompletedEvent | ToolRuntimeRejectedEvent | ToolRuntimeStartedEvent;
|
|
393
|
-
interface AgentUserMessageEvent {
|
|
394
|
-
type: "user_message";
|
|
395
|
-
message: Message;
|
|
396
|
-
}
|
|
397
|
-
interface AgentModelRequestEvent {
|
|
398
|
-
type: "model_request";
|
|
399
|
-
request: ChatRequest;
|
|
400
|
-
}
|
|
401
|
-
interface AgentModelResponseEvent {
|
|
402
|
-
type: "model_response";
|
|
403
|
-
response: ChatResponse;
|
|
404
|
-
}
|
|
405
|
-
interface AgentAssistantMessageEvent {
|
|
406
|
-
type: "assistant_message";
|
|
407
|
-
message: IdentifiedMessage;
|
|
408
|
-
}
|
|
409
|
-
interface AgentAssistantChunkEvent {
|
|
410
|
-
type: "assistant_chunk";
|
|
411
|
-
index: number;
|
|
412
|
-
messageId: string;
|
|
413
|
-
chunk: ContentDeltaChunk;
|
|
414
|
-
}
|
|
415
|
-
interface AgentToolUseMessageEvent {
|
|
416
|
-
type: "tool_use_message";
|
|
417
|
-
message: IdentifiedMessage;
|
|
418
|
-
}
|
|
419
|
-
interface AgentToolUseChunkEvent {
|
|
420
|
-
type: "tool_use_chunk";
|
|
421
|
-
index: number;
|
|
422
|
-
messageId: string;
|
|
423
|
-
chunk: ToolUseDeltaChunk;
|
|
424
|
-
}
|
|
425
|
-
interface AgentReasoningMessageEvent {
|
|
426
|
-
type: "reasoning_message";
|
|
427
|
-
message: IdentifiedMessage;
|
|
428
|
-
}
|
|
429
|
-
interface AgentReasoningChunkEvent {
|
|
430
|
-
type: "reasoning_chunk";
|
|
431
|
-
index: number;
|
|
432
|
-
messageId: string;
|
|
433
|
-
chunk: AnthropicThinkingDeltaChunk | OpenAiReasoningDeltaChunk | OpenAiReasoningSummaryDeltaChunk;
|
|
434
|
-
text: string;
|
|
435
|
-
}
|
|
436
|
-
interface AgentToolCallEvent {
|
|
437
|
-
type: "tool_call";
|
|
438
|
-
toolCall: ToolUseBlock;
|
|
439
|
-
}
|
|
440
|
-
interface AgentToolResultEvent {
|
|
441
|
-
type: "tool_result";
|
|
442
|
-
result: ToolResult;
|
|
443
|
-
}
|
|
444
|
-
interface AgentToolResultMessageEvent {
|
|
445
|
-
type: "tool_result_message";
|
|
446
|
-
message: Message;
|
|
447
|
-
}
|
|
448
|
-
interface AgentFinalMessageEvent {
|
|
449
|
-
type: "final_message";
|
|
450
|
-
message: IdentifiedMessage;
|
|
451
|
-
}
|
|
452
|
-
interface AgentTurnCompleteEvent {
|
|
453
|
-
type: "turn_complete";
|
|
454
|
-
state: TurnState;
|
|
455
|
-
}
|
|
456
|
-
type AgentLifecycleEvent = AgentAssistantChunkEvent | AgentAssistantMessageEvent | AgentFinalMessageEvent | AgentModelRequestEvent | AgentModelResponseEvent | AgentReasoningChunkEvent | AgentReasoningMessageEvent | AgentToolCallEvent | AgentToolUseChunkEvent | AgentToolUseMessageEvent | AgentToolResultEvent | AgentToolResultMessageEvent | AgentTurnCompleteEvent | AgentUserMessageEvent;
|
|
457
|
-
type AgentEvent = AgentLifecycleEvent | ToolRuntimeEvent;
|
|
458
|
-
type ToolRuntimeDispatchDecision = {
|
|
459
|
-
action: "reject";
|
|
460
|
-
reason?: string;
|
|
461
|
-
} | {
|
|
462
|
-
action: "run";
|
|
463
|
-
};
|
|
464
|
-
type ToolRuntimeToolCallHandler = (toolCall: ToolUseBlock, ctx: ToolExecutionContext) => Promise<ToolRuntimeDispatchDecision | undefined> | ToolRuntimeDispatchDecision | undefined;
|
|
465
|
-
type ToolRuntimeEventHandler = (event: ToolRuntimeEvent, ctx: ToolExecutionContext) => Promise<void> | void;
|
|
466
|
-
type AgentEventHandler = (event: AgentEvent, ctx: AgentEventContext) => Promise<void> | void;
|
|
467
|
-
interface ToolRuntime {
|
|
468
|
-
listToolSchemas(): ToolSchema[];
|
|
469
|
-
setTools(tools: AnyToolDefinition[]): void;
|
|
470
|
-
executeCalls(toolCalls: ToolUseBlock[], ctx: ToolExecutionContext): Promise<ToolResult[]>;
|
|
471
|
-
execute(toolCall: ToolUseBlock, ctx: ToolExecutionContext): Promise<ToolResult>;
|
|
472
|
-
}
|
|
473
|
-
type InferJsonSchema<TSchema extends JsonSchema> = TSchema extends JsonSchemaString ? string : TSchema extends JsonSchemaNumber ? number : TSchema extends JsonSchemaBoolean ? boolean : TSchema extends JsonSchemaArray<infer TItem> ? InferJsonSchema<TItem>[] : TSchema extends JsonSchemaObject<infer TProperties, infer TRequired> ? Expand<RequiredProperties<TProperties, TRequired> & OptionalProperties<TProperties, TRequired>> : never;
|
|
474
|
-
type Expand<TValue> = TValue extends infer TObject ? {
|
|
475
|
-
[TKey in keyof TObject]: TObject[TKey];
|
|
476
|
-
} : never;
|
|
477
|
-
type RequiredKeyUnion<TRequired extends readonly string[] | undefined> = TRequired extends readonly string[] ? TRequired[number] : never;
|
|
478
|
-
type OptionalKeyUnion<TProperties extends Record<string, JsonSchema>, TRequired extends readonly string[] | undefined> = Exclude<keyof TProperties, RequiredKeyUnion<TRequired>>;
|
|
479
|
-
type RequiredProperties<TProperties extends Record<string, JsonSchema>, TRequired extends readonly string[] | undefined> = {
|
|
480
|
-
[TKey in Extract<keyof TProperties, RequiredKeyUnion<TRequired>>]: InferJsonSchema<TProperties[TKey]>;
|
|
481
|
-
};
|
|
482
|
-
type OptionalProperties<TProperties extends Record<string, JsonSchema>, TRequired extends readonly string[] | undefined> = {
|
|
483
|
-
[TKey in OptionalKeyUnion<TProperties, TRequired>]?: InferJsonSchema<TProperties[TKey]>;
|
|
484
|
-
};
|
|
485
|
-
type ToolOutputValue = JsonValue | ToolOutputEnvelope;
|
|
486
|
-
type ToolGenerator<TYield extends ToolOutputValue = ToolOutputValue, TReturn extends ToolOutputValue | undefined = ToolOutputValue | undefined> = AsyncGenerator<TYield, TReturn, void>;
|
|
487
|
-
interface ToolDefinition<TInput extends JsonObject = JsonObject, TYield extends ToolOutputValue = ToolOutputValue, TReturn extends ToolOutputValue | undefined = ToolOutputValue | undefined, TSchema extends JsonSchemaObject = JsonSchemaObject> {
|
|
488
|
-
name: string;
|
|
489
|
-
description: string;
|
|
490
|
-
inputSchema: TSchema;
|
|
491
|
-
execute(input: TInput, ctx: ToolExecutionContext): ToolGenerator<TYield, TReturn>;
|
|
492
|
-
}
|
|
493
|
-
type AnyToolDefinition = ToolDefinition<JsonObject, ToolOutputValue, ToolOutputValue | undefined, JsonSchemaObject>;
|
|
494
|
-
type Stage = "afterModelResponse" | "afterToolResult" | "afterTurnComplete" | "beforeAssistantAppend" | "beforeFinalOutput" | "beforeModelRequest" | "beforeToolExecution" | "beforeToolResultAppend" | "onUserMessage";
|
|
495
|
-
interface PayloadByStage {
|
|
496
|
-
onUserMessage: Message;
|
|
497
|
-
beforeModelRequest: ChatRequest;
|
|
498
|
-
afterModelResponse: ChatResponse;
|
|
499
|
-
beforeToolExecution: ToolUseBlock;
|
|
500
|
-
afterToolResult: ToolResult;
|
|
501
|
-
beforeAssistantAppend: Message;
|
|
502
|
-
beforeFinalOutput: Message;
|
|
503
|
-
beforeToolResultAppend: Message;
|
|
504
|
-
afterTurnComplete: TurnState;
|
|
505
|
-
}
|
|
506
|
-
interface ExtensionContext {
|
|
507
|
-
state: TurnState;
|
|
508
|
-
}
|
|
509
|
-
type Transformer<S extends Stage> = (payload: PayloadByStage[S], ctx: ExtensionContext) => PayloadByStage[S] | Promise<PayloadByStage[S]>;
|
|
510
|
-
type Observer<S extends Stage> = (payload: PayloadByStage[S], ctx: ExtensionContext) => Promise<void> | void;
|
|
511
|
-
interface TransformerExtensionRegistration<S extends Stage = Stage> {
|
|
512
|
-
id: string;
|
|
513
|
-
stage: S;
|
|
514
|
-
kind: "transformer";
|
|
515
|
-
order: number;
|
|
516
|
-
enabled: boolean;
|
|
517
|
-
run: Transformer<S>;
|
|
518
|
-
}
|
|
519
|
-
interface ObserverExtensionRegistration<S extends Stage = Stage> {
|
|
520
|
-
id: string;
|
|
521
|
-
stage: S;
|
|
522
|
-
kind: "observer";
|
|
523
|
-
order: number;
|
|
524
|
-
enabled: boolean;
|
|
525
|
-
run: Observer<S>;
|
|
526
|
-
}
|
|
527
|
-
type ExtensionRegistration<S extends Stage = Stage> = ObserverExtensionRegistration<S> | TransformerExtensionRegistration<S>;
|
|
528
|
-
type AnyExtensionRegistration = {
|
|
529
|
-
[S in Stage]: ExtensionRegistration<S>;
|
|
530
|
-
}[Stage];
|
|
531
|
-
interface ExtensionRegistry {
|
|
532
|
-
register(extension: AnyExtensionRegistration): void;
|
|
533
|
-
runTransformers<S extends Stage>(stage: S, payload: PayloadByStage[S], ctx: ExtensionContext): Promise<PayloadByStage[S]>;
|
|
534
|
-
runObservers<S extends Stage>(stage: S, payload: PayloadByStage[S], ctx: ExtensionContext): Promise<void>;
|
|
535
|
-
}
|
|
536
|
-
interface RunTurnDeps {
|
|
537
|
-
registry: ExtensionRegistry;
|
|
538
|
-
chatModel: EngineChatModel;
|
|
539
|
-
toolRuntime: ToolRuntime;
|
|
540
|
-
onEvent?: AgentEventHandler;
|
|
541
|
-
}
|
|
542
|
-
type AgentInput = MessageInput | string;
|
|
543
|
-
interface AgentSendOptions {
|
|
544
|
-
streaming?: boolean;
|
|
545
|
-
signal?: AbortSignal;
|
|
546
|
-
}
|
|
547
|
-
interface AgentOptions {
|
|
548
|
-
sessionId?: string;
|
|
549
|
-
systemPrompt?: string;
|
|
550
|
-
messages?: MessageInput[];
|
|
551
|
-
message?: AgentInput;
|
|
552
|
-
onEvent?: AgentEventHandler;
|
|
553
|
-
onToolCall?: ToolRuntimeToolCallHandler;
|
|
554
|
-
registry?: ExtensionRegistry;
|
|
555
|
-
extensions?: AnyExtensionRegistration[];
|
|
556
|
-
chatModel?: EngineChatModel;
|
|
557
|
-
tools?: AnyToolDefinition[];
|
|
558
|
-
}
|
|
559
|
-
interface AgentDefinitionFactoryContext {
|
|
560
|
-
agentId: string;
|
|
561
|
-
parentSessionId?: string;
|
|
562
|
-
runId?: string;
|
|
563
|
-
toolCallId?: string;
|
|
564
|
-
}
|
|
565
|
-
interface AgentDefinition {
|
|
566
|
-
id: string;
|
|
567
|
-
description?: string;
|
|
568
|
-
enabled?: boolean;
|
|
569
|
-
allowedChildAgentIds?: string[];
|
|
570
|
-
createOptions(ctx?: AgentDefinitionFactoryContext): AgentOptions;
|
|
571
|
-
}
|
|
572
|
-
type ManagedRunStatus = "aborted" | "completed" | "failed" | "idle" | "running";
|
|
573
|
-
interface ManagedRunError {
|
|
574
|
-
message: string;
|
|
575
|
-
}
|
|
576
|
-
interface ManagedAgentRun {
|
|
577
|
-
runId: string;
|
|
578
|
-
agentId: string;
|
|
579
|
-
sessionId: string;
|
|
580
|
-
status: ManagedRunStatus;
|
|
581
|
-
depth: number;
|
|
582
|
-
parentRunId?: string;
|
|
583
|
-
originToolCallId?: string;
|
|
584
|
-
result?: TurnResult;
|
|
585
|
-
error?: ManagedRunError;
|
|
586
|
-
}
|
|
587
|
-
interface ManagedAgentRunHandle {
|
|
588
|
-
readonly runId: string;
|
|
589
|
-
readonly agentId: string;
|
|
590
|
-
readonly sessionId: string;
|
|
591
|
-
send(input: AgentInput, options?: AgentSendOptions): Promise<TurnResult>;
|
|
592
|
-
snapshot(): ManagedAgentRun;
|
|
593
|
-
wait(signal?: AbortSignal): Promise<ManagedAgentRun>;
|
|
594
|
-
}
|
|
595
|
-
interface ManagedRunEvent {
|
|
596
|
-
runId: string;
|
|
597
|
-
agentId: string;
|
|
598
|
-
sessionId: string;
|
|
599
|
-
parentRunId?: string;
|
|
600
|
-
originToolCallId?: string;
|
|
601
|
-
event: AgentEvent;
|
|
602
|
-
}
|
|
603
|
-
type ManagedRunEventHandler = (event: ManagedRunEvent) => Promise<void> | void;
|
|
604
|
-
interface RuntimeManagerOptions {
|
|
605
|
-
onEvent?: ManagedRunEventHandler;
|
|
606
|
-
}
|
|
607
|
-
interface CreateManagedRunInput {
|
|
608
|
-
agentId: string;
|
|
609
|
-
parentRunId?: string;
|
|
610
|
-
originToolCallId?: string;
|
|
611
|
-
}
|
|
612
|
-
interface CompileRequestInput {
|
|
613
|
-
sessionId: string;
|
|
614
|
-
turnId: string;
|
|
615
|
-
reasoning?: ReasoningConfig;
|
|
616
|
-
system?: SystemInput;
|
|
617
|
-
messages: MessageInput[];
|
|
618
|
-
tools?: ToolSchema[];
|
|
619
|
-
model?: string;
|
|
620
|
-
max_tokens?: number;
|
|
621
|
-
}
|
|
622
|
-
interface OpenAiInputText {
|
|
623
|
-
type: "input_text";
|
|
624
|
-
text: string;
|
|
625
|
-
}
|
|
626
|
-
interface OpenAiInputImage {
|
|
627
|
-
type: "input_image";
|
|
628
|
-
image_url: string;
|
|
629
|
-
detail?: string;
|
|
630
|
-
}
|
|
631
|
-
interface OpenAiInputMessage {
|
|
632
|
-
type: "message";
|
|
633
|
-
role: MessageRole;
|
|
634
|
-
content: Array<OpenAiInputImage | OpenAiInputText>;
|
|
635
|
-
}
|
|
636
|
-
interface OpenAiFunctionCall {
|
|
637
|
-
type: "function_call";
|
|
638
|
-
call_id: string;
|
|
639
|
-
name: string;
|
|
640
|
-
arguments: string;
|
|
641
|
-
}
|
|
642
|
-
interface OpenAiFunctionCallOutput {
|
|
643
|
-
type: "function_call_output";
|
|
644
|
-
call_id: string;
|
|
645
|
-
output: string;
|
|
646
|
-
}
|
|
647
|
-
interface OpenAiOutputTextPart {
|
|
648
|
-
type: "output_text";
|
|
649
|
-
text: string;
|
|
650
|
-
}
|
|
651
|
-
interface OpenAiRefusalPart {
|
|
652
|
-
type: "refusal";
|
|
653
|
-
refusal: string;
|
|
654
|
-
}
|
|
655
|
-
interface OpenAiOutputMessage {
|
|
656
|
-
type: "message";
|
|
657
|
-
content?: Array<OpenAiOutputTextPart | OpenAiRefusalPart>;
|
|
658
|
-
role?: string;
|
|
659
|
-
status?: string;
|
|
660
|
-
}
|
|
661
|
-
interface OpenAiReasoningOutputItem {
|
|
662
|
-
type: "reasoning";
|
|
663
|
-
content?: Array<{
|
|
664
|
-
text?: string;
|
|
665
|
-
type?: string;
|
|
666
|
-
}>;
|
|
667
|
-
encrypted_content?: string;
|
|
668
|
-
id?: string;
|
|
669
|
-
status?: string;
|
|
670
|
-
summary?: OpenAiReasoningSummaryText[];
|
|
671
|
-
text?: string;
|
|
672
|
-
}
|
|
673
|
-
type OpenAiResponsesOutputItem = JsonObject | OpenAiFunctionCall | OpenAiOutputMessage | OpenAiReasoningOutputItem;
|
|
674
|
-
interface OpenAiResponsesReasoningParam {
|
|
675
|
-
effort?: OpenAiReasoningEffort;
|
|
676
|
-
generate_summary?: OpenAiReasoningSummary;
|
|
677
|
-
summary?: OpenAiReasoningSummary;
|
|
678
|
-
}
|
|
679
|
-
interface OpenAiFunctionTool {
|
|
680
|
-
type: "function";
|
|
681
|
-
name: string;
|
|
682
|
-
description: string;
|
|
683
|
-
parameters: JsonSchemaObject;
|
|
684
|
-
}
|
|
685
|
-
interface OpenAiResponsesRequest {
|
|
686
|
-
include?: string[];
|
|
687
|
-
model: string;
|
|
688
|
-
instructions: string;
|
|
689
|
-
input: Array<OpenAiFunctionCall | OpenAiFunctionCallOutput | OpenAiInputMessage | OpenAiResponsesOutputItem>;
|
|
690
|
-
max_output_tokens?: number;
|
|
691
|
-
reasoning?: OpenAiResponsesReasoningParam;
|
|
692
|
-
tools: OpenAiFunctionTool[];
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
export type { AnthropicThinkingBlock as $, AgentOptions as A, BaseChatModelOptions as B, ContentInput as C, AutoReasoningEffort as D, ExtensionRegistry as E, AnthropicThinkingConfig as F, OpenAiReasoningConfig as G, JsonObject as H, JsonValue as I, JsonPrimitive as J, JsonSchemaType as K, JsonSchemaString as L, Message as M, JsonSchemaNumber as N, OpenAiResponsesRequest as O, ProviderSessionResolver as P, JsonSchemaBoolean as Q, RunTurnDeps as R, SystemInput as S, TurnResult as T, JsonSchemaArray as U, JsonSchemaObject as V, JsonSchema as W, ImageMediaType as X, ImageBlock as Y, ToolResultContentBlock as Z, ToolResultContent as _, AgentInput as a, ToolOutputValue as a$, AnthropicRedactedThinkingBlock as a0, OpenAiReasoningSummaryText as a1, OpenAiReasoningBlock as a2, AnthropicThinkingWireBlock as a3, AnthropicRedactedThinkingWireBlock as a4, AnthropicAssistantContentBlock as a5, ReasoningVisibility as a6, AutoReasoningConfig as a7, AnthropicThinkingDisplay as a8, AnthropicThinkingEffort as a9, ToolRuntimeStartedEvent as aA, ToolRuntimeOutputChunkEvent as aB, ToolRuntimeCompletedEvent as aC, ToolRuntimeRejectedEvent as aD, ToolRuntimeEvent as aE, AgentUserMessageEvent as aF, AgentModelRequestEvent as aG, AgentModelResponseEvent as aH, AgentAssistantMessageEvent as aI, AgentAssistantChunkEvent as aJ, AgentToolUseMessageEvent as aK, AgentToolUseChunkEvent as aL, AgentReasoningMessageEvent as aM, AgentReasoningChunkEvent as aN, AgentToolCallEvent as aO, AgentToolResultEvent as aP, AgentToolResultMessageEvent as aQ, AgentFinalMessageEvent as aR, AgentTurnCompleteEvent as aS, AgentLifecycleEvent as aT, AgentEvent as aU, ToolRuntimeDispatchDecision as aV, ToolRuntimeToolCallHandler as aW, ToolRuntimeEventHandler as aX, AgentEventHandler as aY, ToolRuntime as aZ, InferJsonSchema as a_, AnthropicEnabledThinkingConfig as aa, AnthropicAdaptiveThinkingConfig as ab, AnthropicDisabledThinkingConfig as ac, OpenAiReasoningEffort as ad, OpenAiReasoningSummary as ae, MessageProviderState as af, AssistantContentBlock as ag, MessageRole as ah, IdentifiedMessage as ai, ToolSchema as aj, Usage as ak, ContentDeltaChunk as al, ToolUseDeltaChunk as am, AnthropicThinkingDeltaChunk as an, AnthropicSignatureDeltaChunk as ao, OpenAiReasoningDeltaChunk as ap, OpenAiReasoningSummaryDeltaChunk as aq, ModelLimits as ar, ToolResultMeta as as, ToolResultChunk as at, ToolOutputEnvelope as au, TurnResultStatus as av, PrepareRequestInput as aw, ChatModel as ax, AgentEventContext as ay, ToolExecutionContext as az, AgentSendOptions as b, ToolGenerator as b0, ToolDefinition as b1, AnyToolDefinition as b2, Stage as b3, PayloadByStage as b4, ExtensionContext as b5, Transformer as b6, Observer as b7, TransformerExtensionRegistration as b8, ObserverExtensionRegistration as b9, ExtensionRegistration as ba, AnyExtensionRegistration as bb, AgentDefinitionFactoryContext as bc, AgentDefinition as bd, ManagedRunStatus as be, ManagedRunError as bf, ManagedAgentRun as bg, ManagedAgentRunHandle as bh, ManagedRunEvent as bi, ManagedRunEventHandler as bj, RuntimeManagerOptions as bk, CreateManagedRunInput as bl, OpenAiInputText as bm, OpenAiInputImage as bn, OpenAiInputMessage as bo, OpenAiFunctionCall as bp, OpenAiFunctionCallOutput as bq, OpenAiOutputTextPart as br, OpenAiRefusalPart as bs, OpenAiOutputMessage as bt, OpenAiReasoningOutputItem as bu, OpenAiResponsesOutputItem as bv, OpenAiResponsesReasoningParam as bw, OpenAiFunctionTool as bx, TurnInput as c, TurnState as d, TextBlock as e, ContentBlock as f, MessageInput as g, CompileRequestInput as h, ModelRequest as i, ChatRequest as j, ModelResponse as k, ChatResponse as l, ToolUseBlock as m, ToolResultBlock as n, ToolResult as o, ResolvedProviderSession as p, ProviderRequestMutator as q, PreparedRequest as r, ProviderCredential as s, EngineChatModel as t, ReasoningConfig as u, ChatResponseChunk as v, ModelExecutionOptions as w, ModelInfo as x, ProviderCredentialKind as y, ProviderEndpoints as z };
|