@nuvin/agent-core 0.0.0-rc.18 → 0.0.0-rc.19

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