@ax-llm/ax 22.0.7 → 22.0.9

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/index.d.ts CHANGED
@@ -5045,6 +5045,247 @@ interface AxJudgeOptions extends AxJudgeForwardOptions {
5045
5045
  randomizeOrder?: boolean;
5046
5046
  }
5047
5047
 
5048
+ /**
5049
+ * Individual playbook bullet with metadata used for incremental updates.
5050
+ * Mirrors the structure described in the ACE paper (Section 3.1).
5051
+ */
5052
+ interface AxACEBullet extends Record<string, unknown> {
5053
+ id: string;
5054
+ section: string;
5055
+ content: string;
5056
+ helpfulCount: number;
5057
+ harmfulCount: number;
5058
+ createdAt: string;
5059
+ updatedAt: string;
5060
+ tags?: string[];
5061
+ metadata?: Record<string, unknown>;
5062
+ }
5063
+ /**
5064
+ * Aggregated ACE playbook structure grouped by sections.
5065
+ */
5066
+ interface AxACEPlaybook {
5067
+ version: number;
5068
+ sections: Record<string, AxACEBullet[]>;
5069
+ stats: {
5070
+ bulletCount: number;
5071
+ helpfulCount: number;
5072
+ harmfulCount: number;
5073
+ tokenEstimate: number;
5074
+ };
5075
+ updatedAt: string;
5076
+ description?: string;
5077
+ }
5078
+ /**
5079
+ * Generator output format (Appendix B of the paper) distilled to core fields.
5080
+ */
5081
+ interface AxACEGeneratorOutput extends Record<string, unknown> {
5082
+ reasoning: string;
5083
+ answer: unknown;
5084
+ bulletIds: string[];
5085
+ trajectory?: string;
5086
+ metadata?: Record<string, unknown>;
5087
+ }
5088
+ /**
5089
+ * Reflection payload, mapping to the Reflector JSON schema in the paper.
5090
+ */
5091
+ interface AxACEReflectionOutput extends Record<string, unknown> {
5092
+ reasoning: string;
5093
+ errorIdentification: string;
5094
+ rootCauseAnalysis: string;
5095
+ correctApproach: string;
5096
+ keyInsight: string;
5097
+ bulletTags: {
5098
+ id: string;
5099
+ tag: 'helpful' | 'harmful' | 'neutral';
5100
+ }[];
5101
+ metadata?: Record<string, unknown>;
5102
+ }
5103
+ /**
5104
+ * Curator operations emitted as deltas (Section 3.1).
5105
+ */
5106
+ type AxACECuratorOperationType = 'ADD' | 'UPDATE' | 'REMOVE';
5107
+ interface AxACECuratorOperation {
5108
+ type: AxACECuratorOperationType;
5109
+ section: string;
5110
+ bulletId?: string;
5111
+ content?: string;
5112
+ metadata?: Record<string, unknown>;
5113
+ }
5114
+ interface AxACECuratorOutput extends Record<string, unknown> {
5115
+ reasoning: string;
5116
+ operations: AxACECuratorOperation[];
5117
+ metadata?: Record<string, unknown>;
5118
+ }
5119
+ /**
5120
+ * Runtime feedback captured after each generator rollout for online updates.
5121
+ */
5122
+ interface AxACEFeedbackEvent {
5123
+ example: AxExample$1;
5124
+ prediction: unknown;
5125
+ score: number;
5126
+ generatorOutput: AxACEGeneratorOutput;
5127
+ reflection?: AxACEReflectionOutput;
5128
+ curator?: AxACECuratorOutput;
5129
+ timestamp: string;
5130
+ }
5131
+ /**
5132
+ * Configuration options specific to ACE inside Ax.
5133
+ */
5134
+ interface AxACEOptions {
5135
+ /**
5136
+ * Maximum number of epochs for offline adaptation.
5137
+ */
5138
+ maxEpochs?: number;
5139
+ /**
5140
+ * Maximum reflector refinement rounds (paper uses up to 5).
5141
+ */
5142
+ maxReflectorRounds?: number;
5143
+ /**
5144
+ * Maximum bullets allowed in any section before triggering pruning.
5145
+ */
5146
+ maxSectionSize?: number;
5147
+ /**
5148
+ * Reserved threshold value; current dedupe uses normalized exact-content match.
5149
+ */
5150
+ similarityThreshold?: number;
5151
+ /**
5152
+ * Whether to automatically create sections when curator emits new ones.
5153
+ */
5154
+ allowDynamicSections?: boolean;
5155
+ /**
5156
+ * Initial playbook supplied by the caller.
5157
+ */
5158
+ initialPlaybook?: AxACEPlaybook;
5159
+ /**
5160
+ * Maximum serialized characters per field stored in ACE trajectories.
5161
+ */
5162
+ maxSerializedFieldChars?: number;
5163
+ }
5164
+ /**
5165
+ * Serialized artifact saved after optimization for future reuse.
5166
+ */
5167
+ interface AxACEOptimizationArtifact {
5168
+ playbook: AxACEPlaybook;
5169
+ feedback: AxACEFeedbackEvent[];
5170
+ history: {
5171
+ source?: 'compile' | 'online';
5172
+ epoch: number;
5173
+ exampleIndex: number;
5174
+ operations: AxACECuratorOperation[];
5175
+ }[];
5176
+ }
5177
+
5178
+ /**
5179
+ * Options for {@link playbook}.
5180
+ *
5181
+ * A playbook grows an evolving body of task knowledge ("context engineering")
5182
+ * and renders it into a program's context. The underlying evolution engine is
5183
+ * an implementation detail (currently ACE — the Agentic Context Engineering
5184
+ * loop) and is intentionally absent from this surface, mirroring how
5185
+ * {@link optimize} hides its optimizer.
5186
+ */
5187
+ type AxPlaybookOptions = {
5188
+ /** Model that runs the program while the playbook is grown. */
5189
+ studentAI: AxAIService;
5190
+ /** Model used to reflect on rollouts and curate the playbook. Defaults to studentAI. */
5191
+ teacherAI?: AxAIService;
5192
+ verbose?: boolean;
5193
+ seed?: number;
5194
+ /** Max passes over the dataset during {@link AxPlaybook.evolve}. */
5195
+ maxEpochs?: number;
5196
+ /** Max reflection refinement rounds per example. */
5197
+ maxReflectorRounds?: number;
5198
+ /** Max bullets per section before pruning kicks in. */
5199
+ maxSectionSize?: number;
5200
+ /** Allow the playbook to grow new sections on its own. */
5201
+ allowDynamicSections?: boolean;
5202
+ /** Seed the playbook with existing content. */
5203
+ initialPlaybook?: AxACEPlaybook;
5204
+ /** Intensity preset applied at construction. */
5205
+ auto?: 'light' | 'medium' | 'heavy';
5206
+ };
5207
+ /**
5208
+ * A serializable snapshot of a playbook's content and history. Persist with
5209
+ * {@link AxPlaybook.toJSON} and restore with {@link AxPlaybook.load}.
5210
+ */
5211
+ type AxPlaybookSnapshot = {
5212
+ playbook: AxACEPlaybook;
5213
+ artifact: AxACEOptimizationArtifact;
5214
+ };
5215
+ /** Result of {@link AxPlaybook.evolve}: the best score reached and the resulting playbook. */
5216
+ type AxPlaybookEvolveResult = {
5217
+ bestScore: number;
5218
+ playbook: AxACEPlaybook;
5219
+ };
5220
+ /** Per-run overrides for a single {@link AxPlaybook.evolve} call. */
5221
+ type AxPlaybookEvolveOptions = {
5222
+ maxEpochs?: number;
5223
+ auto?: 'light' | 'medium' | 'heavy';
5224
+ };
5225
+ /**
5226
+ * A live, evolving context playbook bound to a program.
5227
+ *
5228
+ * Grow it offline from examples ({@link evolve}), keep it growing online from
5229
+ * live feedback ({@link update}), render it into the program's context
5230
+ * ({@link applyTo}), and persist/restore it ({@link toJSON}/{@link load}).
5231
+ *
5232
+ * Construct via the {@link playbook} factory.
5233
+ */
5234
+ declare class AxPlaybook<IN = any, OUT extends AxGenOut = AxGenOut> {
5235
+ private readonly program;
5236
+ private readonly engine;
5237
+ private readonly baseInstruction;
5238
+ private started;
5239
+ private applyHook?;
5240
+ constructor(program: Readonly<AxGen<IN, OUT>>, options: Readonly<AxPlaybookOptions>);
5241
+ /**
5242
+ * Grow the playbook offline from labeled examples, scoring each rollout with
5243
+ * `metricFn`, then render the result into the bound program.
5244
+ */
5245
+ evolve(examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: Readonly<AxPlaybookEvolveOptions>): Promise<AxPlaybookEvolveResult>;
5246
+ /**
5247
+ * Refine the playbook online from a single live interaction. Safe to call
5248
+ * without a prior {@link evolve}/{@link load} — the bound program is hydrated
5249
+ * lazily on first use.
5250
+ */
5251
+ update(args: Readonly<{
5252
+ example: AxExample$1;
5253
+ prediction: unknown;
5254
+ feedback?: string;
5255
+ }>): Promise<void>;
5256
+ /** Render the current playbook into a program's context (defaults to the bound program). */
5257
+ applyTo(program?: Readonly<AxGen<IN, OUT>>): void;
5258
+ /** The current playbook rendered as a markdown block. */
5259
+ render(): string;
5260
+ /** A serializable snapshot of the current playbook and its history. */
5261
+ getState(): AxPlaybookSnapshot;
5262
+ /** Alias of {@link getState} so `JSON.stringify(handle)` yields a snapshot. */
5263
+ toJSON(): AxPlaybookSnapshot;
5264
+ /** Restore a snapshot into this handle and render it into the bound program. */
5265
+ load(snapshot: Readonly<AxPlaybookSnapshot>): this;
5266
+ /** Set the evolution intensity preset. */
5267
+ configureAuto(level: 'light' | 'medium' | 'heavy'): void;
5268
+ /** Clear the playbook back to its initial state. */
5269
+ reset(): void;
5270
+ /**
5271
+ * @internal Redirect playbook injection. Used by `agent.playbook()` to push
5272
+ * the rendered playbook into a pipeline stage instead of a bare program.
5273
+ */
5274
+ _setApplyHook(hook: (rendered: string) => void): void;
5275
+ private inject;
5276
+ }
5277
+ /**
5278
+ * Create an evolving context {@link AxPlaybook} for a program.
5279
+ *
5280
+ * A playbook accumulates task knowledge and renders it into the program's
5281
+ * context: grow it offline from examples ({@link AxPlaybook.evolve}), keep it
5282
+ * growing online from live feedback ({@link AxPlaybook.update}), and
5283
+ * persist/restore it ({@link AxPlaybook.toJSON}/{@link AxPlaybook.load}). The
5284
+ * evolution engine is an implementation detail and never appears on this
5285
+ * surface.
5286
+ */
5287
+ declare function playbook<IN = any, OUT extends AxGenOut = AxGenOut>(program: Readonly<AxGen<IN, OUT>>, options: Readonly<AxPlaybookOptions>): AxPlaybook<IN, OUT>;
5288
+
5048
5289
  type AxAgentRecursiveTargetId = 'root.actor.shared' | 'root.actor.root' | 'root.actor.recursive' | 'root.actor.terminal' | 'root.responder';
5049
5290
  type AxAgentRecursiveNodeRole = 'root' | 'recursive' | 'terminal';
5050
5291
  type AxAgentRecursiveUsage = {
@@ -5247,6 +5488,19 @@ type AxAgentOptimizeOptions<_IN extends AxGenIn = AxGenIn, _OUT extends AxGenOut
5247
5488
  onEarlyStop?: (reason: string, stats: Readonly<AxOptimizationStats>) => void;
5248
5489
  } & Pick<AxOptimizerArgs, 'numTrials' | 'minibatch' | 'minibatchSize' | 'earlyStoppingTrials' | 'minImprovementThreshold' | 'sampleCount' | 'seed'>;
5249
5490
  type AxAgentOptimizeResult<OUT extends AxGenOut = AxGenOut> = AxParetoResult<OUT>;
5491
+ /**
5492
+ * Options for `AxAgent.playbook()`. Builds an `AxPlaybook` bound to an agent
5493
+ * stage (the actor by default). The evolution engine (ACE) is hidden, exactly
5494
+ * as in the standalone `playbook()` factory.
5495
+ */
5496
+ type AxAgentPlaybookOptions = {
5497
+ studentAI?: Readonly<AxAIService>;
5498
+ teacherAI?: Readonly<AxAIService>;
5499
+ /** Which agent stage to evolve a playbook for. Defaults to `'actor'`. */
5500
+ target?: 'actor' | 'responder';
5501
+ /** Render the evolving playbook into the live stage. Defaults to `true`. */
5502
+ apply?: boolean;
5503
+ } & Pick<AxPlaybookOptions, 'verbose' | 'seed' | 'maxEpochs' | 'maxReflectorRounds' | 'maxSectionSize' | 'allowDynamicSections' | 'initialPlaybook' | 'auto'>;
5250
5504
  type AxAgentOptions<IN extends AxGenIn = AxGenIn> = Omit<AxProgramForwardOptions<string>, 'functions' | 'description' | 'onFunctionCall'> & {
5251
5505
  debug?: boolean;
5252
5506
  /**
@@ -5776,6 +6030,18 @@ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut> implements AxAge
5776
6030
  getOptimizableComponents(): readonly any[];
5777
6031
  applyOptimizedComponents(updates: Readonly<Record<string, string>>): void;
5778
6032
  optimize(dataset: Readonly<AxAgentEvalDataset<IN>>, options?: Readonly<AxAgentOptimizeOptions<IN, OUT>>): Promise<AxAgentOptimizeResult<OUT>>;
6033
+ /**
6034
+ * Build an evolving context {@link AxPlaybook} bound to an agent stage
6035
+ * (the actor/task stage by default).
6036
+ *
6037
+ * Use `.update({ example, prediction, feedback })` to refine the playbook from
6038
+ * live feedback, or `.evolve(dataset, metric)` to grow it offline. Offline
6039
+ * evolution scores the chosen stage in isolation; for full-pipeline tuning of
6040
+ * instructions and demos use {@link optimize} instead. Unless `apply` is
6041
+ * `false`, the rendered playbook is injected into the live stage prompt as it
6042
+ * evolves. The evolution engine (ACE) is an implementation detail.
6043
+ */
6044
+ playbook(options?: Readonly<AxAgentPlaybookOptions>): AxPlaybook<any, any>;
5779
6045
  private _listOptimizationTargetDescriptors;
5780
6046
  private _createOptimizationProgram;
5781
6047
  private _createAgentOptimizeMetric;
@@ -5999,6 +6265,97 @@ type AxAgentMemoryEntry = {
5999
6265
  content: string;
6000
6266
  };
6001
6267
 
6268
+ /**
6269
+ * Context-engineering measurement aggregator (benchmark/spike helper).
6270
+ *
6271
+ * Subscribes to AxAgent `onContextEvent` telemetry and `getUsage()` to compute
6272
+ * the headline context-compression metrics for a single agent run:
6273
+ * - peak mutable prompt size (chars)
6274
+ * - compaction ratio (chars removed / chars seen)
6275
+ * - cumulative tokens
6276
+ * - pressure distribution, checkpoint/tombstone counts
6277
+ *
6278
+ * This is policy-agnostic: it only reads the public event stream, so it measures
6279
+ * any `contextPolicy` (today's hindsight presets) unchanged. A future
6280
+ * plan-aware "foresight" retention strategy would surface through the same
6281
+ * events and be measured here without modification.
6282
+ *
6283
+ * Internal benchmark helper — intentionally NOT exported from `src/ax/index.ts`.
6284
+ */
6285
+
6286
+ type AxContextTurnSample = {
6287
+ stage: AxAgentContextStage;
6288
+ turn: number;
6289
+ pressure: AxAgentContextPressure;
6290
+ mutablePromptChars: number;
6291
+ effectiveBudgetChars: number;
6292
+ actionLogEntryCount: number;
6293
+ };
6294
+ type AxContextMetricsSummary = {
6295
+ /** Number of `budget_check` events observed (one per actor turn). */
6296
+ turns: number;
6297
+ peakMutablePromptChars: number;
6298
+ finalMutablePromptChars: number;
6299
+ checkpoints: number;
6300
+ tombstones: number;
6301
+ compactions: number;
6302
+ totalOriginalChars: number;
6303
+ totalRenderedChars: number;
6304
+ /** (originalChars - renderedChars) / originalChars across all compactions; 0 when nothing compacted. */
6305
+ compactionRatio: number;
6306
+ pressureCounts: Record<AxAgentContextPressure, number>;
6307
+ cumulativeTokens: number;
6308
+ promptTokens: number;
6309
+ completionTokens: number;
6310
+ series: AxContextTurnSample[];
6311
+ };
6312
+ /**
6313
+ * Accumulates context telemetry for one agent run. Pass {@link onEvent} directly
6314
+ * as the agent's `onContextEvent` handler, then call {@link summarize} with
6315
+ * `agent.getUsage()` once `forward()` resolves.
6316
+ */
6317
+ declare class AxContextMetricsCollector {
6318
+ private readonly series;
6319
+ private checkpoints;
6320
+ private tombstones;
6321
+ private compactions;
6322
+ private totalOriginalChars;
6323
+ private totalRenderedChars;
6324
+ private peakMutablePromptChars;
6325
+ private finalMutablePromptChars;
6326
+ private readonly pressureCounts;
6327
+ readonly onEvent: (event: Readonly<AxAgentContextEvent>) => void;
6328
+ summarize(usage?: readonly AxProgramUsage[] | AxAgentUsage | undefined): AxContextMetricsSummary;
6329
+ }
6330
+ type AxContextMetricsRow = {
6331
+ scenario: string;
6332
+ preset: string;
6333
+ summary: AxContextMetricsSummary;
6334
+ /** Wall-clock time for the run, in ms (live runs only; omit for mock). */
6335
+ elapsedMs?: number;
6336
+ };
6337
+
6338
+ type AxScriptedTurn = {
6339
+ kind: 'log';
6340
+ chars: number;
6341
+ } | {
6342
+ kind: 'error';
6343
+ message: string;
6344
+ } | {
6345
+ kind: 'final';
6346
+ answer: string;
6347
+ };
6348
+ type AxContextScenario = {
6349
+ name: string;
6350
+ description: string;
6351
+ signature: string;
6352
+ contextFields: string[];
6353
+ input: Record<string, unknown>;
6354
+ maxTurns: number;
6355
+ /** Ordered code payloads the mock returns for each EXECUTOR turn. */
6356
+ executorTurns: AxScriptedTurn[];
6357
+ };
6358
+
6002
6359
  /**
6003
6360
  * Runtime primitive registry.
6004
6361
  *
@@ -6049,6 +6406,7 @@ type AxRuntimePrimitiveExample = {
6049
6406
  declare const axRuntimePrimitives: readonly AxRuntimePrimitive[];
6050
6407
 
6051
6408
  declare enum AxAIAnthropicModel {
6409
+ Claude5Sonnet = "claude-sonnet-5",
6052
6410
  Claude48Opus = "claude-opus-4-8",
6053
6411
  Claude47Opus = "claude-opus-4-7",
6054
6412
  Claude46Opus = "claude-opus-4-6",
@@ -6069,6 +6427,7 @@ declare enum AxAIAnthropicModel {
6069
6427
  ClaudeInstant12 = "claude-instant-1.2"
6070
6428
  }
6071
6429
  declare enum AxAIAnthropicVertexModel {
6430
+ Claude5Sonnet = "claude-sonnet-5",
6072
6431
  Claude48Opus = "claude-opus-4-8",
6073
6432
  Claude47Opus = "claude-opus-4-7",
6074
6433
  Claude46Opus = "claude-opus-4-6",
@@ -8527,6 +8886,210 @@ declare class AxAIReka<TModelKey> extends AxAIOpenAIBase<AxAIRekaModel, undefine
8527
8886
  constructor({ apiKey, config, options, apiURL, modelInfo, models, }: Readonly<Omit<AxAIRekaArgs<TModelKey>, 'name'>>);
8528
8887
  }
8529
8888
 
8889
+ /**
8890
+ * WebLLM: Models for text generation
8891
+ * Based on WebLLM's supported models
8892
+ */
8893
+ declare enum AxAIWebLLMModel {
8894
+ Llama31_8B_Instruct = "Llama-3.1-8B-Instruct-q4f32_1-MLC",
8895
+ Llama31_70B_Instruct = "Llama-3.1-70B-Instruct-q4f16_1-MLC",
8896
+ Llama32_1B_Instruct = "Llama-3.2-1B-Instruct-q4f32_1-MLC",
8897
+ Llama32_3B_Instruct = "Llama-3.2-3B-Instruct-q4f32_1-MLC",
8898
+ Mistral7B_Instruct = "Mistral-7B-Instruct-v0.3-q4f32_1-MLC",
8899
+ Phi35_Mini_Instruct = "Phi-3.5-mini-instruct-q4f32_1-MLC",
8900
+ Gemma2_2B_Instruct = "gemma-2-2b-it-q4f32_1-MLC",
8901
+ Gemma2_9B_Instruct = "gemma-2-9b-it-q4f32_1-MLC",
8902
+ Qwen2_5_0_5B_Instruct = "Qwen2.5-0.5B-Instruct-q4f32_1-MLC",
8903
+ Qwen2_5_1_5B_Instruct = "Qwen2.5-1.5B-Instruct-q4f32_1-MLC",
8904
+ Qwen2_5_3B_Instruct = "Qwen2.5-3B-Instruct-q4f32_1-MLC",
8905
+ Qwen2_5_7B_Instruct = "Qwen2.5-7B-Instruct-q4f32_1-MLC"
8906
+ }
8907
+ type AxAIWebLLMModelId = AxAIWebLLMModel | (string & {});
8908
+ interface AxAIWebLLMEngine {
8909
+ chat: {
8910
+ completions: {
8911
+ create: (request: Readonly<AxAIWebLLMChatRequest>) => Promise<AxAIWebLLMChatResponse | AsyncIterable<AxAIWebLLMChatResponseDelta> | ReadableStream<AxAIWebLLMChatResponseDelta>>;
8912
+ };
8913
+ };
8914
+ }
8915
+ /**
8916
+ * WebLLM: Model options for text generation
8917
+ */
8918
+ type AxAIWebLLMConfig = AxModelConfig & {
8919
+ model: AxAIWebLLMModelId;
8920
+ supportsFunctions?: boolean;
8921
+ logitBias?: Record<number, number>;
8922
+ logProbs?: boolean;
8923
+ topLogprobs?: number;
8924
+ };
8925
+ /**
8926
+ * WebLLM: Chat request structure
8927
+ * Based on OpenAI-compatible API from WebLLM
8928
+ */
8929
+ type AxAIWebLLMChatRequest = {
8930
+ model: AxAIWebLLMModelId;
8931
+ messages: Array<{
8932
+ role: 'system' | 'user';
8933
+ content?: string;
8934
+ name?: string;
8935
+ } | {
8936
+ role: 'assistant';
8937
+ content?: string;
8938
+ name?: string;
8939
+ tool_calls?: Array<{
8940
+ id: string;
8941
+ type: 'function';
8942
+ function: {
8943
+ name: string;
8944
+ arguments: string;
8945
+ };
8946
+ }>;
8947
+ } | {
8948
+ role: 'tool';
8949
+ content: string;
8950
+ tool_call_id: string;
8951
+ }>;
8952
+ temperature?: number;
8953
+ top_p?: number;
8954
+ max_tokens?: number;
8955
+ stream?: boolean;
8956
+ stop?: string | string[];
8957
+ presence_penalty?: number;
8958
+ frequency_penalty?: number;
8959
+ logit_bias?: Record<number, number>;
8960
+ logprobs?: boolean;
8961
+ top_logprobs?: number;
8962
+ response_format?: {
8963
+ type: 'json_object';
8964
+ } | {
8965
+ type: 'json_schema';
8966
+ json_schema?: unknown;
8967
+ };
8968
+ n?: number;
8969
+ stream_options?: {
8970
+ include_usage?: boolean;
8971
+ };
8972
+ tools?: Array<{
8973
+ type: 'function';
8974
+ function: {
8975
+ name: string;
8976
+ description: string;
8977
+ parameters: object;
8978
+ };
8979
+ }>;
8980
+ tool_choice?: 'none' | 'auto' | 'required' | {
8981
+ type: 'function';
8982
+ function: {
8983
+ name: string;
8984
+ };
8985
+ };
8986
+ };
8987
+ /**
8988
+ * WebLLM: Chat response structure
8989
+ */
8990
+ type AxAIWebLLMChatResponse = {
8991
+ id: string;
8992
+ object: 'chat.completion';
8993
+ created: number;
8994
+ model: AxAIWebLLMModelId;
8995
+ choices: Array<{
8996
+ index: number;
8997
+ message: {
8998
+ role: 'assistant';
8999
+ content?: string;
9000
+ tool_calls?: Array<{
9001
+ id: string;
9002
+ type: 'function';
9003
+ function: {
9004
+ name: string;
9005
+ arguments: string;
9006
+ };
9007
+ }>;
9008
+ };
9009
+ finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter';
9010
+ logprobs?: {
9011
+ content: Array<{
9012
+ token: string;
9013
+ logprob: number;
9014
+ bytes: number[];
9015
+ top_logprobs: Array<{
9016
+ token: string;
9017
+ logprob: number;
9018
+ bytes: number[];
9019
+ }>;
9020
+ }>;
9021
+ };
9022
+ }>;
9023
+ usage: {
9024
+ prompt_tokens: number;
9025
+ completion_tokens: number;
9026
+ total_tokens: number;
9027
+ };
9028
+ };
9029
+ /**
9030
+ * WebLLM: Streaming chat response structure
9031
+ */
9032
+ type AxAIWebLLMChatResponseDelta = {
9033
+ id: string;
9034
+ object: 'chat.completion.chunk';
9035
+ created: number;
9036
+ model: AxAIWebLLMModelId;
9037
+ choices: Array<{
9038
+ index: number;
9039
+ delta: {
9040
+ role?: 'assistant';
9041
+ content?: string;
9042
+ tool_calls?: Array<{
9043
+ index: number;
9044
+ id?: string;
9045
+ type?: 'function';
9046
+ function?: {
9047
+ name?: string;
9048
+ arguments?: string;
9049
+ };
9050
+ }>;
9051
+ };
9052
+ finish_reason?: 'stop' | 'length' | 'tool_calls' | 'content_filter';
9053
+ logprobs?: {
9054
+ content: Array<{
9055
+ token: string;
9056
+ logprob: number;
9057
+ bytes: number[];
9058
+ top_logprobs: Array<{
9059
+ token: string;
9060
+ logprob: number;
9061
+ bytes: number[];
9062
+ }>;
9063
+ }>;
9064
+ };
9065
+ }>;
9066
+ usage?: {
9067
+ prompt_tokens: number;
9068
+ completion_tokens: number;
9069
+ total_tokens: number;
9070
+ };
9071
+ };
9072
+ /**
9073
+ * WebLLM doesn't support embeddings natively
9074
+ * This is a placeholder for consistency with the framework
9075
+ */
9076
+ type AxAIWebLLMEmbedModel = never;
9077
+ type AxAIWebLLMEmbedRequest = never;
9078
+ type AxAIWebLLMEmbedResponse = never;
9079
+
9080
+ declare const axAIWebLLMDefaultConfig: () => AxAIWebLLMConfig;
9081
+ declare const axAIWebLLMCreativeConfig: () => AxAIWebLLMConfig;
9082
+ interface AxAIWebLLMArgs<TModelKey> {
9083
+ name: 'webllm';
9084
+ engine: AxAIWebLLMEngine;
9085
+ config?: Readonly<Partial<AxAIWebLLMConfig>>;
9086
+ options?: Readonly<AxAIServiceOptions>;
9087
+ models?: AxAIInputModelList<AxAIWebLLMModelId, AxAIWebLLMEmbedModel, TModelKey>;
9088
+ }
9089
+ declare class AxAIWebLLM<TModelKey> extends AxBaseAI<AxAIWebLLMModelId, AxAIWebLLMEmbedModel, AxAIWebLLMChatRequest, AxAIWebLLMEmbedRequest, AxAIWebLLMChatResponse, AxAIWebLLMChatResponseDelta, AxAIWebLLMEmbedResponse, TModelKey> {
9090
+ constructor({ engine, config, options, models, }: Readonly<Omit<AxAIWebLLMArgs<TModelKey>, 'name'>>);
9091
+ }
9092
+
8530
9093
  declare enum AxAIGrokModel {
8531
9094
  Grok43 = "grok-4.3",
8532
9095
  Grok43Latest = "grok-4.3-latest",
@@ -8598,8 +9161,8 @@ declare class AxAIGrok<TModelKey> extends AxAIOpenAIBase<AxAIGrokModel, AxAIGrok
8598
9161
  speak(req: Readonly<AxSpeechRequest<AxAIGrokModel | TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<AxSpeechResponse>;
8599
9162
  }
8600
9163
 
8601
- type AxAIArgs<TModelKey> = AxAIOpenAIArgs<'openai', AxAIOpenAIModel, AxAIOpenAIEmbedModel, TModelKey> | AxAIOpenAIResponsesArgs<'openai-responses', AxAIOpenAIResponsesModel, AxAIOpenAIEmbedModel, TModelKey> | AxAIAzureOpenAIArgs<TModelKey> | AxAIAnthropicArgs<TModelKey> | AxAIGoogleGeminiArgs<TModelKey> | AxAICohereArgs<TModelKey> | AxAIMistralArgs<TModelKey> | AxAIDeepSeekArgs<TModelKey> | AxAIRekaArgs<TModelKey> | AxAIGrokArgs<TModelKey>;
8602
- type AxAIModels = AxAIOpenAIModel | AxAIAnthropicModel | AxAIGoogleGeminiModel | AxAICohereModel | AxAIMistralModel | AxAIDeepSeekModel | AxAIGrokModel;
9164
+ type AxAIArgs<TModelKey> = AxAIOpenAIArgs<'openai', AxAIOpenAIModel, AxAIOpenAIEmbedModel, TModelKey> | AxAIOpenAIResponsesArgs<'openai-responses', AxAIOpenAIResponsesModel, AxAIOpenAIEmbedModel, TModelKey> | AxAIAzureOpenAIArgs<TModelKey> | AxAIAnthropicArgs<TModelKey> | AxAIGoogleGeminiArgs<TModelKey> | AxAICohereArgs<TModelKey> | AxAIMistralArgs<TModelKey> | AxAIDeepSeekArgs<TModelKey> | AxAIRekaArgs<TModelKey> | AxAIWebLLMArgs<TModelKey> | AxAIGrokArgs<TModelKey>;
9165
+ type AxAIModels = AxAIOpenAIModel | AxAIAnthropicModel | AxAIGoogleGeminiModel | AxAICohereModel | AxAIMistralModel | AxAIDeepSeekModel | AxAIWebLLMModelId | AxAIGrokModel;
8603
9166
  type AxAIEmbedModels = AxAIOpenAIEmbedModel | AxAIGoogleGeminiEmbedModel | AxAICohereEmbedModel;
8604
9167
  type ExtractModelKeysAndValues<T> = T extends readonly {
8605
9168
  key: infer K;
@@ -8626,6 +9189,9 @@ type InferTModelKey<T> = T extends {
8626
9189
  * - `'deepseek'` - DeepSeek (DeepSeek-V4-Flash, DeepSeek-V4-Pro)
8627
9190
  * - `'reka'` - Reka AI
8628
9191
  * - `'grok'` - xAI Grok
9192
+ * // axir-nonportable:start webllm
9193
+ * - `'webllm'` - WebLLM browser runtime with a caller-supplied MLCEngine
9194
+ * // axir-nonportable:end webllm
8629
9195
  *
8630
9196
  * @param options - Provider-specific configuration. Must include `name` to identify the provider.
8631
9197
  * @param options.name - The provider identifier (see list above)
@@ -9196,6 +9762,13 @@ declare function axValidateChatRequestMessage(item: AxChatRequestMessage): void;
9196
9762
  */
9197
9763
  declare function axValidateChatResponseResult(results: Readonly<AxChatResponseResult[]> | Readonly<AxChatResponseResult>): void;
9198
9764
 
9765
+ /**
9766
+ * WebLLM model information
9767
+ * Note: WebLLM runs models locally in the browser, so there are no API costs
9768
+ * However, we include context window and capability information
9769
+ */
9770
+ declare const axModelInfoWebLLM: AxModelInfo[];
9771
+
9199
9772
  declare const axModelInfoGrok: AxModelInfo[];
9200
9773
 
9201
9774
  type AxDateRange = {
@@ -9342,6 +9915,100 @@ declare const axCreateDefaultOptimizerTextLogger: (output?: (message: string) =>
9342
9915
  */
9343
9916
  declare const axDefaultOptimizerLogger: AxOptimizerLoggerFunction;
9344
9917
 
9918
+ interface AxACECompileOptions extends AxCompileOptions {
9919
+ aceOptions?: AxACEOptions;
9920
+ }
9921
+ interface AxACEResult<OUT extends AxGenOut> extends AxOptimizerResult<OUT> {
9922
+ optimizedProgram?: AxACEOptimizedProgram<OUT>;
9923
+ playbook: AxACEPlaybook;
9924
+ artifact: AxACEOptimizationArtifact;
9925
+ }
9926
+ /**
9927
+ * Optimized program artifact that persists ACE playbook updates.
9928
+ */
9929
+ declare class AxACEOptimizedProgram<OUT = any> extends AxOptimizedProgramImpl<OUT> {
9930
+ readonly playbook: AxACEPlaybook;
9931
+ readonly artifact: AxACEOptimizationArtifact;
9932
+ private readonly baseInstruction?;
9933
+ constructor(config: {
9934
+ baseInstruction?: string;
9935
+ playbook: AxACEPlaybook;
9936
+ artifact: AxACEOptimizationArtifact;
9937
+ bestScore: number;
9938
+ stats: AxOptimizationStats;
9939
+ optimizerType: string;
9940
+ optimizationTime: number;
9941
+ totalRounds: number;
9942
+ converged: boolean;
9943
+ demos?: AxOptimizedProgram<OUT>['demos'];
9944
+ examples?: AxExample$1[];
9945
+ modelConfig?: AxOptimizedProgram<OUT>['modelConfig'];
9946
+ scoreHistory?: number[];
9947
+ configurationHistory?: Record<string, unknown>[];
9948
+ });
9949
+ applyTo<IN, T extends AxGenOut>(program: AxGen<IN, T>): void;
9950
+ }
9951
+ /**
9952
+ * AxACE implements the Agentic Context Engineering loop (Generator → Reflector → Curator).
9953
+ * The implementation mirrors the paper's architecture while integrating with the Ax optimizer
9954
+ * ergonomics (unified optimized program artifacts, metrics, and checkpointing).
9955
+ */
9956
+ declare class AxACE extends AxBaseOptimizer {
9957
+ private readonly aceConfig;
9958
+ private playbook;
9959
+ private baseInstruction?;
9960
+ private generatorHistory;
9961
+ private deltaHistory;
9962
+ private reflectorProgram?;
9963
+ private curatorProgram?;
9964
+ private program?;
9965
+ constructor(args: Readonly<AxOptimizerArgs>, options?: Readonly<AxACEOptions>);
9966
+ reset(): void;
9967
+ hydrate<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, state?: Readonly<{
9968
+ baseInstruction?: string;
9969
+ playbook?: AxACEPlaybook;
9970
+ artifact?: Partial<AxACEOptimizationArtifact>;
9971
+ }>): void;
9972
+ getPlaybook(): AxACEPlaybook;
9973
+ getBaseInstruction(): string | undefined;
9974
+ getArtifact(): AxACEOptimizationArtifact;
9975
+ applyCurrentState<IN, OUT extends AxGenOut>(program?: AxGen<IN, OUT>): void;
9976
+ configureAuto(level: 'light' | 'medium' | 'heavy'): void;
9977
+ compile<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxACECompileOptions): Promise<AxACEResult<OUT>>;
9978
+ /**
9979
+ * Apply ACE updates after each online inference. Mirrors the online adaptation
9980
+ * flow described in the paper; can be called by user-land code between queries.
9981
+ */
9982
+ applyOnlineUpdate(args: Readonly<{
9983
+ example: AxExample$1;
9984
+ prediction: unknown;
9985
+ feedback?: string;
9986
+ }>): Promise<AxACECuratorOutput | undefined>;
9987
+ private composeInstruction;
9988
+ private createArtifact;
9989
+ private extractProgramInstruction;
9990
+ private createGeneratorOutput;
9991
+ private createMetricFeedback;
9992
+ private extractFieldValues;
9993
+ private extractBoundedFieldValues;
9994
+ private createQuestionContext;
9995
+ private createExpectedAnswer;
9996
+ private stringifyBounded;
9997
+ private boundSerializedValue;
9998
+ private boundSerializedFieldValue;
9999
+ private truncateSerializedString;
10000
+ private resolveCuratorOperationTargets;
10001
+ private locateBullet;
10002
+ private locateFallbackBullet;
10003
+ private collectProtectedBulletIds;
10004
+ private normalizeCuratorOperations;
10005
+ private runReflectionRounds;
10006
+ private runReflector;
10007
+ private runCurator;
10008
+ private getOrCreateReflectorProgram;
10009
+ private getOrCreateCuratorProgram;
10010
+ }
10011
+
9345
10012
  type AxRolloutTrace<Out = unknown> = {
9346
10013
  calls: AxFunctionCallTrace[];
9347
10014
  output?: Out;
@@ -11151,4 +11818,4 @@ declare class AxRateLimiterTokenUsage {
11151
11818
  acquire(tokens: number): Promise<void>;
11152
11819
  }
11153
11820
 
11154
- export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicEffortLevel, type AxAIAnthropicEffortLevelMapping, type AxAIAnthropicErrorEvent, type AxAIAnthropicFunctionTool, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicOutputConfig, type AxAIAnthropicPingEvent, type AxAIAnthropicRequestTool, type AxAIAnthropicStopDetails, type AxAIAnthropicTaskBudget, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, type AxAIAnthropicThinkingWire, AxAIAnthropicVertexModel, type AxAIAnthropicWebSearchTool, type AxAIArgs, AxAIAzureOpenAI, type AxAIAzureOpenAIArgs, type AxAIAzureOpenAIConfig, AxAICohere, type AxAICohereArgs, type AxAICohereChatRequest, type AxAICohereChatRequestToolResults, type AxAICohereChatResponse, type AxAICohereChatResponseDelta, type AxAICohereChatResponseToolCalls, type AxAICohereConfig, AxAICohereEmbedModel, type AxAICohereEmbedRequest, type AxAICohereEmbedResponse, AxAICohereModel, AxAIDeepSeek, type AxAIDeepSeekArgs, AxAIDeepSeekModel, type AxAIEmbedModels, type AxAIFeatures, AxAIGoogleGemini, type AxAIGoogleGeminiArgs, type AxAIGoogleGeminiBatchEmbedRequest, type AxAIGoogleGeminiBatchEmbedResponse, type AxAIGoogleGeminiCacheCreateRequest, type AxAIGoogleGeminiCacheResponse, type AxAIGoogleGeminiCacheUpdateRequest, type AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, type AxAIGoogleGeminiContentPart, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, type AxAIGoogleGeminiRetrievalConfig, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, type AxAIGoogleGeminiThinkingLevel, type AxAIGoogleGeminiThinkingLevelMapping, type AxAIGoogleGeminiThinkingTokenBudgetLevels, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleMaps, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGrok, type AxAIGrokArgs, type AxAIGrokChatRequest, AxAIGrokEmbedModels, AxAIGrokModel, type AxAIGrokOptionsTools, type AxAIGrokSearchSource, type AxAIInputModelList, type AxAIMemory, type AxAIMetricsInstruments, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelCatalogAudioSupport, type AxAIModelCatalogFilter, type AxAIModelCatalogModel, type AxAIModelCatalogModelCapabilities, type AxAIModelCatalogModelType, type AxAIModelCatalogOptions, type AxAIModelCatalogProvider, type AxAIModelCatalogProviderName, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOpenAI, type AxAIOpenAIAnnotation, type AxAIOpenAIArgs, AxAIOpenAIBase, type AxAIOpenAIBaseArgs, type AxAIOpenAIChatRequest, type AxAIOpenAIChatResponse, type AxAIOpenAIChatResponseDelta, type AxAIOpenAIConfig, AxAIOpenAIEmbedModel, type AxAIOpenAIEmbedRequest, type AxAIOpenAIEmbedResponse, type AxAIOpenAILogprob, AxAIOpenAIModel, type AxAIOpenAIResponseDelta, AxAIOpenAIResponses, type AxAIOpenAIResponsesArgs, AxAIOpenAIResponsesBase, type AxAIOpenAIResponsesCodeInterpreterToolCall, type AxAIOpenAIResponsesComputerToolCall, type AxAIOpenAIResponsesConfig, type AxAIOpenAIResponsesContentPartAddedEvent, type AxAIOpenAIResponsesContentPartDoneEvent, type AxAIOpenAIResponsesDefineFunctionTool, type AxAIOpenAIResponsesErrorEvent, type AxAIOpenAIResponsesFileSearchCallCompletedEvent, type AxAIOpenAIResponsesFileSearchCallInProgressEvent, type AxAIOpenAIResponsesFileSearchCallSearchingEvent, type AxAIOpenAIResponsesFileSearchToolCall, type AxAIOpenAIResponsesFunctionCallArgumentsDeltaEvent, type AxAIOpenAIResponsesFunctionCallArgumentsDoneEvent, type AxAIOpenAIResponsesFunctionCallItem, type AxAIOpenAIResponsesImageGenerationCallCompletedEvent, type AxAIOpenAIResponsesImageGenerationCallGeneratingEvent, type AxAIOpenAIResponsesImageGenerationCallInProgressEvent, type AxAIOpenAIResponsesImageGenerationCallPartialImageEvent, type AxAIOpenAIResponsesImageGenerationToolCall, type AxAIOpenAIResponsesInputAudioContentPart, type AxAIOpenAIResponsesInputContentPart, type AxAIOpenAIResponsesInputFunctionCallItem, type AxAIOpenAIResponsesInputFunctionCallOutputItem, type AxAIOpenAIResponsesInputImageUrlContentPart, type AxAIOpenAIResponsesInputItem, type AxAIOpenAIResponsesInputMessageItem, type AxAIOpenAIResponsesInputTextContentPart, type AxAIOpenAIResponsesLocalShellToolCall, type AxAIOpenAIResponsesMCPCallArgumentsDeltaEvent, type AxAIOpenAIResponsesMCPCallArgumentsDoneEvent, type AxAIOpenAIResponsesMCPCallCompletedEvent, type AxAIOpenAIResponsesMCPCallFailedEvent, type AxAIOpenAIResponsesMCPCallInProgressEvent, type AxAIOpenAIResponsesMCPListToolsCompletedEvent, type AxAIOpenAIResponsesMCPListToolsFailedEvent, type AxAIOpenAIResponsesMCPListToolsInProgressEvent, type AxAIOpenAIResponsesMCPToolCall, AxAIOpenAIResponsesModel, type AxAIOpenAIResponsesOutputItem, type AxAIOpenAIResponsesOutputItemAddedEvent, type AxAIOpenAIResponsesOutputItemDoneEvent, type AxAIOpenAIResponsesOutputMessageItem, type AxAIOpenAIResponsesOutputRefusalContentPart, type AxAIOpenAIResponsesOutputTextAnnotationAddedEvent, type AxAIOpenAIResponsesOutputTextContentPart, type AxAIOpenAIResponsesOutputTextDeltaEvent, type AxAIOpenAIResponsesOutputTextDoneEvent, type AxAIOpenAIResponsesReasoningDeltaEvent, type AxAIOpenAIResponsesReasoningDoneEvent, type AxAIOpenAIResponsesReasoningItem, type AxAIOpenAIResponsesReasoningSummaryDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryDoneEvent, type AxAIOpenAIResponsesReasoningSummaryPart, type AxAIOpenAIResponsesReasoningSummaryPartAddedEvent, type AxAIOpenAIResponsesReasoningSummaryPartDoneEvent, type AxAIOpenAIResponsesReasoningSummaryTextDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryTextDoneEvent, type AxAIOpenAIResponsesRefusalDeltaEvent, type AxAIOpenAIResponsesRefusalDoneEvent, type AxAIOpenAIResponsesRequest, type AxAIOpenAIResponsesResponse, type AxAIOpenAIResponsesResponseCompletedEvent, type AxAIOpenAIResponsesResponseCreatedEvent, type AxAIOpenAIResponsesResponseFailedEvent, type AxAIOpenAIResponsesResponseInProgressEvent, type AxAIOpenAIResponsesResponseIncompleteEvent, type AxAIOpenAIResponsesResponseQueuedEvent, type AxAIOpenAIResponsesStreamEvent, type AxAIOpenAIResponsesStreamEventBase, type AxAIOpenAIResponsesToolCall, type AxAIOpenAIResponsesToolCallBase, type AxAIOpenAIResponsesToolChoice, type AxAIOpenAIResponsesToolDefinition, type AxAIOpenAIResponsesWebSearchCallCompletedEvent, type AxAIOpenAIResponsesWebSearchCallInProgressEvent, type AxAIOpenAIResponsesWebSearchCallSearchingEvent, type AxAIOpenAIResponsesWebSearchToolCall, type AxAIOpenAIUrlCitation, type AxAIOpenAIUsage, AxAIRefusalError, AxAIReka, type AxAIRekaArgs, type AxAIRekaChatRequest, type AxAIRekaChatResponse, type AxAIRekaChatResponseDelta, type AxAIRekaConfig, AxAIRekaModel, type AxAIRekaUsage, type AxAIService, AxAIServiceAbortedError, type AxAIServiceActionOptions, AxAIServiceAuthenticationError, AxAIServiceError, type AxAIServiceImpl, type AxAIServiceMetrics, type AxAIServiceModelType, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, type AxAPI, type AxAPIConfig, type AxAPIResponseMetadata, AxAgent, type AxAgentActorTurnCallback, type AxAgentActorTurnCallbackArgs, type AxAgentClarification, type AxAgentClarificationChoice, AxAgentClarificationError, type AxAgentClarificationKind, type AxAgentCompletionProtocol, type AxAgentConfig, type AxAgentContextEvent, AxAgentContextMap, type AxAgentContextMapConfig, type AxAgentContextMapOperation, type AxAgentContextMapOptions, type AxAgentContextMapSnapshot, type AxAgentContextMapUpdateResult, type AxAgentContextPressure, type AxAgentContextStage, type AxAgentDemos, type AxAgentDiscoveryPromptState, type AxAgentEvalDataset, type AxAgentEvalFunctionCall, type AxAgentEvalPrediction, type AxAgentEvalTask, type AxAgentExecutorResultPayload, type AxAgentForwardOptions, type AxAgentFunction, type AxAgentFunctionCall, type AxAgentFunctionCallRecorder, type AxAgentFunctionCollection, type AxAgentFunctionExample, type AxAgentFunctionGroup, type AxAgentFunctionModuleMeta, type AxAgentGuidanceLogEntry, type AxAgentGuidancePayload, type AxAgentGuidanceState, type AxAgentIdentity, type AxAgentInputUpdateCallback, type AxAgentJudgeEvalInput, type AxAgentJudgeEvalOutput, type AxAgentJudgeInput, type AxAgentJudgeOptions, type AxAgentJudgeOutput, type AxAgentMemoriesSearchFn, type AxAgentMemoryEntry, type AxAgentMemoryResult, type AxAgentOnContextEvent, type AxAgentOnFunctionCall, type AxAgentOptimizationTargetDescriptor, type AxAgentOptimizeOptions, type AxAgentOptimizeResult, type AxAgentOptimizeTarget, type AxAgentOptions, AxAgentProtocolCompletionSignal, type AxAgentRecursionOptions, type AxAgentRecursiveExpensiveNode, type AxAgentRecursiveFunctionCall, type AxAgentRecursiveNodeRole, type AxAgentRecursiveStats, type AxAgentRecursiveTargetId, type AxAgentRecursiveTraceNode, type AxAgentRecursiveTurn, type AxAgentRecursiveUsage, type AxAgentRuntimeCompletionState, type AxAgentRuntimeExecutionContext, type AxAgentRuntimeInputState, type AxAgentSkillResult, type AxAgentSkillsPromptState, type AxAgentSkillsSearchFn, type AxAgentState, type AxAgentStateActionLogEntry, type AxAgentStateCheckpointState, type AxAgentStateExecutorModelState, type AxAgentStateRuntimeEntry, type AxAgentStreamingForwardOptions, type AxAgentStructuredClarification, type AxAgentTestCompletionPayload, type AxAgentTestResult, type AxAgentUsage, type AxAgentUsedMemoriesCallback, type AxAgentUsedMemory, type AxAgentUsedSkill, type AxAgentUsedSkillsCallback, type AxAgentic, type AxAnyAgentic, type AxAssertion, AxAssertionError, type AxAttempt, type AxAudioFormat, type AxAudioInput, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, AxBestOfN, type AxBestOfNOptions, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, type AxChatAudioConfig, type AxChatAudioOutput, type AxChatLogEntry, type AxChatLogMessage, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCitation, type AxCodeRuntime, type AxCodeSession, type AxCodeSessionSnapshot, type AxCodeSessionSnapshotEntry, type AxCompileOptions, AxContentProcessingError, type AxContentProcessingServices, type AxContextCacheInfo, type AxContextCacheOperation, type AxContextCacheOptions, type AxContextCacheRegistry, type AxContextCacheRegistryEntry, type AxContextFieldInput, type AxContextFieldPromptConfig, type AxContextPolicyBudget, type AxContextPolicyConfig, type AxContextPolicyPreset, type AxCostTracker, type AxCostTrackerOptions, type AxDateRange, type AxDateRangeValue, type AxDebugChatResponseUsage, AxDefaultCostTracker, type AxDiscoveryTurnSummary, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxErrorCategory, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxExamples, type AxExecutorModelPolicy, type AxExecutorModelPolicyEntry, type AxField, type AxFieldOptions, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, AxFlow, type AxFlowBranchEvaluationData, type AxFlowCompleteData, type AxFlowDynamicContext, type AxFlowErrorData, type AxFlowExecutionPlan, type AxFlowExecutionPlanGroup, type AxFlowExecutionPlanStep, type AxFlowForwardOptions, type AxFlowLogData, type AxFlowLoggerData, type AxFlowLoggerFunction, type AxFlowOptions, type AxFlowParallelGroupCompleteData, type AxFlowParallelGroupStartData, type AxFlowStartData, type AxFlowState, type AxFlowStateDependencyAnalysis, type AxFlowStepCompleteData, type AxFlowStepStartData, type AxFlowTypedParallelBranch, type AxFlowTypedSubContext, type AxFlowable, type AxFluentFieldInfo, AxFluentFieldType, type AxForwardable, type AxFunction, type AxFunctionCallRecord, type AxFunctionCallTrace, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, type AxFunctionProvider, type AxFunctionResult, type AxFunctionResultFormatter, AxGEPA, type AxGEPAAdapter, type AxGEPABatchEvaluation, type AxGEPABatchRow, type AxGEPABootstrapOptions, type AxGEPAComponentBanditState, AxGEPAComponentSelector, type AxGEPAComponentTarget, type AxGEPAEvaluationBatch, type AxGEPAEvaluationState, type AxGEPAOptimizationReport, type AxGEPAReflectiveTuple, type AxGEPATraceSummary, type AxGEPATraceSummaryCall, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenInput, type AxGenMetricsInstruments, type AxGenOut, type AxGenOutput, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, type AxIField, type AxInputFunctionType, AxJSRuntime, type AxJSRuntimeNodePermissionAllowlist, type AxJSRuntimeOutputMode, AxJSRuntimePermission, type AxJSRuntimeResourceLimits, type AxJudgeForwardOptions, type AxJudgeOptions, type AxLlmQueryBudgetState, type AxLlmQueryPromptMode, type AxLoggerData, type AxLoggerFunction, type AxMCPAnnotations, type AxMCPAudioContent, type AxMCPBaseAnnotated, type AxMCPBlobResourceContents, AxMCPClient, type AxMCPClientCapabilities, type AxMCPClientOptions, type AxMCPCompletionArgument, type AxMCPCompletionReference, type AxMCPCompletionRequest, type AxMCPCompletionResult, type AxMCPContent, type AxMCPEmbeddedResource, type AxMCPFetchOptions, type AxMCPFunctionDescription, type AxMCPFunctionOverride, AxMCPHTTPSSETransport, type AxMCPIcon, type AxMCPImageContent, type AxMCPImplementationInfo, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCMessage, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPJSONSchema, type AxMCPListRootsResult, type AxMCPLoggingLevel, type AxMCPMeta, type AxMCPOAuthOptions, type AxMCPPaginatedRequest, type AxMCPPrompt, type AxMCPPromptArgument, type AxMCPPromptGetResult, type AxMCPPromptMessage, type AxMCPPromptsListResult, type AxMCPProtocolVersion, type AxMCPResource, type AxMCPResourceLink, type AxMCPResourceReadResult, type AxMCPResourceTemplate, type AxMCPResourceTemplatesListResult, type AxMCPResourcesListResult, type AxMCPRoot, type AxMCPSSRFProtectionContext, type AxMCPSSRFProtectionOptions, type AxMCPServerCapabilities, AxMCPStreamableHTTPTransport, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPTextContent, type AxMCPTextResourceContents, type AxMCPTokenSet, type AxMCPTool, type AxMCPToolCallParams, type AxMCPToolCallResult, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, type AxMemoryMessageValue, type AxMetricFn, type AxMetricFnArgs, type AxMetricsConfig, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, type AxMultiProviderConfig, AxMultiServiceRouter, type AxNamedProgramInstance, type AxOptimizableComponent, type AxOptimizableValidator, type AxOptimizationCheckpoint, type AxOptimizationProgress, type AxOptimizationStats, type AxOptimizeOptions, type AxOptimizedProgram, AxOptimizedProgramImpl, type AxOptimizer, type AxOptimizerArgs, type AxOptimizerLoggerData, type AxOptimizerLoggerFunction, type AxOptimizerMetricsConfig, type AxOptimizerMetricsInstruments, type AxOptimizerResult, type AxParetoResult, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramForwardOptionsWithModels, type AxProgramOptions, type AxProgramStreamingForwardOptions, type AxProgramStreamingForwardOptionsWithModels, type AxProgramTrace, type AxProgramUsage, type AxProgrammable, type AxPromptMetrics, AxPromptTemplate, type AxPromptTemplateOptions, type AxProviderMetadata, AxProviderRouter, type AxRLMConfig, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, AxRefine, AxRefineError, type AxRefineOptions, type AxRefineStrategy, type AxRenderedPrompt, type AxResolvedContextPolicy, type AxResolvedExecutorModelPolicy, type AxResolvedExecutorModelPolicyEntry, type AxResultPickerFunction, type AxResultPickerFunctionFieldResults, type AxResultPickerFunctionFunctionResults, type AxRewardFn, type AxRewardFnArgs, type AxRolloutTrace, type AxRoutingResult, type AxRuntimeCallableFormatArgs, type AxRuntimeLanguageInfo, type AxRuntimePrimitive, type AxRuntimePrimitiveExample, type AxRuntimePrimitiveOverrideMap, type AxRuntimePrimitiveSignature, type AxRuntimePrimitiveStage, type AxSamplePickerOptions, type AxSelfTuningConfig, type AxSerializedOptimizedProgram, type AxSetExamplesOptions, AxSignature, AxSignatureBuilder, type AxSignatureConfig, type AxSignatureInput, type AxSpeechConfig, type AxSpeechRequest, type AxSpeechResponse, type AxStageDefinitionBuildOptions, type AxStageOptions, type AxStepContext, type AxStepHooks, type AxStepUsage, AxStopFunctionCallException, type AxStreamingAssertion, AxStreamingAssertionError, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxSynth, type AxSynthExample, type AxSynthOptions, type AxSynthResult, type AxSynthesizerInit, type AxSynthesizerOptions, type AxSynthesizerRole, AxTestPrompt, type AxThoughtBlockItem, AxTokenLimitError, type AxTokenUsage, type AxTranscriptionRequest, type AxTranscriptionResponse, type AxTranscriptionSegment, type AxTunable, type AxTypedExample, type AxUsable, type AxWorkerRuntimeConfig, agent, ai, ax, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIGoogleGeminiLiveAudioDefaultConfig, axAIGrokBestConfig, axAIGrokDefaultConfig, axAIGrokVoiceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOpenAIAudioDefaultConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIOpenAIRealtimeDefaultConfig, axAIOpenAIRealtimeTranscriptionDefaultConfig, axAIOpenAIResponsesBestConfig, axAIOpenAIResponsesCreativeConfig, axAIOpenAIResponsesDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAnalyzeChatPromptRequirements, axAnalyzeRequestRequirements, axApplyOpenAIChatAudioRequest, axAudioFormatFromMimeType, axAudioInputFilename, axAudioInputToBlob, axAudioMimeType, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axBuildDistillerDefinition, axBuildExecutorDefinition, axBuildResponderDefinition, axCheckMetricsHealth, axConcatBase64, axCreateDefaultColorLogger, axCreateDefaultOptimizerColorLogger, axCreateDefaultOptimizerTextLogger, axCreateDefaultTextLogger, axCreateFlowColorLogger, axCreateFlowTextLogger, axCreateGeminiLiveAudioApi, axCreateGrokRealtimeApi, axCreateJSRuntime, axCreateOpenAIRealtimeApi, axDefaultFlowLogger, axDefaultMetricsConfig, axDefaultOptimizerLogger, axDefaultOptimizerMetricsConfig, axDeserializeOptimizedProgram, axFetchJsonSpeech, axFetchMultipartTranscription, axGetCompatibilityReport, axGetFormatCompatibility, axGetMetricsConfig, axGetOptimizerMetricsConfig, axGetProvidersWithMediaSupport, axGetSupportedAIModels, axGlobals, axGoogleGeminiLiveAudioDefaults, axIsAudioOutputEnabled, axIsGeminiLiveAudioModel, axIsGrokVoiceModel, axIsOpenAIChatAudioModel, axIsOpenAIRealtimeModel, axIsOpenAIRealtimeTranscriptionModel, axMCPToolInputSchemaToFunctionSchema, axMapGeminiLiveAudioPart, axMapOpenAIChatAudioDelta, axMapOpenAIChatAudioResponse, axMapOpenAIInputAudioPart, axMergeChatAudioConfig, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoMistral, axModelInfoOpenAI, axModelInfoOpenAIResponses, axModelInfoReka, axNormalizeOpenAIUsage, axNormalizeTranscriptionResponse, axOpenAIChatAudioDefaults, axOptimizableValidators, axProcessContentForProvider, axResolveGeminiLiveAudioConfig, axResolveGrokRealtimeAudioConfig, axResolveOpenAIChatAudioConfig, axResolveOpenAIRealtimeAudioConfig, axRuntimePrimitives, axScoreProvidersForRequest, axSelectOptimalProvider, axSerializeOptimizedProgram, axShouldUseGeminiLiveAudio, axShouldUseGrokRealtime, axShouldUseOpenAIRealtime, axSpanAttributes, axSpanEvents, axUpdateMetricsConfig, axUpdateOptimizerMetricsConfig, axValidateChatRequestMessage, axValidateChatResponseResult, axValidateGeminiLiveAudioInput, axValidateProviderCapabilities, axWorkerRuntime, bestOfN, f, flow, fn, optimize, refine, s };
11821
+ export { AxACE, type AxACEBullet, type AxACECuratorOperation, type AxACECuratorOperationType, type AxACECuratorOutput, type AxACEFeedbackEvent, type AxACEGeneratorOutput, type AxACEOptimizationArtifact, AxACEOptimizedProgram, type AxACEOptions, type AxACEPlaybook, type AxACEReflectionOutput, type AxACEResult, AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicEffortLevel, type AxAIAnthropicEffortLevelMapping, type AxAIAnthropicErrorEvent, type AxAIAnthropicFunctionTool, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicOutputConfig, type AxAIAnthropicPingEvent, type AxAIAnthropicRequestTool, type AxAIAnthropicStopDetails, type AxAIAnthropicTaskBudget, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, type AxAIAnthropicThinkingWire, AxAIAnthropicVertexModel, type AxAIAnthropicWebSearchTool, type AxAIArgs, AxAIAzureOpenAI, type AxAIAzureOpenAIArgs, type AxAIAzureOpenAIConfig, AxAICohere, type AxAICohereArgs, type AxAICohereChatRequest, type AxAICohereChatRequestToolResults, type AxAICohereChatResponse, type AxAICohereChatResponseDelta, type AxAICohereChatResponseToolCalls, type AxAICohereConfig, AxAICohereEmbedModel, type AxAICohereEmbedRequest, type AxAICohereEmbedResponse, AxAICohereModel, AxAIDeepSeek, type AxAIDeepSeekArgs, AxAIDeepSeekModel, type AxAIEmbedModels, type AxAIFeatures, AxAIGoogleGemini, type AxAIGoogleGeminiArgs, type AxAIGoogleGeminiBatchEmbedRequest, type AxAIGoogleGeminiBatchEmbedResponse, type AxAIGoogleGeminiCacheCreateRequest, type AxAIGoogleGeminiCacheResponse, type AxAIGoogleGeminiCacheUpdateRequest, type AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, type AxAIGoogleGeminiContentPart, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, type AxAIGoogleGeminiRetrievalConfig, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, type AxAIGoogleGeminiThinkingLevel, type AxAIGoogleGeminiThinkingLevelMapping, type AxAIGoogleGeminiThinkingTokenBudgetLevels, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleMaps, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGrok, type AxAIGrokArgs, type AxAIGrokChatRequest, AxAIGrokEmbedModels, AxAIGrokModel, type AxAIGrokOptionsTools, type AxAIGrokSearchSource, type AxAIInputModelList, type AxAIMemory, type AxAIMetricsInstruments, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelCatalogAudioSupport, type AxAIModelCatalogFilter, type AxAIModelCatalogModel, type AxAIModelCatalogModelCapabilities, type AxAIModelCatalogModelType, type AxAIModelCatalogOptions, type AxAIModelCatalogProvider, type AxAIModelCatalogProviderName, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOpenAI, type AxAIOpenAIAnnotation, type AxAIOpenAIArgs, AxAIOpenAIBase, type AxAIOpenAIBaseArgs, type AxAIOpenAIChatRequest, type AxAIOpenAIChatResponse, type AxAIOpenAIChatResponseDelta, type AxAIOpenAIConfig, AxAIOpenAIEmbedModel, type AxAIOpenAIEmbedRequest, type AxAIOpenAIEmbedResponse, type AxAIOpenAILogprob, AxAIOpenAIModel, type AxAIOpenAIResponseDelta, AxAIOpenAIResponses, type AxAIOpenAIResponsesArgs, AxAIOpenAIResponsesBase, type AxAIOpenAIResponsesCodeInterpreterToolCall, type AxAIOpenAIResponsesComputerToolCall, type AxAIOpenAIResponsesConfig, type AxAIOpenAIResponsesContentPartAddedEvent, type AxAIOpenAIResponsesContentPartDoneEvent, type AxAIOpenAIResponsesDefineFunctionTool, type AxAIOpenAIResponsesErrorEvent, type AxAIOpenAIResponsesFileSearchCallCompletedEvent, type AxAIOpenAIResponsesFileSearchCallInProgressEvent, type AxAIOpenAIResponsesFileSearchCallSearchingEvent, type AxAIOpenAIResponsesFileSearchToolCall, type AxAIOpenAIResponsesFunctionCallArgumentsDeltaEvent, type AxAIOpenAIResponsesFunctionCallArgumentsDoneEvent, type AxAIOpenAIResponsesFunctionCallItem, type AxAIOpenAIResponsesImageGenerationCallCompletedEvent, type AxAIOpenAIResponsesImageGenerationCallGeneratingEvent, type AxAIOpenAIResponsesImageGenerationCallInProgressEvent, type AxAIOpenAIResponsesImageGenerationCallPartialImageEvent, type AxAIOpenAIResponsesImageGenerationToolCall, type AxAIOpenAIResponsesInputAudioContentPart, type AxAIOpenAIResponsesInputContentPart, type AxAIOpenAIResponsesInputFunctionCallItem, type AxAIOpenAIResponsesInputFunctionCallOutputItem, type AxAIOpenAIResponsesInputImageUrlContentPart, type AxAIOpenAIResponsesInputItem, type AxAIOpenAIResponsesInputMessageItem, type AxAIOpenAIResponsesInputTextContentPart, type AxAIOpenAIResponsesLocalShellToolCall, type AxAIOpenAIResponsesMCPCallArgumentsDeltaEvent, type AxAIOpenAIResponsesMCPCallArgumentsDoneEvent, type AxAIOpenAIResponsesMCPCallCompletedEvent, type AxAIOpenAIResponsesMCPCallFailedEvent, type AxAIOpenAIResponsesMCPCallInProgressEvent, type AxAIOpenAIResponsesMCPListToolsCompletedEvent, type AxAIOpenAIResponsesMCPListToolsFailedEvent, type AxAIOpenAIResponsesMCPListToolsInProgressEvent, type AxAIOpenAIResponsesMCPToolCall, AxAIOpenAIResponsesModel, type AxAIOpenAIResponsesOutputItem, type AxAIOpenAIResponsesOutputItemAddedEvent, type AxAIOpenAIResponsesOutputItemDoneEvent, type AxAIOpenAIResponsesOutputMessageItem, type AxAIOpenAIResponsesOutputRefusalContentPart, type AxAIOpenAIResponsesOutputTextAnnotationAddedEvent, type AxAIOpenAIResponsesOutputTextContentPart, type AxAIOpenAIResponsesOutputTextDeltaEvent, type AxAIOpenAIResponsesOutputTextDoneEvent, type AxAIOpenAIResponsesReasoningDeltaEvent, type AxAIOpenAIResponsesReasoningDoneEvent, type AxAIOpenAIResponsesReasoningItem, type AxAIOpenAIResponsesReasoningSummaryDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryDoneEvent, type AxAIOpenAIResponsesReasoningSummaryPart, type AxAIOpenAIResponsesReasoningSummaryPartAddedEvent, type AxAIOpenAIResponsesReasoningSummaryPartDoneEvent, type AxAIOpenAIResponsesReasoningSummaryTextDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryTextDoneEvent, type AxAIOpenAIResponsesRefusalDeltaEvent, type AxAIOpenAIResponsesRefusalDoneEvent, type AxAIOpenAIResponsesRequest, type AxAIOpenAIResponsesResponse, type AxAIOpenAIResponsesResponseCompletedEvent, type AxAIOpenAIResponsesResponseCreatedEvent, type AxAIOpenAIResponsesResponseFailedEvent, type AxAIOpenAIResponsesResponseInProgressEvent, type AxAIOpenAIResponsesResponseIncompleteEvent, type AxAIOpenAIResponsesResponseQueuedEvent, type AxAIOpenAIResponsesStreamEvent, type AxAIOpenAIResponsesStreamEventBase, type AxAIOpenAIResponsesToolCall, type AxAIOpenAIResponsesToolCallBase, type AxAIOpenAIResponsesToolChoice, type AxAIOpenAIResponsesToolDefinition, type AxAIOpenAIResponsesWebSearchCallCompletedEvent, type AxAIOpenAIResponsesWebSearchCallInProgressEvent, type AxAIOpenAIResponsesWebSearchCallSearchingEvent, type AxAIOpenAIResponsesWebSearchToolCall, type AxAIOpenAIUrlCitation, type AxAIOpenAIUsage, AxAIRefusalError, AxAIReka, type AxAIRekaArgs, type AxAIRekaChatRequest, type AxAIRekaChatResponse, type AxAIRekaChatResponseDelta, type AxAIRekaConfig, AxAIRekaModel, type AxAIRekaUsage, type AxAIService, AxAIServiceAbortedError, type AxAIServiceActionOptions, AxAIServiceAuthenticationError, AxAIServiceError, type AxAIServiceImpl, type AxAIServiceMetrics, type AxAIServiceModelType, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAIWebLLM, type AxAIWebLLMArgs, type AxAIWebLLMChatRequest, type AxAIWebLLMChatResponse, type AxAIWebLLMChatResponseDelta, type AxAIWebLLMConfig, type AxAIWebLLMEmbedModel, type AxAIWebLLMEmbedRequest, type AxAIWebLLMEmbedResponse, type AxAIWebLLMEngine, AxAIWebLLMModel, type AxAIWebLLMModelId, type AxAPI, type AxAPIConfig, type AxAPIResponseMetadata, AxAgent, type AxAgentActorTurnCallback, type AxAgentActorTurnCallbackArgs, type AxAgentClarification, type AxAgentClarificationChoice, AxAgentClarificationError, type AxAgentClarificationKind, type AxAgentCompletionProtocol, type AxAgentConfig, type AxAgentContextEvent, AxAgentContextMap, type AxAgentContextMapConfig, type AxAgentContextMapOperation, type AxAgentContextMapOptions, type AxAgentContextMapSnapshot, type AxAgentContextMapUpdateResult, type AxAgentContextPressure, type AxAgentContextStage, type AxAgentDemos, type AxAgentDiscoveryPromptState, type AxAgentEvalDataset, type AxAgentEvalFunctionCall, type AxAgentEvalPrediction, type AxAgentEvalTask, type AxAgentExecutorResultPayload, type AxAgentForwardOptions, type AxAgentFunction, type AxAgentFunctionCall, type AxAgentFunctionCallRecorder, type AxAgentFunctionCollection, type AxAgentFunctionExample, type AxAgentFunctionGroup, type AxAgentFunctionModuleMeta, type AxAgentGuidanceLogEntry, type AxAgentGuidancePayload, type AxAgentGuidanceState, type AxAgentIdentity, type AxAgentInputUpdateCallback, type AxAgentJudgeEvalInput, type AxAgentJudgeEvalOutput, type AxAgentJudgeInput, type AxAgentJudgeOptions, type AxAgentJudgeOutput, type AxAgentMemoriesSearchFn, type AxAgentMemoryEntry, type AxAgentMemoryResult, type AxAgentOnContextEvent, type AxAgentOnFunctionCall, type AxAgentOptimizationTargetDescriptor, type AxAgentOptimizeOptions, type AxAgentOptimizeResult, type AxAgentOptimizeTarget, type AxAgentOptions, type AxAgentPlaybookOptions, AxAgentProtocolCompletionSignal, type AxAgentRecursionOptions, type AxAgentRecursiveExpensiveNode, type AxAgentRecursiveFunctionCall, type AxAgentRecursiveNodeRole, type AxAgentRecursiveStats, type AxAgentRecursiveTargetId, type AxAgentRecursiveTraceNode, type AxAgentRecursiveTurn, type AxAgentRecursiveUsage, type AxAgentRuntimeCompletionState, type AxAgentRuntimeExecutionContext, type AxAgentRuntimeInputState, type AxAgentSkillResult, type AxAgentSkillsPromptState, type AxAgentSkillsSearchFn, type AxAgentState, type AxAgentStateActionLogEntry, type AxAgentStateCheckpointState, type AxAgentStateExecutorModelState, type AxAgentStateRuntimeEntry, type AxAgentStreamingForwardOptions, type AxAgentStructuredClarification, type AxAgentTestCompletionPayload, type AxAgentTestResult, type AxAgentUsage, type AxAgentUsedMemoriesCallback, type AxAgentUsedMemory, type AxAgentUsedSkill, type AxAgentUsedSkillsCallback, type AxAgentic, type AxAnyAgentic, type AxAssertion, AxAssertionError, type AxAttempt, type AxAudioFormat, type AxAudioInput, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, AxBestOfN, type AxBestOfNOptions, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, type AxChatAudioConfig, type AxChatAudioOutput, type AxChatLogEntry, type AxChatLogMessage, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCitation, type AxCodeRuntime, type AxCodeSession, type AxCodeSessionSnapshot, type AxCodeSessionSnapshotEntry, type AxCompileOptions, AxContentProcessingError, type AxContentProcessingServices, type AxContextCacheInfo, type AxContextCacheOperation, type AxContextCacheOptions, type AxContextCacheRegistry, type AxContextCacheRegistryEntry, type AxContextFieldInput, type AxContextFieldPromptConfig, AxContextMetricsCollector, type AxContextMetricsRow, type AxContextMetricsSummary, type AxContextPolicyBudget, type AxContextPolicyConfig, type AxContextPolicyPreset, type AxContextScenario, type AxContextTurnSample, type AxCostTracker, type AxCostTrackerOptions, type AxDateRange, type AxDateRangeValue, type AxDebugChatResponseUsage, AxDefaultCostTracker, type AxDiscoveryTurnSummary, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxErrorCategory, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxExamples, type AxExecutorModelPolicy, type AxExecutorModelPolicyEntry, type AxField, type AxFieldOptions, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, AxFlow, type AxFlowBranchEvaluationData, type AxFlowCompleteData, type AxFlowDynamicContext, type AxFlowErrorData, type AxFlowExecutionPlan, type AxFlowExecutionPlanGroup, type AxFlowExecutionPlanStep, type AxFlowForwardOptions, type AxFlowLogData, type AxFlowLoggerData, type AxFlowLoggerFunction, type AxFlowOptions, type AxFlowParallelGroupCompleteData, type AxFlowParallelGroupStartData, type AxFlowStartData, type AxFlowState, type AxFlowStateDependencyAnalysis, type AxFlowStepCompleteData, type AxFlowStepStartData, type AxFlowTypedParallelBranch, type AxFlowTypedSubContext, type AxFlowable, type AxFluentFieldInfo, AxFluentFieldType, type AxForwardable, type AxFunction, type AxFunctionCallRecord, type AxFunctionCallTrace, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, type AxFunctionProvider, type AxFunctionResult, type AxFunctionResultFormatter, AxGEPA, type AxGEPAAdapter, type AxGEPABatchEvaluation, type AxGEPABatchRow, type AxGEPABootstrapOptions, type AxGEPAComponentBanditState, AxGEPAComponentSelector, type AxGEPAComponentTarget, type AxGEPAEvaluationBatch, type AxGEPAEvaluationState, type AxGEPAOptimizationReport, type AxGEPAReflectiveTuple, type AxGEPATraceSummary, type AxGEPATraceSummaryCall, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenInput, type AxGenMetricsInstruments, type AxGenOut, type AxGenOutput, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, type AxIField, type AxInputFunctionType, AxJSRuntime, type AxJSRuntimeNodePermissionAllowlist, type AxJSRuntimeOutputMode, AxJSRuntimePermission, type AxJSRuntimeResourceLimits, type AxJudgeForwardOptions, type AxJudgeOptions, type AxLlmQueryBudgetState, type AxLlmQueryPromptMode, type AxLoggerData, type AxLoggerFunction, type AxMCPAnnotations, type AxMCPAudioContent, type AxMCPBaseAnnotated, type AxMCPBlobResourceContents, AxMCPClient, type AxMCPClientCapabilities, type AxMCPClientOptions, type AxMCPCompletionArgument, type AxMCPCompletionReference, type AxMCPCompletionRequest, type AxMCPCompletionResult, type AxMCPContent, type AxMCPEmbeddedResource, type AxMCPFetchOptions, type AxMCPFunctionDescription, type AxMCPFunctionOverride, AxMCPHTTPSSETransport, type AxMCPIcon, type AxMCPImageContent, type AxMCPImplementationInfo, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCMessage, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPJSONSchema, type AxMCPListRootsResult, type AxMCPLoggingLevel, type AxMCPMeta, type AxMCPOAuthOptions, type AxMCPPaginatedRequest, type AxMCPPrompt, type AxMCPPromptArgument, type AxMCPPromptGetResult, type AxMCPPromptMessage, type AxMCPPromptsListResult, type AxMCPProtocolVersion, type AxMCPResource, type AxMCPResourceLink, type AxMCPResourceReadResult, type AxMCPResourceTemplate, type AxMCPResourceTemplatesListResult, type AxMCPResourcesListResult, type AxMCPRoot, type AxMCPSSRFProtectionContext, type AxMCPSSRFProtectionOptions, type AxMCPServerCapabilities, AxMCPStreamableHTTPTransport, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPTextContent, type AxMCPTextResourceContents, type AxMCPTokenSet, type AxMCPTool, type AxMCPToolCallParams, type AxMCPToolCallResult, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, type AxMemoryMessageValue, type AxMetricFn, type AxMetricFnArgs, type AxMetricsConfig, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, type AxMultiProviderConfig, AxMultiServiceRouter, type AxNamedProgramInstance, type AxOptimizableComponent, type AxOptimizableValidator, type AxOptimizationCheckpoint, type AxOptimizationProgress, type AxOptimizationStats, type AxOptimizeOptions, type AxOptimizedProgram, AxOptimizedProgramImpl, type AxOptimizer, type AxOptimizerArgs, type AxOptimizerLoggerData, type AxOptimizerLoggerFunction, type AxOptimizerMetricsConfig, type AxOptimizerMetricsInstruments, type AxOptimizerResult, type AxParetoResult, AxPlaybook, type AxPlaybookEvolveOptions, type AxPlaybookEvolveResult, type AxPlaybookOptions, type AxPlaybookSnapshot, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramForwardOptionsWithModels, type AxProgramOptions, type AxProgramStreamingForwardOptions, type AxProgramStreamingForwardOptionsWithModels, type AxProgramTrace, type AxProgramUsage, type AxProgrammable, type AxPromptMetrics, AxPromptTemplate, type AxPromptTemplateOptions, type AxProviderMetadata, AxProviderRouter, type AxRLMConfig, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, AxRefine, AxRefineError, type AxRefineOptions, type AxRefineStrategy, type AxRenderedPrompt, type AxResolvedContextPolicy, type AxResolvedExecutorModelPolicy, type AxResolvedExecutorModelPolicyEntry, type AxResultPickerFunction, type AxResultPickerFunctionFieldResults, type AxResultPickerFunctionFunctionResults, type AxRewardFn, type AxRewardFnArgs, type AxRolloutTrace, type AxRoutingResult, type AxRuntimeCallableFormatArgs, type AxRuntimeLanguageInfo, type AxRuntimePrimitive, type AxRuntimePrimitiveExample, type AxRuntimePrimitiveOverrideMap, type AxRuntimePrimitiveSignature, type AxRuntimePrimitiveStage, type AxSamplePickerOptions, type AxSelfTuningConfig, type AxSerializedOptimizedProgram, type AxSetExamplesOptions, AxSignature, AxSignatureBuilder, type AxSignatureConfig, type AxSignatureInput, type AxSpeechConfig, type AxSpeechRequest, type AxSpeechResponse, type AxStageDefinitionBuildOptions, type AxStageOptions, type AxStepContext, type AxStepHooks, type AxStepUsage, AxStopFunctionCallException, type AxStreamingAssertion, AxStreamingAssertionError, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxSynth, type AxSynthExample, type AxSynthOptions, type AxSynthResult, type AxSynthesizerInit, type AxSynthesizerOptions, type AxSynthesizerRole, AxTestPrompt, type AxThoughtBlockItem, AxTokenLimitError, type AxTokenUsage, type AxTranscriptionRequest, type AxTranscriptionResponse, type AxTranscriptionSegment, type AxTunable, type AxTypedExample, type AxUsable, type AxWorkerRuntimeConfig, agent, ai, ax, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIGoogleGeminiLiveAudioDefaultConfig, axAIGrokBestConfig, axAIGrokDefaultConfig, axAIGrokVoiceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOpenAIAudioDefaultConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIOpenAIRealtimeDefaultConfig, axAIOpenAIRealtimeTranscriptionDefaultConfig, axAIOpenAIResponsesBestConfig, axAIOpenAIResponsesCreativeConfig, axAIOpenAIResponsesDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAIWebLLMCreativeConfig, axAIWebLLMDefaultConfig, axAnalyzeChatPromptRequirements, axAnalyzeRequestRequirements, axApplyOpenAIChatAudioRequest, axAudioFormatFromMimeType, axAudioInputFilename, axAudioInputToBlob, axAudioMimeType, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axBuildDistillerDefinition, axBuildExecutorDefinition, axBuildResponderDefinition, axCheckMetricsHealth, axConcatBase64, axCreateDefaultColorLogger, axCreateDefaultOptimizerColorLogger, axCreateDefaultOptimizerTextLogger, axCreateDefaultTextLogger, axCreateFlowColorLogger, axCreateFlowTextLogger, axCreateGeminiLiveAudioApi, axCreateGrokRealtimeApi, axCreateJSRuntime, axCreateOpenAIRealtimeApi, axDefaultFlowLogger, axDefaultMetricsConfig, axDefaultOptimizerLogger, axDefaultOptimizerMetricsConfig, axDeserializeOptimizedProgram, axFetchJsonSpeech, axFetchMultipartTranscription, axGetCompatibilityReport, axGetFormatCompatibility, axGetMetricsConfig, axGetOptimizerMetricsConfig, axGetProvidersWithMediaSupport, axGetSupportedAIModels, axGlobals, axGoogleGeminiLiveAudioDefaults, axIsAudioOutputEnabled, axIsGeminiLiveAudioModel, axIsGrokVoiceModel, axIsOpenAIChatAudioModel, axIsOpenAIRealtimeModel, axIsOpenAIRealtimeTranscriptionModel, axMCPToolInputSchemaToFunctionSchema, axMapGeminiLiveAudioPart, axMapOpenAIChatAudioDelta, axMapOpenAIChatAudioResponse, axMapOpenAIInputAudioPart, axMergeChatAudioConfig, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoMistral, axModelInfoOpenAI, axModelInfoOpenAIResponses, axModelInfoReka, axModelInfoWebLLM, axNormalizeOpenAIUsage, axNormalizeTranscriptionResponse, axOpenAIChatAudioDefaults, axOptimizableValidators, axProcessContentForProvider, axResolveGeminiLiveAudioConfig, axResolveGrokRealtimeAudioConfig, axResolveOpenAIChatAudioConfig, axResolveOpenAIRealtimeAudioConfig, axRuntimePrimitives, axScoreProvidersForRequest, axSelectOptimalProvider, axSerializeOptimizedProgram, axShouldUseGeminiLiveAudio, axShouldUseGrokRealtime, axShouldUseOpenAIRealtime, axSpanAttributes, axSpanEvents, axUpdateMetricsConfig, axUpdateOptimizerMetricsConfig, axValidateChatRequestMessage, axValidateChatResponseResult, axValidateGeminiLiveAudioInput, axValidateProviderCapabilities, axWorkerRuntime, bestOfN, f, flow, fn, optimize, playbook, refine, s };