@ax-llm/ax 14.0.3 → 14.0.4
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.cjs +85 -75
- package/index.cjs.map +1 -1
- package/index.d.cts +380 -287
- package/index.d.ts +380 -287
- package/index.global.js +83 -73
- package/index.global.js.map +1 -1
- package/index.js +84 -74
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -982,6 +982,11 @@ declare enum AxAIOpenAIModel {
|
|
|
982
982
|
GPT35TextDavinci002 = "text-davinci-002",
|
|
983
983
|
GPT3TextBabbage002 = "text-babbage-002",
|
|
984
984
|
GPT3TextAda001 = "text-ada-001",
|
|
985
|
+
GPT5 = "gpt-5",
|
|
986
|
+
GPT5Pro = "gpt-5-pro",
|
|
987
|
+
GPT5Nano = "gpt-5-nano",
|
|
988
|
+
GPT5Mini = "gpt-5-mini",
|
|
989
|
+
GPT5Chat = "gpt-5-chat",
|
|
985
990
|
O1 = "o1",
|
|
986
991
|
O1Mini = "o1-mini",
|
|
987
992
|
O3 = "o3",
|
|
@@ -1014,7 +1019,7 @@ type AxAIOpenAIConfig<TModel, TEmbedModel> = Omit<AxModelConfig, 'topK'> & {
|
|
|
1014
1019
|
logprobs?: number;
|
|
1015
1020
|
echo?: boolean;
|
|
1016
1021
|
dimensions?: number;
|
|
1017
|
-
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
1022
|
+
reasoningEffort?: 'minimal' | 'low' | 'medium' | 'high';
|
|
1018
1023
|
store?: boolean;
|
|
1019
1024
|
serviceTier?: 'auto' | 'default' | 'flex';
|
|
1020
1025
|
webSearchOptions?: {
|
|
@@ -1056,7 +1061,7 @@ interface AxAIOpenAIResponseDelta<T> {
|
|
|
1056
1061
|
}
|
|
1057
1062
|
type AxAIOpenAIChatRequest<TModel> = {
|
|
1058
1063
|
model: TModel;
|
|
1059
|
-
reasoning_effort?: 'low' | 'medium' | 'high';
|
|
1064
|
+
reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high';
|
|
1060
1065
|
store?: boolean;
|
|
1061
1066
|
messages: ({
|
|
1062
1067
|
role: 'system';
|
|
@@ -2338,6 +2343,11 @@ declare enum AxAIOpenAIResponsesModel {
|
|
|
2338
2343
|
GPT35TextDavinci002 = "text-davinci-002",
|
|
2339
2344
|
GPT3TextBabbage002 = "text-babbage-002",
|
|
2340
2345
|
GPT3TextAda001 = "text-ada-001",
|
|
2346
|
+
GPT5 = "gpt-5",
|
|
2347
|
+
GPT5Pro = "gpt-5-pro",
|
|
2348
|
+
GPT5Nano = "gpt-5-nano",
|
|
2349
|
+
GPT5Mini = "gpt-5-mini",
|
|
2350
|
+
GPT5Chat = "gpt-5-chat",
|
|
2341
2351
|
O1Pro = "o1-pro",
|
|
2342
2352
|
O1 = "o1",
|
|
2343
2353
|
O1Mini = "o1-mini",
|
|
@@ -2410,7 +2420,7 @@ interface AxAIOpenAIResponsesRequest<TModel = AxAIOpenAIResponsesModel> {
|
|
|
2410
2420
|
readonly parallel_tool_calls?: boolean | null;
|
|
2411
2421
|
readonly previous_response_id?: string | null;
|
|
2412
2422
|
readonly reasoning?: {
|
|
2413
|
-
readonly effort?: 'low' | 'medium' | 'high' | null;
|
|
2423
|
+
readonly effort?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
2414
2424
|
readonly summary?: 'auto' | 'concise' | 'detailed' | null;
|
|
2415
2425
|
} | null;
|
|
2416
2426
|
readonly service_tier?: 'auto' | 'default' | 'flex' | null;
|
|
@@ -2761,7 +2771,7 @@ type AxAIOpenAIResponsesConfig<TModel, TEmbedModel> = Omit<AxModelConfig, 'topK'
|
|
|
2761
2771
|
logprobs?: number;
|
|
2762
2772
|
echo?: boolean;
|
|
2763
2773
|
dimensions?: number;
|
|
2764
|
-
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
2774
|
+
reasoningEffort?: 'minimal' | 'low' | 'medium' | 'high';
|
|
2765
2775
|
reasoningSummary?: 'auto' | 'concise' | 'detailed';
|
|
2766
2776
|
store?: boolean;
|
|
2767
2777
|
systemPrompt?: string;
|
|
@@ -4440,246 +4450,6 @@ interface AxFieldProcessor {
|
|
|
4440
4450
|
process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
|
|
4441
4451
|
}
|
|
4442
4452
|
|
|
4443
|
-
declare class AxProgram<IN, OUT> implements AxUsable {
|
|
4444
|
-
protected signature: AxSignature;
|
|
4445
|
-
protected sigHash: string;
|
|
4446
|
-
protected examples?: OUT[];
|
|
4447
|
-
protected examplesOptions?: AxSetExamplesOptions;
|
|
4448
|
-
protected demos?: OUT[];
|
|
4449
|
-
protected trace?: OUT;
|
|
4450
|
-
protected usage: AxProgramUsage[];
|
|
4451
|
-
protected traceLabel?: string;
|
|
4452
|
-
private key;
|
|
4453
|
-
private children;
|
|
4454
|
-
constructor(signature: ConstructorParameters<typeof AxSignature>[0], options?: Readonly<AxProgramOptions>);
|
|
4455
|
-
getSignature(): AxSignature;
|
|
4456
|
-
setSignature(signature: ConstructorParameters<typeof AxSignature>[0]): void;
|
|
4457
|
-
setDescription(description: string): void;
|
|
4458
|
-
private updateSignatureHash;
|
|
4459
|
-
register(prog: Readonly<AxTunable<IN, OUT> & AxUsable>): void;
|
|
4460
|
-
setId(id: string): void;
|
|
4461
|
-
setParentId(parentId: string): void;
|
|
4462
|
-
setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
|
|
4463
|
-
private _setExamples;
|
|
4464
|
-
getTraces(): AxProgramTrace<IN, OUT>[];
|
|
4465
|
-
getUsage(): AxProgramUsage[];
|
|
4466
|
-
resetUsage(): void;
|
|
4467
|
-
setDemos(demos: readonly AxProgramDemos<IN, OUT>[]): void;
|
|
4468
|
-
}
|
|
4469
|
-
|
|
4470
|
-
type AxGenerateResult<OUT> = OUT & {
|
|
4471
|
-
thought?: string;
|
|
4472
|
-
};
|
|
4473
|
-
interface AxResponseHandlerArgs<T> {
|
|
4474
|
-
ai: Readonly<AxAIService>;
|
|
4475
|
-
model?: string;
|
|
4476
|
-
res: T;
|
|
4477
|
-
mem: AxAIMemory;
|
|
4478
|
-
sessionId?: string;
|
|
4479
|
-
traceId?: string;
|
|
4480
|
-
functions: Readonly<AxFunction[]>;
|
|
4481
|
-
strictMode?: boolean;
|
|
4482
|
-
span?: Span;
|
|
4483
|
-
logger: AxLoggerFunction;
|
|
4484
|
-
}
|
|
4485
|
-
interface AxStreamingEvent<T> {
|
|
4486
|
-
event: 'delta' | 'done' | 'error';
|
|
4487
|
-
data: {
|
|
4488
|
-
contentDelta?: string;
|
|
4489
|
-
partialValues?: Partial<T>;
|
|
4490
|
-
error?: string;
|
|
4491
|
-
functions?: AxChatResponseFunctionCall[];
|
|
4492
|
-
};
|
|
4493
|
-
}
|
|
4494
|
-
declare class AxGen<IN = any, OUT extends AxGenOut = any> extends AxProgram<IN, OUT> implements AxProgrammable<IN, OUT> {
|
|
4495
|
-
private promptTemplate;
|
|
4496
|
-
private asserts;
|
|
4497
|
-
private streamingAsserts;
|
|
4498
|
-
private options?;
|
|
4499
|
-
private functions?;
|
|
4500
|
-
private fieldProcessors;
|
|
4501
|
-
private streamingFieldProcessors;
|
|
4502
|
-
private excludeContentFromTrace;
|
|
4503
|
-
private thoughtFieldName;
|
|
4504
|
-
private signatureToolCallingManager?;
|
|
4505
|
-
constructor(signature: NonNullable<ConstructorParameters<typeof AxSignature>[0]> | AxSignature<any, any>, options?: Readonly<AxProgramForwardOptions<any>>);
|
|
4506
|
-
private getSignatureName;
|
|
4507
|
-
private getMetricsInstruments;
|
|
4508
|
-
updateMeter(meter?: Meter): void;
|
|
4509
|
-
private createStates;
|
|
4510
|
-
addAssert: (fn: AxAssertion["fn"], message?: string) => void;
|
|
4511
|
-
addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
|
|
4512
|
-
private addFieldProcessorInternal;
|
|
4513
|
-
addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
|
|
4514
|
-
addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
|
|
4515
|
-
private forwardSendRequest;
|
|
4516
|
-
private forwardCore;
|
|
4517
|
-
private _forward2;
|
|
4518
|
-
_forward1(ai: Readonly<AxAIService>, values: IN | AxMessage<IN>[], options: Readonly<AxProgramForwardOptions<any>>): AxGenStreamingOut<OUT>;
|
|
4519
|
-
forward<T extends Readonly<AxAIService>>(ai: T, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramForwardOptionsWithModels<T>>): Promise<OUT>;
|
|
4520
|
-
streamingForward<T extends Readonly<AxAIService>>(ai: T, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramStreamingForwardOptionsWithModels<T>>): AxGenStreamingOut<OUT>;
|
|
4521
|
-
setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
|
|
4522
|
-
private isDebug;
|
|
4523
|
-
private getLogger;
|
|
4524
|
-
}
|
|
4525
|
-
type AxGenerateErrorDetails = {
|
|
4526
|
-
model?: string;
|
|
4527
|
-
maxTokens?: number;
|
|
4528
|
-
streaming: boolean;
|
|
4529
|
-
signature: {
|
|
4530
|
-
input: Readonly<AxIField[]>;
|
|
4531
|
-
output: Readonly<AxIField[]>;
|
|
4532
|
-
description?: string;
|
|
4533
|
-
};
|
|
4534
|
-
};
|
|
4535
|
-
type ErrorOptions = {
|
|
4536
|
-
cause?: Error;
|
|
4537
|
-
};
|
|
4538
|
-
declare class AxGenerateError extends Error {
|
|
4539
|
-
readonly details: AxGenerateErrorDetails;
|
|
4540
|
-
constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
|
|
4541
|
-
}
|
|
4542
|
-
|
|
4543
|
-
type AxRewriteIn = {
|
|
4544
|
-
query: string;
|
|
4545
|
-
};
|
|
4546
|
-
type AxRewriteOut = {
|
|
4547
|
-
rewrittenQuery: string;
|
|
4548
|
-
};
|
|
4549
|
-
type AxRerankerIn = {
|
|
4550
|
-
query: string;
|
|
4551
|
-
items: string[];
|
|
4552
|
-
};
|
|
4553
|
-
type AxRerankerOut = {
|
|
4554
|
-
rankedItems: string[];
|
|
4555
|
-
};
|
|
4556
|
-
interface AxDBLoaderOptions {
|
|
4557
|
-
chunker?: (text: string) => string[];
|
|
4558
|
-
rewriter?: AxGen<AxRewriteIn, AxRewriteOut>;
|
|
4559
|
-
reranker?: AxGen<AxRerankerIn, AxRerankerOut>;
|
|
4560
|
-
}
|
|
4561
|
-
interface AxDBManagerArgs {
|
|
4562
|
-
ai: AxAIService;
|
|
4563
|
-
db: AxDBService;
|
|
4564
|
-
config?: AxDBLoaderOptions;
|
|
4565
|
-
}
|
|
4566
|
-
interface AxDBMatch {
|
|
4567
|
-
score: number;
|
|
4568
|
-
text: string;
|
|
4569
|
-
}
|
|
4570
|
-
declare class AxDBManager {
|
|
4571
|
-
private ai;
|
|
4572
|
-
private db;
|
|
4573
|
-
private chunker;
|
|
4574
|
-
private rewriter?;
|
|
4575
|
-
private reranker?;
|
|
4576
|
-
constructor({ ai, db, config }: Readonly<AxDBManagerArgs>);
|
|
4577
|
-
private defaultChunker;
|
|
4578
|
-
insert: (text: Readonly<string | string[]>, options?: Readonly<{
|
|
4579
|
-
batchSize?: number;
|
|
4580
|
-
maxWordsPerChunk?: number;
|
|
4581
|
-
minWordsPerChunk?: number;
|
|
4582
|
-
abortSignal?: AbortSignal;
|
|
4583
|
-
}>) => Promise<void>;
|
|
4584
|
-
query: (query: Readonly<string | string[] | number | number[]>, { topPercent, abortSignal, }?: Readonly<{
|
|
4585
|
-
topPercent?: number;
|
|
4586
|
-
abortSignal?: AbortSignal;
|
|
4587
|
-
}> | undefined) => Promise<AxDBMatch[][]>;
|
|
4588
|
-
}
|
|
4589
|
-
|
|
4590
|
-
declare class AxDefaultResultReranker extends AxGen<AxRerankerIn, AxRerankerOut> {
|
|
4591
|
-
constructor(options?: Readonly<AxProgramForwardOptions<string>>);
|
|
4592
|
-
forward: <T extends Readonly<AxAIService>>(ai: T, input: Readonly<AxRerankerIn>, options?: Readonly<AxProgramForwardOptionsWithModels<T>>) => Promise<AxRerankerOut>;
|
|
4593
|
-
}
|
|
4594
|
-
|
|
4595
|
-
interface AxApacheTikaArgs {
|
|
4596
|
-
url?: string | URL;
|
|
4597
|
-
fetch?: typeof fetch;
|
|
4598
|
-
}
|
|
4599
|
-
interface AxApacheTikaConvertOptions {
|
|
4600
|
-
format?: 'text' | 'html';
|
|
4601
|
-
}
|
|
4602
|
-
declare class AxApacheTika {
|
|
4603
|
-
private tikaUrl;
|
|
4604
|
-
private fetch?;
|
|
4605
|
-
constructor(args?: Readonly<AxApacheTikaArgs>);
|
|
4606
|
-
private _convert;
|
|
4607
|
-
convert(files: Readonly<Blob[] | ReadableStream[]>, options?: Readonly<{
|
|
4608
|
-
batchSize?: number;
|
|
4609
|
-
format?: 'html' | 'text';
|
|
4610
|
-
}>): Promise<string[]>;
|
|
4611
|
-
}
|
|
4612
|
-
|
|
4613
|
-
interface AxSimpleClassifierForwardOptions {
|
|
4614
|
-
cutoff?: number;
|
|
4615
|
-
abortSignal?: AbortSignal;
|
|
4616
|
-
}
|
|
4617
|
-
declare class AxSimpleClassifierClass {
|
|
4618
|
-
private readonly name;
|
|
4619
|
-
private readonly context;
|
|
4620
|
-
constructor(name: string, context: readonly string[]);
|
|
4621
|
-
getName(): string;
|
|
4622
|
-
getContext(): readonly string[];
|
|
4623
|
-
}
|
|
4624
|
-
declare class AxSimpleClassifier {
|
|
4625
|
-
private readonly ai;
|
|
4626
|
-
private db;
|
|
4627
|
-
private debug?;
|
|
4628
|
-
constructor(ai: AxAIService);
|
|
4629
|
-
getState(): AxDBState | undefined;
|
|
4630
|
-
setState(state: AxDBState): void;
|
|
4631
|
-
setClasses: (classes: readonly AxSimpleClassifierClass[], options?: Readonly<{
|
|
4632
|
-
abortSignal?: AbortSignal;
|
|
4633
|
-
}>) => Promise<void>;
|
|
4634
|
-
forward(text: string, options?: Readonly<AxSimpleClassifierForwardOptions>): Promise<string>;
|
|
4635
|
-
setOptions(options: Readonly<{
|
|
4636
|
-
debug?: boolean;
|
|
4637
|
-
}>): void;
|
|
4638
|
-
}
|
|
4639
|
-
|
|
4640
|
-
/**
|
|
4641
|
-
* Calculates the Exact Match (EM) score between a prediction and ground truth.
|
|
4642
|
-
*
|
|
4643
|
-
* The EM score is a strict metric used in machine learning to assess if the predicted
|
|
4644
|
-
* answer matches the ground truth exactly, commonly used in tasks like question answering.
|
|
4645
|
-
*
|
|
4646
|
-
* @param prediction The predicted text.
|
|
4647
|
-
* @param groundTruth The actual correct text.
|
|
4648
|
-
* @returns A number (1.0 for exact match, 0.0 otherwise).
|
|
4649
|
-
*/
|
|
4650
|
-
declare function emScore(prediction: string, groundTruth: string): number;
|
|
4651
|
-
/**
|
|
4652
|
-
* Calculates the F1 score between a prediction and ground truth.
|
|
4653
|
-
*
|
|
4654
|
-
* The F1 score is a harmonic mean of precision and recall, widely used in NLP to measure
|
|
4655
|
-
* a model's accuracy in considering both false positives and false negatives, offering a
|
|
4656
|
-
* balance for evaluating classification models.
|
|
4657
|
-
*
|
|
4658
|
-
* @param prediction The predicted text.
|
|
4659
|
-
* @param groundTruth The actual correct text.
|
|
4660
|
-
* @returns The F1 score as a number.
|
|
4661
|
-
*/
|
|
4662
|
-
declare function f1Score(prediction: string, groundTruth: string): number;
|
|
4663
|
-
/**
|
|
4664
|
-
* Calculates a novel F1 score, taking into account a history of interaction and excluding stopwords.
|
|
4665
|
-
*
|
|
4666
|
-
* This metric extends the F1 score by considering contextual relevance and filtering out common words
|
|
4667
|
-
* that might skew the assessment of the prediction's quality, especially in conversational models or
|
|
4668
|
-
* when historical context is relevant.
|
|
4669
|
-
*
|
|
4670
|
-
* @param history The historical context or preceding interactions.
|
|
4671
|
-
* @param prediction The predicted text.
|
|
4672
|
-
* @param groundTruth The actual correct text.
|
|
4673
|
-
* @param returnRecall Optionally return the recall score instead of F1.
|
|
4674
|
-
* @returns The novel F1 or recall score as a number.
|
|
4675
|
-
*/
|
|
4676
|
-
declare function novelF1ScoreOptimized(history: string, prediction: string, groundTruth: string, returnRecall?: boolean): number;
|
|
4677
|
-
declare const AxEvalUtil: {
|
|
4678
|
-
emScore: typeof emScore;
|
|
4679
|
-
f1Score: typeof f1Score;
|
|
4680
|
-
novelF1ScoreOptimized: typeof novelF1ScoreOptimized;
|
|
4681
|
-
};
|
|
4682
|
-
|
|
4683
4453
|
type AxOptimizerLoggerData = {
|
|
4684
4454
|
name: 'OptimizationStart';
|
|
4685
4455
|
value: {
|
|
@@ -4707,8 +4477,14 @@ type AxOptimizerLoggerData = {
|
|
|
4707
4477
|
} | {
|
|
4708
4478
|
name: 'OptimizationComplete';
|
|
4709
4479
|
value: {
|
|
4480
|
+
optimizerType?: string;
|
|
4710
4481
|
bestScore: number;
|
|
4711
4482
|
bestConfiguration: Record<string, unknown>;
|
|
4483
|
+
totalCalls?: number;
|
|
4484
|
+
successRate?: string;
|
|
4485
|
+
explanation?: string;
|
|
4486
|
+
recommendations?: string[];
|
|
4487
|
+
performanceAssessment?: string;
|
|
4712
4488
|
stats: AxOptimizationStats;
|
|
4713
4489
|
};
|
|
4714
4490
|
} | {
|
|
@@ -4734,6 +4510,9 @@ type AxOptimizerLoggerData = {
|
|
|
4734
4510
|
type AxOptimizerLoggerFunction = (data: AxOptimizerLoggerData) => void;
|
|
4735
4511
|
|
|
4736
4512
|
type AxExample = Record<string, AxFieldValue>;
|
|
4513
|
+
type AxTypedExample<IN = any> = IN & {
|
|
4514
|
+
[key: string]: AxFieldValue;
|
|
4515
|
+
};
|
|
4737
4516
|
type AxMetricFn = <T = any>(arg0: Readonly<{
|
|
4738
4517
|
prediction: T;
|
|
4739
4518
|
example: AxExample;
|
|
@@ -4782,7 +4561,6 @@ interface AxOptimizationCheckpoint {
|
|
|
4782
4561
|
stats: AxOptimizationStats;
|
|
4783
4562
|
optimizerState: Record<string, unknown>;
|
|
4784
4563
|
examples: readonly AxExample[];
|
|
4785
|
-
validationSet?: readonly AxExample[];
|
|
4786
4564
|
}
|
|
4787
4565
|
type AxCheckpointSaveFn = (checkpoint: Readonly<AxOptimizationCheckpoint>) => Promise<string>;
|
|
4788
4566
|
type AxCheckpointLoadFn = (checkpointId: string) => Promise<AxOptimizationCheckpoint | null>;
|
|
@@ -4794,7 +4572,6 @@ interface AxCostTrackerOptions {
|
|
|
4794
4572
|
type AxOptimizerArgs = {
|
|
4795
4573
|
studentAI: AxAIService;
|
|
4796
4574
|
teacherAI?: AxAIService;
|
|
4797
|
-
examples: readonly AxExample[];
|
|
4798
4575
|
optimizerEndpoint?: string;
|
|
4799
4576
|
optimizerTimeout?: number;
|
|
4800
4577
|
optimizerRetries?: number;
|
|
@@ -4817,7 +4594,6 @@ type AxOptimizerArgs = {
|
|
|
4817
4594
|
acquisitionFunction?: 'expected_improvement' | 'upper_confidence_bound' | 'probability_improvement';
|
|
4818
4595
|
explorationWeight?: number;
|
|
4819
4596
|
sampleCount?: number;
|
|
4820
|
-
validationSet?: readonly AxExample[];
|
|
4821
4597
|
minSuccessRate?: number;
|
|
4822
4598
|
targetScore?: number;
|
|
4823
4599
|
onProgress?: (progress: Readonly<AxOptimizationProgress>) => void;
|
|
@@ -4917,6 +4693,68 @@ interface AxOptimizerResult<OUT> {
|
|
|
4917
4693
|
scoreHistory?: number[];
|
|
4918
4694
|
configurationHistory?: Record<string, unknown>[];
|
|
4919
4695
|
}
|
|
4696
|
+
interface AxOptimizedProgram<OUT = any> {
|
|
4697
|
+
bestScore: number;
|
|
4698
|
+
stats: AxOptimizationStats;
|
|
4699
|
+
instruction?: string;
|
|
4700
|
+
demos?: AxProgramDemos<any, OUT>[];
|
|
4701
|
+
examples?: AxExample[];
|
|
4702
|
+
modelConfig?: {
|
|
4703
|
+
temperature?: number;
|
|
4704
|
+
maxTokens?: number;
|
|
4705
|
+
topP?: number;
|
|
4706
|
+
topK?: number;
|
|
4707
|
+
frequencyPenalty?: number;
|
|
4708
|
+
presencePenalty?: number;
|
|
4709
|
+
stop?: string | string[];
|
|
4710
|
+
[key: string]: unknown;
|
|
4711
|
+
};
|
|
4712
|
+
optimizerType: string;
|
|
4713
|
+
optimizationTime: number;
|
|
4714
|
+
totalRounds: number;
|
|
4715
|
+
converged: boolean;
|
|
4716
|
+
scoreHistory?: number[];
|
|
4717
|
+
configurationHistory?: Record<string, unknown>[];
|
|
4718
|
+
applyTo<IN, T extends AxGenOut>(program: AxGen<IN, T>): void;
|
|
4719
|
+
}
|
|
4720
|
+
declare class AxOptimizedProgramImpl<OUT = any> implements AxOptimizedProgram<OUT> {
|
|
4721
|
+
readonly bestScore: number;
|
|
4722
|
+
readonly stats: AxOptimizationStats;
|
|
4723
|
+
readonly instruction?: string;
|
|
4724
|
+
readonly demos?: AxProgramDemos<any, OUT>[];
|
|
4725
|
+
readonly examples?: AxExample[];
|
|
4726
|
+
readonly modelConfig?: {
|
|
4727
|
+
temperature?: number;
|
|
4728
|
+
maxTokens?: number;
|
|
4729
|
+
topP?: number;
|
|
4730
|
+
topK?: number;
|
|
4731
|
+
frequencyPenalty?: number;
|
|
4732
|
+
presencePenalty?: number;
|
|
4733
|
+
stop?: string | string[];
|
|
4734
|
+
[key: string]: unknown;
|
|
4735
|
+
};
|
|
4736
|
+
readonly optimizerType: string;
|
|
4737
|
+
readonly optimizationTime: number;
|
|
4738
|
+
readonly totalRounds: number;
|
|
4739
|
+
readonly converged: boolean;
|
|
4740
|
+
readonly scoreHistory?: number[];
|
|
4741
|
+
readonly configurationHistory?: Record<string, unknown>[];
|
|
4742
|
+
constructor(config: {
|
|
4743
|
+
bestScore: number;
|
|
4744
|
+
stats: AxOptimizationStats;
|
|
4745
|
+
instruction?: string;
|
|
4746
|
+
demos?: AxProgramDemos<any, OUT>[];
|
|
4747
|
+
examples?: AxExample[];
|
|
4748
|
+
modelConfig?: AxOptimizedProgram<OUT>['modelConfig'];
|
|
4749
|
+
optimizerType: string;
|
|
4750
|
+
optimizationTime: number;
|
|
4751
|
+
totalRounds: number;
|
|
4752
|
+
converged: boolean;
|
|
4753
|
+
scoreHistory?: number[];
|
|
4754
|
+
configurationHistory?: Record<string, unknown>[];
|
|
4755
|
+
});
|
|
4756
|
+
applyTo<IN, T extends AxGenOut>(program: AxGen<IN, T>): void;
|
|
4757
|
+
}
|
|
4920
4758
|
interface AxParetoResult<OUT = any> extends AxOptimizerResult<OUT> {
|
|
4921
4759
|
paretoFront: ReadonlyArray<{
|
|
4922
4760
|
demos: readonly AxProgramDemos<any, OUT>[];
|
|
@@ -4932,7 +4770,8 @@ interface AxCompileOptions {
|
|
|
4932
4770
|
maxIterations?: number;
|
|
4933
4771
|
earlyStoppingPatience?: number;
|
|
4934
4772
|
verbose?: boolean;
|
|
4935
|
-
|
|
4773
|
+
maxDemos?: number;
|
|
4774
|
+
auto?: 'light' | 'medium' | 'heavy';
|
|
4936
4775
|
overrideTargetScore?: number;
|
|
4937
4776
|
overrideCostTracker?: AxCostTracker;
|
|
4938
4777
|
overrideTeacherAI?: AxAIService;
|
|
@@ -4943,31 +4782,34 @@ interface AxCompileOptions {
|
|
|
4943
4782
|
overrideCheckpointInterval?: number;
|
|
4944
4783
|
saveCheckpointOnComplete?: boolean;
|
|
4945
4784
|
}
|
|
4946
|
-
interface AxOptimizer
|
|
4785
|
+
interface AxOptimizer {
|
|
4947
4786
|
/**
|
|
4948
4787
|
* Optimize a program using the provided metric function
|
|
4949
|
-
* @param program The program to optimize
|
|
4788
|
+
* @param program The program to optimize
|
|
4789
|
+
* @param examples Training examples (typed based on the program) - will be auto-split into train/validation
|
|
4950
4790
|
* @param metricFn Evaluation metric function to assess program performance
|
|
4951
|
-
* @param options Optional configuration options
|
|
4791
|
+
* @param options Optional configuration options
|
|
4952
4792
|
* @returns Optimization result containing demos, stats, and configuration
|
|
4953
4793
|
*/
|
|
4954
|
-
compile(program: Readonly<AxGen<IN, OUT>>, metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxOptimizerResult<OUT>>;
|
|
4794
|
+
compile<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxOptimizerResult<OUT>>;
|
|
4955
4795
|
/**
|
|
4956
4796
|
* Optimize a program with real-time streaming updates
|
|
4957
4797
|
* @param program The program to optimize
|
|
4798
|
+
* @param examples Training examples
|
|
4958
4799
|
* @param metricFn Evaluation metric function
|
|
4959
4800
|
* @param options Optional configuration options
|
|
4960
4801
|
* @returns Async iterator yielding optimization progress
|
|
4961
4802
|
*/
|
|
4962
|
-
compileStream
|
|
4803
|
+
compileStream?<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): AsyncIterableIterator<AxOptimizationProgress>;
|
|
4963
4804
|
/**
|
|
4964
4805
|
* Multi-objective optimization using Pareto frontier
|
|
4965
4806
|
* @param program The program to optimize
|
|
4807
|
+
* @param examples Training examples
|
|
4966
4808
|
* @param metricFn Multi-objective metric function
|
|
4967
4809
|
* @param options Optional configuration options
|
|
4968
4810
|
* @returns Pareto optimization result
|
|
4969
4811
|
*/
|
|
4970
|
-
compilePareto
|
|
4812
|
+
compilePareto?<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMultiMetricFn, options?: AxCompileOptions): Promise<AxParetoResult<OUT>>;
|
|
4971
4813
|
/**
|
|
4972
4814
|
* Get current optimization statistics
|
|
4973
4815
|
* @returns Current optimization statistics
|
|
@@ -4997,7 +4839,7 @@ interface AxOptimizer<IN = any, OUT extends AxGenOut = any> {
|
|
|
4997
4839
|
* @param program Program to validate
|
|
4998
4840
|
* @returns Validation result with any issues found
|
|
4999
4841
|
*/
|
|
5000
|
-
validateProgram
|
|
4842
|
+
validateProgram?<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>): {
|
|
5001
4843
|
isValid: boolean;
|
|
5002
4844
|
issues: string[];
|
|
5003
4845
|
suggestions: string[];
|
|
@@ -5041,22 +4883,6 @@ interface AxMiPROOptimizerOptions {
|
|
|
5041
4883
|
explorationWeight?: number;
|
|
5042
4884
|
sampleCount?: number;
|
|
5043
4885
|
}
|
|
5044
|
-
interface AxBootstrapCompileOptions extends AxCompileOptions {
|
|
5045
|
-
validationExamples?: readonly AxExample[];
|
|
5046
|
-
maxDemos?: number;
|
|
5047
|
-
teacherProgram?: Readonly<AxGen<any, any>>;
|
|
5048
|
-
}
|
|
5049
|
-
interface AxMiPROCompileOptions extends AxCompileOptions {
|
|
5050
|
-
validationExamples?: readonly AxExample[];
|
|
5051
|
-
teacher?: Readonly<AxGen<any, any>>;
|
|
5052
|
-
auto?: 'light' | 'medium' | 'heavy';
|
|
5053
|
-
instructionCandidates?: string[];
|
|
5054
|
-
customProposer?: (context: Readonly<{
|
|
5055
|
-
programSummary: string;
|
|
5056
|
-
dataSummary: string;
|
|
5057
|
-
previousInstructions: string[];
|
|
5058
|
-
}>) => Promise<string[]>;
|
|
5059
|
-
}
|
|
5060
4886
|
declare class AxDefaultCostTracker implements AxCostTracker {
|
|
5061
4887
|
private tokenUsage;
|
|
5062
4888
|
private totalTokens;
|
|
@@ -5075,11 +4901,9 @@ declare class AxDefaultCostTracker implements AxCostTracker {
|
|
|
5075
4901
|
* Abstract base class for optimizers that provides common functionality
|
|
5076
4902
|
* and standardized handling of AxOptimizerArgs
|
|
5077
4903
|
*/
|
|
5078
|
-
declare abstract class AxBaseOptimizer
|
|
4904
|
+
declare abstract class AxBaseOptimizer implements AxOptimizer {
|
|
5079
4905
|
protected readonly studentAI: AxAIService;
|
|
5080
4906
|
protected readonly teacherAI?: AxAIService;
|
|
5081
|
-
protected readonly examples: readonly AxExample[];
|
|
5082
|
-
protected readonly validationSet?: readonly AxExample[];
|
|
5083
4907
|
protected readonly targetScore?: number;
|
|
5084
4908
|
protected readonly minSuccessRate?: number;
|
|
5085
4909
|
protected readonly onProgress?: (progress: Readonly<AxOptimizationProgress>) => void;
|
|
@@ -5094,12 +4918,18 @@ declare abstract class AxBaseOptimizer<IN = any, OUT extends AxGenOut = any> imp
|
|
|
5094
4918
|
protected readonly verbose?: boolean;
|
|
5095
4919
|
protected readonly debugOptimizer: boolean;
|
|
5096
4920
|
protected readonly optimizerLogger?: AxOptimizerLoggerFunction;
|
|
5097
|
-
|
|
4921
|
+
protected currentRound: number;
|
|
5098
4922
|
private scoreHistory;
|
|
5099
4923
|
private configurationHistory;
|
|
5100
4924
|
protected stats: AxOptimizationStats;
|
|
5101
4925
|
protected readonly metricsInstruments?: AxOptimizerMetricsInstruments;
|
|
4926
|
+
private resultExplainer?;
|
|
5102
4927
|
constructor(args: Readonly<AxOptimizerArgs>);
|
|
4928
|
+
/**
|
|
4929
|
+
* Initialize the result explanation generator
|
|
4930
|
+
* FIXME: Disabled due to circular dependency with ax() function
|
|
4931
|
+
*/
|
|
4932
|
+
private initializeResultExplainer;
|
|
5103
4933
|
/**
|
|
5104
4934
|
* Initialize the optimization statistics structure
|
|
5105
4935
|
*/
|
|
@@ -5125,9 +4955,12 @@ declare abstract class AxBaseOptimizer<IN = any, OUT extends AxGenOut = any> imp
|
|
|
5125
4955
|
*/
|
|
5126
4956
|
protected triggerEarlyStopping(reason: string, bestScoreRound: number): void;
|
|
5127
4957
|
/**
|
|
5128
|
-
*
|
|
4958
|
+
* Validate that examples meet minimum requirements for optimization
|
|
4959
|
+
* @param examples Examples to validate
|
|
4960
|
+
* @param requireSplit Whether this optimizer requires train/validation split (default: true)
|
|
4961
|
+
* @throws Error if examples don't meet minimum requirements
|
|
5129
4962
|
*/
|
|
5130
|
-
protected
|
|
4963
|
+
protected validateExamples<IN>(examples: readonly AxTypedExample<IN>[], requireSplit?: boolean): void;
|
|
5131
4964
|
/**
|
|
5132
4965
|
* Get the AI service to use for a specific task, preferring teacher when available
|
|
5133
4966
|
* @param preferTeacher Whether to prefer teacher AI over student AI
|
|
@@ -5158,24 +4991,26 @@ declare abstract class AxBaseOptimizer<IN = any, OUT extends AxGenOut = any> imp
|
|
|
5158
4991
|
/**
|
|
5159
4992
|
* Abstract method that must be implemented by concrete optimizers
|
|
5160
4993
|
*/
|
|
5161
|
-
abstract compile(program: Readonly<AxGen<IN, OUT>>, metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxOptimizerResult<OUT>>;
|
|
4994
|
+
abstract compile<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxOptimizerResult<OUT>>;
|
|
5162
4995
|
/**
|
|
5163
4996
|
* Optimize a program with real-time streaming updates
|
|
5164
4997
|
* @param program The program to optimize
|
|
4998
|
+
* @param examples Training examples
|
|
5165
4999
|
* @param metricFn Evaluation metric function
|
|
5166
5000
|
* @param options Optional configuration options
|
|
5167
5001
|
* @returns Async iterator yielding optimization progress
|
|
5168
5002
|
*/
|
|
5169
|
-
compileStream(program: Readonly<AxGen<IN, OUT>>, metricFn: AxMetricFn, options?: AxCompileOptions): AsyncIterableIterator<AxOptimizationProgress>;
|
|
5003
|
+
compileStream<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): AsyncIterableIterator<AxOptimizationProgress>;
|
|
5170
5004
|
/**
|
|
5171
5005
|
* Multi-objective optimization using Pareto frontier
|
|
5172
5006
|
* Default implementation that leverages the single-objective compile method
|
|
5173
5007
|
* @param program The program to optimize
|
|
5008
|
+
* @param examples Training examples
|
|
5174
5009
|
* @param metricFn Multi-objective metric function that returns multiple scores
|
|
5175
5010
|
* @param options Optional configuration options
|
|
5176
5011
|
* @returns Pareto optimization result with frontier of non-dominated solutions
|
|
5177
5012
|
*/
|
|
5178
|
-
compilePareto(program: Readonly<AxGen<IN, OUT>>, metricFn: AxMultiMetricFn, options?: AxCompileOptions): Promise<AxParetoResult<OUT>>;
|
|
5013
|
+
compilePareto<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMultiMetricFn, options?: AxCompileOptions): Promise<AxParetoResult<OUT>>;
|
|
5179
5014
|
/**
|
|
5180
5015
|
* Generate solutions using different weighted combinations of objectives
|
|
5181
5016
|
*/
|
|
@@ -5276,9 +5111,266 @@ declare abstract class AxBaseOptimizer<IN = any, OUT extends AxGenOut = any> imp
|
|
|
5276
5111
|
protected isOptimizerLoggingEnabled(options?: AxCompileOptions): boolean;
|
|
5277
5112
|
protected getOptimizerLogger(options?: AxCompileOptions): AxOptimizerLoggerFunction | undefined;
|
|
5278
5113
|
getStats(): AxOptimizationStats;
|
|
5114
|
+
/**
|
|
5115
|
+
* Generate a human-readable explanation of optimization results
|
|
5116
|
+
*/
|
|
5117
|
+
protected explainOptimizationResults(bestScore: number, bestConfiguration?: Record<string, unknown>, options?: AxCompileOptions): Promise<{
|
|
5118
|
+
humanExplanation: string;
|
|
5119
|
+
recommendations: string[];
|
|
5120
|
+
performanceAssessment: string;
|
|
5121
|
+
} | undefined>;
|
|
5122
|
+
/**
|
|
5123
|
+
* Log human-readable optimization completion message
|
|
5124
|
+
*/
|
|
5125
|
+
protected logOptimizationComplete(optimizerType: string, bestScore: number, bestConfiguration?: Record<string, unknown>, options?: AxCompileOptions): Promise<void>;
|
|
5279
5126
|
reset(): void;
|
|
5280
5127
|
}
|
|
5281
5128
|
|
|
5129
|
+
declare class AxProgram<IN, OUT> implements AxUsable {
|
|
5130
|
+
protected signature: AxSignature;
|
|
5131
|
+
protected sigHash: string;
|
|
5132
|
+
protected examples?: OUT[];
|
|
5133
|
+
protected examplesOptions?: AxSetExamplesOptions;
|
|
5134
|
+
protected demos?: OUT[];
|
|
5135
|
+
protected trace?: OUT;
|
|
5136
|
+
protected usage: AxProgramUsage[];
|
|
5137
|
+
protected traceLabel?: string;
|
|
5138
|
+
private key;
|
|
5139
|
+
private children;
|
|
5140
|
+
constructor(signature: ConstructorParameters<typeof AxSignature>[0], options?: Readonly<AxProgramOptions>);
|
|
5141
|
+
getSignature(): AxSignature;
|
|
5142
|
+
setSignature(signature: ConstructorParameters<typeof AxSignature>[0]): void;
|
|
5143
|
+
setDescription(description: string): void;
|
|
5144
|
+
private updateSignatureHash;
|
|
5145
|
+
register(prog: Readonly<AxTunable<IN, OUT> & AxUsable>): void;
|
|
5146
|
+
setId(id: string): void;
|
|
5147
|
+
setParentId(parentId: string): void;
|
|
5148
|
+
setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
|
|
5149
|
+
private _setExamples;
|
|
5150
|
+
getTraces(): AxProgramTrace<IN, OUT>[];
|
|
5151
|
+
getUsage(): AxProgramUsage[];
|
|
5152
|
+
resetUsage(): void;
|
|
5153
|
+
setDemos(demos: readonly AxProgramDemos<IN, OUT>[]): void;
|
|
5154
|
+
/**
|
|
5155
|
+
* Apply optimized configuration to this program
|
|
5156
|
+
* @param optimizedProgram The optimized program configuration to apply
|
|
5157
|
+
*/
|
|
5158
|
+
applyOptimization(optimizedProgram: AxOptimizedProgram<OUT>): void;
|
|
5159
|
+
}
|
|
5160
|
+
|
|
5161
|
+
type AxGenerateResult<OUT> = OUT & {
|
|
5162
|
+
thought?: string;
|
|
5163
|
+
};
|
|
5164
|
+
interface AxResponseHandlerArgs<T> {
|
|
5165
|
+
ai: Readonly<AxAIService>;
|
|
5166
|
+
model?: string;
|
|
5167
|
+
res: T;
|
|
5168
|
+
mem: AxAIMemory;
|
|
5169
|
+
sessionId?: string;
|
|
5170
|
+
traceId?: string;
|
|
5171
|
+
functions: Readonly<AxFunction[]>;
|
|
5172
|
+
strictMode?: boolean;
|
|
5173
|
+
span?: Span;
|
|
5174
|
+
logger: AxLoggerFunction;
|
|
5175
|
+
}
|
|
5176
|
+
interface AxStreamingEvent<T> {
|
|
5177
|
+
event: 'delta' | 'done' | 'error';
|
|
5178
|
+
data: {
|
|
5179
|
+
contentDelta?: string;
|
|
5180
|
+
partialValues?: Partial<T>;
|
|
5181
|
+
error?: string;
|
|
5182
|
+
functions?: AxChatResponseFunctionCall[];
|
|
5183
|
+
};
|
|
5184
|
+
}
|
|
5185
|
+
declare class AxGen<IN = any, OUT extends AxGenOut = any> extends AxProgram<IN, OUT> implements AxProgrammable<IN, OUT> {
|
|
5186
|
+
private promptTemplate;
|
|
5187
|
+
private asserts;
|
|
5188
|
+
private streamingAsserts;
|
|
5189
|
+
private options?;
|
|
5190
|
+
private functions?;
|
|
5191
|
+
private fieldProcessors;
|
|
5192
|
+
private streamingFieldProcessors;
|
|
5193
|
+
private excludeContentFromTrace;
|
|
5194
|
+
private thoughtFieldName;
|
|
5195
|
+
private signatureToolCallingManager?;
|
|
5196
|
+
constructor(signature: NonNullable<ConstructorParameters<typeof AxSignature>[0]> | AxSignature<any, any>, options?: Readonly<AxProgramForwardOptions<any>>);
|
|
5197
|
+
private getSignatureName;
|
|
5198
|
+
private getMetricsInstruments;
|
|
5199
|
+
updateMeter(meter?: Meter): void;
|
|
5200
|
+
private createStates;
|
|
5201
|
+
addAssert: (fn: AxAssertion["fn"], message?: string) => void;
|
|
5202
|
+
addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
|
|
5203
|
+
private addFieldProcessorInternal;
|
|
5204
|
+
addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
|
|
5205
|
+
addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
|
|
5206
|
+
private forwardSendRequest;
|
|
5207
|
+
private forwardCore;
|
|
5208
|
+
private _forward2;
|
|
5209
|
+
_forward1(ai: Readonly<AxAIService>, values: IN | AxMessage<IN>[], options: Readonly<AxProgramForwardOptions<any>>): AxGenStreamingOut<OUT>;
|
|
5210
|
+
forward<T extends Readonly<AxAIService>>(ai: T, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramForwardOptionsWithModels<T>>): Promise<OUT>;
|
|
5211
|
+
streamingForward<T extends Readonly<AxAIService>>(ai: T, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramStreamingForwardOptionsWithModels<T>>): AxGenStreamingOut<OUT>;
|
|
5212
|
+
setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
|
|
5213
|
+
private isDebug;
|
|
5214
|
+
private getLogger;
|
|
5215
|
+
}
|
|
5216
|
+
type AxGenerateErrorDetails = {
|
|
5217
|
+
model?: string;
|
|
5218
|
+
maxTokens?: number;
|
|
5219
|
+
streaming: boolean;
|
|
5220
|
+
signature: {
|
|
5221
|
+
input: Readonly<AxIField[]>;
|
|
5222
|
+
output: Readonly<AxIField[]>;
|
|
5223
|
+
description?: string;
|
|
5224
|
+
};
|
|
5225
|
+
};
|
|
5226
|
+
type ErrorOptions = {
|
|
5227
|
+
cause?: Error;
|
|
5228
|
+
};
|
|
5229
|
+
declare class AxGenerateError extends Error {
|
|
5230
|
+
readonly details: AxGenerateErrorDetails;
|
|
5231
|
+
constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
|
|
5232
|
+
}
|
|
5233
|
+
|
|
5234
|
+
type AxRewriteIn = {
|
|
5235
|
+
query: string;
|
|
5236
|
+
};
|
|
5237
|
+
type AxRewriteOut = {
|
|
5238
|
+
rewrittenQuery: string;
|
|
5239
|
+
};
|
|
5240
|
+
type AxRerankerIn = {
|
|
5241
|
+
query: string;
|
|
5242
|
+
items: string[];
|
|
5243
|
+
};
|
|
5244
|
+
type AxRerankerOut = {
|
|
5245
|
+
rankedItems: string[];
|
|
5246
|
+
};
|
|
5247
|
+
interface AxDBLoaderOptions {
|
|
5248
|
+
chunker?: (text: string) => string[];
|
|
5249
|
+
rewriter?: AxGen<AxRewriteIn, AxRewriteOut>;
|
|
5250
|
+
reranker?: AxGen<AxRerankerIn, AxRerankerOut>;
|
|
5251
|
+
}
|
|
5252
|
+
interface AxDBManagerArgs {
|
|
5253
|
+
ai: AxAIService;
|
|
5254
|
+
db: AxDBService;
|
|
5255
|
+
config?: AxDBLoaderOptions;
|
|
5256
|
+
}
|
|
5257
|
+
interface AxDBMatch {
|
|
5258
|
+
score: number;
|
|
5259
|
+
text: string;
|
|
5260
|
+
}
|
|
5261
|
+
declare class AxDBManager {
|
|
5262
|
+
private ai;
|
|
5263
|
+
private db;
|
|
5264
|
+
private chunker;
|
|
5265
|
+
private rewriter?;
|
|
5266
|
+
private reranker?;
|
|
5267
|
+
constructor({ ai, db, config }: Readonly<AxDBManagerArgs>);
|
|
5268
|
+
private defaultChunker;
|
|
5269
|
+
insert: (text: Readonly<string | string[]>, options?: Readonly<{
|
|
5270
|
+
batchSize?: number;
|
|
5271
|
+
maxWordsPerChunk?: number;
|
|
5272
|
+
minWordsPerChunk?: number;
|
|
5273
|
+
abortSignal?: AbortSignal;
|
|
5274
|
+
}>) => Promise<void>;
|
|
5275
|
+
query: (query: Readonly<string | string[] | number | number[]>, { topPercent, abortSignal, }?: Readonly<{
|
|
5276
|
+
topPercent?: number;
|
|
5277
|
+
abortSignal?: AbortSignal;
|
|
5278
|
+
}> | undefined) => Promise<AxDBMatch[][]>;
|
|
5279
|
+
}
|
|
5280
|
+
|
|
5281
|
+
declare class AxDefaultResultReranker extends AxGen<AxRerankerIn, AxRerankerOut> {
|
|
5282
|
+
constructor(options?: Readonly<AxProgramForwardOptions<string>>);
|
|
5283
|
+
forward: <T extends Readonly<AxAIService>>(ai: T, input: Readonly<AxRerankerIn>, options?: Readonly<AxProgramForwardOptionsWithModels<T>>) => Promise<AxRerankerOut>;
|
|
5284
|
+
}
|
|
5285
|
+
|
|
5286
|
+
interface AxApacheTikaArgs {
|
|
5287
|
+
url?: string | URL;
|
|
5288
|
+
fetch?: typeof fetch;
|
|
5289
|
+
}
|
|
5290
|
+
interface AxApacheTikaConvertOptions {
|
|
5291
|
+
format?: 'text' | 'html';
|
|
5292
|
+
}
|
|
5293
|
+
declare class AxApacheTika {
|
|
5294
|
+
private tikaUrl;
|
|
5295
|
+
private fetch?;
|
|
5296
|
+
constructor(args?: Readonly<AxApacheTikaArgs>);
|
|
5297
|
+
private _convert;
|
|
5298
|
+
convert(files: Readonly<Blob[] | ReadableStream[]>, options?: Readonly<{
|
|
5299
|
+
batchSize?: number;
|
|
5300
|
+
format?: 'html' | 'text';
|
|
5301
|
+
}>): Promise<string[]>;
|
|
5302
|
+
}
|
|
5303
|
+
|
|
5304
|
+
interface AxSimpleClassifierForwardOptions {
|
|
5305
|
+
cutoff?: number;
|
|
5306
|
+
abortSignal?: AbortSignal;
|
|
5307
|
+
}
|
|
5308
|
+
declare class AxSimpleClassifierClass {
|
|
5309
|
+
private readonly name;
|
|
5310
|
+
private readonly context;
|
|
5311
|
+
constructor(name: string, context: readonly string[]);
|
|
5312
|
+
getName(): string;
|
|
5313
|
+
getContext(): readonly string[];
|
|
5314
|
+
}
|
|
5315
|
+
declare class AxSimpleClassifier {
|
|
5316
|
+
private readonly ai;
|
|
5317
|
+
private db;
|
|
5318
|
+
private debug?;
|
|
5319
|
+
constructor(ai: AxAIService);
|
|
5320
|
+
getState(): AxDBState | undefined;
|
|
5321
|
+
setState(state: AxDBState): void;
|
|
5322
|
+
setClasses: (classes: readonly AxSimpleClassifierClass[], options?: Readonly<{
|
|
5323
|
+
abortSignal?: AbortSignal;
|
|
5324
|
+
}>) => Promise<void>;
|
|
5325
|
+
forward(text: string, options?: Readonly<AxSimpleClassifierForwardOptions>): Promise<string>;
|
|
5326
|
+
setOptions(options: Readonly<{
|
|
5327
|
+
debug?: boolean;
|
|
5328
|
+
}>): void;
|
|
5329
|
+
}
|
|
5330
|
+
|
|
5331
|
+
/**
|
|
5332
|
+
* Calculates the Exact Match (EM) score between a prediction and ground truth.
|
|
5333
|
+
*
|
|
5334
|
+
* The EM score is a strict metric used in machine learning to assess if the predicted
|
|
5335
|
+
* answer matches the ground truth exactly, commonly used in tasks like question answering.
|
|
5336
|
+
*
|
|
5337
|
+
* @param prediction The predicted text.
|
|
5338
|
+
* @param groundTruth The actual correct text.
|
|
5339
|
+
* @returns A number (1.0 for exact match, 0.0 otherwise).
|
|
5340
|
+
*/
|
|
5341
|
+
declare function emScore(prediction: string, groundTruth: string): number;
|
|
5342
|
+
/**
|
|
5343
|
+
* Calculates the F1 score between a prediction and ground truth.
|
|
5344
|
+
*
|
|
5345
|
+
* The F1 score is a harmonic mean of precision and recall, widely used in NLP to measure
|
|
5346
|
+
* a model's accuracy in considering both false positives and false negatives, offering a
|
|
5347
|
+
* balance for evaluating classification models.
|
|
5348
|
+
*
|
|
5349
|
+
* @param prediction The predicted text.
|
|
5350
|
+
* @param groundTruth The actual correct text.
|
|
5351
|
+
* @returns The F1 score as a number.
|
|
5352
|
+
*/
|
|
5353
|
+
declare function f1Score(prediction: string, groundTruth: string): number;
|
|
5354
|
+
/**
|
|
5355
|
+
* Calculates a novel F1 score, taking into account a history of interaction and excluding stopwords.
|
|
5356
|
+
*
|
|
5357
|
+
* This metric extends the F1 score by considering contextual relevance and filtering out common words
|
|
5358
|
+
* that might skew the assessment of the prediction's quality, especially in conversational models or
|
|
5359
|
+
* when historical context is relevant.
|
|
5360
|
+
*
|
|
5361
|
+
* @param history The historical context or preceding interactions.
|
|
5362
|
+
* @param prediction The predicted text.
|
|
5363
|
+
* @param groundTruth The actual correct text.
|
|
5364
|
+
* @param returnRecall Optionally return the recall score instead of F1.
|
|
5365
|
+
* @returns The novel F1 or recall score as a number.
|
|
5366
|
+
*/
|
|
5367
|
+
declare function novelF1ScoreOptimized(history: string, prediction: string, groundTruth: string, returnRecall?: boolean): number;
|
|
5368
|
+
declare const AxEvalUtil: {
|
|
5369
|
+
emScore: typeof emScore;
|
|
5370
|
+
f1Score: typeof f1Score;
|
|
5371
|
+
novelF1ScoreOptimized: typeof novelF1ScoreOptimized;
|
|
5372
|
+
};
|
|
5373
|
+
|
|
5282
5374
|
type AxEvaluateArgs<IN extends AxGenIn, OUT extends AxGenOut> = {
|
|
5283
5375
|
ai: AxAIService;
|
|
5284
5376
|
program: Readonly<AxGen<IN, OUT>>;
|
|
@@ -5398,7 +5490,7 @@ declare const axCreateDefaultOptimizerTextLogger: (output?: (message: string) =>
|
|
|
5398
5490
|
*/
|
|
5399
5491
|
declare const axDefaultOptimizerLogger: AxOptimizerLoggerFunction;
|
|
5400
5492
|
|
|
5401
|
-
declare class AxBootstrapFewShot
|
|
5493
|
+
declare class AxBootstrapFewShot extends AxBaseOptimizer {
|
|
5402
5494
|
private maxRounds;
|
|
5403
5495
|
private maxDemos;
|
|
5404
5496
|
private maxExamples;
|
|
@@ -5413,13 +5505,14 @@ declare class AxBootstrapFewShot<IN = any, OUT extends AxGenOut = any> extends A
|
|
|
5413
5505
|
options?: AxBootstrapOptimizerOptions;
|
|
5414
5506
|
}>);
|
|
5415
5507
|
private compileRound;
|
|
5416
|
-
compile(program: Readonly<AxGen<IN, OUT>>, metricFn: AxMetricFn, options?:
|
|
5508
|
+
compile<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxOptimizerResult<OUT>>;
|
|
5417
5509
|
}
|
|
5418
5510
|
|
|
5419
|
-
interface AxMiPROResult<IN
|
|
5511
|
+
interface AxMiPROResult<IN, OUT extends AxGenOut> extends AxOptimizerResult<OUT> {
|
|
5420
5512
|
optimizedGen?: AxGen<IN, OUT>;
|
|
5513
|
+
optimizedProgram?: AxOptimizedProgram<OUT>;
|
|
5421
5514
|
}
|
|
5422
|
-
declare class AxMiPRO
|
|
5515
|
+
declare class AxMiPRO extends AxBaseOptimizer {
|
|
5423
5516
|
private maxBootstrappedDemos;
|
|
5424
5517
|
private maxLabeledDemos;
|
|
5425
5518
|
private numCandidates;
|
|
@@ -5491,7 +5584,7 @@ declare class AxMiPRO<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGen
|
|
|
5491
5584
|
/**
|
|
5492
5585
|
* The main compile method to run MIPROv2 optimization
|
|
5493
5586
|
*/
|
|
5494
|
-
compile(program: Readonly<AxGen<IN, OUT>>, metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxMiPROResult<IN, OUT>>;
|
|
5587
|
+
compile<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxMiPROResult<IN, OUT>>;
|
|
5495
5588
|
/**
|
|
5496
5589
|
* Applies a configuration to an AxGen instance
|
|
5497
5590
|
*/
|
|
@@ -5515,7 +5608,7 @@ declare class AxMiPRO<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGen
|
|
|
5515
5608
|
* @param program Program to validate
|
|
5516
5609
|
* @returns Validation result with any issues found
|
|
5517
5610
|
*/
|
|
5518
|
-
validateProgram(_program: Readonly<AxGen<IN, OUT>>): {
|
|
5611
|
+
validateProgram<IN, OUT extends AxGenOut>(_program: Readonly<AxGen<IN, OUT>>): {
|
|
5519
5612
|
isValid: boolean;
|
|
5520
5613
|
issues: string[];
|
|
5521
5614
|
suggestions: string[];
|
|
@@ -7547,4 +7640,4 @@ declare class AxRateLimiterTokenUsage {
|
|
|
7547
7640
|
acquire(tokens: number): Promise<void>;
|
|
7548
7641
|
}
|
|
7549
7642
|
|
|
7550
|
-
export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicErrorEvent, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, AxAIAnthropicVertexModel, 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 AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, type AxAIGoogleGeminiContentPart, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, type AxAIGoogleGeminiThinkingTokenBudgetLevels, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGrok, type AxAIGrokArgs, type AxAIGrokChatRequest, AxAIGrokEmbedModels, AxAIGrokModel, type AxAIGrokOptionsTools, type AxAIGrokSearchSource, AxAIGroq, type AxAIGroqArgs, AxAIGroqModel, AxAIHuggingFace, type AxAIHuggingFaceArgs, type AxAIHuggingFaceConfig, AxAIHuggingFaceModel, type AxAIHuggingFaceRequest, type AxAIHuggingFaceResponse, type AxAIInputModelList, type AxAIMemory, type AxAIMetricsInstruments, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, 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, AxAIOpenAIResponsesImpl, 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 AxAIOpenAIResponsesResponseDelta, 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, AxAITogether, type AxAITogetherArgs, AxAIWebLLM, type AxAIWebLLMArgs, type AxAIWebLLMChatRequest, type AxAIWebLLMChatResponse, type AxAIWebLLMChatResponseDelta, type AxAIWebLLMConfig, type AxAIWebLLMEmbedModel, type AxAIWebLLMEmbedRequest, type AxAIWebLLMEmbedResponse, AxAIWebLLMModel, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentConfig, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, type AxBootstrapCompileOptions, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCompileOptions, AxContentProcessingError, type AxContentProcessingServices, type AxCostTracker, type AxCostTrackerOptions, AxDB, type AxDBArgs, AxDBBase, type AxDBBaseArgs, type AxDBBaseOpOptions, AxDBCloudflare, type AxDBCloudflareArgs, type AxDBCloudflareOpOptions, type AxDBLoaderOptions, AxDBManager, type AxDBManagerArgs, type AxDBMatch, AxDBMemory, type AxDBMemoryArgs, type AxDBMemoryOpOptions, AxDBPinecone, type AxDBPineconeArgs, type AxDBPineconeOpOptions, type AxDBQueryRequest, type AxDBQueryResponse, type AxDBQueryService, type AxDBService, type AxDBState, type AxDBUpsertRequest, type AxDBUpsertResponse, AxDBWeaviate, type AxDBWeaviateArgs, type AxDBWeaviateOpOptions, type AxDataRow, AxDefaultCostTracker, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxErrorCategory, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, AxFlow, type AxFlowAutoParallelConfig, type AxFlowBranchContext, type AxFlowBranchEvaluationData, type AxFlowCompleteData, AxFlowDependencyAnalyzer, type AxFlowDynamicContext, type AxFlowErrorData, AxFlowExecutionPlanner, type AxFlowExecutionStep, type AxFlowLogData, type AxFlowLoggerData, type AxFlowLoggerFunction, type AxFlowNodeDefinition, type AxFlowParallelBranch, type AxFlowParallelGroup, type AxFlowParallelGroupCompleteData, type AxFlowParallelGroupStartData, type AxFlowStartData, type AxFlowState, type AxFlowStepCompleteData, type AxFlowStepFunction, type AxFlowStepStartData, type AxFlowSubContext, AxFlowSubContextImpl, type AxFlowTypedParallelBranch, type AxFlowTypedSubContext, AxFlowTypedSubContextImpl, type AxFlowable, type AxFluentFieldInfo, AxFluentFieldType, type AxForwardable, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, type AxFunctionResult, type AxFunctionResultFormatter, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenMetricsInstruments, type AxGenOut, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxLLMRequestTypeValues, type AxLoggerData, type AxLoggerFunction, AxMCPClient, type AxMCPFunctionDescription, AxMCPHTTPSSETransport, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, type AxMessage, type AxMetricFn, type AxMetricFnArgs, type AxMetricsConfig, AxMiPRO, type AxMiPROCompileOptions, type AxMiPROOptimizerOptions, type AxMiPROResult, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, type AxMultiProviderConfig, AxMultiServiceRouter, type AxOptimizationCheckpoint, type AxOptimizationProgress, type AxOptimizationStats, 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, AxPromptTemplate, type AxPromptTemplateOptions, AxProviderRouter, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxResultPickerFunction, type AxResultPickerFunctionFieldResults, type AxResultPickerFunctionFunctionResults, type AxRewriteIn, type AxRewriteOut, type AxRoutingResult, type AxSamplePickerOptions, type AxSetExamplesOptions, AxSignature, AxSignatureBuilder, type AxSignatureConfig, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, agent, ai, ax, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIGrokBestConfig, axAIGrokDefaultConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOllamaDefaultConfig, axAIOllamaDefaultCreativeConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIOpenAIResponsesBestConfig, axAIOpenAIResponsesCreativeConfig, axAIOpenAIResponsesDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axAIWebLLMCreativeConfig, axAIWebLLMDefaultConfig, axAnalyzeChatPromptRequirements, axAnalyzeRequestRequirements, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axCheckMetricsHealth, axCreateDefaultColorLogger, axCreateDefaultOptimizerColorLogger, axCreateDefaultOptimizerTextLogger, axCreateDefaultTextLogger, axCreateFlowColorLogger, axCreateFlowTextLogger, axDefaultFlowLogger, axDefaultMetricsConfig, axDefaultOptimizerLogger, axDefaultOptimizerMetricsConfig, axGetCompatibilityReport, axGetFormatCompatibility, axGetMetricsConfig, axGetOptimizerMetricsConfig, axGetProvidersWithMediaSupport, axGlobals, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoOpenAIResponses, axModelInfoReka, axModelInfoTogether, axModelInfoWebLLM, axProcessContentForProvider, axRAG, axScoreProvidersForRequest, axSelectOptimalProvider, axSpanAttributes, axSpanEvents, axUpdateMetricsConfig, axUpdateOptimizerMetricsConfig, axValidateChatRequestMessage, axValidateChatResponseResult, axValidateProviderCapabilities, f, flow, s };
|
|
7643
|
+
export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicErrorEvent, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, AxAIAnthropicVertexModel, 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 AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, type AxAIGoogleGeminiContentPart, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, type AxAIGoogleGeminiThinkingTokenBudgetLevels, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGrok, type AxAIGrokArgs, type AxAIGrokChatRequest, AxAIGrokEmbedModels, AxAIGrokModel, type AxAIGrokOptionsTools, type AxAIGrokSearchSource, AxAIGroq, type AxAIGroqArgs, AxAIGroqModel, AxAIHuggingFace, type AxAIHuggingFaceArgs, type AxAIHuggingFaceConfig, AxAIHuggingFaceModel, type AxAIHuggingFaceRequest, type AxAIHuggingFaceResponse, type AxAIInputModelList, type AxAIMemory, type AxAIMetricsInstruments, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, 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, AxAIOpenAIResponsesImpl, 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 AxAIOpenAIResponsesResponseDelta, 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, AxAITogether, type AxAITogetherArgs, AxAIWebLLM, type AxAIWebLLMArgs, type AxAIWebLLMChatRequest, type AxAIWebLLMChatResponse, type AxAIWebLLMChatResponseDelta, type AxAIWebLLMConfig, type AxAIWebLLMEmbedModel, type AxAIWebLLMEmbedRequest, type AxAIWebLLMEmbedResponse, AxAIWebLLMModel, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentConfig, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCompileOptions, AxContentProcessingError, type AxContentProcessingServices, type AxCostTracker, type AxCostTrackerOptions, AxDB, type AxDBArgs, AxDBBase, type AxDBBaseArgs, type AxDBBaseOpOptions, AxDBCloudflare, type AxDBCloudflareArgs, type AxDBCloudflareOpOptions, type AxDBLoaderOptions, AxDBManager, type AxDBManagerArgs, type AxDBMatch, AxDBMemory, type AxDBMemoryArgs, type AxDBMemoryOpOptions, AxDBPinecone, type AxDBPineconeArgs, type AxDBPineconeOpOptions, type AxDBQueryRequest, type AxDBQueryResponse, type AxDBQueryService, type AxDBService, type AxDBState, type AxDBUpsertRequest, type AxDBUpsertResponse, AxDBWeaviate, type AxDBWeaviateArgs, type AxDBWeaviateOpOptions, type AxDataRow, AxDefaultCostTracker, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxErrorCategory, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, AxFlow, type AxFlowAutoParallelConfig, type AxFlowBranchContext, type AxFlowBranchEvaluationData, type AxFlowCompleteData, AxFlowDependencyAnalyzer, type AxFlowDynamicContext, type AxFlowErrorData, AxFlowExecutionPlanner, type AxFlowExecutionStep, type AxFlowLogData, type AxFlowLoggerData, type AxFlowLoggerFunction, type AxFlowNodeDefinition, type AxFlowParallelBranch, type AxFlowParallelGroup, type AxFlowParallelGroupCompleteData, type AxFlowParallelGroupStartData, type AxFlowStartData, type AxFlowState, type AxFlowStepCompleteData, type AxFlowStepFunction, type AxFlowStepStartData, type AxFlowSubContext, AxFlowSubContextImpl, type AxFlowTypedParallelBranch, type AxFlowTypedSubContext, AxFlowTypedSubContextImpl, type AxFlowable, type AxFluentFieldInfo, AxFluentFieldType, type AxForwardable, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, type AxFunctionResult, type AxFunctionResultFormatter, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenMetricsInstruments, type AxGenOut, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxLLMRequestTypeValues, type AxLoggerData, type AxLoggerFunction, AxMCPClient, type AxMCPFunctionDescription, AxMCPHTTPSSETransport, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, type AxMessage, type AxMetricFn, type AxMetricFnArgs, type AxMetricsConfig, AxMiPRO, type AxMiPROOptimizerOptions, type AxMiPROResult, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, type AxMultiProviderConfig, AxMultiServiceRouter, type AxOptimizationCheckpoint, type AxOptimizationProgress, type AxOptimizationStats, 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, AxPromptTemplate, type AxPromptTemplateOptions, AxProviderRouter, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxResultPickerFunction, type AxResultPickerFunctionFieldResults, type AxResultPickerFunctionFunctionResults, type AxRewriteIn, type AxRewriteOut, type AxRoutingResult, type AxSamplePickerOptions, type AxSetExamplesOptions, AxSignature, AxSignatureBuilder, type AxSignatureConfig, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxTypedExample, type AxUsable, agent, ai, ax, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIGrokBestConfig, axAIGrokDefaultConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOllamaDefaultConfig, axAIOllamaDefaultCreativeConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIOpenAIResponsesBestConfig, axAIOpenAIResponsesCreativeConfig, axAIOpenAIResponsesDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axAIWebLLMCreativeConfig, axAIWebLLMDefaultConfig, axAnalyzeChatPromptRequirements, axAnalyzeRequestRequirements, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axCheckMetricsHealth, axCreateDefaultColorLogger, axCreateDefaultOptimizerColorLogger, axCreateDefaultOptimizerTextLogger, axCreateDefaultTextLogger, axCreateFlowColorLogger, axCreateFlowTextLogger, axDefaultFlowLogger, axDefaultMetricsConfig, axDefaultOptimizerLogger, axDefaultOptimizerMetricsConfig, axGetCompatibilityReport, axGetFormatCompatibility, axGetMetricsConfig, axGetOptimizerMetricsConfig, axGetProvidersWithMediaSupport, axGlobals, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoOpenAIResponses, axModelInfoReka, axModelInfoTogether, axModelInfoWebLLM, axProcessContentForProvider, axRAG, axScoreProvidersForRequest, axSelectOptimalProvider, axSpanAttributes, axSpanEvents, axUpdateMetricsConfig, axUpdateOptimizerMetricsConfig, axValidateChatRequestMessage, axValidateChatResponseResult, axValidateProviderCapabilities, f, flow, s };
|