@amitdeshmukh/ax-crew 1.0.1 → 1.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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import yaml from 'js-yaml';
|
|
3
|
-
import { PROVIDER_API_KEYS } from '../config/index';
|
|
4
|
-
import { functions as importedFunctions } from '../functions/index';
|
|
5
3
|
import { AxAIAnthropic, AxAIOpenAI, AxAIAzureOpenAI, AxAICohere, AxAIDeepSeek, AxAIGoogleGemini, AxAIGroq, AxAIHuggingFace, AxAIMistral, AxAIOllama, AxAITogether } from '@ax-llm/ax';
|
|
4
|
+
import { PROVIDER_API_KEYS } from '../config/index.js';
|
|
5
|
+
import { functions as importedFunctions } from '../functions/index.js';
|
|
6
6
|
// Define a mapping from provider names to their respective constructors
|
|
7
7
|
const AIConstructors = {
|
|
8
8
|
'anthropic': AxAIAnthropic,
|
package/dist/agents/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v4 as uuidv4 } from 'uuid';
|
|
2
|
-
import { getAgentConfigParams } from './agentConfig';
|
|
3
2
|
import { AxAgent } from '@ax-llm/ax';
|
|
4
|
-
import {
|
|
3
|
+
import { getAgentConfigParams } from './agentConfig.js';
|
|
4
|
+
import { createState } from '../state/createState.js';
|
|
5
5
|
// Extend the AxAgent class to include shared state functionality
|
|
6
6
|
class StatefulAxAgent extends AxAgent {
|
|
7
7
|
constructor(ai, options, state) {
|
package/dist/functions/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import yaml from 'js-yaml';
|
|
3
|
-
import { PROVIDER_API_KEYS } from '../config/index';
|
|
4
|
-
import { functions as importedFunctions } from '../functions/index';
|
|
5
3
|
|
|
6
4
|
import { AxAIAnthropic, AxAIOpenAI, AxAIAzureOpenAI, AxAICohere, AxAIDeepSeek, AxAIGoogleGemini, AxAIGroq, AxAIHuggingFace, AxAIMistral, AxAIOllama, AxAITogether } from '@ax-llm/ax';
|
|
7
5
|
import type { AxAI, AxModelConfig, AxFunction, AxSignature } from '@ax-llm/ax';
|
|
8
6
|
|
|
7
|
+
import { PROVIDER_API_KEYS } from '../config/index.js';
|
|
8
|
+
import { functions as importedFunctions } from '../functions/index.js';
|
|
9
|
+
|
|
9
10
|
// Define a mapping from provider names to their respective constructors
|
|
10
11
|
const AIConstructors: Record<string, any> = {
|
|
11
12
|
'anthropic': AxAIAnthropic,
|
package/src/agents/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { v4 as uuidv4 } from 'uuid';
|
|
2
|
-
import { getAgentConfigParams } from './agentConfig';
|
|
3
2
|
import { AxAgent, AxAI } from '@ax-llm/ax';
|
|
4
|
-
import type { AxSignature, AxAgentic, AxFunction
|
|
5
|
-
import {
|
|
3
|
+
import type { AxSignature, AxAgentic, AxFunction } from '@ax-llm/ax';
|
|
4
|
+
import { getAgentConfigParams } from './agentConfig.js';
|
|
5
|
+
import { createState, StateInstance } from '../state/createState.js';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
// Define interfaces for the agent configurations and return types
|
package/src/functions/index.ts
CHANGED