@amitdeshmukh/ax-crew 8.1.0 → 8.2.0
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/README.md
CHANGED
|
@@ -50,7 +50,7 @@ const config = {
|
|
|
50
50
|
crew: [{
|
|
51
51
|
name: "Planner",
|
|
52
52
|
description: "Creates a plan to complete a task",
|
|
53
|
-
executionMode: "
|
|
53
|
+
executionMode: "axgen", // "axagent" | "axgen"
|
|
54
54
|
signature: "task:string \"a task to be completed\" -> plan:string \"a plan to execute the task\"",
|
|
55
55
|
provider: "google-gemini",
|
|
56
56
|
providerKeyName: "GEMINI_API_KEY",
|
|
@@ -127,7 +127,7 @@ Key TypeScript features:
|
|
|
127
127
|
- **Functions (tools)**: Register callable functions via a registry and reference by name in agent `functions`.
|
|
128
128
|
- **State**: `crew.state.set/get/getAll()` shared across all agents.
|
|
129
129
|
- **Persona**: Use `definition` (preferred) or `prompt` to set the system program. If both are present, `definition` wins.
|
|
130
|
-
- **Execution mode**: Set `executionMode` to `
|
|
130
|
+
- **Execution mode**: Set `executionMode` to `axgen` (default) or `axagent` per agent.
|
|
131
131
|
- **Streaming**: Use `streamingForward()` for token streams.
|
|
132
132
|
- **Metrics**: Per‑agent `getMetrics()` + crew‑level `getCrewMetrics()` snapshots.
|
|
133
133
|
|
|
@@ -190,8 +190,8 @@ Add either field to any agent config. The chosen value becomes the Ax agent's un
|
|
|
190
190
|
|
|
191
191
|
Each agent can run in one of two execution modes supported by AxLLM:
|
|
192
192
|
|
|
193
|
-
- `
|
|
194
|
-
- `
|
|
193
|
+
- `axgen` (default): Uses AxGen capabilities.
|
|
194
|
+
- `axagent`: Uses AxAgent capabilities.
|
|
195
195
|
|
|
196
196
|
Set mode in config:
|
|
197
197
|
|
|
@@ -174,7 +174,7 @@ const parseAgentConfig = async (agentName, crewConfig, functions, state, options
|
|
|
174
174
|
// Add MCP functions to functions
|
|
175
175
|
...mcpFunctions
|
|
176
176
|
];
|
|
177
|
-
const executionMode = agentConfigData.executionMode === '
|
|
177
|
+
const executionMode = agentConfigData.executionMode === 'axagent' ? 'axagent' : 'axgen';
|
|
178
178
|
// Return AI instance and Agent parameters
|
|
179
179
|
return {
|
|
180
180
|
ai: aiInstance,
|
package/dist/agents/index.js
CHANGED
|
@@ -88,7 +88,7 @@ class StatefulAxAgent extends AxAgent {
|
|
|
88
88
|
this.axai = ai;
|
|
89
89
|
this.agentName = options.name;
|
|
90
90
|
this.agentDefinition = effectiveDefinition;
|
|
91
|
-
this.executionMode = options.executionMode ?? "
|
|
91
|
+
this.executionMode = options.executionMode ?? "axgen";
|
|
92
92
|
this.debugEnabled = debug ?? false;
|
|
93
93
|
this.axGenProgram = new AxGen(options.signature, {
|
|
94
94
|
description: effectiveDefinition,
|
package/package.json
CHANGED
|
@@ -208,7 +208,7 @@ const parseAgentConfig = async (
|
|
|
208
208
|
];
|
|
209
209
|
|
|
210
210
|
const executionMode: AgentExecutionMode =
|
|
211
|
-
agentConfigData.executionMode === '
|
|
211
|
+
agentConfigData.executionMode === 'axagent' ? 'axagent' : 'axgen';
|
|
212
212
|
|
|
213
213
|
// Return AI instance and Agent parameters
|
|
214
214
|
return {
|
package/src/agents/index.ts
CHANGED
|
@@ -161,7 +161,7 @@ class StatefulAxAgent extends AxAgent<any, any> {
|
|
|
161
161
|
this.axai = ai;
|
|
162
162
|
this.agentName = options.name;
|
|
163
163
|
this.agentDefinition = effectiveDefinition;
|
|
164
|
-
this.executionMode = options.executionMode ?? "
|
|
164
|
+
this.executionMode = options.executionMode ?? "axgen";
|
|
165
165
|
this.debugEnabled = debug ?? false;
|
|
166
166
|
this.axGenProgram = new AxGen(options.signature as any, {
|
|
167
167
|
description: effectiveDefinition,
|