@ax-llm/ax 20.0.0 → 20.0.2
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 +102 -102
- package/index.cjs.map +1 -1
- package/index.d.cts +3 -1
- package/index.d.ts +3 -1
- package/index.global.js +80 -80
- package/index.global.js.map +1 -1
- package/index.js +102 -102
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/ax-agent-optimize.md +1 -1
- package/skills/ax-agent.md +1 -1
- package/skills/ax-ai.md +1 -1
- package/skills/ax-flow.md +1 -1
- package/skills/ax-gen.md +1 -1
- package/skills/ax-gepa.md +1 -1
- package/skills/ax-learn.md +1 -1
- package/skills/ax-llm.md +1 -1
- package/skills/ax-signature.md +1 -1
package/index.d.cts
CHANGED
|
@@ -1238,7 +1238,7 @@ interface AxAIServiceImpl<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TCha
|
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Optional: Build a context cache TTL update operation.
|
|
1240
1240
|
*/
|
|
1241
|
-
buildCacheUpdateTTLOp?(cacheName: string, ttlSeconds: number
|
|
1241
|
+
buildCacheUpdateTTLOp?(cacheName: string, ttlSeconds: number): AxContextCacheOperation;
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Optional: Build a context cache deletion operation.
|
|
1244
1244
|
*/
|
|
@@ -5173,6 +5173,7 @@ declare function agent<const T extends string, const CF extends readonly AxConte
|
|
|
5173
5173
|
declare function agent<TInput extends Record<string, any>, TOutput extends Record<string, any>, const CF extends readonly AxContextFieldInput[] = []>(signature: AxSignature<TInput, TOutput>, config: Omit<AxAgentConfig<TInput, TOutput>, 'contextFields'> & {
|
|
5174
5174
|
contextFields?: CF;
|
|
5175
5175
|
}): AxAgent<TInput, TOutput>;
|
|
5176
|
+
declare function agent(signature: Readonly<AxSignatureConfig>, config: AxAgentConfig<AxGenIn, AxGenOut>): AxAgent<AxGenIn, AxGenOut>;
|
|
5176
5177
|
|
|
5177
5178
|
/**
|
|
5178
5179
|
* Reusable building block: a split-architecture AI agent with two AxGen programs:
|
|
@@ -9969,6 +9970,7 @@ declare function ax<TInput extends Record<string, any>, TOutput extends Record<s
|
|
|
9969
9970
|
} : {
|
|
9970
9971
|
[P in ThoughtKey]?: string;
|
|
9971
9972
|
})>;
|
|
9973
|
+
declare function ax(signature: Readonly<AxSignatureConfig>, options?: Readonly<AxProgramForwardOptions<any>>): AxGen<AxGenIn, AxGenOut>;
|
|
9972
9974
|
|
|
9973
9975
|
/**
|
|
9974
9976
|
* Analyzes mapping functions to extract state dependencies.
|
package/index.d.ts
CHANGED
|
@@ -1238,7 +1238,7 @@ interface AxAIServiceImpl<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TCha
|
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Optional: Build a context cache TTL update operation.
|
|
1240
1240
|
*/
|
|
1241
|
-
buildCacheUpdateTTLOp?(cacheName: string, ttlSeconds: number
|
|
1241
|
+
buildCacheUpdateTTLOp?(cacheName: string, ttlSeconds: number): AxContextCacheOperation;
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Optional: Build a context cache deletion operation.
|
|
1244
1244
|
*/
|
|
@@ -5173,6 +5173,7 @@ declare function agent<const T extends string, const CF extends readonly AxConte
|
|
|
5173
5173
|
declare function agent<TInput extends Record<string, any>, TOutput extends Record<string, any>, const CF extends readonly AxContextFieldInput[] = []>(signature: AxSignature<TInput, TOutput>, config: Omit<AxAgentConfig<TInput, TOutput>, 'contextFields'> & {
|
|
5174
5174
|
contextFields?: CF;
|
|
5175
5175
|
}): AxAgent<TInput, TOutput>;
|
|
5176
|
+
declare function agent(signature: Readonly<AxSignatureConfig>, config: AxAgentConfig<AxGenIn, AxGenOut>): AxAgent<AxGenIn, AxGenOut>;
|
|
5176
5177
|
|
|
5177
5178
|
/**
|
|
5178
5179
|
* Reusable building block: a split-architecture AI agent with two AxGen programs:
|
|
@@ -9969,6 +9970,7 @@ declare function ax<TInput extends Record<string, any>, TOutput extends Record<s
|
|
|
9969
9970
|
} : {
|
|
9970
9971
|
[P in ThoughtKey]?: string;
|
|
9971
9972
|
})>;
|
|
9973
|
+
declare function ax(signature: Readonly<AxSignatureConfig>, options?: Readonly<AxProgramForwardOptions<any>>): AxGen<AxGenIn, AxGenOut>;
|
|
9972
9974
|
|
|
9973
9975
|
/**
|
|
9974
9976
|
* Analyzes mapping functions to extract state dependencies.
|