@ax-llm/ax 18.0.9 → 18.0.10
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 +117 -107
- package/index.cjs.map +1 -1
- package/index.d.cts +19 -0
- package/index.d.ts +19 -0
- package/index.global.js +92 -82
- package/index.global.js.map +1 -1
- package/index.js +120 -110
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/ax-agent.md +1 -1
- package/skills/ax-llm.md +1 -1
package/index.d.cts
CHANGED
|
@@ -1726,6 +1726,7 @@ declare class AxSignature<_TInput extends Record<string, any> = Record<string, a
|
|
|
1726
1726
|
outputFields: AxIField[];
|
|
1727
1727
|
};
|
|
1728
1728
|
toJSONSchema: () => AxFunctionJSONSchema;
|
|
1729
|
+
toInputJSONSchema: () => AxFunctionJSONSchema;
|
|
1729
1730
|
}
|
|
1730
1731
|
|
|
1731
1732
|
interface AxAssertion<T = Record<string, unknown>> {
|
|
@@ -9912,6 +9913,18 @@ declare function axBuildActorDefinition(baseDefinition: string | undefined, cont
|
|
|
9912
9913
|
maxLlmCalls?: number;
|
|
9913
9914
|
maxTurns?: number;
|
|
9914
9915
|
hasInspectRuntime?: boolean;
|
|
9916
|
+
/** Child agents available under the `agents.*` namespace in the JS runtime. */
|
|
9917
|
+
agents?: ReadonlyArray<{
|
|
9918
|
+
name: string;
|
|
9919
|
+
description: string;
|
|
9920
|
+
parameters?: AxFunctionJSONSchema;
|
|
9921
|
+
}>;
|
|
9922
|
+
/** Tool functions available as flat globals in the JS runtime. */
|
|
9923
|
+
functions?: ReadonlyArray<{
|
|
9924
|
+
name: string;
|
|
9925
|
+
description: string;
|
|
9926
|
+
parameters?: AxFunctionJSONSchema;
|
|
9927
|
+
}>;
|
|
9915
9928
|
}>): string;
|
|
9916
9929
|
/**
|
|
9917
9930
|
* Builds the Responder system prompt. The Responder synthesizes a final answer
|
|
@@ -10425,6 +10438,7 @@ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut> implements AxAge
|
|
|
10425
10438
|
private activeAbortControllers;
|
|
10426
10439
|
private _stopRequested;
|
|
10427
10440
|
private func;
|
|
10441
|
+
private _parentSharedFields;
|
|
10428
10442
|
constructor({ ai, agentIdentity, signature, agents, functions, }: Readonly<{
|
|
10429
10443
|
ai?: Readonly<AxAIService>;
|
|
10430
10444
|
agentIdentity?: Readonly<{
|
|
@@ -10496,6 +10510,11 @@ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut> implements AxAge
|
|
|
10496
10510
|
* an `agents.*` namespace for the JS runtime session.
|
|
10497
10511
|
*/
|
|
10498
10512
|
private buildRuntimeGlobals;
|
|
10513
|
+
/**
|
|
10514
|
+
* Builds the clean AxFunction parameters schema: input fields only, with any
|
|
10515
|
+
* parent-injected shared fields stripped out (they are auto-injected at runtime).
|
|
10516
|
+
*/
|
|
10517
|
+
private _buildFuncParameters;
|
|
10499
10518
|
}
|
|
10500
10519
|
/**
|
|
10501
10520
|
* Configuration options for creating an agent using the agent() factory function.
|
package/index.d.ts
CHANGED
|
@@ -1726,6 +1726,7 @@ declare class AxSignature<_TInput extends Record<string, any> = Record<string, a
|
|
|
1726
1726
|
outputFields: AxIField[];
|
|
1727
1727
|
};
|
|
1728
1728
|
toJSONSchema: () => AxFunctionJSONSchema;
|
|
1729
|
+
toInputJSONSchema: () => AxFunctionJSONSchema;
|
|
1729
1730
|
}
|
|
1730
1731
|
|
|
1731
1732
|
interface AxAssertion<T = Record<string, unknown>> {
|
|
@@ -9912,6 +9913,18 @@ declare function axBuildActorDefinition(baseDefinition: string | undefined, cont
|
|
|
9912
9913
|
maxLlmCalls?: number;
|
|
9913
9914
|
maxTurns?: number;
|
|
9914
9915
|
hasInspectRuntime?: boolean;
|
|
9916
|
+
/** Child agents available under the `agents.*` namespace in the JS runtime. */
|
|
9917
|
+
agents?: ReadonlyArray<{
|
|
9918
|
+
name: string;
|
|
9919
|
+
description: string;
|
|
9920
|
+
parameters?: AxFunctionJSONSchema;
|
|
9921
|
+
}>;
|
|
9922
|
+
/** Tool functions available as flat globals in the JS runtime. */
|
|
9923
|
+
functions?: ReadonlyArray<{
|
|
9924
|
+
name: string;
|
|
9925
|
+
description: string;
|
|
9926
|
+
parameters?: AxFunctionJSONSchema;
|
|
9927
|
+
}>;
|
|
9915
9928
|
}>): string;
|
|
9916
9929
|
/**
|
|
9917
9930
|
* Builds the Responder system prompt. The Responder synthesizes a final answer
|
|
@@ -10425,6 +10438,7 @@ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut> implements AxAge
|
|
|
10425
10438
|
private activeAbortControllers;
|
|
10426
10439
|
private _stopRequested;
|
|
10427
10440
|
private func;
|
|
10441
|
+
private _parentSharedFields;
|
|
10428
10442
|
constructor({ ai, agentIdentity, signature, agents, functions, }: Readonly<{
|
|
10429
10443
|
ai?: Readonly<AxAIService>;
|
|
10430
10444
|
agentIdentity?: Readonly<{
|
|
@@ -10496,6 +10510,11 @@ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut> implements AxAge
|
|
|
10496
10510
|
* an `agents.*` namespace for the JS runtime session.
|
|
10497
10511
|
*/
|
|
10498
10512
|
private buildRuntimeGlobals;
|
|
10513
|
+
/**
|
|
10514
|
+
* Builds the clean AxFunction parameters schema: input fields only, with any
|
|
10515
|
+
* parent-injected shared fields stripped out (they are auto-injected at runtime).
|
|
10516
|
+
*/
|
|
10517
|
+
private _buildFuncParameters;
|
|
10499
10518
|
}
|
|
10500
10519
|
/**
|
|
10501
10520
|
* Configuration options for creating an agent using the agent() factory function.
|