@ax-llm/ax 22.0.6 → 22.0.8
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/README.md +1 -1
- package/index.cjs +369 -353
- package/index.cjs.map +1 -1
- package/index.d.cts +713 -5
- package/index.d.ts +713 -5
- package/index.global.js +266 -250
- package/index.global.js.map +1 -1
- package/index.js +367 -351
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/skills/ax-agent-context.md +42 -0
- package/skills/ax-agent-memory-skills.md +1 -1
- package/skills/ax-agent-observability.md +1 -1
- package/skills/ax-agent-optimize.md +4 -4
- package/skills/ax-agent-rlm.md +1 -1
- package/skills/ax-agent.md +1 -1
- package/skills/ax-ai.md +34 -8
- package/skills/ax-audio.md +1 -1
- package/skills/ax-flow.md +2 -2
- package/skills/ax-gen.md +2 -2
- package/skills/ax-gepa.md +5 -5
- package/skills/ax-llm.md +2 -2
- package/skills/ax-playbook.md +95 -0
- package/skills/ax-refine.md +1 -1
- package/skills/ax-signature.md +1 -1
package/index.d.cts
CHANGED
|
@@ -432,6 +432,20 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
|
|
|
432
432
|
chat(req: Readonly<AxChatRequest<TModel | TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
433
433
|
private _chat1;
|
|
434
434
|
private cleanupFunctionSchema;
|
|
435
|
+
/**
|
|
436
|
+
* Peeks the first raw streaming delta and, if the provider classifies it as a retryable
|
|
437
|
+
* transient error (e.g. an Anthropic `overloaded_error` SSE event), re-issues the request
|
|
438
|
+
* with exponential backoff — the same policy {@link apiCall} applies to an HTTP 529 status,
|
|
439
|
+
* so streaming and non-streaming overloads behave identically. The first delta is classified
|
|
440
|
+
* on the raw chunk (no stateful transform runs), so peeking has no side effects. After the
|
|
441
|
+
* retry budget is exhausted the original error delta is replayed so it surfaces normally
|
|
442
|
+
* (and the balancer can still fail over). A non-error first delta is replayed unchanged.
|
|
443
|
+
*
|
|
444
|
+
* Note: re-issuing cancels the previous stream's reader best-effort; the underlying fetch
|
|
445
|
+
* body of the abandoned overloaded request is released by GC rather than promptly aborted,
|
|
446
|
+
* since apiCall's streams don't propagate cancel. Acceptable for the transient-overload case.
|
|
447
|
+
*/
|
|
448
|
+
private retryTransientStreamStart;
|
|
435
449
|
private _chat2;
|
|
436
450
|
embed(req: Readonly<AxEmbedRequest<TEmbedModel>>, options?: Readonly<AxAIServiceOptions>): Promise<AxEmbedResponse>;
|
|
437
451
|
private _embed1;
|
|
@@ -1384,6 +1398,14 @@ interface AxAIServiceImpl<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TCha
|
|
|
1384
1398
|
createChatReq(req: Readonly<AxInternalChatRequest<TModel>>, config?: Readonly<AxAIServiceOptions>): Promise<[AxAPI, TChatRequest]> | [AxAPI, TChatRequest];
|
|
1385
1399
|
createChatResp(resp: Readonly<TChatResponse>): AxChatResponse;
|
|
1386
1400
|
createChatStreamResp?(resp: Readonly<TChatResponseDelta>, state: object): AxChatResponse;
|
|
1401
|
+
/**
|
|
1402
|
+
* Optional: classify a raw streaming delta that carries a transient error into the
|
|
1403
|
+
* HTTP status it corresponds to (e.g. Anthropic's HTTP-200 `overloaded_error` SSE event
|
|
1404
|
+
* → 529). The base layer applies the same retryable-status policy used for real HTTP
|
|
1405
|
+
* status errors, so a streaming overload is retried-with-backoff before any failover —
|
|
1406
|
+
* matching the non-streaming path. Return undefined for normal deltas (the common case).
|
|
1407
|
+
*/
|
|
1408
|
+
classifyStreamErrorStatus?(resp: Readonly<TChatResponseDelta>): number | undefined;
|
|
1387
1409
|
createEmbedReq?(req: Readonly<AxInternalEmbedRequest<TEmbedModel>>, config?: Readonly<AxAIServiceOptions>): Promise<[AxAPI, TEmbedRequest]> | [AxAPI, TEmbedRequest];
|
|
1388
1410
|
createEmbedResp?(resp: Readonly<TEmbedResponse>): AxEmbedResponse;
|
|
1389
1411
|
getModelConfig(): AxModelConfig;
|
|
@@ -5023,6 +5045,247 @@ interface AxJudgeOptions extends AxJudgeForwardOptions {
|
|
|
5023
5045
|
randomizeOrder?: boolean;
|
|
5024
5046
|
}
|
|
5025
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
|
+
|
|
5026
5289
|
type AxAgentRecursiveTargetId = 'root.actor.shared' | 'root.actor.root' | 'root.actor.recursive' | 'root.actor.terminal' | 'root.responder';
|
|
5027
5290
|
type AxAgentRecursiveNodeRole = 'root' | 'recursive' | 'terminal';
|
|
5028
5291
|
type AxAgentRecursiveUsage = {
|
|
@@ -5225,6 +5488,19 @@ type AxAgentOptimizeOptions<_IN extends AxGenIn = AxGenIn, _OUT extends AxGenOut
|
|
|
5225
5488
|
onEarlyStop?: (reason: string, stats: Readonly<AxOptimizationStats>) => void;
|
|
5226
5489
|
} & Pick<AxOptimizerArgs, 'numTrials' | 'minibatch' | 'minibatchSize' | 'earlyStoppingTrials' | 'minImprovementThreshold' | 'sampleCount' | 'seed'>;
|
|
5227
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'>;
|
|
5228
5504
|
type AxAgentOptions<IN extends AxGenIn = AxGenIn> = Omit<AxProgramForwardOptions<string>, 'functions' | 'description' | 'onFunctionCall'> & {
|
|
5229
5505
|
debug?: boolean;
|
|
5230
5506
|
/**
|
|
@@ -5754,6 +6030,18 @@ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut> implements AxAge
|
|
|
5754
6030
|
getOptimizableComponents(): readonly any[];
|
|
5755
6031
|
applyOptimizedComponents(updates: Readonly<Record<string, string>>): void;
|
|
5756
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>;
|
|
5757
6045
|
private _listOptimizationTargetDescriptors;
|
|
5758
6046
|
private _createOptimizationProgram;
|
|
5759
6047
|
private _createAgentOptimizeMetric;
|
|
@@ -5977,6 +6265,97 @@ type AxAgentMemoryEntry = {
|
|
|
5977
6265
|
content: string;
|
|
5978
6266
|
};
|
|
5979
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
|
+
|
|
5980
6359
|
/**
|
|
5981
6360
|
* Runtime primitive registry.
|
|
5982
6361
|
*
|
|
@@ -6259,7 +6638,7 @@ type AxAIAnthropicChatResponse = {
|
|
|
6259
6638
|
type AxAIAnthropicChatError = {
|
|
6260
6639
|
type: 'error';
|
|
6261
6640
|
error: {
|
|
6262
|
-
type: 'authentication_error';
|
|
6641
|
+
type: 'overloaded_error' | 'api_error' | 'rate_limit_error' | 'invalid_request_error' | 'authentication_error' | 'permission_error' | 'not_found_error' | 'request_too_large';
|
|
6263
6642
|
message: string;
|
|
6264
6643
|
};
|
|
6265
6644
|
};
|
|
@@ -6349,7 +6728,7 @@ interface AxAIAnthropicPingEvent {
|
|
|
6349
6728
|
interface AxAIAnthropicErrorEvent {
|
|
6350
6729
|
type: 'error';
|
|
6351
6730
|
error: {
|
|
6352
|
-
type: 'overloaded_error';
|
|
6731
|
+
type: 'overloaded_error' | 'api_error' | 'rate_limit_error' | 'invalid_request_error' | 'authentication_error' | 'permission_error' | 'not_found_error' | 'request_too_large';
|
|
6353
6732
|
message: string;
|
|
6354
6733
|
};
|
|
6355
6734
|
}
|
|
@@ -6858,6 +7237,7 @@ declare class AxBalancer<TServices extends readonly AxAIService<any, any, any>[]
|
|
|
6858
7237
|
private maxBackoffMs;
|
|
6859
7238
|
private maxRetries;
|
|
6860
7239
|
private serviceFailures;
|
|
7240
|
+
private static readonly RETRYABLE_STATUS_CODES;
|
|
6861
7241
|
constructor(services: TServices, options?: AxBalancerOptions<TModelKey>);
|
|
6862
7242
|
/**
|
|
6863
7243
|
* Static factory method for type-safe balancer creation with automatic model key inference.
|
|
@@ -6885,6 +7265,26 @@ declare class AxBalancer<TServices extends readonly AxAIService<any, any, any>[]
|
|
|
6885
7265
|
private canRetryService;
|
|
6886
7266
|
private handleFailure;
|
|
6887
7267
|
private handleSuccess;
|
|
7268
|
+
/**
|
|
7269
|
+
* Whether an error should route to another service rather than fail the request.
|
|
7270
|
+
* Mirrors the decisions made in chat()'s catch block so the streaming peek path and
|
|
7271
|
+
* the synchronous path agree on what "retryable" means.
|
|
7272
|
+
*/
|
|
7273
|
+
private isRetryableServiceError;
|
|
7274
|
+
/**
|
|
7275
|
+
* Wraps a streaming response to make it participate in failover. Two responsibilities:
|
|
7276
|
+
*
|
|
7277
|
+
* 1. Pre-content errors: eagerly reads the first chunk so a provider error thrown while
|
|
7278
|
+
* reading (e.g. Anthropic's HTTP-200 `overloaded_error` SSE) rejects here, where
|
|
7279
|
+
* {@link chat}'s try/catch can route it through the normal failover path. On success it
|
|
7280
|
+
* returns a new stream that re-emits the buffered first chunk then pumps the rest.
|
|
7281
|
+
* 2. Mid-stream errors: a retryable error *after* the first chunk can't fail over
|
|
7282
|
+
* transparently (partial output is already committed), so it is surfaced via
|
|
7283
|
+
* `controller.error`. But we record the failure first (see {@link handleFailure}) —
|
|
7284
|
+
* otherwise the failed service stays out of backoff and an app-level retry via chat()
|
|
7285
|
+
* (which restarts at index 0 and doesn't reset()) would route straight back to it.
|
|
7286
|
+
*/
|
|
7287
|
+
private peekStreamForFailover;
|
|
6888
7288
|
chat(req: Readonly<AxChatRequest<TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
6889
7289
|
embed(req: Readonly<AxEmbedRequest<TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<AxEmbedResponse>;
|
|
6890
7290
|
transcribe(req: Readonly<AxTranscriptionRequest<TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<AxTranscriptionResponse>;
|
|
@@ -8484,6 +8884,210 @@ declare class AxAIReka<TModelKey> extends AxAIOpenAIBase<AxAIRekaModel, undefine
|
|
|
8484
8884
|
constructor({ apiKey, config, options, apiURL, modelInfo, models, }: Readonly<Omit<AxAIRekaArgs<TModelKey>, 'name'>>);
|
|
8485
8885
|
}
|
|
8486
8886
|
|
|
8887
|
+
/**
|
|
8888
|
+
* WebLLM: Models for text generation
|
|
8889
|
+
* Based on WebLLM's supported models
|
|
8890
|
+
*/
|
|
8891
|
+
declare enum AxAIWebLLMModel {
|
|
8892
|
+
Llama31_8B_Instruct = "Llama-3.1-8B-Instruct-q4f32_1-MLC",
|
|
8893
|
+
Llama31_70B_Instruct = "Llama-3.1-70B-Instruct-q4f16_1-MLC",
|
|
8894
|
+
Llama32_1B_Instruct = "Llama-3.2-1B-Instruct-q4f32_1-MLC",
|
|
8895
|
+
Llama32_3B_Instruct = "Llama-3.2-3B-Instruct-q4f32_1-MLC",
|
|
8896
|
+
Mistral7B_Instruct = "Mistral-7B-Instruct-v0.3-q4f32_1-MLC",
|
|
8897
|
+
Phi35_Mini_Instruct = "Phi-3.5-mini-instruct-q4f32_1-MLC",
|
|
8898
|
+
Gemma2_2B_Instruct = "gemma-2-2b-it-q4f32_1-MLC",
|
|
8899
|
+
Gemma2_9B_Instruct = "gemma-2-9b-it-q4f32_1-MLC",
|
|
8900
|
+
Qwen2_5_0_5B_Instruct = "Qwen2.5-0.5B-Instruct-q4f32_1-MLC",
|
|
8901
|
+
Qwen2_5_1_5B_Instruct = "Qwen2.5-1.5B-Instruct-q4f32_1-MLC",
|
|
8902
|
+
Qwen2_5_3B_Instruct = "Qwen2.5-3B-Instruct-q4f32_1-MLC",
|
|
8903
|
+
Qwen2_5_7B_Instruct = "Qwen2.5-7B-Instruct-q4f32_1-MLC"
|
|
8904
|
+
}
|
|
8905
|
+
type AxAIWebLLMModelId = AxAIWebLLMModel | (string & {});
|
|
8906
|
+
interface AxAIWebLLMEngine {
|
|
8907
|
+
chat: {
|
|
8908
|
+
completions: {
|
|
8909
|
+
create: (request: Readonly<AxAIWebLLMChatRequest>) => Promise<AxAIWebLLMChatResponse | AsyncIterable<AxAIWebLLMChatResponseDelta> | ReadableStream<AxAIWebLLMChatResponseDelta>>;
|
|
8910
|
+
};
|
|
8911
|
+
};
|
|
8912
|
+
}
|
|
8913
|
+
/**
|
|
8914
|
+
* WebLLM: Model options for text generation
|
|
8915
|
+
*/
|
|
8916
|
+
type AxAIWebLLMConfig = AxModelConfig & {
|
|
8917
|
+
model: AxAIWebLLMModelId;
|
|
8918
|
+
supportsFunctions?: boolean;
|
|
8919
|
+
logitBias?: Record<number, number>;
|
|
8920
|
+
logProbs?: boolean;
|
|
8921
|
+
topLogprobs?: number;
|
|
8922
|
+
};
|
|
8923
|
+
/**
|
|
8924
|
+
* WebLLM: Chat request structure
|
|
8925
|
+
* Based on OpenAI-compatible API from WebLLM
|
|
8926
|
+
*/
|
|
8927
|
+
type AxAIWebLLMChatRequest = {
|
|
8928
|
+
model: AxAIWebLLMModelId;
|
|
8929
|
+
messages: Array<{
|
|
8930
|
+
role: 'system' | 'user';
|
|
8931
|
+
content?: string;
|
|
8932
|
+
name?: string;
|
|
8933
|
+
} | {
|
|
8934
|
+
role: 'assistant';
|
|
8935
|
+
content?: string;
|
|
8936
|
+
name?: string;
|
|
8937
|
+
tool_calls?: Array<{
|
|
8938
|
+
id: string;
|
|
8939
|
+
type: 'function';
|
|
8940
|
+
function: {
|
|
8941
|
+
name: string;
|
|
8942
|
+
arguments: string;
|
|
8943
|
+
};
|
|
8944
|
+
}>;
|
|
8945
|
+
} | {
|
|
8946
|
+
role: 'tool';
|
|
8947
|
+
content: string;
|
|
8948
|
+
tool_call_id: string;
|
|
8949
|
+
}>;
|
|
8950
|
+
temperature?: number;
|
|
8951
|
+
top_p?: number;
|
|
8952
|
+
max_tokens?: number;
|
|
8953
|
+
stream?: boolean;
|
|
8954
|
+
stop?: string | string[];
|
|
8955
|
+
presence_penalty?: number;
|
|
8956
|
+
frequency_penalty?: number;
|
|
8957
|
+
logit_bias?: Record<number, number>;
|
|
8958
|
+
logprobs?: boolean;
|
|
8959
|
+
top_logprobs?: number;
|
|
8960
|
+
response_format?: {
|
|
8961
|
+
type: 'json_object';
|
|
8962
|
+
} | {
|
|
8963
|
+
type: 'json_schema';
|
|
8964
|
+
json_schema?: unknown;
|
|
8965
|
+
};
|
|
8966
|
+
n?: number;
|
|
8967
|
+
stream_options?: {
|
|
8968
|
+
include_usage?: boolean;
|
|
8969
|
+
};
|
|
8970
|
+
tools?: Array<{
|
|
8971
|
+
type: 'function';
|
|
8972
|
+
function: {
|
|
8973
|
+
name: string;
|
|
8974
|
+
description: string;
|
|
8975
|
+
parameters: object;
|
|
8976
|
+
};
|
|
8977
|
+
}>;
|
|
8978
|
+
tool_choice?: 'none' | 'auto' | 'required' | {
|
|
8979
|
+
type: 'function';
|
|
8980
|
+
function: {
|
|
8981
|
+
name: string;
|
|
8982
|
+
};
|
|
8983
|
+
};
|
|
8984
|
+
};
|
|
8985
|
+
/**
|
|
8986
|
+
* WebLLM: Chat response structure
|
|
8987
|
+
*/
|
|
8988
|
+
type AxAIWebLLMChatResponse = {
|
|
8989
|
+
id: string;
|
|
8990
|
+
object: 'chat.completion';
|
|
8991
|
+
created: number;
|
|
8992
|
+
model: AxAIWebLLMModelId;
|
|
8993
|
+
choices: Array<{
|
|
8994
|
+
index: number;
|
|
8995
|
+
message: {
|
|
8996
|
+
role: 'assistant';
|
|
8997
|
+
content?: string;
|
|
8998
|
+
tool_calls?: Array<{
|
|
8999
|
+
id: string;
|
|
9000
|
+
type: 'function';
|
|
9001
|
+
function: {
|
|
9002
|
+
name: string;
|
|
9003
|
+
arguments: string;
|
|
9004
|
+
};
|
|
9005
|
+
}>;
|
|
9006
|
+
};
|
|
9007
|
+
finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter';
|
|
9008
|
+
logprobs?: {
|
|
9009
|
+
content: Array<{
|
|
9010
|
+
token: string;
|
|
9011
|
+
logprob: number;
|
|
9012
|
+
bytes: number[];
|
|
9013
|
+
top_logprobs: Array<{
|
|
9014
|
+
token: string;
|
|
9015
|
+
logprob: number;
|
|
9016
|
+
bytes: number[];
|
|
9017
|
+
}>;
|
|
9018
|
+
}>;
|
|
9019
|
+
};
|
|
9020
|
+
}>;
|
|
9021
|
+
usage: {
|
|
9022
|
+
prompt_tokens: number;
|
|
9023
|
+
completion_tokens: number;
|
|
9024
|
+
total_tokens: number;
|
|
9025
|
+
};
|
|
9026
|
+
};
|
|
9027
|
+
/**
|
|
9028
|
+
* WebLLM: Streaming chat response structure
|
|
9029
|
+
*/
|
|
9030
|
+
type AxAIWebLLMChatResponseDelta = {
|
|
9031
|
+
id: string;
|
|
9032
|
+
object: 'chat.completion.chunk';
|
|
9033
|
+
created: number;
|
|
9034
|
+
model: AxAIWebLLMModelId;
|
|
9035
|
+
choices: Array<{
|
|
9036
|
+
index: number;
|
|
9037
|
+
delta: {
|
|
9038
|
+
role?: 'assistant';
|
|
9039
|
+
content?: string;
|
|
9040
|
+
tool_calls?: Array<{
|
|
9041
|
+
index: number;
|
|
9042
|
+
id?: string;
|
|
9043
|
+
type?: 'function';
|
|
9044
|
+
function?: {
|
|
9045
|
+
name?: string;
|
|
9046
|
+
arguments?: string;
|
|
9047
|
+
};
|
|
9048
|
+
}>;
|
|
9049
|
+
};
|
|
9050
|
+
finish_reason?: 'stop' | 'length' | 'tool_calls' | 'content_filter';
|
|
9051
|
+
logprobs?: {
|
|
9052
|
+
content: Array<{
|
|
9053
|
+
token: string;
|
|
9054
|
+
logprob: number;
|
|
9055
|
+
bytes: number[];
|
|
9056
|
+
top_logprobs: Array<{
|
|
9057
|
+
token: string;
|
|
9058
|
+
logprob: number;
|
|
9059
|
+
bytes: number[];
|
|
9060
|
+
}>;
|
|
9061
|
+
}>;
|
|
9062
|
+
};
|
|
9063
|
+
}>;
|
|
9064
|
+
usage?: {
|
|
9065
|
+
prompt_tokens: number;
|
|
9066
|
+
completion_tokens: number;
|
|
9067
|
+
total_tokens: number;
|
|
9068
|
+
};
|
|
9069
|
+
};
|
|
9070
|
+
/**
|
|
9071
|
+
* WebLLM doesn't support embeddings natively
|
|
9072
|
+
* This is a placeholder for consistency with the framework
|
|
9073
|
+
*/
|
|
9074
|
+
type AxAIWebLLMEmbedModel = never;
|
|
9075
|
+
type AxAIWebLLMEmbedRequest = never;
|
|
9076
|
+
type AxAIWebLLMEmbedResponse = never;
|
|
9077
|
+
|
|
9078
|
+
declare const axAIWebLLMDefaultConfig: () => AxAIWebLLMConfig;
|
|
9079
|
+
declare const axAIWebLLMCreativeConfig: () => AxAIWebLLMConfig;
|
|
9080
|
+
interface AxAIWebLLMArgs<TModelKey> {
|
|
9081
|
+
name: 'webllm';
|
|
9082
|
+
engine: AxAIWebLLMEngine;
|
|
9083
|
+
config?: Readonly<Partial<AxAIWebLLMConfig>>;
|
|
9084
|
+
options?: Readonly<AxAIServiceOptions>;
|
|
9085
|
+
models?: AxAIInputModelList<AxAIWebLLMModelId, AxAIWebLLMEmbedModel, TModelKey>;
|
|
9086
|
+
}
|
|
9087
|
+
declare class AxAIWebLLM<TModelKey> extends AxBaseAI<AxAIWebLLMModelId, AxAIWebLLMEmbedModel, AxAIWebLLMChatRequest, AxAIWebLLMEmbedRequest, AxAIWebLLMChatResponse, AxAIWebLLMChatResponseDelta, AxAIWebLLMEmbedResponse, TModelKey> {
|
|
9088
|
+
constructor({ engine, config, options, models, }: Readonly<Omit<AxAIWebLLMArgs<TModelKey>, 'name'>>);
|
|
9089
|
+
}
|
|
9090
|
+
|
|
8487
9091
|
declare enum AxAIGrokModel {
|
|
8488
9092
|
Grok43 = "grok-4.3",
|
|
8489
9093
|
Grok43Latest = "grok-4.3-latest",
|
|
@@ -8555,8 +9159,8 @@ declare class AxAIGrok<TModelKey> extends AxAIOpenAIBase<AxAIGrokModel, AxAIGrok
|
|
|
8555
9159
|
speak(req: Readonly<AxSpeechRequest<AxAIGrokModel | TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<AxSpeechResponse>;
|
|
8556
9160
|
}
|
|
8557
9161
|
|
|
8558
|
-
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>;
|
|
8559
|
-
type AxAIModels = AxAIOpenAIModel | AxAIAnthropicModel | AxAIGoogleGeminiModel | AxAICohereModel | AxAIMistralModel | AxAIDeepSeekModel | AxAIGrokModel;
|
|
9162
|
+
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>;
|
|
9163
|
+
type AxAIModels = AxAIOpenAIModel | AxAIAnthropicModel | AxAIGoogleGeminiModel | AxAICohereModel | AxAIMistralModel | AxAIDeepSeekModel | AxAIWebLLMModelId | AxAIGrokModel;
|
|
8560
9164
|
type AxAIEmbedModels = AxAIOpenAIEmbedModel | AxAIGoogleGeminiEmbedModel | AxAICohereEmbedModel;
|
|
8561
9165
|
type ExtractModelKeysAndValues<T> = T extends readonly {
|
|
8562
9166
|
key: infer K;
|
|
@@ -8583,6 +9187,9 @@ type InferTModelKey<T> = T extends {
|
|
|
8583
9187
|
* - `'deepseek'` - DeepSeek (DeepSeek-V4-Flash, DeepSeek-V4-Pro)
|
|
8584
9188
|
* - `'reka'` - Reka AI
|
|
8585
9189
|
* - `'grok'` - xAI Grok
|
|
9190
|
+
* // axir-nonportable:start webllm
|
|
9191
|
+
* - `'webllm'` - WebLLM browser runtime with a caller-supplied MLCEngine
|
|
9192
|
+
* // axir-nonportable:end webllm
|
|
8586
9193
|
*
|
|
8587
9194
|
* @param options - Provider-specific configuration. Must include `name` to identify the provider.
|
|
8588
9195
|
* @param options.name - The provider identifier (see list above)
|
|
@@ -9153,6 +9760,13 @@ declare function axValidateChatRequestMessage(item: AxChatRequestMessage): void;
|
|
|
9153
9760
|
*/
|
|
9154
9761
|
declare function axValidateChatResponseResult(results: Readonly<AxChatResponseResult[]> | Readonly<AxChatResponseResult>): void;
|
|
9155
9762
|
|
|
9763
|
+
/**
|
|
9764
|
+
* WebLLM model information
|
|
9765
|
+
* Note: WebLLM runs models locally in the browser, so there are no API costs
|
|
9766
|
+
* However, we include context window and capability information
|
|
9767
|
+
*/
|
|
9768
|
+
declare const axModelInfoWebLLM: AxModelInfo[];
|
|
9769
|
+
|
|
9156
9770
|
declare const axModelInfoGrok: AxModelInfo[];
|
|
9157
9771
|
|
|
9158
9772
|
type AxDateRange = {
|
|
@@ -9299,6 +9913,100 @@ declare const axCreateDefaultOptimizerTextLogger: (output?: (message: string) =>
|
|
|
9299
9913
|
*/
|
|
9300
9914
|
declare const axDefaultOptimizerLogger: AxOptimizerLoggerFunction;
|
|
9301
9915
|
|
|
9916
|
+
interface AxACECompileOptions extends AxCompileOptions {
|
|
9917
|
+
aceOptions?: AxACEOptions;
|
|
9918
|
+
}
|
|
9919
|
+
interface AxACEResult<OUT extends AxGenOut> extends AxOptimizerResult<OUT> {
|
|
9920
|
+
optimizedProgram?: AxACEOptimizedProgram<OUT>;
|
|
9921
|
+
playbook: AxACEPlaybook;
|
|
9922
|
+
artifact: AxACEOptimizationArtifact;
|
|
9923
|
+
}
|
|
9924
|
+
/**
|
|
9925
|
+
* Optimized program artifact that persists ACE playbook updates.
|
|
9926
|
+
*/
|
|
9927
|
+
declare class AxACEOptimizedProgram<OUT = any> extends AxOptimizedProgramImpl<OUT> {
|
|
9928
|
+
readonly playbook: AxACEPlaybook;
|
|
9929
|
+
readonly artifact: AxACEOptimizationArtifact;
|
|
9930
|
+
private readonly baseInstruction?;
|
|
9931
|
+
constructor(config: {
|
|
9932
|
+
baseInstruction?: string;
|
|
9933
|
+
playbook: AxACEPlaybook;
|
|
9934
|
+
artifact: AxACEOptimizationArtifact;
|
|
9935
|
+
bestScore: number;
|
|
9936
|
+
stats: AxOptimizationStats;
|
|
9937
|
+
optimizerType: string;
|
|
9938
|
+
optimizationTime: number;
|
|
9939
|
+
totalRounds: number;
|
|
9940
|
+
converged: boolean;
|
|
9941
|
+
demos?: AxOptimizedProgram<OUT>['demos'];
|
|
9942
|
+
examples?: AxExample$1[];
|
|
9943
|
+
modelConfig?: AxOptimizedProgram<OUT>['modelConfig'];
|
|
9944
|
+
scoreHistory?: number[];
|
|
9945
|
+
configurationHistory?: Record<string, unknown>[];
|
|
9946
|
+
});
|
|
9947
|
+
applyTo<IN, T extends AxGenOut>(program: AxGen<IN, T>): void;
|
|
9948
|
+
}
|
|
9949
|
+
/**
|
|
9950
|
+
* AxACE implements the Agentic Context Engineering loop (Generator → Reflector → Curator).
|
|
9951
|
+
* The implementation mirrors the paper's architecture while integrating with the Ax optimizer
|
|
9952
|
+
* ergonomics (unified optimized program artifacts, metrics, and checkpointing).
|
|
9953
|
+
*/
|
|
9954
|
+
declare class AxACE extends AxBaseOptimizer {
|
|
9955
|
+
private readonly aceConfig;
|
|
9956
|
+
private playbook;
|
|
9957
|
+
private baseInstruction?;
|
|
9958
|
+
private generatorHistory;
|
|
9959
|
+
private deltaHistory;
|
|
9960
|
+
private reflectorProgram?;
|
|
9961
|
+
private curatorProgram?;
|
|
9962
|
+
private program?;
|
|
9963
|
+
constructor(args: Readonly<AxOptimizerArgs>, options?: Readonly<AxACEOptions>);
|
|
9964
|
+
reset(): void;
|
|
9965
|
+
hydrate<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, state?: Readonly<{
|
|
9966
|
+
baseInstruction?: string;
|
|
9967
|
+
playbook?: AxACEPlaybook;
|
|
9968
|
+
artifact?: Partial<AxACEOptimizationArtifact>;
|
|
9969
|
+
}>): void;
|
|
9970
|
+
getPlaybook(): AxACEPlaybook;
|
|
9971
|
+
getBaseInstruction(): string | undefined;
|
|
9972
|
+
getArtifact(): AxACEOptimizationArtifact;
|
|
9973
|
+
applyCurrentState<IN, OUT extends AxGenOut>(program?: AxGen<IN, OUT>): void;
|
|
9974
|
+
configureAuto(level: 'light' | 'medium' | 'heavy'): void;
|
|
9975
|
+
compile<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxACECompileOptions): Promise<AxACEResult<OUT>>;
|
|
9976
|
+
/**
|
|
9977
|
+
* Apply ACE updates after each online inference. Mirrors the online adaptation
|
|
9978
|
+
* flow described in the paper; can be called by user-land code between queries.
|
|
9979
|
+
*/
|
|
9980
|
+
applyOnlineUpdate(args: Readonly<{
|
|
9981
|
+
example: AxExample$1;
|
|
9982
|
+
prediction: unknown;
|
|
9983
|
+
feedback?: string;
|
|
9984
|
+
}>): Promise<AxACECuratorOutput | undefined>;
|
|
9985
|
+
private composeInstruction;
|
|
9986
|
+
private createArtifact;
|
|
9987
|
+
private extractProgramInstruction;
|
|
9988
|
+
private createGeneratorOutput;
|
|
9989
|
+
private createMetricFeedback;
|
|
9990
|
+
private extractFieldValues;
|
|
9991
|
+
private extractBoundedFieldValues;
|
|
9992
|
+
private createQuestionContext;
|
|
9993
|
+
private createExpectedAnswer;
|
|
9994
|
+
private stringifyBounded;
|
|
9995
|
+
private boundSerializedValue;
|
|
9996
|
+
private boundSerializedFieldValue;
|
|
9997
|
+
private truncateSerializedString;
|
|
9998
|
+
private resolveCuratorOperationTargets;
|
|
9999
|
+
private locateBullet;
|
|
10000
|
+
private locateFallbackBullet;
|
|
10001
|
+
private collectProtectedBulletIds;
|
|
10002
|
+
private normalizeCuratorOperations;
|
|
10003
|
+
private runReflectionRounds;
|
|
10004
|
+
private runReflector;
|
|
10005
|
+
private runCurator;
|
|
10006
|
+
private getOrCreateReflectorProgram;
|
|
10007
|
+
private getOrCreateCuratorProgram;
|
|
10008
|
+
}
|
|
10009
|
+
|
|
9302
10010
|
type AxRolloutTrace<Out = unknown> = {
|
|
9303
10011
|
calls: AxFunctionCallTrace[];
|
|
9304
10012
|
output?: Out;
|
|
@@ -11108,4 +11816,4 @@ declare class AxRateLimiterTokenUsage {
|
|
|
11108
11816
|
acquire(tokens: number): Promise<void>;
|
|
11109
11817
|
}
|
|
11110
11818
|
|
|
11111
|
-
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 };
|
|
11819
|
+
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 };
|