@fifthrevision/axle 0.20.0 → 0.21.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 ModelResult, A as AxleAssistantMessage, B as ContentPartProviderTool, C as TurnPart, D as ToolContext, E as ProviderTool, F as Citation, G as MessageMetadata, H as ContentPartThinking, I as CitationOutputSpan, J as AIProvider, K as ThinkingContinuity, L as CitationSource, M as AxleToolCallMessage, N as AxleToolCallResult, O as ToolDefinition, P as AxleUserMessage, Q as ModelError, R as ContentPart, S as TurnMetadata, T as ExecutableTool, U as ContentPartToolCall, V as ContentPartText, W as DocumentLocator, X as AxleStopReason, Y as AxleModelRequestOptions, Z as ContextUsage, _ as TextPart, _t as TraceWriter, at as FileKind, b as ToolAction, c as TurnEvent, ct as FileResolveRequest, d as Annotation, dt as loadFileContent, et as ProviderClientOptions, f as AnnotationPlacement, ft as EventLevel, g as SubagentAction, gt as SpanType, h as ProviderToolAction, ht as SpanOptions, i as TurnAccumulatorState, it as FileInfo, j as AxleMessage, k as ToolRegistry, l as ActionPart, lt as FileResolver, m as FilePart, mt as SpanEvent, n as TurnAccumulator, nt as ToolChoice, o as AnnotationEvent, ot as FileProviderId, p as AnnotationStatus, pt as SpanData, q as ToolResultPart, r as TurnAccumulatorResult, rt as DeferredFileInfo, s as AnnotationTarget, st as FileResolveFormat, t as AccumulatableEvent, tt as ProviderOptions, u as ActionResult, ut as ResolvedFileSource, v as ThinkingPart, vt as TracingContext, w as TurnStatus, x as Turn, yt as Stats, z as ContentPartFile } from "./accumulator-svhGVEwB.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,6 +591,10 @@ 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
+ }
597
+ declare function chatCompletions(baseUrl: string, options?: ChatCompletionsOptions): AIProvider;
957
598
  declare function chatCompletions(baseUrl: string, apiKey?: string): AIProvider;
958
599
  //#endregion
959
600
  //#region src/providers/context.d.ts
@@ -968,7 +609,7 @@ interface ContextEstimateInput {
968
609
  declare function estimateContextUsage(input: ContextEstimateInput): ContextUsage;
969
610
  //#endregion
970
611
  //#region src/providers/gemini/provider.d.ts
971
- declare function gemini(apiKey: string): AIProvider;
612
+ declare function gemini(apiKey: string, options?: ProviderClientOptions): AIProvider;
972
613
  //#endregion
973
614
  //#region src/providers/gemini/index.d.ts
974
615
  declare const Gemini: {
@@ -994,7 +635,7 @@ declare const Gemini: {
994
635
  readonly GEMINI_FLASH_LITE_LATEST: "gemini-flash-lite-latest";
995
636
  readonly GEMINI_PRO_LATEST: "gemini-pro-latest";
996
637
  };
997
- readonly DefaultModel: "gemini-3.1-flash-lite-preview";
638
+ readonly DefaultModel: "gemini-3.5-flash";
998
639
  };
999
640
  //#endregion
1000
641
  //#region src/providers/generate.d.ts
@@ -1055,6 +696,11 @@ type StreamEvent = {
1055
696
  index: number;
1056
697
  delta: string;
1057
698
  accumulated: string;
699
+ } | {
700
+ type: "text:citation";
701
+ index: number;
702
+ citation: Citation;
703
+ citations: Citation[];
1058
704
  } | {
1059
705
  type: "text:end";
1060
706
  index: number;
@@ -1062,11 +708,25 @@ type StreamEvent = {
1062
708
  } | {
1063
709
  type: "thinking:start";
1064
710
  index: number;
711
+ redacted?: boolean;
712
+ continuity?: ThinkingContinuity;
713
+ providerMetadata?: Record<string, unknown>;
1065
714
  } | {
1066
715
  type: "thinking:delta";
1067
716
  index: number;
1068
717
  delta: string;
1069
718
  accumulated: string;
719
+ } | {
720
+ type: "thinking:summary-delta";
721
+ index: number;
722
+ delta: string;
723
+ accumulated: string;
724
+ } | {
725
+ type: "thinking:update";
726
+ index: number;
727
+ redacted?: boolean;
728
+ continuity?: ThinkingContinuity;
729
+ providerMetadata?: Record<string, unknown>;
1070
730
  } | {
1071
731
  type: "thinking:end";
1072
732
  index: number;
@@ -1147,7 +807,7 @@ declare function stream<TSchema extends OutputSchema | undefined>(options: Strea
1147
807
  declare function stream(options: StreamParams): StreamHandle;
1148
808
  //#endregion
1149
809
  //#region src/providers/openai/provider.d.ts
1150
- declare function openai(apiKey: string): AIProvider;
810
+ declare function openai(apiKey: string, options?: ProviderClientOptions): AIProvider;
1151
811
  //#endregion
1152
812
  //#region src/providers/openai/index.d.ts
1153
813
  declare const OpenAI: {
@@ -1306,4 +966,4 @@ interface FileStore {
1306
966
  declare function createStats(): Stats;
1307
967
  declare function addStats(total: Stats, usage?: Stats): void;
1308
968
  //#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 };
969
+ 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 CitationSource, type ContentPart, 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 };