@ax-llm/ax 15.0.3 → 15.0.5
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 +32 -32
- package/index.cjs.map +1 -1
- package/index.d.cts +5 -0
- package/index.d.ts +5 -0
- package/index.global.js +32 -32
- package/index.global.js.map +1 -1
- package/index.js +32 -32
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -1859,6 +1859,7 @@ interface AxStreamingEvent<T> {
|
|
|
1859
1859
|
};
|
|
1860
1860
|
}
|
|
1861
1861
|
declare class AxGen<IN = any, OUT extends AxGenOut = any> extends AxProgram<IN, OUT> implements AxProgrammable<IN, OUT> {
|
|
1862
|
+
clone: () => AxGen<IN, OUT>;
|
|
1862
1863
|
private promptTemplate;
|
|
1863
1864
|
private asserts;
|
|
1864
1865
|
private streamingAsserts;
|
|
@@ -1870,6 +1871,7 @@ declare class AxGen<IN = any, OUT extends AxGenOut = any> extends AxProgram<IN,
|
|
|
1870
1871
|
private thoughtFieldName;
|
|
1871
1872
|
private signatureToolCallingManager?;
|
|
1872
1873
|
constructor(signature: NonNullable<ConstructorParameters<typeof AxSignature>[0]> | AxSignature<any, any>, options?: Readonly<AxProgramForwardOptions<any>>);
|
|
1874
|
+
setInstruction(instruction: string): void;
|
|
1873
1875
|
private getSignatureName;
|
|
1874
1876
|
private getMetricsInstruments;
|
|
1875
1877
|
updateMeter(meter?: Meter): void;
|
|
@@ -1942,6 +1944,7 @@ declare class AxPromptTemplate {
|
|
|
1942
1944
|
private sig;
|
|
1943
1945
|
private fieldTemplates?;
|
|
1944
1946
|
private task;
|
|
1947
|
+
setInstruction(instruction: string): void;
|
|
1945
1948
|
private readonly thoughtFieldName;
|
|
1946
1949
|
private readonly functions?;
|
|
1947
1950
|
private readonly cacheSystemPrompt?;
|
|
@@ -3683,6 +3686,7 @@ declare enum AxAIGoogleGeminiModel {
|
|
|
3683
3686
|
GeminiProLatest = "gemini-pro-latest"
|
|
3684
3687
|
}
|
|
3685
3688
|
declare enum AxAIGoogleGeminiEmbedModel {
|
|
3689
|
+
GeminiEmbedding001 = "gemini-embedding-001",
|
|
3686
3690
|
GeminiEmbedding = "gemini-embedding-exp",
|
|
3687
3691
|
TextEmbeddingLarge = "text-embedding-large-exp-03-07",
|
|
3688
3692
|
TextEmbedding004 = "text-embedding-004",
|
|
@@ -6104,6 +6108,7 @@ declare class AxACE extends AxBaseOptimizer {
|
|
|
6104
6108
|
private deltaHistory;
|
|
6105
6109
|
private reflectorProgram?;
|
|
6106
6110
|
private curatorProgram?;
|
|
6111
|
+
private program?;
|
|
6107
6112
|
constructor(args: Readonly<AxOptimizerArgs>, options?: Readonly<AxACEOptions>);
|
|
6108
6113
|
reset(): void;
|
|
6109
6114
|
configureAuto(level: 'light' | 'medium' | 'heavy'): void;
|
package/index.d.ts
CHANGED
|
@@ -1859,6 +1859,7 @@ interface AxStreamingEvent<T> {
|
|
|
1859
1859
|
};
|
|
1860
1860
|
}
|
|
1861
1861
|
declare class AxGen<IN = any, OUT extends AxGenOut = any> extends AxProgram<IN, OUT> implements AxProgrammable<IN, OUT> {
|
|
1862
|
+
clone: () => AxGen<IN, OUT>;
|
|
1862
1863
|
private promptTemplate;
|
|
1863
1864
|
private asserts;
|
|
1864
1865
|
private streamingAsserts;
|
|
@@ -1870,6 +1871,7 @@ declare class AxGen<IN = any, OUT extends AxGenOut = any> extends AxProgram<IN,
|
|
|
1870
1871
|
private thoughtFieldName;
|
|
1871
1872
|
private signatureToolCallingManager?;
|
|
1872
1873
|
constructor(signature: NonNullable<ConstructorParameters<typeof AxSignature>[0]> | AxSignature<any, any>, options?: Readonly<AxProgramForwardOptions<any>>);
|
|
1874
|
+
setInstruction(instruction: string): void;
|
|
1873
1875
|
private getSignatureName;
|
|
1874
1876
|
private getMetricsInstruments;
|
|
1875
1877
|
updateMeter(meter?: Meter): void;
|
|
@@ -1942,6 +1944,7 @@ declare class AxPromptTemplate {
|
|
|
1942
1944
|
private sig;
|
|
1943
1945
|
private fieldTemplates?;
|
|
1944
1946
|
private task;
|
|
1947
|
+
setInstruction(instruction: string): void;
|
|
1945
1948
|
private readonly thoughtFieldName;
|
|
1946
1949
|
private readonly functions?;
|
|
1947
1950
|
private readonly cacheSystemPrompt?;
|
|
@@ -3683,6 +3686,7 @@ declare enum AxAIGoogleGeminiModel {
|
|
|
3683
3686
|
GeminiProLatest = "gemini-pro-latest"
|
|
3684
3687
|
}
|
|
3685
3688
|
declare enum AxAIGoogleGeminiEmbedModel {
|
|
3689
|
+
GeminiEmbedding001 = "gemini-embedding-001",
|
|
3686
3690
|
GeminiEmbedding = "gemini-embedding-exp",
|
|
3687
3691
|
TextEmbeddingLarge = "text-embedding-large-exp-03-07",
|
|
3688
3692
|
TextEmbedding004 = "text-embedding-004",
|
|
@@ -6104,6 +6108,7 @@ declare class AxACE extends AxBaseOptimizer {
|
|
|
6104
6108
|
private deltaHistory;
|
|
6105
6109
|
private reflectorProgram?;
|
|
6106
6110
|
private curatorProgram?;
|
|
6111
|
+
private program?;
|
|
6107
6112
|
constructor(args: Readonly<AxOptimizerArgs>, options?: Readonly<AxACEOptions>);
|
|
6108
6113
|
reset(): void;
|
|
6109
6114
|
configureAuto(level: 'light' | 'medium' | 'heavy'): void;
|