@agentionai/agents 0.3.1 → 0.4.1
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 +49 -11
- package/dist/agents/Agent.d.ts +1 -1
- package/dist/claude.d.ts +9 -0
- package/dist/claude.js +29 -0
- package/dist/core.d.ts +15 -0
- package/dist/core.js +39 -0
- package/dist/gemini.d.ts +9 -0
- package/dist/gemini.js +30 -0
- package/dist/index.js +8 -0
- package/dist/mistral.d.ts +9 -0
- package/dist/mistral.js +30 -0
- package/dist/openai.d.ts +9 -0
- package/dist/openai.js +30 -0
- package/package.json +27 -1
package/README.md
CHANGED
|
@@ -10,25 +10,38 @@ A comprehensive TypeScript toolkit for building LLM-powered agents with RAG, and
|
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
|
+
### 1. Install
|
|
14
|
+
|
|
15
|
+
Install only what you need with selective imports:
|
|
16
|
+
|
|
13
17
|
```bash
|
|
14
|
-
|
|
18
|
+
# Install core library + Claude SDK
|
|
19
|
+
npm install @agentionai/agents @anthropic-ai/sdk
|
|
15
20
|
```
|
|
16
21
|
|
|
17
|
-
|
|
22
|
+
### 2. Get API Key
|
|
23
|
+
|
|
24
|
+
Get an API key from your chosen provider:
|
|
25
|
+
|
|
26
|
+
- **Claude**: [console.anthropic.com](https://console.anthropic.com/)
|
|
27
|
+
- **OpenAI**: [platform.openai.com](https://platform.openai.com/api-keys)
|
|
28
|
+
- **Gemini**: [aistudio.google.com](https://aistudio.google.com/app/apikey)
|
|
29
|
+
- **Mistral**: [console.mistral.ai](https://console.mistral.ai/)
|
|
30
|
+
|
|
31
|
+
Set it as an environment variable:
|
|
18
32
|
|
|
19
33
|
```bash
|
|
20
|
-
|
|
21
|
-
npm install openai # For OpenAI/GPT
|
|
22
|
-
npm install @google/generative-ai # For Gemini
|
|
23
|
-
npm install @mistralai/mistralai # For Mistral
|
|
34
|
+
export ANTHROPIC_API_KEY=your-key-here
|
|
24
35
|
```
|
|
25
36
|
|
|
26
|
-
###
|
|
37
|
+
### 3. Create Your First Agent
|
|
27
38
|
|
|
28
39
|
```typescript
|
|
29
|
-
|
|
40
|
+
// Import only Claude - no other agent SDKs required!
|
|
41
|
+
import { ClaudeAgent } from '@agentionai/agents/claude';
|
|
30
42
|
|
|
31
43
|
const agent = new ClaudeAgent({
|
|
44
|
+
apiKey: process.env.ANTHROPIC_API_KEY, // Or pass directly (not recommended for production)
|
|
32
45
|
model: 'claude-sonnet-4-5',
|
|
33
46
|
name: 'Assistant',
|
|
34
47
|
description: 'You are a helpful assistant.',
|
|
@@ -38,6 +51,23 @@ const response = await agent.execute('What can you help me with?');
|
|
|
38
51
|
console.log(response);
|
|
39
52
|
```
|
|
40
53
|
|
|
54
|
+
### Selective Imports
|
|
55
|
+
|
|
56
|
+
Import only the agents you need:
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { ClaudeAgent } from '@agentionai/agents/claude'; // Requires @anthropic-ai/sdk
|
|
60
|
+
import { OpenAiAgent } from '@agentionai/agents/openai'; // Requires openai
|
|
61
|
+
import { GeminiAgent } from '@agentionai/agents/gemini'; // Requires @google/generative-ai
|
|
62
|
+
import { MistralAgent } from '@agentionai/agents/mistral'; // Requires @mistralai/mistralai
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Or import everything (requires all SDKs):
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
import { ClaudeAgent, OpenAiAgent } from '@agentionai/agents';
|
|
69
|
+
```
|
|
70
|
+
|
|
41
71
|
|
|
42
72
|
## Features
|
|
43
73
|
|
|
@@ -51,7 +81,7 @@ console.log(response);
|
|
|
51
81
|
### Agent with Tools
|
|
52
82
|
|
|
53
83
|
```typescript
|
|
54
|
-
import { GeminiAgent, Tool } from '@agentionai/agents';
|
|
84
|
+
import { GeminiAgent, Tool } from '@agentionai/agents/gemini';
|
|
55
85
|
|
|
56
86
|
const weatherTool = new Tool({
|
|
57
87
|
name: 'get_weather',
|
|
@@ -74,6 +104,7 @@ const weatherTool = new Tool({
|
|
|
74
104
|
});
|
|
75
105
|
|
|
76
106
|
const agent = new GeminiAgent({
|
|
107
|
+
apiKey: process.env.GEMINI_API_KEY,
|
|
77
108
|
model: 'gemini-flash-lite-latest',
|
|
78
109
|
name: 'Weather Agent',
|
|
79
110
|
description: 'You are a weather assistant.',
|
|
@@ -88,9 +119,12 @@ const response = await agent.execute("What's the weather in Paris?");
|
|
|
88
119
|
Chain agents together with different providers and models:
|
|
89
120
|
|
|
90
121
|
```typescript
|
|
91
|
-
import { ClaudeAgent
|
|
122
|
+
import { ClaudeAgent } from '@agentionai/agents/claude';
|
|
123
|
+
import { OpenAiAgent } from '@agentionai/agents/openai';
|
|
124
|
+
import { Pipeline } from '@agentionai/agents/core';
|
|
92
125
|
|
|
93
126
|
const researcher = new OpenAiAgent({
|
|
127
|
+
apiKey: process.env.OPENAI_API_KEY,
|
|
94
128
|
id: 'researcher',
|
|
95
129
|
name: 'Researcher',
|
|
96
130
|
description: 'Research the given topic and provide key facts.',
|
|
@@ -99,6 +133,7 @@ const researcher = new OpenAiAgent({
|
|
|
99
133
|
});
|
|
100
134
|
|
|
101
135
|
const writer = new ClaudeAgent({
|
|
136
|
+
apiKey: process.env.ANTHROPIC_API_KEY,
|
|
102
137
|
id: 'writer',
|
|
103
138
|
name: 'Writer',
|
|
104
139
|
description: 'Write a blog post based on the research provided.',
|
|
@@ -114,10 +149,12 @@ const result = await pipeline.execute('Renewable energy trends in 2024');
|
|
|
114
149
|
Use agents as tools for hierarchical workflows:
|
|
115
150
|
|
|
116
151
|
```typescript
|
|
117
|
-
import { ClaudeAgent
|
|
152
|
+
import { ClaudeAgent } from '@agentionai/agents/claude';
|
|
153
|
+
import { OpenAiAgent } from '@agentionai/agents/openai';
|
|
118
154
|
|
|
119
155
|
// Research assistant (cheaper model for data gathering)
|
|
120
156
|
const researchAssistant = new OpenAiAgent({
|
|
157
|
+
apiKey: process.env.OPENAI_API_KEY,
|
|
121
158
|
id: 'research-assistant',
|
|
122
159
|
name: 'Research Assistant',
|
|
123
160
|
description: 'Search and summarize information on topics.',
|
|
@@ -127,6 +164,7 @@ const researchAssistant = new OpenAiAgent({
|
|
|
127
164
|
|
|
128
165
|
// Lead researcher delegates to assistant, synthesizes findings
|
|
129
166
|
const researcher = new ClaudeAgent({
|
|
167
|
+
apiKey: process.env.ANTHROPIC_API_KEY,
|
|
130
168
|
id: 'researcher',
|
|
131
169
|
name: 'Lead Researcher',
|
|
132
170
|
description: 'Research topics thoroughly using your assistant.',
|
package/dist/agents/Agent.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ type MistralAgentConfig = Omit<BaseAgentConfig, "vendor" | "model"> & {
|
|
|
23
23
|
};
|
|
24
24
|
type AgentConfig = ClaudeAgentConfig | OpenAIAgentConfig | GeminiAgentConfig | MistralAgentConfig;
|
|
25
25
|
export declare class Agent {
|
|
26
|
-
static create(config: AgentConfig, history?: History): ClaudeAgent | OpenAiAgent |
|
|
26
|
+
static create(config: AgentConfig, history?: History): ClaudeAgent | OpenAiAgent | GeminiAgent | MistralAgent;
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
29
29
|
//# sourceMappingURL=Agent.d.ts.map
|
package/dist/claude.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./agents/BaseAgent";
|
|
2
|
+
export * from "./agents/anthropic/ClaudeAgent";
|
|
3
|
+
export * from "./agents/model-types";
|
|
4
|
+
export { anthropicTransformer } from "./history/transformers";
|
|
5
|
+
export * from "./history/History";
|
|
6
|
+
export * from "./history/types";
|
|
7
|
+
export * from "./tools/Tool";
|
|
8
|
+
export * from "./graph/AgentGraph";
|
|
9
|
+
//# sourceMappingURL=claude.d.ts.map
|
package/dist/claude.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.anthropicTransformer = void 0;
|
|
18
|
+
// Claude Agent Entry Point
|
|
19
|
+
__exportStar(require("./agents/BaseAgent"), exports);
|
|
20
|
+
__exportStar(require("./agents/anthropic/ClaudeAgent"), exports);
|
|
21
|
+
__exportStar(require("./agents/model-types"), exports);
|
|
22
|
+
var transformers_1 = require("./history/transformers");
|
|
23
|
+
Object.defineProperty(exports, "anthropicTransformer", { enumerable: true, get: function () { return transformers_1.anthropicTransformer; } });
|
|
24
|
+
// Re-export core functionality
|
|
25
|
+
__exportStar(require("./history/History"), exports);
|
|
26
|
+
__exportStar(require("./history/types"), exports);
|
|
27
|
+
__exportStar(require("./tools/Tool"), exports);
|
|
28
|
+
__exportStar(require("./graph/AgentGraph"), exports);
|
|
29
|
+
//# sourceMappingURL=claude.js.map
|
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./agents/BaseAgent";
|
|
2
|
+
export * from "./agents/Agent";
|
|
3
|
+
export * from "./agents/model-types";
|
|
4
|
+
export * from "./agents/AgentConfig";
|
|
5
|
+
export * from "./agents/AgentEvent";
|
|
6
|
+
export * from "./agents/errors/AgentError";
|
|
7
|
+
export * from "./history/History";
|
|
8
|
+
export * from "./history/types";
|
|
9
|
+
export * from "./graph/AgentGraph";
|
|
10
|
+
export * from "./tools/Tool";
|
|
11
|
+
export * from "./viz";
|
|
12
|
+
export * from "./vectorstore";
|
|
13
|
+
export * from "./chunkers";
|
|
14
|
+
export * from "./ingestion";
|
|
15
|
+
//# sourceMappingURL=core.d.ts.map
|
package/dist/core.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Core functionality without any agent implementations
|
|
18
|
+
__exportStar(require("./agents/BaseAgent"), exports);
|
|
19
|
+
__exportStar(require("./agents/Agent"), exports);
|
|
20
|
+
__exportStar(require("./agents/model-types"), exports);
|
|
21
|
+
__exportStar(require("./agents/AgentConfig"), exports);
|
|
22
|
+
__exportStar(require("./agents/AgentEvent"), exports);
|
|
23
|
+
__exportStar(require("./agents/errors/AgentError"), exports);
|
|
24
|
+
// History
|
|
25
|
+
__exportStar(require("./history/History"), exports);
|
|
26
|
+
__exportStar(require("./history/types"), exports);
|
|
27
|
+
// Graph
|
|
28
|
+
__exportStar(require("./graph/AgentGraph"), exports);
|
|
29
|
+
// Tools
|
|
30
|
+
__exportStar(require("./tools/Tool"), exports);
|
|
31
|
+
// Visualization
|
|
32
|
+
__exportStar(require("./viz"), exports);
|
|
33
|
+
// Vector Store
|
|
34
|
+
__exportStar(require("./vectorstore"), exports);
|
|
35
|
+
// Chunkers
|
|
36
|
+
__exportStar(require("./chunkers"), exports);
|
|
37
|
+
// Ingestion
|
|
38
|
+
__exportStar(require("./ingestion"), exports);
|
|
39
|
+
//# sourceMappingURL=core.js.map
|
package/dist/gemini.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./agents/BaseAgent";
|
|
2
|
+
export { GeminiAgent } from "./agents/google/GeminiAgent";
|
|
3
|
+
export * from "./agents/model-types";
|
|
4
|
+
export { geminiTransformer } from "./history/transformers";
|
|
5
|
+
export * from "./history/History";
|
|
6
|
+
export * from "./history/types";
|
|
7
|
+
export * from "./tools/Tool";
|
|
8
|
+
export * from "./graph/AgentGraph";
|
|
9
|
+
//# sourceMappingURL=gemini.d.ts.map
|
package/dist/gemini.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.geminiTransformer = exports.GeminiAgent = void 0;
|
|
18
|
+
// Gemini Agent Entry Point
|
|
19
|
+
__exportStar(require("./agents/BaseAgent"), exports);
|
|
20
|
+
var GeminiAgent_1 = require("./agents/google/GeminiAgent");
|
|
21
|
+
Object.defineProperty(exports, "GeminiAgent", { enumerable: true, get: function () { return GeminiAgent_1.GeminiAgent; } });
|
|
22
|
+
__exportStar(require("./agents/model-types"), exports);
|
|
23
|
+
var transformers_1 = require("./history/transformers");
|
|
24
|
+
Object.defineProperty(exports, "geminiTransformer", { enumerable: true, get: function () { return transformers_1.geminiTransformer; } });
|
|
25
|
+
// Re-export core functionality
|
|
26
|
+
__exportStar(require("./history/History"), exports);
|
|
27
|
+
__exportStar(require("./history/types"), exports);
|
|
28
|
+
__exportStar(require("./tools/Tool"), exports);
|
|
29
|
+
__exportStar(require("./graph/AgentGraph"), exports);
|
|
30
|
+
//# sourceMappingURL=gemini.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Main index - exports all agents (requires all peer dependencies)
|
|
3
|
+
// For selective imports, use sub-paths:
|
|
4
|
+
// import { ClaudeAgent } from "@agentionai/agents/claude";
|
|
5
|
+
// import { OpenAiAgent } from "@agentionai/agents/openai";
|
|
6
|
+
// import { MistralAgent } from "@agentionai/agents/mistral";
|
|
7
|
+
// import { GeminiAgent } from "@agentionai/agents/gemini";
|
|
8
|
+
// Or use core-only imports:
|
|
9
|
+
// import { BaseAgent } from "@agentionai/agents/core";
|
|
2
10
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
11
|
if (k2 === undefined) k2 = k;
|
|
4
12
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./agents/BaseAgent";
|
|
2
|
+
export { MistralAgent } from "./agents/mistral/MistralAgent";
|
|
3
|
+
export * from "./agents/model-types";
|
|
4
|
+
export { mistralTransformer } from "./history/transformers";
|
|
5
|
+
export * from "./history/History";
|
|
6
|
+
export * from "./history/types";
|
|
7
|
+
export * from "./tools/Tool";
|
|
8
|
+
export * from "./graph/AgentGraph";
|
|
9
|
+
//# sourceMappingURL=mistral.d.ts.map
|
package/dist/mistral.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.mistralTransformer = exports.MistralAgent = void 0;
|
|
18
|
+
// Mistral Agent Entry Point
|
|
19
|
+
__exportStar(require("./agents/BaseAgent"), exports);
|
|
20
|
+
var MistralAgent_1 = require("./agents/mistral/MistralAgent");
|
|
21
|
+
Object.defineProperty(exports, "MistralAgent", { enumerable: true, get: function () { return MistralAgent_1.MistralAgent; } });
|
|
22
|
+
__exportStar(require("./agents/model-types"), exports);
|
|
23
|
+
var transformers_1 = require("./history/transformers");
|
|
24
|
+
Object.defineProperty(exports, "mistralTransformer", { enumerable: true, get: function () { return transformers_1.mistralTransformer; } });
|
|
25
|
+
// Re-export core functionality
|
|
26
|
+
__exportStar(require("./history/History"), exports);
|
|
27
|
+
__exportStar(require("./history/types"), exports);
|
|
28
|
+
__exportStar(require("./tools/Tool"), exports);
|
|
29
|
+
__exportStar(require("./graph/AgentGraph"), exports);
|
|
30
|
+
//# sourceMappingURL=mistral.js.map
|
package/dist/openai.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./agents/BaseAgent";
|
|
2
|
+
export { OpenAiAgent } from "./agents/openai/OpenAiAgent";
|
|
3
|
+
export * from "./agents/model-types";
|
|
4
|
+
export { openAiTransformer } from "./history/transformers";
|
|
5
|
+
export * from "./history/History";
|
|
6
|
+
export * from "./history/types";
|
|
7
|
+
export * from "./tools/Tool";
|
|
8
|
+
export * from "./graph/AgentGraph";
|
|
9
|
+
//# sourceMappingURL=openai.d.ts.map
|
package/dist/openai.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.openAiTransformer = exports.OpenAiAgent = void 0;
|
|
18
|
+
// OpenAI Agent Entry Point
|
|
19
|
+
__exportStar(require("./agents/BaseAgent"), exports);
|
|
20
|
+
var OpenAiAgent_1 = require("./agents/openai/OpenAiAgent");
|
|
21
|
+
Object.defineProperty(exports, "OpenAiAgent", { enumerable: true, get: function () { return OpenAiAgent_1.OpenAiAgent; } });
|
|
22
|
+
__exportStar(require("./agents/model-types"), exports);
|
|
23
|
+
var transformers_1 = require("./history/transformers");
|
|
24
|
+
Object.defineProperty(exports, "openAiTransformer", { enumerable: true, get: function () { return transformers_1.openAiTransformer; } });
|
|
25
|
+
// Re-export core functionality
|
|
26
|
+
__exportStar(require("./history/History"), exports);
|
|
27
|
+
__exportStar(require("./history/types"), exports);
|
|
28
|
+
__exportStar(require("./tools/Tool"), exports);
|
|
29
|
+
__exportStar(require("./graph/AgentGraph"), exports);
|
|
30
|
+
//# sourceMappingURL=openai.js.map
|
package/package.json
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentionai/agents",
|
|
3
3
|
"author": "Laurent Zuijdwijk",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"description": "Agent Library",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./core": {
|
|
14
|
+
"types": "./dist/core.d.ts",
|
|
15
|
+
"default": "./dist/core.js"
|
|
16
|
+
},
|
|
17
|
+
"./claude": {
|
|
18
|
+
"types": "./dist/claude.d.ts",
|
|
19
|
+
"default": "./dist/claude.js"
|
|
20
|
+
},
|
|
21
|
+
"./openai": {
|
|
22
|
+
"types": "./dist/openai.d.ts",
|
|
23
|
+
"default": "./dist/openai.js"
|
|
24
|
+
},
|
|
25
|
+
"./mistral": {
|
|
26
|
+
"types": "./dist/mistral.d.ts",
|
|
27
|
+
"default": "./dist/mistral.js"
|
|
28
|
+
},
|
|
29
|
+
"./gemini": {
|
|
30
|
+
"types": "./dist/gemini.d.ts",
|
|
31
|
+
"default": "./dist/gemini.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
8
34
|
"files": [
|
|
9
35
|
"dist/**/*.js",
|
|
10
36
|
"dist/**/*.d.ts",
|