@ax-llm/ax 15.0.23 → 15.0.24
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 +173 -82
- package/index.cjs.map +1 -1
- package/index.d.cts +654 -1
- package/index.d.ts +654 -1
- package/index.global.js +175 -84
- package/index.global.js.map +1 -1
- package/index.js +175 -84
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -572,6 +572,7 @@ type AxAIServiceOptions = {
|
|
|
572
572
|
useExpensiveModel?: 'yes';
|
|
573
573
|
stepIndex?: number;
|
|
574
574
|
corsProxy?: string;
|
|
575
|
+
retry?: Partial<RetryConfig>;
|
|
575
576
|
};
|
|
576
577
|
interface AxAIService<TModel = unknown, TEmbedModel = unknown, TModelKey = string> {
|
|
577
578
|
getId(): string;
|
|
@@ -2476,6 +2477,7 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
|
|
|
2476
2477
|
private abortSignal?;
|
|
2477
2478
|
private logger;
|
|
2478
2479
|
private corsProxy?;
|
|
2480
|
+
private retry?;
|
|
2479
2481
|
private modelInfo;
|
|
2480
2482
|
private modelUsage?;
|
|
2481
2483
|
private embedModelUsage?;
|
|
@@ -5745,6 +5747,577 @@ declare class AxApacheTika {
|
|
|
5745
5747
|
}>): Promise<string[]>;
|
|
5746
5748
|
}
|
|
5747
5749
|
|
|
5750
|
+
/**
|
|
5751
|
+
* AxStorage - Persistence layer for traces, checkpoints, and agent state.
|
|
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>;
|
|
5792
|
+
}
|
|
5793
|
+
/**
|
|
5794
|
+
* Represents a serialized checkpoint of an AxGen configuration.
|
|
5795
|
+
*/
|
|
5796
|
+
interface AxCheckpoint {
|
|
5797
|
+
/** Agent or generator identifier */
|
|
5798
|
+
agentId: string;
|
|
5799
|
+
/** Version number for this checkpoint */
|
|
5800
|
+
version: number;
|
|
5801
|
+
/** Timestamp when checkpoint was created */
|
|
5802
|
+
createdAt: Date;
|
|
5803
|
+
/** Serialized instruction string */
|
|
5804
|
+
instruction?: string;
|
|
5805
|
+
/** Serialized examples/demos */
|
|
5806
|
+
examples?: Array<{
|
|
5807
|
+
input: Record<string, unknown>;
|
|
5808
|
+
output: Record<string, unknown>;
|
|
5809
|
+
}>;
|
|
5810
|
+
/** Optimization score at checkpoint */
|
|
5811
|
+
score?: number;
|
|
5812
|
+
/** Optimization method used */
|
|
5813
|
+
optimizerType?: string;
|
|
5814
|
+
/** Custom metadata */
|
|
5815
|
+
metadata?: Record<string, unknown>;
|
|
5816
|
+
}
|
|
5817
|
+
/**
|
|
5818
|
+
* Query options for retrieving traces.
|
|
5819
|
+
*/
|
|
5820
|
+
interface AxTraceQueryOptions {
|
|
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
|
+
}
|
|
5834
|
+
/**
|
|
5835
|
+
* Storage interface for AxLearn persistence.
|
|
5836
|
+
*/
|
|
5837
|
+
interface AxStorage {
|
|
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
|
+
}
|
|
5851
|
+
/**
|
|
5852
|
+
* In-memory storage implementation.
|
|
5853
|
+
*/
|
|
5854
|
+
declare class AxMemoryStorage implements AxStorage {
|
|
5855
|
+
private traces;
|
|
5856
|
+
private checkpoints;
|
|
5857
|
+
saveTrace(trace: Readonly<AxTrace>): Promise<void>;
|
|
5858
|
+
getTraces(agentId: string, options?: AxTraceQueryOptions): Promise<AxTrace[]>;
|
|
5859
|
+
getTraceCount(agentId: string): Promise<number>;
|
|
5860
|
+
deleteTraces(agentId: string, traceIds?: string[]): Promise<void>;
|
|
5861
|
+
addFeedback(traceId: string, feedback: NonNullable<AxTrace['feedback']>): Promise<void>;
|
|
5862
|
+
saveCheckpoint(checkpoint: Readonly<AxCheckpoint>): Promise<void>;
|
|
5863
|
+
loadCheckpoint(agentId: string): Promise<AxCheckpoint | null>;
|
|
5864
|
+
loadCheckpointVersion(agentId: string, version: number): Promise<AxCheckpoint | null>;
|
|
5865
|
+
listCheckpoints(agentId: string): Promise<AxCheckpoint[]>;
|
|
5866
|
+
deleteCheckpoint(agentId: string, version?: number): Promise<void>;
|
|
5867
|
+
clear(agentId: string): Promise<void>;
|
|
5868
|
+
clearAll(): Promise<void>;
|
|
5869
|
+
}
|
|
5870
|
+
|
|
5871
|
+
/**
|
|
5872
|
+
* AxJudge - Polymorphic & Relativistic Evaluation Engine
|
|
5873
|
+
*
|
|
5874
|
+
* Unlike traditional metrics that rely on brittle assertions or "Gold Standard" datasets,
|
|
5875
|
+
* AxJudge dynamically adapts its evaluation strategy based on available data.
|
|
5876
|
+
*
|
|
5877
|
+
* Key insight from "Escaping the Verifier" (RARO): It is easier and more robust for an LLM
|
|
5878
|
+
* to compare two answers (Relativistic) than to assign an absolute score to one.
|
|
5879
|
+
*
|
|
5880
|
+
* Three Evaluation Modes:
|
|
5881
|
+
* 1. **Absolute Mode** - When ground truth is available (unit test style)
|
|
5882
|
+
* 2. **Relativistic Mode** - Compare student vs teacher output (RARO adversarial check)
|
|
5883
|
+
* 3. **Reference-Free Mode** - Heuristic quality check when no comparison data exists
|
|
5884
|
+
*/
|
|
5885
|
+
|
|
5886
|
+
/**
|
|
5887
|
+
* Evaluation mode used by the judge.
|
|
5888
|
+
*/
|
|
5889
|
+
type AxJudgeMode = 'absolute' | 'relativistic' | 'reference-free';
|
|
5890
|
+
/**
|
|
5891
|
+
* Result from a single evaluation.
|
|
5892
|
+
*/
|
|
5893
|
+
interface AxJudgeResult {
|
|
5894
|
+
/** Score from 0 to 1 */
|
|
5895
|
+
score: number;
|
|
5896
|
+
/** Explanation for the score */
|
|
5897
|
+
reasoning: string;
|
|
5898
|
+
/** Which evaluation mode was used */
|
|
5899
|
+
mode: AxJudgeMode;
|
|
5900
|
+
/** Winner in relativistic mode */
|
|
5901
|
+
winner?: 'student' | 'teacher' | 'tie';
|
|
5902
|
+
/** Quality tier in reference-free mode */
|
|
5903
|
+
qualityTier?: string;
|
|
5904
|
+
}
|
|
5905
|
+
/**
|
|
5906
|
+
* Configuration for AxJudge.
|
|
5907
|
+
*/
|
|
5908
|
+
interface AxJudgeOptions {
|
|
5909
|
+
/** AI service to use for judging (should be >= student model quality) */
|
|
5910
|
+
ai: AxAIService;
|
|
5911
|
+
/** Model to use for judging (optional, uses ai's default) */
|
|
5912
|
+
model?: string;
|
|
5913
|
+
/** Custom criteria for reference-free evaluation */
|
|
5914
|
+
criteria?: string;
|
|
5915
|
+
/** Whether to randomize A/B position in relativistic mode to reduce bias */
|
|
5916
|
+
randomizeOrder?: boolean;
|
|
5917
|
+
}
|
|
5918
|
+
type AxJudgeRubric = 'accuracy' | 'helpfulness' | 'relevance' | 'clarity' | 'completeness' | 'safety' | 'custom';
|
|
5919
|
+
/**
|
|
5920
|
+
* AxJudge - Polymorphic evaluation engine that automatically selects the best strategy.
|
|
5921
|
+
*
|
|
5922
|
+
* @example
|
|
5923
|
+
* ```typescript
|
|
5924
|
+
* const judge = new AxJudge(signature, { ai: teacherAI });
|
|
5925
|
+
*
|
|
5926
|
+
* // Absolute mode (with ground truth)
|
|
5927
|
+
* const result1 = await judge.evaluate(
|
|
5928
|
+
* { question: 'Capital of France?' },
|
|
5929
|
+
* { answer: 'Paris' },
|
|
5930
|
+
* { answer: 'Paris' } // expected
|
|
5931
|
+
* );
|
|
5932
|
+
*
|
|
5933
|
+
* // Relativistic mode (compare student vs teacher)
|
|
5934
|
+
* const result2 = await judge.evaluate(
|
|
5935
|
+
* { question: 'Explain quantum computing' },
|
|
5936
|
+
* studentResponse,
|
|
5937
|
+
* teacherResponse
|
|
5938
|
+
* );
|
|
5939
|
+
*
|
|
5940
|
+
* // Reference-free mode (no comparison data)
|
|
5941
|
+
* const result3 = await judge.evaluate(
|
|
5942
|
+
* { question: 'Write a poem' },
|
|
5943
|
+
* { poem: 'Roses are red...' }
|
|
5944
|
+
* );
|
|
5945
|
+
* ```
|
|
5946
|
+
*/
|
|
5947
|
+
declare class AxJudge<IN extends AxGenIn, OUT extends AxGenOut> {
|
|
5948
|
+
private signature;
|
|
5949
|
+
private options;
|
|
5950
|
+
constructor(signature: AxSignature<IN, OUT>, options: AxJudgeOptions);
|
|
5951
|
+
/**
|
|
5952
|
+
* The main entry point. Automatically routes to the best strategy.
|
|
5953
|
+
*/
|
|
5954
|
+
evaluate(input: IN, studentOutput: OUT, referenceOutput?: OUT): Promise<AxJudgeResult>;
|
|
5955
|
+
/**
|
|
5956
|
+
* Strategy 1: Absolute Mode (The "Unit Test")
|
|
5957
|
+
* Used when we can directly compare against a ground truth.
|
|
5958
|
+
*/
|
|
5959
|
+
private runAbsolute;
|
|
5960
|
+
/**
|
|
5961
|
+
* Strategy 2: Relativistic Mode (The "RARO" Adversarial Check)
|
|
5962
|
+
* Compares student output against teacher output.
|
|
5963
|
+
* Key insight: Comparative judgment is more reliable than absolute scoring.
|
|
5964
|
+
*/
|
|
5965
|
+
private runRelativistic;
|
|
5966
|
+
/**
|
|
5967
|
+
* Strategy 3: Reference-Free Mode (The "Vibe Check")
|
|
5968
|
+
* Evaluates against general heuristic criteria using discrete quality tiers.
|
|
5969
|
+
*
|
|
5970
|
+
* Per RARO paper: LLMs are more reliable at classification than numeric scoring.
|
|
5971
|
+
* Using discrete tiers reduces variance and degeneracy issues.
|
|
5972
|
+
*/
|
|
5973
|
+
private runReferenceFree;
|
|
5974
|
+
/**
|
|
5975
|
+
* Convert this judge to a metric function for use with optimizers.
|
|
5976
|
+
* Uses relativistic mode when teacher output is available as expected.
|
|
5977
|
+
*/
|
|
5978
|
+
toMetricFn(): AxMetricFn;
|
|
5979
|
+
/**
|
|
5980
|
+
* Get the signature being evaluated.
|
|
5981
|
+
*/
|
|
5982
|
+
getSignature(): AxSignature<IN, OUT>;
|
|
5983
|
+
}
|
|
5984
|
+
|
|
5985
|
+
/**
|
|
5986
|
+
* AxSynth - Synthetic data generator for bootstrapping optimization datasets.
|
|
5987
|
+
*
|
|
5988
|
+
* Generates diverse input examples and uses a teacher model to produce
|
|
5989
|
+
* high-quality labeled outputs. Solves the "cold start" problem when
|
|
5990
|
+
* users have no training data.
|
|
5991
|
+
*/
|
|
5992
|
+
|
|
5993
|
+
/**
|
|
5994
|
+
* Configuration for synthetic data generation.
|
|
5995
|
+
*/
|
|
5996
|
+
interface AxSynthOptions {
|
|
5997
|
+
/** Teacher AI to use for labeling generated inputs */
|
|
5998
|
+
teacher: AxAIService;
|
|
5999
|
+
/**
|
|
6000
|
+
* Diversity strategy for input generation.
|
|
6001
|
+
* - 'semantic': Use embeddings to maximize semantic diversity
|
|
6002
|
+
* - 'lexical': Use token-based diversity
|
|
6003
|
+
* - 'none': No diversity filtering (default)
|
|
6004
|
+
*/
|
|
6005
|
+
diversity?: 'semantic' | 'lexical' | 'none';
|
|
6006
|
+
/** Domain context for generating relevant examples */
|
|
6007
|
+
domain?: string;
|
|
6008
|
+
/**
|
|
6009
|
+
* Edge case hints for generating challenging examples.
|
|
6010
|
+
* Examples: "empty inputs", "very long queries", "special characters"
|
|
6011
|
+
*/
|
|
6012
|
+
edgeCases?: string[];
|
|
6013
|
+
/** Temperature for input generation (default: 0.8) */
|
|
6014
|
+
temperature?: number;
|
|
6015
|
+
/** Model to use for generation (optional, uses teacher's default) */
|
|
6016
|
+
model?: string;
|
|
6017
|
+
}
|
|
6018
|
+
/**
|
|
6019
|
+
* A single synthesized example with input and expected output.
|
|
6020
|
+
*/
|
|
6021
|
+
interface AxSynthExample {
|
|
6022
|
+
/** Generated input values */
|
|
6023
|
+
input: Record<string, unknown>;
|
|
6024
|
+
/** Expected output values from teacher model */
|
|
6025
|
+
expected: Record<string, unknown>;
|
|
6026
|
+
/** Category of the example (normal, edge case, etc.) */
|
|
6027
|
+
category?: string;
|
|
6028
|
+
}
|
|
6029
|
+
/**
|
|
6030
|
+
* Result from a synthesis run.
|
|
6031
|
+
*/
|
|
6032
|
+
interface AxSynthResult {
|
|
6033
|
+
/** Generated examples */
|
|
6034
|
+
examples: AxSynthExample[];
|
|
6035
|
+
/** Statistics about the generation */
|
|
6036
|
+
stats: {
|
|
6037
|
+
requested: number;
|
|
6038
|
+
generated: number;
|
|
6039
|
+
labelingSuccessRate: number;
|
|
6040
|
+
durationMs: number;
|
|
6041
|
+
};
|
|
6042
|
+
}
|
|
6043
|
+
/**
|
|
6044
|
+
* AxSynth generates synthetic training data.
|
|
6045
|
+
*
|
|
6046
|
+
* @example
|
|
6047
|
+
* ```typescript
|
|
6048
|
+
* const synth = new AxSynth(signature, {
|
|
6049
|
+
* teacher: ai('openai', { model: 'gpt-4o' }),
|
|
6050
|
+
* domain: 'customer support',
|
|
6051
|
+
* edgeCases: ['angry customers', 'vague requests'],
|
|
6052
|
+
* });
|
|
6053
|
+
*
|
|
6054
|
+
* const { examples } = await synth.generate(100);
|
|
6055
|
+
* ```
|
|
6056
|
+
*/
|
|
6057
|
+
declare class AxSynth<IN extends AxGenIn, OUT extends AxGenOut> {
|
|
6058
|
+
private signature;
|
|
6059
|
+
private options;
|
|
6060
|
+
constructor(signature: AxSignature<IN, OUT>, options: AxSynthOptions);
|
|
6061
|
+
/**
|
|
6062
|
+
* Generate synthetic examples.
|
|
6063
|
+
*/
|
|
6064
|
+
generate(count: number, options?: {
|
|
6065
|
+
batchSize?: number;
|
|
6066
|
+
}): Promise<AxSynthResult>;
|
|
6067
|
+
/**
|
|
6068
|
+
* Generate diverse input examples using a synthesis prompt.
|
|
6069
|
+
*/
|
|
6070
|
+
private generateInputs;
|
|
6071
|
+
/**
|
|
6072
|
+
* Generate edge case inputs based on hints.
|
|
6073
|
+
*/
|
|
6074
|
+
private generateEdgeCaseInputs;
|
|
6075
|
+
/**
|
|
6076
|
+
* Label an input using the teacher model.
|
|
6077
|
+
*/
|
|
6078
|
+
private labelInput;
|
|
6079
|
+
/**
|
|
6080
|
+
* Get the signature being used.
|
|
6081
|
+
*/
|
|
6082
|
+
getSignature(): AxSignature<IN, OUT>;
|
|
6083
|
+
/**
|
|
6084
|
+
* Get the teacher AI service.
|
|
6085
|
+
*/
|
|
6086
|
+
getTeacher(): AxAIService;
|
|
6087
|
+
}
|
|
6088
|
+
|
|
6089
|
+
/**
|
|
6090
|
+
* AxTuner - High-level tuning orchestrator for self-improving agents.
|
|
6091
|
+
*
|
|
6092
|
+
* Coordinates the optimization loop: gathering data, judging outputs,
|
|
6093
|
+
* and running optimizers to improve prompts.
|
|
6094
|
+
*/
|
|
6095
|
+
|
|
6096
|
+
/**
|
|
6097
|
+
* Supported optimization methods.
|
|
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.
|
|
6115
|
+
*/
|
|
6116
|
+
interface AxTuneOptions {
|
|
6117
|
+
/** Optimization method to use (default: 'bootstrap') */
|
|
6118
|
+
method?: AxTuneMethod;
|
|
6119
|
+
/** Maximum optimization rounds */
|
|
6120
|
+
budget?: number;
|
|
6121
|
+
/** Teacher AI for synthetic data generation and judging */
|
|
6122
|
+
teacher?: AxAIService;
|
|
6123
|
+
/** Custom metric function (if not provided, auto-generates using AxJudge) */
|
|
6124
|
+
metric?: AxMetricFn;
|
|
6125
|
+
/** Judge options when auto-generating metric */
|
|
6126
|
+
judgeOptions?: Partial<AxJudgeOptions>;
|
|
6127
|
+
/** Custom evaluation criteria for judge */
|
|
6128
|
+
criteria?: string;
|
|
6129
|
+
/** Training examples (if not provided, generates synthetic data) */
|
|
6130
|
+
examples?: AxTypedExample<AxGenIn>[];
|
|
6131
|
+
/** Number of synthetic examples to generate if examples not provided */
|
|
6132
|
+
synthCount?: number;
|
|
6133
|
+
/** Synth options for data generation */
|
|
6134
|
+
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
|
+
/** Validation split ratio (default: 0.2) */
|
|
6142
|
+
validationSplit?: number;
|
|
6143
|
+
}
|
|
6144
|
+
/**
|
|
6145
|
+
* Result from a tune operation.
|
|
6146
|
+
*/
|
|
6147
|
+
interface AxTuneResult<IN extends AxGenIn, OUT extends AxGenOut> {
|
|
6148
|
+
/** The improved generator */
|
|
6149
|
+
improvedGen: AxGen<IN, OUT>;
|
|
6150
|
+
/** Final score achieved */
|
|
6151
|
+
score: number;
|
|
6152
|
+
/** Score improvement from original */
|
|
6153
|
+
improvement: number;
|
|
6154
|
+
/** Number of rounds executed */
|
|
6155
|
+
rounds: number;
|
|
6156
|
+
/** Statistics */
|
|
6157
|
+
stats: {
|
|
6158
|
+
trainingExamples: number;
|
|
6159
|
+
validationExamples: number;
|
|
6160
|
+
durationMs: number;
|
|
6161
|
+
method: AxTuneMethod;
|
|
6162
|
+
};
|
|
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
|
+
}
|
|
6227
|
+
/**
|
|
6228
|
+
* AxLearnAgent wraps an AxGen with automatic trace logging and a convenient tune() method.
|
|
6229
|
+
*
|
|
6230
|
+
* @example
|
|
6231
|
+
* ```typescript
|
|
6232
|
+
* const gen = ax(`customer_query -> polite_response`);
|
|
6233
|
+
*
|
|
6234
|
+
* const agent = new AxLearnAgent(gen, {
|
|
6235
|
+
* name: 'support-bot-v1',
|
|
6236
|
+
* });
|
|
6237
|
+
*
|
|
6238
|
+
* // Use in production - traces are logged automatically
|
|
6239
|
+
* const result = await agent.forward(ai, { customer_query: 'Where is my order?' });
|
|
6240
|
+
*
|
|
6241
|
+
* // Tune the agent to improve it
|
|
6242
|
+
* const tuneResult = await agent.tune({
|
|
6243
|
+
* teacher: gpt4o,
|
|
6244
|
+
* budget: 20,
|
|
6245
|
+
* });
|
|
6246
|
+
* ```
|
|
6247
|
+
*/
|
|
6248
|
+
declare class AxLearnAgent<IN extends AxGenIn, OUT extends AxGenOut> {
|
|
6249
|
+
private gen;
|
|
6250
|
+
private options;
|
|
6251
|
+
private tracer;
|
|
6252
|
+
private currentScore?;
|
|
6253
|
+
constructor(gen: AxGen<IN, OUT>, options: AxLearnAgentOptions);
|
|
6254
|
+
/**
|
|
6255
|
+
* Load the latest checkpoint from storage if available.
|
|
6256
|
+
*/
|
|
6257
|
+
private loadLatestCheckpoint;
|
|
6258
|
+
/**
|
|
6259
|
+
* Forward call - behaves exactly like AxGen.forward() but logs traces.
|
|
6260
|
+
*/
|
|
6261
|
+
forward(ai: AxAIService, values: IN, options?: Readonly<AxProgramForwardOptions<string>>): Promise<OUT>;
|
|
6262
|
+
/**
|
|
6263
|
+
* Tune the agent to improve its performance.
|
|
6264
|
+
*/
|
|
6265
|
+
tune(options: AxTuneOptions & {
|
|
6266
|
+
teacher: AxAIService;
|
|
6267
|
+
}): Promise<AxTuneResult<IN, OUT>>;
|
|
6268
|
+
/**
|
|
6269
|
+
* Get the underlying AxGen instance.
|
|
6270
|
+
*/
|
|
6271
|
+
getGen(): AxGen<IN, OUT>;
|
|
6272
|
+
/**
|
|
6273
|
+
* Get the agent name.
|
|
6274
|
+
*/
|
|
6275
|
+
getName(): string;
|
|
6276
|
+
/**
|
|
6277
|
+
* Get the storage backend.
|
|
6278
|
+
*/
|
|
6279
|
+
getStorage(): AxStorage;
|
|
6280
|
+
/**
|
|
6281
|
+
* Get recent traces for this agent.
|
|
6282
|
+
*/
|
|
6283
|
+
getTraces(options?: {
|
|
6284
|
+
limit?: number;
|
|
6285
|
+
since?: Date;
|
|
6286
|
+
}): Promise<AxTrace[]>;
|
|
6287
|
+
/**
|
|
6288
|
+
* Get the current instruction.
|
|
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.
|
|
6313
|
+
*/
|
|
6314
|
+
addFeedback(traceId: string, feedback: NonNullable<AxTrace['feedback']>): Promise<void>;
|
|
6315
|
+
}
|
|
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
|
+
|
|
5748
6321
|
interface AxSimpleClassifierForwardOptions {
|
|
5749
6322
|
cutoff?: number;
|
|
5750
6323
|
abortSignal?: AbortSignal;
|
|
@@ -8358,6 +8931,86 @@ declare const axRAG: (queryFn: (query: string) => Promise<string>, options?: {
|
|
|
8358
8931
|
}]>;
|
|
8359
8932
|
}>;
|
|
8360
8933
|
|
|
8934
|
+
/**
|
|
8935
|
+
* AxTraceLogger - Decorator that intercepts AxGen.forward() calls and logs traces.
|
|
8936
|
+
*
|
|
8937
|
+
* This provides a non-intrusive way to add logging to any AxGen instance
|
|
8938
|
+
* without modifying the original class.
|
|
8939
|
+
*/
|
|
8940
|
+
|
|
8941
|
+
/**
|
|
8942
|
+
* Configuration options for AxTraceLogger
|
|
8943
|
+
*/
|
|
8944
|
+
interface AxTraceLoggerOptions {
|
|
8945
|
+
/** Unique identifier for this agent/generator */
|
|
8946
|
+
agentId: string;
|
|
8947
|
+
/** Storage backend for persisting traces */
|
|
8948
|
+
storage: AxStorage;
|
|
8949
|
+
/** Whether to include input values in traces (default: true) */
|
|
8950
|
+
logInputs?: boolean;
|
|
8951
|
+
/** Whether to include output values in traces (default: true) */
|
|
8952
|
+
logOutputs?: boolean;
|
|
8953
|
+
/** Custom metadata to include in all traces */
|
|
8954
|
+
metadata?: Record<string, unknown>;
|
|
8955
|
+
/** Callback when a trace is logged */
|
|
8956
|
+
onTrace?: (trace: AxTrace) => void;
|
|
8957
|
+
/** Whether logging errors should throw (default: false - errors are silently caught) */
|
|
8958
|
+
throwOnError?: boolean;
|
|
8959
|
+
}
|
|
8960
|
+
/**
|
|
8961
|
+
* AxTraceLogger wraps an AxGen instance to automatically log all forward() calls.
|
|
8962
|
+
*
|
|
8963
|
+
* @example
|
|
8964
|
+
* ```typescript
|
|
8965
|
+
* const gen = ax(`query -> response`);
|
|
8966
|
+
* const storage = new AxMemoryStorage();
|
|
8967
|
+
*
|
|
8968
|
+
* const tracedGen = new AxTraceLogger(gen, {
|
|
8969
|
+
* agentId: 'my-agent',
|
|
8970
|
+
* storage,
|
|
8971
|
+
* });
|
|
8972
|
+
*
|
|
8973
|
+
* // Use exactly like AxGen
|
|
8974
|
+
* const result = await tracedGen.forward(ai, { query: 'Hello' });
|
|
8975
|
+
*
|
|
8976
|
+
* // Traces are automatically saved to storage
|
|
8977
|
+
* const traces = await storage.getTraces('my-agent');
|
|
8978
|
+
* ```
|
|
8979
|
+
*/
|
|
8980
|
+
declare class AxTraceLogger<IN extends AxGenIn, OUT extends AxGenOut> {
|
|
8981
|
+
private gen;
|
|
8982
|
+
private options;
|
|
8983
|
+
constructor(gen: AxGen<IN, OUT>, options: AxTraceLoggerOptions);
|
|
8984
|
+
/**
|
|
8985
|
+
* Forward call to the underlying AxGen with trace logging.
|
|
8986
|
+
*/
|
|
8987
|
+
forward(ai: AxAIService, values: IN, options?: Readonly<AxProgramForwardOptions<string>>): Promise<OUT>;
|
|
8988
|
+
/**
|
|
8989
|
+
* Save trace to storage with error handling.
|
|
8990
|
+
*/
|
|
8991
|
+
private saveTrace;
|
|
8992
|
+
/**
|
|
8993
|
+
* Get the underlying AxGen instance.
|
|
8994
|
+
*/
|
|
8995
|
+
getGen(): AxGen<IN, OUT>;
|
|
8996
|
+
/**
|
|
8997
|
+
* Get the agent ID.
|
|
8998
|
+
*/
|
|
8999
|
+
getAgentId(): string;
|
|
9000
|
+
/**
|
|
9001
|
+
* Get the storage backend.
|
|
9002
|
+
*/
|
|
9003
|
+
getStorage(): AxStorage;
|
|
9004
|
+
/**
|
|
9005
|
+
* Update the metadata for future traces.
|
|
9006
|
+
*/
|
|
9007
|
+
setMetadata(metadata: Record<string, unknown>): void;
|
|
9008
|
+
/**
|
|
9009
|
+
* Clone the logger with a new underlying AxGen.
|
|
9010
|
+
*/
|
|
9011
|
+
clone(newGen?: AxGen<IN, OUT>): AxTraceLogger<IN, OUT>;
|
|
9012
|
+
}
|
|
9013
|
+
|
|
8361
9014
|
declare const axSpanAttributes: {
|
|
8362
9015
|
LLM_SYSTEM: string;
|
|
8363
9016
|
LLM_OPERATION_NAME: string;
|
|
@@ -8429,4 +9082,4 @@ declare class AxRateLimiterTokenUsage {
|
|
|
8429
9082
|
acquire(tokens: number): Promise<void>;
|
|
8430
9083
|
}
|
|
8431
9084
|
|
|
8432
|
-
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 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, AxLLMRequestTypeValues, 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 AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxThoughtBlockItem, AxTokenLimitError, 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, 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 };
|
|
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 };
|