@fifthrevision/axle 0.20.0 → 0.22.0

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/index.d.ts CHANGED
@@ -1,383 +1,6 @@
1
- import { A as FileResolveRequest, B as TracingContext, C as TurnStatus, D as FileKind, E as FileInfo, F as SpanData, I as SpanEvent, L as SpanOptions, M as ResolvedFileSource, N as loadFileContent, O as FileProviderId, P as EventLevel, R as SpanType, S as TurnPart, T as DeferredFileInfo, V as Stats, _ as TextPart, b as ToolAction, c as TurnEvent, d as Annotation, f as AnnotationPlacement, g as SubagentAction, h as ProviderToolAction, i as TurnAccumulatorState, j as FileResolver, k as FileResolveFormat, l as ActionPart, m as FilePart, n as TurnAccumulator, o as AnnotationEvent, p as AnnotationStatus, r as TurnAccumulatorResult, s as AnnotationTarget, t as AccumulatableEvent, u as ActionResult, v as ThinkingPart, w as ConcreteFileInfo, x as Turn, z as TraceWriter } from "./accumulator-D2NgIGxp.js";
1
+ import { $ as ContextUsage, A as ToolRegistry, B as ContentPartCitation, C as TurnMetadata, D as ProviderTool, E as ExecutableTool, F as AxleUserMessage, G as ContentPartToolCall, H as ContentPartProviderTool, I as Citation, J as ThinkingContinuity, K as DocumentLocator, L as CitationOutputSpan, M as AxleMessage, N as AxleToolCallMessage, O as ToolContext, P as AxleToolCallResult, Q as AxleStopReason, R as CitationSource, S as Turn, T as TurnStatus, U as ContentPartText, V as ContentPartFile, W as ContentPartThinking, X as AIProvider, Y as ToolResultPart, Z as AxleModelRequestOptions, _ as SubagentAction, _t as SpanOptions, at as DeferredFileInfo, bt as TracingContext, c as TurnEvent, ct as FileProviderId, d as Annotation, dt as FileResolver, et as ModelError, f as AnnotationPlacement, ft as ResolvedFileSource, g as ProviderToolAction, gt as SpanEvent, h as FilePart, ht as SpanData, i as TurnAccumulatorState, it as ToolChoice, j as AxleAssistantMessage, k as ToolDefinition, l as ActionPart, lt as FileResolveFormat, m as CitationPart, mt as EventLevel, n as TurnAccumulator, nt as ProviderClientOptions, o as AnnotationEvent, ot as FileInfo, p as AnnotationStatus, pt as loadFileContent, q as MessageMetadata, r as TurnAccumulatorResult, rt as ProviderOptions, s as AnnotationTarget, st as FileKind, t as AccumulatableEvent, tt as ModelResult, u as ActionResult, ut as FileResolveRequest, v as TextPart, vt as SpanType, w as TurnPart, x as ToolAction, xt as Stats, y as ThinkingPart, yt as TraceWriter, z as ContentPart } from "./accumulator-BlXyH_os.js";
2
2
  import * as z$2 from "zod";
3
- import { ZodObject, z } from "zod";
4
3
 
5
- //#region src/messages/stream.d.ts
6
- interface StreamChunk {
7
- type: "start" | "text-start" | "text-delta" | "text-complete" | "tool-call-start" | "tool-call-args-delta" | "tool-call-complete" | "thinking-start" | "thinking-delta" | "thinking-summary-delta" | "thinking-complete" | "provider-tool-start" | "provider-tool-complete" | "complete" | "error";
8
- id?: string;
9
- data?: any;
10
- }
11
- interface StreamStartChunk extends StreamChunk {
12
- type: "start";
13
- id: string;
14
- data: {
15
- model: string;
16
- timestamp: number;
17
- };
18
- }
19
- interface StreamCompleteChunk extends StreamChunk {
20
- type: "complete";
21
- data: {
22
- finishReason: AxleStopReason;
23
- usage: Stats;
24
- };
25
- }
26
- interface StreamErrorChunk extends StreamChunk {
27
- type: "error";
28
- data: {
29
- type: string;
30
- message: string;
31
- usage?: Stats;
32
- raw?: any;
33
- };
34
- }
35
- interface StreamTextStartChunk extends StreamChunk {
36
- type: "text-start";
37
- data: {
38
- index: number;
39
- };
40
- }
41
- interface StreamTextDeltaChunk extends StreamChunk {
42
- type: "text-delta";
43
- data: {
44
- index: number;
45
- text: string;
46
- };
47
- }
48
- interface StreamTextCompleteChunk extends StreamChunk {
49
- type: "text-complete";
50
- data: {
51
- index: number;
52
- };
53
- }
54
- interface StreamThinkingStartChunk extends StreamChunk {
55
- type: "thinking-start";
56
- data: {
57
- index: number;
58
- id?: string;
59
- redacted?: boolean;
60
- signature?: string;
61
- };
62
- }
63
- interface StreamThinkingDeltaChunk extends StreamChunk {
64
- type: "thinking-delta";
65
- data: {
66
- index: number;
67
- text: string;
68
- };
69
- }
70
- interface StreamThinkingSummaryDeltaChunk extends StreamChunk {
71
- type: "thinking-summary-delta";
72
- data: {
73
- index: number;
74
- text: string;
75
- };
76
- }
77
- interface StreamThinkingCompleteChunk extends StreamChunk {
78
- type: "thinking-complete";
79
- data: {
80
- index: number;
81
- };
82
- }
83
- interface StreamToolCallStartChunk extends StreamChunk {
84
- type: "tool-call-start";
85
- data: {
86
- index: number;
87
- id: string;
88
- name: string;
89
- };
90
- }
91
- interface StreamToolCallArgsDeltaChunk extends StreamChunk {
92
- type: "tool-call-args-delta";
93
- data: {
94
- index: number;
95
- id: string;
96
- name: string;
97
- delta: string;
98
- accumulated: string;
99
- };
100
- }
101
- interface StreamToolCallCompleteChunk extends StreamChunk {
102
- type: "tool-call-complete";
103
- data: {
104
- index: number;
105
- id: string;
106
- name: string;
107
- arguments: any;
108
- providerMetadata?: Record<string, unknown>;
109
- };
110
- }
111
- interface StreamProviderToolStartChunk extends StreamChunk {
112
- type: "provider-tool-start";
113
- data: {
114
- index: number;
115
- id: string;
116
- name: string;
117
- };
118
- }
119
- interface StreamProviderToolCompleteChunk extends StreamChunk {
120
- type: "provider-tool-complete";
121
- data: {
122
- index: number;
123
- id: string;
124
- name: string;
125
- output?: unknown;
126
- };
127
- }
128
- type AnyStreamChunk = StreamStartChunk | StreamCompleteChunk | StreamErrorChunk | StreamTextStartChunk | StreamTextDeltaChunk | StreamTextCompleteChunk | StreamThinkingStartChunk | StreamThinkingDeltaChunk | StreamThinkingSummaryDeltaChunk | StreamThinkingCompleteChunk | StreamToolCallStartChunk | StreamToolCallArgsDeltaChunk | StreamToolCallCompleteChunk | StreamProviderToolStartChunk | StreamProviderToolCompleteChunk;
129
- //#endregion
130
- //#region src/providers/types.d.ts
131
- type AnthropicProviderConfig = {
132
- "api-key": string;
133
- model?: string;
134
- };
135
- type OpenAIProviderConfig = {
136
- "api-key": string;
137
- model?: string;
138
- };
139
- type GeminiProviderConfig = {
140
- "api-key": string;
141
- model?: string;
142
- };
143
- type ChatCompletionsProviderConfig = {
144
- "base-url": string;
145
- model: string;
146
- "api-key"?: string;
147
- };
148
- /**
149
- * Internal services available to provider adapters while executing a model request.
150
- */
151
- interface ProviderRuntime {
152
- /** Request-scoped tracing span used by provider adapters. */
153
- tracer?: TracingContext;
154
- /** Resolves file references before provider-specific request conversion. */
155
- fileResolver?: FileResolver;
156
- }
157
- /**
158
- * Raw provider-specific request fields.
159
- *
160
- * Provider adapters apply this after Axle-normalized options, so these values
161
- * can intentionally override Axle's provider mappings.
162
- */
163
- interface ProviderOptions {
164
- [key: string]: any;
165
- }
166
- /**
167
- * Controls how the model may use tools during a single model request.
168
- */
169
- type ToolChoice = "auto" | "none" | "required" | {
170
- type: "tool";
171
- name: string;
172
- };
173
- /**
174
- * Provider-portable options for a single model request.
175
- *
176
- * These fields are normalized by Axle and mapped to each provider's request
177
- * shape. Use `providerOptions` for provider-specific controls that are not
178
- * represented here.
179
- */
180
- interface AxleModelRequestOptions {
181
- /** Enables or disables provider reasoning/thinking controls where supported. */
182
- reasoning?: boolean;
183
- /** Maximum output tokens to request from the model. */
184
- maxOutputTokens?: number;
185
- /** Sampling temperature, when supported by the provider/model. */
186
- temperature?: number;
187
- /** Nucleus sampling value, mapped to provider-specific casing. */
188
- topP?: number;
189
- /** Stop sequence or sequences for text generation. */
190
- stop?: string | string[];
191
- /** Constrains tool use for this model request. */
192
- toolChoice?: ToolChoice;
193
- /** Requests that the provider avoid parallel tool calls when supported. */
194
- parallelToolCalls?: boolean;
195
- /** Raw provider-specific request fields applied after normalized mappings. */
196
- providerOptions?: ProviderOptions;
197
- /** Abort signal for the in-flight model request. */
198
- signal?: AbortSignal;
199
- }
200
- /**
201
- * Parameters passed to provider adapters for one non-streaming generation call.
202
- */
203
- interface ProviderGenerationParams extends AxleModelRequestOptions {
204
- /** Conversation messages to send to the provider. */
205
- messages: Array<AxleMessage>;
206
- /** Optional system/developer instruction for the request. */
207
- system?: string;
208
- /** Executable tools exposed as provider function tools. */
209
- tools?: Array<ToolDefinition>;
210
- /** Provider-managed tools such as web search or code execution. */
211
- providerTools?: Array<ProviderTool>;
212
- /** Internal services available during provider request creation. */
213
- runtime: ProviderRuntime;
214
- }
215
- /**
216
- * Parameters passed to provider adapters for one streaming generation call.
217
- */
218
- interface ProviderStreamParams extends ProviderGenerationParams {}
219
- interface ContextUsage {
220
- total: number;
221
- system: number;
222
- tools: number;
223
- mcpTools: number;
224
- providerTools: number;
225
- messages: number;
226
- limit?: number;
227
- free?: number;
228
- }
229
- interface AIProvider {
230
- get name(): string;
231
- /** @internal */
232
- createGenerationRequest(model: string, params: ProviderGenerationParams): Promise<ModelResult>;
233
- /** @internal */
234
- createStreamingRequest(model: string, params: ProviderStreamParams): AsyncGenerator<AnyStreamChunk, void, unknown>;
235
- }
236
- interface ModelResponse {
237
- type: "success";
238
- role: "assistant";
239
- id: string;
240
- model: string;
241
- text: string;
242
- content: Array<ContentPartText | ContentPartThinking | ContentPartToolCall>;
243
- finishReason: AxleStopReason;
244
- usage: Stats;
245
- raw: any;
246
- }
247
- interface ModelError {
248
- type: "error";
249
- error: {
250
- type: string;
251
- message: string;
252
- };
253
- usage?: Stats;
254
- raw?: any;
255
- }
256
- type ModelResult = ModelResponse | ModelError;
257
- declare enum AxleStopReason {
258
- Stop = "stop",
259
- Length = "length",
260
- FunctionCall = "function_call",
261
- Error = "error",
262
- Custom = "custom",
263
- Cancelled = "cancelled"
264
- }
265
- //#endregion
266
- //#region src/messages/message.d.ts
267
- type AxleMessage = AxleUserMessage | AxleAssistantMessage | AxleToolCallMessage;
268
- type ToolResultPart = {
269
- type: "text";
270
- text: string;
271
- } | {
272
- type: "file";
273
- file: ConcreteFileInfo;
274
- };
275
- interface AxleUserMessage {
276
- role: "user";
277
- id?: string;
278
- name?: string;
279
- content: string | Array<ContentPart>;
280
- }
281
- interface AxleAssistantMessage {
282
- role: "assistant";
283
- id: string;
284
- model?: string;
285
- content: Array<ContentPartText | ContentPartThinking | ContentPartToolCall | ContentPartProviderTool>;
286
- finishReason?: AxleStopReason;
287
- }
288
- interface AxleToolCallMessage {
289
- role: "tool";
290
- id: string;
291
- content: Array<AxleToolCallResult>;
292
- }
293
- interface AxleToolCallResult {
294
- id: string;
295
- name: string;
296
- content: string | ToolResultPart[];
297
- isError?: boolean;
298
- }
299
- type ContentPart = ContentPartText | ContentPartFile | ContentPartToolCall | ContentPartThinking | ContentPartProviderTool;
300
- interface ContentPartText {
301
- type: "text";
302
- text: string;
303
- }
304
- interface ContentPartFile {
305
- type: "file";
306
- file: FileInfo;
307
- }
308
- interface ContentPartThinking {
309
- type: "thinking";
310
- id?: string;
311
- text: string;
312
- summary?: string;
313
- redacted?: boolean;
314
- encrypted?: string;
315
- signature?: string;
316
- }
317
- interface ContentPartToolCall {
318
- type: "tool-call";
319
- id: string;
320
- name: string;
321
- parameters: Record<string, unknown>;
322
- providerMetadata?: Record<string, unknown>;
323
- }
324
- interface ContentPartProviderTool {
325
- type: "provider-tool";
326
- id: string;
327
- name: string;
328
- input?: unknown;
329
- output?: unknown;
330
- }
331
- //#endregion
332
- //#region src/tools/registry.d.ts
333
- declare class ToolRegistry {
334
- private tools;
335
- private mcpTools;
336
- private providerTools;
337
- constructor(init?: {
338
- tools?: ExecutableTool[];
339
- providerTools?: ProviderTool[];
340
- });
341
- add(tool: ExecutableTool): void;
342
- add(tools: ExecutableTool[]): void;
343
- addMcp(tool: ExecutableTool): void;
344
- addMcp(tools: ExecutableTool[]): void;
345
- addProvider(tool: ProviderTool): void;
346
- addProvider(tools: ProviderTool[]): void;
347
- remove(name: string): boolean;
348
- has(name: string): boolean;
349
- get(name: string): ExecutableTool | undefined;
350
- getProvider(name: string): ProviderTool | undefined;
351
- executable(): ExecutableTool[];
352
- local(): ExecutableTool[];
353
- mcp(): ExecutableTool[];
354
- provider(): ProviderTool[];
355
- get size(): number;
356
- }
357
- //#endregion
358
- //#region src/tools/types.d.ts
359
- interface ToolContext {
360
- registry: ToolRegistry;
361
- signal: AbortSignal;
362
- emit: (chunk: string) => void;
363
- tracer?: TracingContext;
364
- }
365
- interface ExecutableTool<TSchema extends ZodObject<any> = ZodObject<any>> {
366
- type?: "function";
367
- name: string;
368
- description: string;
369
- schema: TSchema;
370
- execute(input: z.infer<TSchema>, ctx: ToolContext): Promise<string | ToolResultPart[]>;
371
- configure?(config: Record<string, any>): void;
372
- summarize?(input: z.infer<TSchema>): string;
373
- }
374
- interface ProviderTool {
375
- type: "provider";
376
- name: string;
377
- config?: Record<string, unknown>;
378
- }
379
- type ToolDefinition = Pick<ExecutableTool, "name" | "description" | "schema">;
380
- //#endregion
381
4
  //#region src/mcp/MCP.d.ts
382
5
  interface MCPStdioConfig {
383
6
  transport: "stdio";
@@ -436,6 +59,7 @@ interface InstructOptions<TSchema extends OutputSchema | undefined = OutputSchem
436
59
  prompt: string;
437
60
  schema?: TSchema;
438
61
  vars?: InstructVarsMode;
62
+ metadata?: MessageMetadata;
439
63
  }
440
64
  declare class Instruct<TSchema extends OutputSchema | undefined = undefined> {
441
65
  prompt: string;
@@ -446,6 +70,7 @@ declare class Instruct<TSchema extends OutputSchema | undefined = undefined> {
446
70
  name?: string;
447
71
  }>;
448
72
  vars: InstructVarsMode;
73
+ metadata?: MessageMetadata;
449
74
  schema: TSchema;
450
75
  constructor(options: InstructOptions<TSchema>);
451
76
  clone(): Instruct<TSchema>;
@@ -740,6 +365,11 @@ type AgentHandle<T = string> = Handle<AgentResult<T> | AgentErrorResult>;
740
365
  type TurnEventCallback = (event: TurnEvent) => void;
741
366
  interface SendMessageOptions extends AxleModelRequestOptions {
742
367
  fileResolver?: FileResolver;
368
+ /**
369
+ * Stable host-owned metadata attached to the user message and copied to the
370
+ * renderable user turn. Providers ignore this data.
371
+ */
372
+ metadata?: MessageMetadata;
743
373
  }
744
374
  //#endregion
745
375
  //#region src/core/agent/Agent.d.ts
@@ -759,7 +389,13 @@ declare class Agent {
759
389
  private memory?;
760
390
  private eventCallbacks;
761
391
  private sendQueue;
762
- constructor(config: AgentConfig);
392
+ /**
393
+ * Create an agent from runtime config and, optionally, restore saved session state.
394
+ *
395
+ * When both `config.sessionId` and `session.sessionId` are supplied, the
396
+ * restored session id wins.
397
+ */
398
+ constructor(config: AgentConfig, session?: AgentSession);
763
399
  addMcp(mcp: MCP): void;
764
400
  addMcps(mcps: MCP[]): void;
765
401
  hasTools(): boolean;
@@ -929,11 +565,12 @@ declare class TaskError extends AxleError {
929
565
  }
930
566
  //#endregion
931
567
  //#region src/providers/anthropic/provider.d.ts
932
- declare function anthropic(apiKey: string): AIProvider;
568
+ declare function anthropic(apiKey: string, options?: ProviderClientOptions): AIProvider;
933
569
  //#endregion
934
570
  //#region src/providers/anthropic/index.d.ts
935
571
  declare const Anthropic: {
936
572
  readonly Models: {
573
+ readonly CLAUDE_OPUS_4_8: "claude-opus-4-8";
937
574
  readonly CLAUDE_OPUS_4_7: "claude-opus-4-7";
938
575
  readonly CLAUDE_SONNET_4_6: "claude-sonnet-4-6";
939
576
  readonly CLAUDE_OPUS_4_6: "claude-opus-4-6";
@@ -954,7 +591,13 @@ declare const Anthropic: {
954
591
  };
955
592
  //#endregion
956
593
  //#region src/providers/chatcompletions/provider.d.ts
594
+ interface ChatCompletionsOptions extends ProviderClientOptions {
595
+ apiKey?: string;
596
+ providerToolVendor?: "openrouter";
597
+ }
598
+ declare function chatCompletions(baseUrl: string, options?: ChatCompletionsOptions): AIProvider;
957
599
  declare function chatCompletions(baseUrl: string, apiKey?: string): AIProvider;
600
+ declare function chatCompletions(baseUrl: string, apiKey: string, options?: Omit<ChatCompletionsOptions, "apiKey">): AIProvider;
958
601
  //#endregion
959
602
  //#region src/providers/context.d.ts
960
603
  interface ContextEstimateInput {
@@ -968,7 +611,7 @@ interface ContextEstimateInput {
968
611
  declare function estimateContextUsage(input: ContextEstimateInput): ContextUsage;
969
612
  //#endregion
970
613
  //#region src/providers/gemini/provider.d.ts
971
- declare function gemini(apiKey: string): AIProvider;
614
+ declare function gemini(apiKey: string, options?: ProviderClientOptions): AIProvider;
972
615
  //#endregion
973
616
  //#region src/providers/gemini/index.d.ts
974
617
  declare const Gemini: {
@@ -994,7 +637,7 @@ declare const Gemini: {
994
637
  readonly GEMINI_FLASH_LITE_LATEST: "gemini-flash-lite-latest";
995
638
  readonly GEMINI_PRO_LATEST: "gemini-pro-latest";
996
639
  };
997
- readonly DefaultModel: "gemini-3.1-flash-lite-preview";
640
+ readonly DefaultModel: "gemini-3.5-flash";
998
641
  };
999
642
  //#endregion
1000
643
  //#region src/providers/generate.d.ts
@@ -1055,18 +698,42 @@ type StreamEvent = {
1055
698
  index: number;
1056
699
  delta: string;
1057
700
  accumulated: string;
701
+ } | {
702
+ type: "text:citation";
703
+ index: number;
704
+ citation: Citation;
705
+ citations: Citation[];
1058
706
  } | {
1059
707
  type: "text:end";
1060
708
  index: number;
1061
709
  final: string;
710
+ } | {
711
+ type: "citation";
712
+ index: number;
713
+ citations: Citation[];
714
+ providerMetadata?: Record<string, unknown>;
1062
715
  } | {
1063
716
  type: "thinking:start";
1064
717
  index: number;
718
+ redacted?: boolean;
719
+ continuity?: ThinkingContinuity;
720
+ providerMetadata?: Record<string, unknown>;
1065
721
  } | {
1066
722
  type: "thinking:delta";
1067
723
  index: number;
1068
724
  delta: string;
1069
725
  accumulated: string;
726
+ } | {
727
+ type: "thinking:summary-delta";
728
+ index: number;
729
+ delta: string;
730
+ accumulated: string;
731
+ } | {
732
+ type: "thinking:update";
733
+ index: number;
734
+ redacted?: boolean;
735
+ continuity?: ThinkingContinuity;
736
+ providerMetadata?: Record<string, unknown>;
1070
737
  } | {
1071
738
  type: "thinking:end";
1072
739
  index: number;
@@ -1147,7 +814,7 @@ declare function stream<TSchema extends OutputSchema | undefined>(options: Strea
1147
814
  declare function stream(options: StreamParams): StreamHandle;
1148
815
  //#endregion
1149
816
  //#region src/providers/openai/provider.d.ts
1150
- declare function openai(apiKey: string): AIProvider;
817
+ declare function openai(apiKey: string, options?: ProviderClientOptions): AIProvider;
1151
818
  //#endregion
1152
819
  //#region src/providers/openai/index.d.ts
1153
820
  declare const OpenAI: {
@@ -1306,4 +973,4 @@ interface FileStore {
1306
973
  declare function createStats(): Stats;
1307
974
  declare function addStats(total: Stats, usage?: Stats): void;
1308
975
  //#endregion
1309
- export { type AIProvider, type AccumulatableEvent, type ActionPart, type ActionResult, Agent, type AgentConfig, type AgentDefinition, type AgentDefinitionRequestOptions, type AgentDefinitionResolver, type AgentErrorResult, type AgentHandle, type AgentMemory, type AgentResult, type AgentSession, type Annotation, type AnnotationEvent, type AnnotationPlacement, type AnnotationStatus, type AnnotationTarget, Anthropic, type AnthropicProviderConfig, AxleAbortError, AxleAgentAbortError, type AxleAssistantMessage, AxleError, type AxleMessage, type AxleModelRequestOptions, AxleStopReason, type AxleToolCallMessage, type AxleToolCallResult, AxleToolFatalError, type AxleUserMessage, type ChatCompletionsProviderConfig, type ContentPart, type ContentPartFile, type ContentPartProviderTool, type ContentPartText, type ContentPartThinking, type ContentPartToolCall, type ContextUsage, type DeferredFileInfo, type EventLevel, type ExecutableTool, type FileInfo, type FileKind, type FilePart, type FileProviderId, type FileResolveFormat, type FileResolveRequest, type FileResolver, type FileStore, Gemini, type GeminiProviderConfig, type GenerateInstructParams, type GenerateInstructResult, type GenerateParams, type Handle, History, Instruct, type InstructInputs, type InstructOptions, type InstructResponse, InstructVariableError, type InstructVarsMode, MCP, type MCPConfig, type MCPHttpConfig, type MCPStdioConfig, type MaybePromise, type MemoryContext, OpenAI, type OpenAIProviderConfig, type OutputSchema, type ParsedSchema, type ProviderDefinition, type ProviderOptions, type ProviderTool, type ProviderToolAction, type ProviderToolDefinitionRef, type RecallResult, type ResolvedAgentDefinition, type ResolvedFileSource, type SavedAgent, type SendMessageOptions, SimpleWriter, type SimpleWriterOptions, type SpanData, type SpanOptions, type SpanType, type Stats, type StreamEvent, type StreamEventCallback, type StreamHandle, type StreamInstructHandle, type StreamInstructParams, type StreamInstructResult, type StreamParams, type StreamResult, type SubagentAction, TaskError, type TextPart, type ThinkingPart, type ToolAction, type ToolChoice, type ToolContext, type ToolDefinition, type ToolDefinitionRef, ToolRegistry, type ToolResultPart, type TraceWriter, Tracer, type TracingContext, type Turn, TurnAccumulator, type TurnAccumulatorResult, type TurnAccumulatorState, type TurnEvent, TurnEventBuilder, type TurnEventCallback, type TurnPart, type TurnStatus, addStats, anthropic, chatCompletions, createAgentConfig, createHandle, createStats, estimateContextUsage, gemini, generate, generateTurn, loadFileContent, openai, parseResponse, stream };
976
+ export { type AIProvider, type AccumulatableEvent, type ActionPart, type ActionResult, Agent, type AgentConfig, type AgentDefinition, type AgentDefinitionRequestOptions, type AgentDefinitionResolver, type AgentErrorResult, type AgentHandle, type AgentMemory, type AgentResult, type AgentSession, type Annotation, type AnnotationEvent, type AnnotationPlacement, type AnnotationStatus, type AnnotationTarget, Anthropic, AxleAbortError, AxleAgentAbortError, type AxleAssistantMessage, AxleError, type AxleMessage, type AxleModelRequestOptions, AxleStopReason, type AxleToolCallMessage, type AxleToolCallResult, AxleToolFatalError, type AxleUserMessage, type ChatCompletionsOptions, type Citation, type CitationOutputSpan, type CitationPart, type CitationSource, type ContentPart, type ContentPartCitation, type ContentPartFile, type ContentPartProviderTool, type ContentPartText, type ContentPartThinking, type ContentPartToolCall, type ContextUsage, type DeferredFileInfo, type DocumentLocator, type EventLevel, type ExecutableTool, type FileInfo, type FileKind, type FilePart, type FileProviderId, type FileResolveFormat, type FileResolveRequest, type FileResolver, type FileStore, Gemini, type GenerateInstructParams, type GenerateInstructResult, type GenerateParams, type Handle, History, Instruct, type InstructInputs, type InstructOptions, type InstructResponse, InstructVariableError, type InstructVarsMode, MCP, type MCPConfig, type MCPHttpConfig, type MCPStdioConfig, type MaybePromise, type MemoryContext, type MessageMetadata, OpenAI, type OutputSchema, type ParsedSchema, type ProviderClientOptions, type ProviderDefinition, type ProviderOptions, type ProviderTool, type ProviderToolAction, type ProviderToolDefinitionRef, type RecallResult, type ResolvedAgentDefinition, type ResolvedFileSource, type SavedAgent, type SendMessageOptions, SimpleWriter, type SimpleWriterOptions, type SpanData, type SpanOptions, type SpanType, type Stats, type StreamEvent, type StreamEventCallback, type StreamHandle, type StreamInstructHandle, type StreamInstructParams, type StreamInstructResult, type StreamParams, type StreamResult, type SubagentAction, TaskError, type TextPart, type ThinkingContinuity, type ThinkingPart, type ToolAction, type ToolChoice, type ToolContext, type ToolDefinition, type ToolDefinitionRef, ToolRegistry, type ToolResultPart, type TraceWriter, Tracer, type TracingContext, type Turn, TurnAccumulator, type TurnAccumulatorResult, type TurnAccumulatorState, type TurnEvent, TurnEventBuilder, type TurnEventCallback, type TurnMetadata, type TurnPart, type TurnStatus, addStats, anthropic, chatCompletions, createAgentConfig, createHandle, createStats, estimateContextUsage, gemini, generate, generateTurn, loadFileContent, openai, parseResponse, stream };