@agentionai/agents 0.13.0 → 1.0.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 +38 -1
- package/dist/agents/AgentConfig.d.ts +10 -0
- package/dist/agents/AgentEvent.d.ts +2 -0
- package/dist/agents/AgentEvent.js +2 -0
- package/dist/agents/anthropic/ClaudeAgent.d.ts +54 -0
- package/dist/agents/anthropic/ClaudeAgent.js +235 -27
- package/dist/agents/google/GeminiAgent.js +2 -1
- package/dist/agents/llamacpp/LlamaCppAgent.d.ts +6 -29
- package/dist/agents/llamacpp/LlamaCppAgent.js +9 -227
- package/dist/agents/openai/OpenAiAgent.d.ts +15 -0
- package/dist/agents/openai/OpenAiAgent.js +150 -0
- package/dist/agents/openai-compatible/OpenAICompatibleAgent.d.ts +75 -0
- package/dist/agents/openai-compatible/OpenAICompatibleAgent.js +440 -0
- package/dist/history/History.d.ts +2 -2
- package/dist/history/History.js +3 -1
- package/dist/history/index.d.ts +2 -2
- package/dist/history/index.js +3 -1
- package/dist/history/transformers.js +20 -1
- package/dist/history/types.d.ts +20 -1
- package/dist/history/types.js +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/ingestion/IngestionPipeline.js +1 -1
- package/dist/llamacpp.d.ts +2 -0
- package/dist/llamacpp.js +4 -2
- package/dist/team/Team.js +1 -10
- package/dist/vectorstore/LanceDBVectorStore.js +0 -1
- package/package.json +4 -7
package/dist/llamacpp.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./core";
|
|
2
2
|
export { LlamaCppAgent } from "./agents/llamacpp/LlamaCppAgent";
|
|
3
|
+
export { OpenAICompatibleAgent } from "./agents/openai-compatible/OpenAICompatibleAgent";
|
|
4
|
+
export type { OpenAICompatibleConfig, StreamChunk } from "./agents/openai-compatible/OpenAICompatibleAgent";
|
|
3
5
|
export { chatCompletionsTransformer } from "./history/transformers";
|
|
4
6
|
//# sourceMappingURL=llamacpp.d.ts.map
|
package/dist/llamacpp.js
CHANGED
|
@@ -14,11 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.chatCompletionsTransformer = exports.LlamaCppAgent = void 0;
|
|
18
|
-
// llama.cpp Agent Entry Point
|
|
17
|
+
exports.chatCompletionsTransformer = exports.OpenAICompatibleAgent = exports.LlamaCppAgent = void 0;
|
|
18
|
+
// llama.cpp / OpenAI-compatible Agent Entry Point
|
|
19
19
|
__exportStar(require("./core"), exports);
|
|
20
20
|
var LlamaCppAgent_1 = require("./agents/llamacpp/LlamaCppAgent");
|
|
21
21
|
Object.defineProperty(exports, "LlamaCppAgent", { enumerable: true, get: function () { return LlamaCppAgent_1.LlamaCppAgent; } });
|
|
22
|
+
var OpenAICompatibleAgent_1 = require("./agents/openai-compatible/OpenAICompatibleAgent");
|
|
23
|
+
Object.defineProperty(exports, "OpenAICompatibleAgent", { enumerable: true, get: function () { return OpenAICompatibleAgent_1.OpenAICompatibleAgent; } });
|
|
22
24
|
var transformers_1 = require("./history/transformers");
|
|
23
25
|
Object.defineProperty(exports, "chatCompletionsTransformer", { enumerable: true, get: function () { return transformers_1.chatCompletionsTransformer; } });
|
|
24
26
|
//# sourceMappingURL=llamacpp.js.map
|
package/dist/team/Team.js
CHANGED
|
@@ -71,16 +71,7 @@ class Team extends node_events_1.default {
|
|
|
71
71
|
* @returns The result from the lead agent
|
|
72
72
|
*/
|
|
73
73
|
async execute(input) {
|
|
74
|
-
|
|
75
|
-
try {
|
|
76
|
-
const result = await this.leadAgent.execute(input);
|
|
77
|
-
// this.emit("teamTaskCompleted", { input, result, teamName: this.name });
|
|
78
|
-
return result;
|
|
79
|
-
}
|
|
80
|
-
catch (error) {
|
|
81
|
-
// this.emit("teamTaskError", { input, error, teamName: this.name });
|
|
82
|
-
throw error;
|
|
83
|
-
}
|
|
74
|
+
return this.leadAgent.execute(input);
|
|
84
75
|
}
|
|
85
76
|
/**
|
|
86
77
|
* Get the lead agent
|
|
@@ -53,7 +53,6 @@ const CHUNK_METADATA_KEYS = [
|
|
|
53
53
|
"start", "end", "source_id", "source_path",
|
|
54
54
|
"char_count", "token_count", "hash", "section", "page",
|
|
55
55
|
];
|
|
56
|
-
const CHUNK_METADATA_KEY_SET = new Set(CHUNK_METADATA_KEYS);
|
|
57
56
|
/**
|
|
58
57
|
* LanceDB implementation of the VectorStore interface.
|
|
59
58
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentionai/agents",
|
|
3
3
|
"author": "Laurent Zuijdwijk",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"description": "Agent Library",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"test": "jest",
|
|
88
88
|
"test:watch": "jest --watch",
|
|
89
89
|
"lint": "eslint 'lib/**/*.{js,ts}'",
|
|
90
|
-
"lint:fix": "eslint '
|
|
91
|
-
"format": "prettier --write '
|
|
90
|
+
"lint:fix": "eslint 'lib/**/*.{js,ts}' --fix",
|
|
91
|
+
"format": "prettier --write 'lib/**/*.{js,ts,json,md}'",
|
|
92
92
|
"prepare": "npm run build",
|
|
93
93
|
"example": "tsx",
|
|
94
94
|
"example:watch": "nodemon --watch examples --watch src --ext ts --exec 'ts-node --project tsconfig.esm.json' examples/index.ts",
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
"publish:all": "npm run publish:npm && npm run publish:github"
|
|
103
103
|
},
|
|
104
104
|
"overrides": {
|
|
105
|
-
"ajv": "^8.17.1",
|
|
106
105
|
"whatwg-url": "^14.0.0"
|
|
107
106
|
},
|
|
108
107
|
"devDependencies": {
|
|
@@ -116,12 +115,10 @@
|
|
|
116
115
|
"@mistralai/mistralai": "^1.13.0",
|
|
117
116
|
"@types/jest": "^29.5.0",
|
|
118
117
|
"@types/node": "^18.15.11",
|
|
119
|
-
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
|
120
|
-
"@typescript-eslint/parser": "^5.57.1",
|
|
121
118
|
"apache-arrow": "^18.1.0",
|
|
122
119
|
"babel-jest": "^29.7.0",
|
|
123
120
|
"docdash": "^2.0.2",
|
|
124
|
-
"eslint": "^
|
|
121
|
+
"eslint": "^9.23.0",
|
|
125
122
|
"eslint-config-prettier": "^8.8.0",
|
|
126
123
|
"eslint-plugin-prettier": "^4.2.1",
|
|
127
124
|
"globals": "^16.0.0",
|