@ax-llm/ax 15.0.24 → 15.0.26
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 +99 -99
- package/index.cjs.map +1 -1
- package/index.d.cts +304 -392
- package/index.d.ts +304 -392
- package/index.global.js +99 -99
- package/index.global.js.map +1 -1
- package/index.js +100 -100
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -5747,127 +5747,124 @@ declare class AxApacheTika {
|
|
|
5747
5747
|
}>): Promise<string[]>;
|
|
5748
5748
|
}
|
|
5749
5749
|
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
* This module provides a pluggable storage interface that works across
|
|
5754
|
-
* different environments (browser, Node.js, cloud).
|
|
5755
|
-
*/
|
|
5756
|
-
/**
|
|
5757
|
-
* Represents a single trace event from an AxGen execution.
|
|
5758
|
-
*/
|
|
5759
|
-
interface AxTrace {
|
|
5760
|
-
/** Unique identifier for this trace */
|
|
5761
|
-
id: string;
|
|
5762
|
-
/** Agent or generator identifier */
|
|
5763
|
-
agentId: string;
|
|
5764
|
-
/** Input values passed to forward() */
|
|
5765
|
-
input: Record<string, unknown>;
|
|
5766
|
-
/** Output values from forward() */
|
|
5767
|
-
output: Record<string, unknown>;
|
|
5768
|
-
/** Timestamp when execution started */
|
|
5769
|
-
startTime: Date;
|
|
5770
|
-
/** Timestamp when execution completed */
|
|
5771
|
-
endTime: Date;
|
|
5772
|
-
/** Duration in milliseconds */
|
|
5773
|
-
durationMs: number;
|
|
5774
|
-
/** Model used for generation */
|
|
5775
|
-
model?: string;
|
|
5776
|
-
/** Token usage statistics */
|
|
5777
|
-
usage?: {
|
|
5778
|
-
inputTokens: number;
|
|
5779
|
-
outputTokens: number;
|
|
5780
|
-
totalTokens: number;
|
|
5781
|
-
};
|
|
5782
|
-
/** User feedback if provided */
|
|
5783
|
-
feedback?: {
|
|
5784
|
-
score?: number;
|
|
5785
|
-
label?: string;
|
|
5786
|
-
comment?: string;
|
|
5787
|
-
};
|
|
5788
|
-
/** Error message if execution failed */
|
|
5789
|
-
error?: string;
|
|
5790
|
-
/** Custom metadata */
|
|
5791
|
-
metadata?: Record<string, unknown>;
|
|
5750
|
+
interface AxSimpleClassifierForwardOptions {
|
|
5751
|
+
cutoff?: number;
|
|
5752
|
+
abortSignal?: AbortSignal;
|
|
5792
5753
|
}
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
}>;
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
/** Custom metadata */
|
|
5815
|
-
metadata?: Record<string, unknown>;
|
|
5754
|
+
declare class AxSimpleClassifierClass {
|
|
5755
|
+
private readonly name;
|
|
5756
|
+
private readonly context;
|
|
5757
|
+
constructor(name: string, context: readonly string[]);
|
|
5758
|
+
getName(): string;
|
|
5759
|
+
getContext(): readonly string[];
|
|
5760
|
+
}
|
|
5761
|
+
declare class AxSimpleClassifier {
|
|
5762
|
+
private readonly ai;
|
|
5763
|
+
private db;
|
|
5764
|
+
private debug?;
|
|
5765
|
+
constructor(ai: AxAIService);
|
|
5766
|
+
getState(): AxDBState | undefined;
|
|
5767
|
+
setState(state: AxDBState): void;
|
|
5768
|
+
setClasses: (classes: readonly AxSimpleClassifierClass[], options?: Readonly<{
|
|
5769
|
+
abortSignal?: AbortSignal;
|
|
5770
|
+
}>) => Promise<void>;
|
|
5771
|
+
forward(text: string, options?: Readonly<AxSimpleClassifierForwardOptions>): Promise<string>;
|
|
5772
|
+
setOptions(options: Readonly<{
|
|
5773
|
+
debug?: boolean;
|
|
5774
|
+
}>): void;
|
|
5816
5775
|
}
|
|
5776
|
+
|
|
5817
5777
|
/**
|
|
5818
|
-
*
|
|
5778
|
+
* Calculates the Exact Match (EM) score between a prediction and ground truth.
|
|
5779
|
+
*
|
|
5780
|
+
* The EM score is a strict metric used in machine learning to assess if the predicted
|
|
5781
|
+
* answer matches the ground truth exactly, commonly used in tasks like question answering.
|
|
5782
|
+
*
|
|
5783
|
+
* @param prediction The predicted text.
|
|
5784
|
+
* @param groundTruth The actual correct text.
|
|
5785
|
+
* @returns A number (1.0 for exact match, 0.0 otherwise).
|
|
5819
5786
|
*/
|
|
5820
|
-
|
|
5821
|
-
/** Filter traces after this date */
|
|
5822
|
-
since?: Date;
|
|
5823
|
-
/** Filter traces before this date */
|
|
5824
|
-
until?: Date;
|
|
5825
|
-
/** Maximum number of traces to return */
|
|
5826
|
-
limit?: number;
|
|
5827
|
-
/** Offset for pagination */
|
|
5828
|
-
offset?: number;
|
|
5829
|
-
/** Filter by feedback presence */
|
|
5830
|
-
hasFeedback?: boolean;
|
|
5831
|
-
/** Filter by error presence */
|
|
5832
|
-
hasError?: boolean;
|
|
5833
|
-
}
|
|
5787
|
+
declare function emScore(prediction: string, groundTruth: string): number;
|
|
5834
5788
|
/**
|
|
5835
|
-
*
|
|
5789
|
+
* Calculates the F1 score between a prediction and ground truth.
|
|
5790
|
+
*
|
|
5791
|
+
* The F1 score is a harmonic mean of precision and recall, widely used in NLP to measure
|
|
5792
|
+
* a model's accuracy in considering both false positives and false negatives, offering a
|
|
5793
|
+
* balance for evaluating classification models.
|
|
5794
|
+
*
|
|
5795
|
+
* @param prediction The predicted text.
|
|
5796
|
+
* @param groundTruth The actual correct text.
|
|
5797
|
+
* @returns The F1 score as a number.
|
|
5836
5798
|
*/
|
|
5837
|
-
|
|
5838
|
-
saveTrace(trace: Readonly<AxTrace>): Promise<void>;
|
|
5839
|
-
getTraces(agentId: string, options?: AxTraceQueryOptions): Promise<AxTrace[]>;
|
|
5840
|
-
getTraceCount(agentId: string): Promise<number>;
|
|
5841
|
-
deleteTraces(agentId: string, traceIds?: string[]): Promise<void>;
|
|
5842
|
-
addFeedback(traceId: string, feedback: NonNullable<AxTrace['feedback']>): Promise<void>;
|
|
5843
|
-
saveCheckpoint(checkpoint: Readonly<AxCheckpoint>): Promise<void>;
|
|
5844
|
-
loadCheckpoint(agentId: string): Promise<AxCheckpoint | null>;
|
|
5845
|
-
loadCheckpointVersion(agentId: string, version: number): Promise<AxCheckpoint | null>;
|
|
5846
|
-
listCheckpoints(agentId: string): Promise<AxCheckpoint[]>;
|
|
5847
|
-
deleteCheckpoint(agentId: string, version?: number): Promise<void>;
|
|
5848
|
-
clear(agentId: string): Promise<void>;
|
|
5849
|
-
clearAll(): Promise<void>;
|
|
5850
|
-
}
|
|
5799
|
+
declare function f1Score(prediction: string, groundTruth: string): number;
|
|
5851
5800
|
/**
|
|
5852
|
-
*
|
|
5801
|
+
* Calculates a novel F1 score, taking into account a history of interaction and excluding stopwords.
|
|
5802
|
+
*
|
|
5803
|
+
* This metric extends the F1 score by considering contextual relevance and filtering out common words
|
|
5804
|
+
* that might skew the assessment of the prediction's quality, especially in conversational models or
|
|
5805
|
+
* when historical context is relevant.
|
|
5806
|
+
*
|
|
5807
|
+
* @param history The historical context or preceding interactions.
|
|
5808
|
+
* @param prediction The predicted text.
|
|
5809
|
+
* @param groundTruth The actual correct text.
|
|
5810
|
+
* @param returnRecall Optionally return the recall score instead of F1.
|
|
5811
|
+
* @returns The novel F1 or recall score as a number.
|
|
5853
5812
|
*/
|
|
5854
|
-
declare
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5813
|
+
declare function novelF1ScoreOptimized(history: string, prediction: string, groundTruth: string, returnRecall?: boolean): number;
|
|
5814
|
+
declare const AxEvalUtil: {
|
|
5815
|
+
emScore: typeof emScore;
|
|
5816
|
+
f1Score: typeof f1Score;
|
|
5817
|
+
novelF1ScoreOptimized: typeof novelF1ScoreOptimized;
|
|
5818
|
+
};
|
|
5819
|
+
|
|
5820
|
+
type AxEvaluateArgs<IN extends AxGenIn, OUT extends AxGenOut> = {
|
|
5821
|
+
ai: AxAIService;
|
|
5822
|
+
program: Readonly<AxGen<IN, OUT>>;
|
|
5823
|
+
examples: Readonly<AxExample$1[]>;
|
|
5824
|
+
};
|
|
5825
|
+
declare class AxTestPrompt<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> {
|
|
5826
|
+
private ai;
|
|
5827
|
+
private program;
|
|
5828
|
+
private examples;
|
|
5829
|
+
constructor({ ai, program, examples, }: Readonly<AxEvaluateArgs<IN, OUT>>);
|
|
5830
|
+
run(metricFn: AxMetricFn): Promise<void>;
|
|
5869
5831
|
}
|
|
5870
5832
|
|
|
5833
|
+
type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
|
|
5834
|
+
values?: AxGenOut;
|
|
5835
|
+
sessionId?: string;
|
|
5836
|
+
done?: boolean;
|
|
5837
|
+
}>) => unknown | Promise<unknown>;
|
|
5838
|
+
type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
|
|
5839
|
+
values?: AxGenOut;
|
|
5840
|
+
sessionId?: string;
|
|
5841
|
+
done?: boolean;
|
|
5842
|
+
}>) => unknown | Promise<unknown>;
|
|
5843
|
+
interface AxFieldProcessor {
|
|
5844
|
+
field: Readonly<AxField>;
|
|
5845
|
+
/**
|
|
5846
|
+
* Process the field value and return a new value (or undefined if no update is needed).
|
|
5847
|
+
* The returned value may be merged back into memory.
|
|
5848
|
+
* @param value - The current field value.
|
|
5849
|
+
* @param context - Additional context (e.g. memory and session id).
|
|
5850
|
+
*/
|
|
5851
|
+
process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5854
|
+
type AxFunctionResultFormatter = (result: unknown) => string;
|
|
5855
|
+
declare const axGlobals: {
|
|
5856
|
+
signatureStrict: boolean;
|
|
5857
|
+
useStructuredPrompt: boolean;
|
|
5858
|
+
tracer: Tracer | undefined;
|
|
5859
|
+
meter: Meter | undefined;
|
|
5860
|
+
logger: AxLoggerFunction | undefined;
|
|
5861
|
+
optimizerLogger: AxOptimizerLoggerFunction | undefined;
|
|
5862
|
+
debug: boolean | undefined;
|
|
5863
|
+
abortSignal: AbortSignal | undefined;
|
|
5864
|
+
cachingFunction: ((key: string, value?: AxGenOut) => AxGenOut | undefined | Promise<AxGenOut | undefined>) | undefined;
|
|
5865
|
+
functionResultFormatter: AxFunctionResultFormatter;
|
|
5866
|
+
};
|
|
5867
|
+
|
|
5871
5868
|
/**
|
|
5872
5869
|
* AxJudge - Polymorphic & Relativistic Evaluation Engine
|
|
5873
5870
|
*
|
|
@@ -5982,6 +5979,105 @@ declare class AxJudge<IN extends AxGenIn, OUT extends AxGenOut> {
|
|
|
5982
5979
|
getSignature(): AxSignature<IN, OUT>;
|
|
5983
5980
|
}
|
|
5984
5981
|
|
|
5982
|
+
/**
|
|
5983
|
+
* AxStorage - Persistence layer for traces, checkpoints, and agent state.
|
|
5984
|
+
*
|
|
5985
|
+
* This module provides a pluggable storage interface that works across
|
|
5986
|
+
* different environments (browser, Node.js, cloud).
|
|
5987
|
+
*/
|
|
5988
|
+
/**
|
|
5989
|
+
* Represents a single trace event from an AxGen execution.
|
|
5990
|
+
*/
|
|
5991
|
+
/**
|
|
5992
|
+
* Represents a single trace event from an AxGen execution.
|
|
5993
|
+
*/
|
|
5994
|
+
interface AxTrace {
|
|
5995
|
+
type: 'trace';
|
|
5996
|
+
/** Unique identifier for this trace */
|
|
5997
|
+
id: string;
|
|
5998
|
+
/** Agent or generator name */
|
|
5999
|
+
name: string;
|
|
6000
|
+
/** Input values passed to forward() */
|
|
6001
|
+
input: Record<string, unknown>;
|
|
6002
|
+
/** Output values from forward() */
|
|
6003
|
+
output: Record<string, unknown>;
|
|
6004
|
+
/** Timestamp when execution started */
|
|
6005
|
+
startTime: Date;
|
|
6006
|
+
/** Timestamp when execution completed */
|
|
6007
|
+
endTime: Date;
|
|
6008
|
+
/** Duration in milliseconds */
|
|
6009
|
+
durationMs: number;
|
|
6010
|
+
/** Model used for generation */
|
|
6011
|
+
model?: string;
|
|
6012
|
+
/** Token usage statistics */
|
|
6013
|
+
usage?: {
|
|
6014
|
+
inputTokens: number;
|
|
6015
|
+
outputTokens: number;
|
|
6016
|
+
totalTokens: number;
|
|
6017
|
+
};
|
|
6018
|
+
/** User feedback if provided */
|
|
6019
|
+
feedback?: {
|
|
6020
|
+
score?: number;
|
|
6021
|
+
label?: string;
|
|
6022
|
+
comment?: string;
|
|
6023
|
+
};
|
|
6024
|
+
/** Error message if execution failed */
|
|
6025
|
+
error?: string;
|
|
6026
|
+
/** Custom metadata */
|
|
6027
|
+
metadata?: Record<string, unknown>;
|
|
6028
|
+
}
|
|
6029
|
+
/**
|
|
6030
|
+
* Represents a serialized checkpoint of an AxGen configuration.
|
|
6031
|
+
*/
|
|
6032
|
+
interface AxCheckpoint {
|
|
6033
|
+
type: 'checkpoint';
|
|
6034
|
+
/** Agent or generator name */
|
|
6035
|
+
name: string;
|
|
6036
|
+
/** Version number for this checkpoint */
|
|
6037
|
+
version: number;
|
|
6038
|
+
/** Timestamp when checkpoint was created */
|
|
6039
|
+
createdAt: Date;
|
|
6040
|
+
/** Serialized instruction string */
|
|
6041
|
+
instruction?: string;
|
|
6042
|
+
/** Serialized examples/demos */
|
|
6043
|
+
examples?: Array<{
|
|
6044
|
+
input: Record<string, unknown>;
|
|
6045
|
+
output: Record<string, unknown>;
|
|
6046
|
+
}>;
|
|
6047
|
+
/** Optimization score at checkpoint */
|
|
6048
|
+
score?: number;
|
|
6049
|
+
/** Optimization method used */
|
|
6050
|
+
optimizerType?: string;
|
|
6051
|
+
/** Custom metadata */
|
|
6052
|
+
metadata?: Record<string, unknown>;
|
|
6053
|
+
}
|
|
6054
|
+
/**
|
|
6055
|
+
* Query options for retrieving items.
|
|
6056
|
+
*/
|
|
6057
|
+
interface AxStorageQuery {
|
|
6058
|
+
type: 'trace' | 'checkpoint';
|
|
6059
|
+
/** Filter traces after this date */
|
|
6060
|
+
since?: Date;
|
|
6061
|
+
/** Filter traces before this date */
|
|
6062
|
+
until?: Date;
|
|
6063
|
+
/** Maximum number of items to return */
|
|
6064
|
+
limit?: number;
|
|
6065
|
+
/** Offset for pagination */
|
|
6066
|
+
offset?: number;
|
|
6067
|
+
/** Filter by trace ID or checkpoint version */
|
|
6068
|
+
id?: string;
|
|
6069
|
+
version?: number;
|
|
6070
|
+
/** Filter by feedback presence */
|
|
6071
|
+
hasFeedback?: boolean;
|
|
6072
|
+
}
|
|
6073
|
+
/**
|
|
6074
|
+
* Storage interface for AxLearn persistence.
|
|
6075
|
+
*/
|
|
6076
|
+
type AxStorage = {
|
|
6077
|
+
save: (name: string, item: AxTrace | AxCheckpoint) => Promise<void>;
|
|
6078
|
+
load: (name: string, query: AxStorageQuery) => Promise<(AxTrace | AxCheckpoint)[]>;
|
|
6079
|
+
};
|
|
6080
|
+
|
|
5985
6081
|
/**
|
|
5986
6082
|
* AxSynth - Synthetic data generator for bootstrapping optimization datasets.
|
|
5987
6083
|
*
|
|
@@ -6087,192 +6183,150 @@ declare class AxSynth<IN extends AxGenIn, OUT extends AxGenOut> {
|
|
|
6087
6183
|
}
|
|
6088
6184
|
|
|
6089
6185
|
/**
|
|
6090
|
-
*
|
|
6186
|
+
* AxLearn - Self-improving agent that learns from traces and feedback.
|
|
6091
6187
|
*
|
|
6092
|
-
*
|
|
6093
|
-
*
|
|
6188
|
+
* Combines AxGen with automatic trace logging, storage, and an optimization loop.
|
|
6189
|
+
* This is the high-level API for creating agents that get better over time.
|
|
6094
6190
|
*/
|
|
6095
6191
|
|
|
6096
6192
|
/**
|
|
6097
|
-
*
|
|
6098
|
-
|
|
6099
|
-
type AxTuneMethod = 'bootstrap';
|
|
6100
|
-
/**
|
|
6101
|
-
* Progress callback for monitoring optimization.
|
|
6102
|
-
*/
|
|
6103
|
-
interface AxTuneProgress {
|
|
6104
|
-
/** Current round number */
|
|
6105
|
-
round: number;
|
|
6106
|
-
/** Total rounds */
|
|
6107
|
-
totalRounds: number;
|
|
6108
|
-
/** Current best score */
|
|
6109
|
-
score: number;
|
|
6110
|
-
/** Score improvement from previous round */
|
|
6111
|
-
improvement: number;
|
|
6112
|
-
}
|
|
6113
|
-
/**
|
|
6114
|
-
* Configuration for the tune operation.
|
|
6193
|
+
* Configuration for the AxLearn agent.
|
|
6194
|
+
* Combines agent configuration (name, storage) with learning configuration (teacher, budget).
|
|
6115
6195
|
*/
|
|
6116
|
-
interface
|
|
6117
|
-
/**
|
|
6118
|
-
|
|
6119
|
-
/**
|
|
6196
|
+
interface AxLearnOptions {
|
|
6197
|
+
/** Unique identifier/name for this agent */
|
|
6198
|
+
name: string;
|
|
6199
|
+
/** Storage backend (Required) */
|
|
6200
|
+
storage: AxStorage;
|
|
6201
|
+
/** Whether to log traces (default: true) */
|
|
6202
|
+
enableTracing?: boolean;
|
|
6203
|
+
/** Custom metadata for all traces */
|
|
6204
|
+
metadata?: Record<string, unknown>;
|
|
6205
|
+
/** Callback when a trace is logged */
|
|
6206
|
+
onTrace?: (trace: AxTrace) => void;
|
|
6207
|
+
/** Teacher AI for synthetic data generation and judging (Required) */
|
|
6208
|
+
teacher: AxAIService;
|
|
6209
|
+
/** Maximum optimization rounds (default: 20) */
|
|
6120
6210
|
budget?: number;
|
|
6121
|
-
/** Teacher AI for synthetic data generation and judging */
|
|
6122
|
-
teacher?: AxAIService;
|
|
6123
6211
|
/** Custom metric function (if not provided, auto-generates using AxJudge) */
|
|
6124
6212
|
metric?: AxMetricFn;
|
|
6125
6213
|
/** Judge options when auto-generating metric */
|
|
6126
6214
|
judgeOptions?: Partial<AxJudgeOptions>;
|
|
6127
6215
|
/** Custom evaluation criteria for judge */
|
|
6128
6216
|
criteria?: string;
|
|
6129
|
-
/** Training examples (
|
|
6217
|
+
/** Training examples (manual) */
|
|
6130
6218
|
examples?: AxTypedExample<AxGenIn>[];
|
|
6131
|
-
/**
|
|
6219
|
+
/** Whether to use capture traces as training examples (default: true) */
|
|
6220
|
+
useTraces?: boolean;
|
|
6221
|
+
/** Whether to generate synthetic examples (default: true if no other data) */
|
|
6222
|
+
generateExamples?: boolean;
|
|
6223
|
+
/** Number of synthetic examples to generate */
|
|
6132
6224
|
synthCount?: number;
|
|
6133
6225
|
/** Synth options for data generation */
|
|
6134
6226
|
synthOptions?: Partial<AxSynthOptions>;
|
|
6135
|
-
/** Storage for checkpointing (optional) */
|
|
6136
|
-
storage?: AxStorage;
|
|
6137
|
-
/** Agent ID for checkpointing (required if storage is provided) */
|
|
6138
|
-
agentId?: string;
|
|
6139
|
-
/** Progress callback */
|
|
6140
|
-
onProgress?: (progress: AxTuneProgress) => void;
|
|
6141
6227
|
/** Validation split ratio (default: 0.2) */
|
|
6142
6228
|
validationSplit?: number;
|
|
6229
|
+
/** Progress callback */
|
|
6230
|
+
onProgress?: (progress: AxLearnProgress) => void;
|
|
6143
6231
|
}
|
|
6144
6232
|
/**
|
|
6145
|
-
*
|
|
6233
|
+
* Progress callback for monitoring optimization.
|
|
6146
6234
|
*/
|
|
6147
|
-
interface
|
|
6148
|
-
/**
|
|
6149
|
-
|
|
6235
|
+
interface AxLearnProgress {
|
|
6236
|
+
/** Current round number */
|
|
6237
|
+
round: number;
|
|
6238
|
+
/** Total rounds */
|
|
6239
|
+
totalRounds: number;
|
|
6240
|
+
/** Current best score */
|
|
6241
|
+
score: number;
|
|
6242
|
+
/** Score improvement from previous round */
|
|
6243
|
+
improvement: number;
|
|
6244
|
+
}
|
|
6245
|
+
/**
|
|
6246
|
+
* Result from an optimize operation.
|
|
6247
|
+
*/
|
|
6248
|
+
interface AxLearnResult<_IN extends AxGenIn, _OUT extends AxGenOut> {
|
|
6150
6249
|
/** Final score achieved */
|
|
6151
6250
|
score: number;
|
|
6152
6251
|
/** Score improvement from original */
|
|
6153
6252
|
improvement: number;
|
|
6154
|
-
/**
|
|
6155
|
-
|
|
6253
|
+
/** Checkpoint version saved */
|
|
6254
|
+
checkpointVersion: number;
|
|
6156
6255
|
/** Statistics */
|
|
6157
6256
|
stats: {
|
|
6158
6257
|
trainingExamples: number;
|
|
6159
6258
|
validationExamples: number;
|
|
6160
6259
|
durationMs: number;
|
|
6161
|
-
method: AxTuneMethod;
|
|
6162
6260
|
};
|
|
6163
|
-
/** Checkpoint version if saved */
|
|
6164
|
-
checkpointVersion?: number;
|
|
6165
|
-
}
|
|
6166
|
-
/**
|
|
6167
|
-
* AxTuner orchestrates the self-improvement loop for AxGen instances.
|
|
6168
|
-
*
|
|
6169
|
-
* @example
|
|
6170
|
-
* ```typescript
|
|
6171
|
-
* const tuner = new AxTuner({ teacher: gpt4o });
|
|
6172
|
-
*
|
|
6173
|
-
* const result = await tuner.tune(myGen, {
|
|
6174
|
-
* budget: 20,
|
|
6175
|
-
* rubric: 'helpfulness',
|
|
6176
|
-
* });
|
|
6177
|
-
*
|
|
6178
|
-
* console.log(`Improved score: ${result.score}`);
|
|
6179
|
-
* ```
|
|
6180
|
-
*/
|
|
6181
|
-
declare class AxTuner {
|
|
6182
|
-
private teacher;
|
|
6183
|
-
private storage?;
|
|
6184
|
-
constructor(options: {
|
|
6185
|
-
teacher: AxAIService;
|
|
6186
|
-
storage?: AxStorage;
|
|
6187
|
-
});
|
|
6188
|
-
/**
|
|
6189
|
-
* Tune an AxGen instance to improve its performance.
|
|
6190
|
-
*/
|
|
6191
|
-
tune<IN extends AxGenIn, OUT extends AxGenOut>(gen: AxGen<IN, OUT>, options?: AxTuneOptions): Promise<AxTuneResult<IN, OUT>>;
|
|
6192
|
-
/**
|
|
6193
|
-
* Load a checkpoint and apply it to a generator.
|
|
6194
|
-
*/
|
|
6195
|
-
loadCheckpoint<IN extends AxGenIn, OUT extends AxGenOut>(gen: AxGen<IN, OUT>, agentId: string, version?: number): Promise<AxGen<IN, OUT> | null>;
|
|
6196
|
-
}
|
|
6197
|
-
|
|
6198
|
-
/**
|
|
6199
|
-
* AxLearnAgent - Lightweight stateful wrapper for self-improving agents.
|
|
6200
|
-
*
|
|
6201
|
-
* Combines AxGen with trace logging, storage, and a convenient tune() method.
|
|
6202
|
-
* This is the high-level API for users who want "zero-configuration" optimization.
|
|
6203
|
-
*
|
|
6204
|
-
* Note: Named "AxLearnAgent" to avoid conflict with the existing AxAgent class
|
|
6205
|
-
* in prompts/agent.ts which handles multi-agent orchestration.
|
|
6206
|
-
*/
|
|
6207
|
-
|
|
6208
|
-
/**
|
|
6209
|
-
* Configuration for AxLearnAgent.
|
|
6210
|
-
*/
|
|
6211
|
-
interface AxLearnAgentOptions {
|
|
6212
|
-
/** Unique name/identifier for this agent */
|
|
6213
|
-
name: string;
|
|
6214
|
-
/** Storage backend (default: AxMemoryStorage) */
|
|
6215
|
-
storage?: AxStorage;
|
|
6216
|
-
/** Whether to log traces (default: true) */
|
|
6217
|
-
enableTracing?: boolean;
|
|
6218
|
-
/** Whether to log inputs in traces (default: true) */
|
|
6219
|
-
logInputs?: boolean;
|
|
6220
|
-
/** Whether to log outputs in traces (default: true) */
|
|
6221
|
-
logOutputs?: boolean;
|
|
6222
|
-
/** Custom metadata for all traces */
|
|
6223
|
-
metadata?: Record<string, unknown>;
|
|
6224
|
-
/** Callback when a trace is logged */
|
|
6225
|
-
onTrace?: (trace: AxTrace) => void;
|
|
6226
6261
|
}
|
|
6227
6262
|
/**
|
|
6228
|
-
*
|
|
6263
|
+
* AxLearn wraps an AxGen with automatic trace logging and self-improvement capabilities.
|
|
6229
6264
|
*
|
|
6230
6265
|
* @example
|
|
6231
6266
|
* ```typescript
|
|
6232
|
-
* const gen = ax(`
|
|
6267
|
+
* const gen = ax(`question -> answer`);
|
|
6233
6268
|
*
|
|
6234
|
-
*
|
|
6235
|
-
*
|
|
6269
|
+
* // Create the learner with all configuration
|
|
6270
|
+
* const learner = new AxLearn(gen, {
|
|
6271
|
+
* name: 'math-bot',
|
|
6272
|
+
* teacher: gpt4o,
|
|
6273
|
+
* storage: new AxMemoryStorage(),
|
|
6274
|
+
* budget: 20
|
|
6236
6275
|
* });
|
|
6237
6276
|
*
|
|
6238
|
-
* // Use in production
|
|
6239
|
-
*
|
|
6277
|
+
* // Use in production
|
|
6278
|
+
* await learner.forward(ai, { question: 'What is 2+2?' });
|
|
6240
6279
|
*
|
|
6241
|
-
* //
|
|
6242
|
-
*
|
|
6243
|
-
* teacher: gpt4o,
|
|
6244
|
-
* budget: 20,
|
|
6245
|
-
* });
|
|
6280
|
+
* // Run optimization (uses config from constructor)
|
|
6281
|
+
* await learner.optimize();
|
|
6246
6282
|
* ```
|
|
6247
6283
|
*/
|
|
6248
|
-
declare class
|
|
6284
|
+
declare class AxLearn<IN extends AxGenIn, OUT extends AxGenOut> implements AxForwardable<IN, OUT, string>, AxUsable {
|
|
6249
6285
|
private gen;
|
|
6250
6286
|
private options;
|
|
6251
6287
|
private tracer;
|
|
6252
6288
|
private currentScore?;
|
|
6253
|
-
constructor(gen: AxGen<IN, OUT>, options:
|
|
6289
|
+
constructor(gen: AxGen<IN, OUT>, options: AxLearnOptions);
|
|
6254
6290
|
/**
|
|
6255
|
-
*
|
|
6291
|
+
* Forward call - behaves exactly like AxGen.forward() but logs traces.
|
|
6256
6292
|
*/
|
|
6257
|
-
|
|
6293
|
+
forward(ai: AxAIService, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramForwardOptions<string>>): Promise<OUT>;
|
|
6258
6294
|
/**
|
|
6259
|
-
*
|
|
6295
|
+
* Streaming forward call - behaves exactly like AxGen.streamingForward() but logs traces.
|
|
6260
6296
|
*/
|
|
6261
|
-
|
|
6297
|
+
streamingForward(ai: AxAIService, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramForwardOptions<string>>): AxGenStreamingOut<OUT>;
|
|
6298
|
+
getUsage(): AxProgramUsage[];
|
|
6299
|
+
resetUsage(): void;
|
|
6300
|
+
getSignature(): AxSignature;
|
|
6301
|
+
setInstruction(instruction: string): void;
|
|
6302
|
+
getInstruction(): string | undefined;
|
|
6303
|
+
updateMeter(meter?: Meter): void;
|
|
6304
|
+
addAssert(fn: AxAssertion<OUT>['fn'], message?: string): void;
|
|
6305
|
+
addStreamingAssert(fieldName: keyof OUT, fn: AxStreamingAssertion['fn'], message?: string): void;
|
|
6306
|
+
addFieldProcessor(fieldName: keyof OUT, fn: (value: OUT[keyof OUT], context?: {
|
|
6307
|
+
values?: OUT;
|
|
6308
|
+
sessionId?: string;
|
|
6309
|
+
done?: boolean;
|
|
6310
|
+
}) => unknown | Promise<unknown>): void;
|
|
6311
|
+
addStreamingFieldProcessor(fieldName: keyof OUT, fn: (value: string, context?: {
|
|
6312
|
+
values?: OUT;
|
|
6313
|
+
sessionId?: string;
|
|
6314
|
+
done?: boolean;
|
|
6315
|
+
}) => unknown | Promise<unknown>): void;
|
|
6316
|
+
clone(): AxLearn<IN, OUT>;
|
|
6262
6317
|
/**
|
|
6263
|
-
*
|
|
6318
|
+
* Optimize the agent using the configuration provided in constructor.
|
|
6319
|
+
* Can optionally override options.
|
|
6264
6320
|
*/
|
|
6265
|
-
|
|
6266
|
-
teacher: AxAIService;
|
|
6267
|
-
}): Promise<AxTuneResult<IN, OUT>>;
|
|
6321
|
+
optimize(overrides?: Partial<Omit<AxLearnOptions, 'id' | 'storage' | 'teacher'>>): Promise<AxLearnResult<IN, OUT>>;
|
|
6268
6322
|
/**
|
|
6269
|
-
*
|
|
6323
|
+
* Load the latest checkpoint from storage.
|
|
6270
6324
|
*/
|
|
6271
|
-
|
|
6325
|
+
private loadLatestCheckpoint;
|
|
6272
6326
|
/**
|
|
6273
|
-
* Get the
|
|
6327
|
+
* Get the underlying AxGen instance.
|
|
6274
6328
|
*/
|
|
6275
|
-
|
|
6329
|
+
getGen(): AxGen<IN, OUT>;
|
|
6276
6330
|
/**
|
|
6277
6331
|
* Get the storage backend.
|
|
6278
6332
|
*/
|
|
@@ -6285,156 +6339,10 @@ declare class AxLearnAgent<IN extends AxGenIn, OUT extends AxGenOut> {
|
|
|
6285
6339
|
since?: Date;
|
|
6286
6340
|
}): Promise<AxTrace[]>;
|
|
6287
6341
|
/**
|
|
6288
|
-
*
|
|
6289
|
-
*/
|
|
6290
|
-
getInstruction(): string | undefined;
|
|
6291
|
-
/**
|
|
6292
|
-
* Set a new instruction.
|
|
6293
|
-
*/
|
|
6294
|
-
setInstruction(instruction: string): void;
|
|
6295
|
-
/**
|
|
6296
|
-
* Get the current best score (if available from tuning).
|
|
6297
|
-
*/
|
|
6298
|
-
getCurrentScore(): number | undefined;
|
|
6299
|
-
/**
|
|
6300
|
-
* Clone the agent with a new generator.
|
|
6301
|
-
*/
|
|
6302
|
-
clone(name?: string): AxLearnAgent<IN, OUT>;
|
|
6303
|
-
/**
|
|
6304
|
-
* Enable or disable tracing.
|
|
6305
|
-
*/
|
|
6306
|
-
setTracingEnabled(enabled: boolean): void;
|
|
6307
|
-
/**
|
|
6308
|
-
* Update metadata for future traces.
|
|
6309
|
-
*/
|
|
6310
|
-
setMetadata(metadata: Record<string, unknown>): void;
|
|
6311
|
-
/**
|
|
6312
|
-
* Add feedback to a trace.
|
|
6342
|
+
* Add feedback to a specific trace.
|
|
6313
6343
|
*/
|
|
6314
6344
|
addFeedback(traceId: string, feedback: NonNullable<AxTrace['feedback']>): Promise<void>;
|
|
6315
6345
|
}
|
|
6316
|
-
/**
|
|
6317
|
-
* Factory function to create an AxLearnAgent instance.
|
|
6318
|
-
*/
|
|
6319
|
-
declare function axLearnAgent<IN extends AxGenIn, OUT extends AxGenOut>(gen: AxGen<IN, OUT>, options: AxLearnAgentOptions): AxLearnAgent<IN, OUT>;
|
|
6320
|
-
|
|
6321
|
-
interface AxSimpleClassifierForwardOptions {
|
|
6322
|
-
cutoff?: number;
|
|
6323
|
-
abortSignal?: AbortSignal;
|
|
6324
|
-
}
|
|
6325
|
-
declare class AxSimpleClassifierClass {
|
|
6326
|
-
private readonly name;
|
|
6327
|
-
private readonly context;
|
|
6328
|
-
constructor(name: string, context: readonly string[]);
|
|
6329
|
-
getName(): string;
|
|
6330
|
-
getContext(): readonly string[];
|
|
6331
|
-
}
|
|
6332
|
-
declare class AxSimpleClassifier {
|
|
6333
|
-
private readonly ai;
|
|
6334
|
-
private db;
|
|
6335
|
-
private debug?;
|
|
6336
|
-
constructor(ai: AxAIService);
|
|
6337
|
-
getState(): AxDBState | undefined;
|
|
6338
|
-
setState(state: AxDBState): void;
|
|
6339
|
-
setClasses: (classes: readonly AxSimpleClassifierClass[], options?: Readonly<{
|
|
6340
|
-
abortSignal?: AbortSignal;
|
|
6341
|
-
}>) => Promise<void>;
|
|
6342
|
-
forward(text: string, options?: Readonly<AxSimpleClassifierForwardOptions>): Promise<string>;
|
|
6343
|
-
setOptions(options: Readonly<{
|
|
6344
|
-
debug?: boolean;
|
|
6345
|
-
}>): void;
|
|
6346
|
-
}
|
|
6347
|
-
|
|
6348
|
-
/**
|
|
6349
|
-
* Calculates the Exact Match (EM) score between a prediction and ground truth.
|
|
6350
|
-
*
|
|
6351
|
-
* The EM score is a strict metric used in machine learning to assess if the predicted
|
|
6352
|
-
* answer matches the ground truth exactly, commonly used in tasks like question answering.
|
|
6353
|
-
*
|
|
6354
|
-
* @param prediction The predicted text.
|
|
6355
|
-
* @param groundTruth The actual correct text.
|
|
6356
|
-
* @returns A number (1.0 for exact match, 0.0 otherwise).
|
|
6357
|
-
*/
|
|
6358
|
-
declare function emScore(prediction: string, groundTruth: string): number;
|
|
6359
|
-
/**
|
|
6360
|
-
* Calculates the F1 score between a prediction and ground truth.
|
|
6361
|
-
*
|
|
6362
|
-
* The F1 score is a harmonic mean of precision and recall, widely used in NLP to measure
|
|
6363
|
-
* a model's accuracy in considering both false positives and false negatives, offering a
|
|
6364
|
-
* balance for evaluating classification models.
|
|
6365
|
-
*
|
|
6366
|
-
* @param prediction The predicted text.
|
|
6367
|
-
* @param groundTruth The actual correct text.
|
|
6368
|
-
* @returns The F1 score as a number.
|
|
6369
|
-
*/
|
|
6370
|
-
declare function f1Score(prediction: string, groundTruth: string): number;
|
|
6371
|
-
/**
|
|
6372
|
-
* Calculates a novel F1 score, taking into account a history of interaction and excluding stopwords.
|
|
6373
|
-
*
|
|
6374
|
-
* This metric extends the F1 score by considering contextual relevance and filtering out common words
|
|
6375
|
-
* that might skew the assessment of the prediction's quality, especially in conversational models or
|
|
6376
|
-
* when historical context is relevant.
|
|
6377
|
-
*
|
|
6378
|
-
* @param history The historical context or preceding interactions.
|
|
6379
|
-
* @param prediction The predicted text.
|
|
6380
|
-
* @param groundTruth The actual correct text.
|
|
6381
|
-
* @param returnRecall Optionally return the recall score instead of F1.
|
|
6382
|
-
* @returns The novel F1 or recall score as a number.
|
|
6383
|
-
*/
|
|
6384
|
-
declare function novelF1ScoreOptimized(history: string, prediction: string, groundTruth: string, returnRecall?: boolean): number;
|
|
6385
|
-
declare const AxEvalUtil: {
|
|
6386
|
-
emScore: typeof emScore;
|
|
6387
|
-
f1Score: typeof f1Score;
|
|
6388
|
-
novelF1ScoreOptimized: typeof novelF1ScoreOptimized;
|
|
6389
|
-
};
|
|
6390
|
-
|
|
6391
|
-
type AxEvaluateArgs<IN extends AxGenIn, OUT extends AxGenOut> = {
|
|
6392
|
-
ai: AxAIService;
|
|
6393
|
-
program: Readonly<AxGen<IN, OUT>>;
|
|
6394
|
-
examples: Readonly<AxExample$1[]>;
|
|
6395
|
-
};
|
|
6396
|
-
declare class AxTestPrompt<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> {
|
|
6397
|
-
private ai;
|
|
6398
|
-
private program;
|
|
6399
|
-
private examples;
|
|
6400
|
-
constructor({ ai, program, examples, }: Readonly<AxEvaluateArgs<IN, OUT>>);
|
|
6401
|
-
run(metricFn: AxMetricFn): Promise<void>;
|
|
6402
|
-
}
|
|
6403
|
-
|
|
6404
|
-
type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
|
|
6405
|
-
values?: AxGenOut;
|
|
6406
|
-
sessionId?: string;
|
|
6407
|
-
done?: boolean;
|
|
6408
|
-
}>) => unknown | Promise<unknown>;
|
|
6409
|
-
type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
|
|
6410
|
-
values?: AxGenOut;
|
|
6411
|
-
sessionId?: string;
|
|
6412
|
-
done?: boolean;
|
|
6413
|
-
}>) => unknown | Promise<unknown>;
|
|
6414
|
-
interface AxFieldProcessor {
|
|
6415
|
-
field: Readonly<AxField>;
|
|
6416
|
-
/**
|
|
6417
|
-
* Process the field value and return a new value (or undefined if no update is needed).
|
|
6418
|
-
* The returned value may be merged back into memory.
|
|
6419
|
-
* @param value - The current field value.
|
|
6420
|
-
* @param context - Additional context (e.g. memory and session id).
|
|
6421
|
-
*/
|
|
6422
|
-
process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
|
|
6423
|
-
}
|
|
6424
|
-
|
|
6425
|
-
type AxFunctionResultFormatter = (result: unknown) => string;
|
|
6426
|
-
declare const axGlobals: {
|
|
6427
|
-
signatureStrict: boolean;
|
|
6428
|
-
useStructuredPrompt: boolean;
|
|
6429
|
-
tracer: Tracer | undefined;
|
|
6430
|
-
meter: Meter | undefined;
|
|
6431
|
-
logger: AxLoggerFunction | undefined;
|
|
6432
|
-
optimizerLogger: AxOptimizerLoggerFunction | undefined;
|
|
6433
|
-
debug: boolean | undefined;
|
|
6434
|
-
abortSignal: AbortSignal | undefined;
|
|
6435
|
-
cachingFunction: ((key: string, value?: AxGenOut) => AxGenOut | undefined | Promise<AxGenOut | undefined>) | undefined;
|
|
6436
|
-
functionResultFormatter: AxFunctionResultFormatter;
|
|
6437
|
-
};
|
|
6438
6346
|
|
|
6439
6347
|
type AxDataRow = {
|
|
6440
6348
|
row: Record<string, AxFieldValue>;
|
|
@@ -8943,7 +8851,7 @@ declare const axRAG: (queryFn: (query: string) => Promise<string>, options?: {
|
|
|
8943
8851
|
*/
|
|
8944
8852
|
interface AxTraceLoggerOptions {
|
|
8945
8853
|
/** Unique identifier for this agent/generator */
|
|
8946
|
-
|
|
8854
|
+
name: string;
|
|
8947
8855
|
/** Storage backend for persisting traces */
|
|
8948
8856
|
storage: AxStorage;
|
|
8949
8857
|
/** Whether to include input values in traces (default: true) */
|
|
@@ -8981,10 +8889,14 @@ declare class AxTraceLogger<IN extends AxGenIn, OUT extends AxGenOut> {
|
|
|
8981
8889
|
private gen;
|
|
8982
8890
|
private options;
|
|
8983
8891
|
constructor(gen: AxGen<IN, OUT>, options: AxTraceLoggerOptions);
|
|
8892
|
+
/**
|
|
8893
|
+
* Streaming forward call to the underlying AxGen with trace logging.
|
|
8894
|
+
*/
|
|
8895
|
+
streamingForward(ai: AxAIService, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramForwardOptions<string>>): AxGenStreamingOut<OUT>;
|
|
8984
8896
|
/**
|
|
8985
8897
|
* Forward call to the underlying AxGen with trace logging.
|
|
8986
8898
|
*/
|
|
8987
|
-
forward(ai: AxAIService, values: IN, options?: Readonly<AxProgramForwardOptions<string>>): Promise<OUT>;
|
|
8899
|
+
forward(ai: AxAIService, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramForwardOptions<string>>): Promise<OUT>;
|
|
8988
8900
|
/**
|
|
8989
8901
|
* Save trace to storage with error handling.
|
|
8990
8902
|
*/
|
|
@@ -8996,7 +8908,7 @@ declare class AxTraceLogger<IN extends AxGenIn, OUT extends AxGenOut> {
|
|
|
8996
8908
|
/**
|
|
8997
8909
|
* Get the agent ID.
|
|
8998
8910
|
*/
|
|
8999
|
-
|
|
8911
|
+
getName(): string;
|
|
9000
8912
|
/**
|
|
9001
8913
|
* Get the storage backend.
|
|
9002
8914
|
*/
|
|
@@ -9082,4 +8994,4 @@ declare class AxRateLimiterTokenUsage {
|
|
|
9082
8994
|
acquire(tokens: number): Promise<void>;
|
|
9083
8995
|
}
|
|
9084
8996
|
|
|
9085
|
-
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 AxAIAnthropicErrorEvent, type AxAIAnthropicFunctionTool, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, type AxAIAnthropicRequestTool, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, 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 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 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, 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, AxAIOpenRouter, type AxAIOpenRouterArgs, 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 AxCheckpoint, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCitation, 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$1 as AxExample, type AxExamples, 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, AxGEPA, type AxGEPAAdapter, type AxGEPAEvaluationBatch, AxGEPAFlow, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenInput, type AxGenMetricsInstruments, type AxGenOut, type AxGenOutput, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJudge, type AxJudgeMode, type AxJudgeOptions, type AxJudgeResult, type AxJudgeRubric, AxLLMRequestTypeValues, AxLearnAgent, type AxLearnAgentOptions, type AxLoggerData, type AxLoggerFunction, AxMCPClient, type AxMCPFunctionDescription, AxMCPHTTPSSETransport, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPOAuthOptions, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, AxMemoryStorage, 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, AxStopFunctionCallException, type AxStorage, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxSynth, type AxSynthExample, type AxSynthOptions, type AxSynthResult, AxTestPrompt, type AxThoughtBlockItem, AxTokenLimitError, type AxTokenUsage, type AxTrace, AxTraceLogger, type AxTraceLoggerOptions, type AxTraceQueryOptions, type AxTunable, type AxTuneMethod, type AxTuneOptions, type AxTuneProgress, type AxTuneResult, AxTuner, 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, axAIOpenRouterDefaultConfig, 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, axLearnAgent, 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 };
|
|
8997
|
+
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 AxAIAnthropicErrorEvent, type AxAIAnthropicFunctionTool, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, type AxAIAnthropicRequestTool, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, 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 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 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, 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, AxAIOpenRouter, type AxAIOpenRouterArgs, 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 AxCheckpoint, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCitation, 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$1 as AxExample, type AxExamples, 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, AxGEPA, type AxGEPAAdapter, type AxGEPAEvaluationBatch, AxGEPAFlow, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenInput, type AxGenMetricsInstruments, type AxGenOut, type AxGenOutput, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJudge, type AxJudgeMode, type AxJudgeOptions, type AxJudgeResult, type AxJudgeRubric, AxLLMRequestTypeValues, AxLearn, type AxLearnOptions, type AxLearnProgress, type AxLearnResult, type AxLoggerData, type AxLoggerFunction, AxMCPClient, type AxMCPFunctionDescription, AxMCPHTTPSSETransport, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPOAuthOptions, 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, AxStopFunctionCallException, type AxStorage, type AxStorageQuery, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxSynth, type AxSynthExample, type AxSynthOptions, type AxSynthResult, AxTestPrompt, type AxThoughtBlockItem, AxTokenLimitError, type AxTokenUsage, type AxTrace, AxTraceLogger, type AxTraceLoggerOptions, 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, axAIOpenRouterDefaultConfig, 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 };
|