@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,
@@ -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 { createState } from '../state/createState';
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) {
@@ -1,4 +1,4 @@
1
- import { CurrentDateTime, DaysBetweenDates } from './dateTime';
1
+ import { CurrentDateTime, DaysBetweenDates } from './dateTime.js';
2
2
  const functions = {
3
3
  CurrentDateTime,
4
4
  DaysBetweenDates
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@amitdeshmukh/ax-crew",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "description": "Build and launch a crew of AI agents with shared state. Built with axllm.dev",
6
6
  "main": "dist/index.js",
7
7
  "engines": {
@@ -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,
@@ -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, AxAIService } from '@ax-llm/ax';
5
- import { createState, StateInstance } from '../state/createState';
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
@@ -1,4 +1,4 @@
1
- import { CurrentDateTime, DaysBetweenDates } from './dateTime';
1
+ import { CurrentDateTime, DaysBetweenDates } from './dateTime.js';
2
2
 
3
3
  const functions = {
4
4
  CurrentDateTime,