@aigne/example-workflow-concurrency 1.5.0 → 1.6.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 +8 -7
- package/index.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,16 +27,17 @@ class aggregator processing
|
|
|
27
27
|
## Prerequisites
|
|
28
28
|
|
|
29
29
|
- [Node.js](https://nodejs.org) and npm installed on your machine
|
|
30
|
-
- [
|
|
31
|
-
-
|
|
32
|
-
- [
|
|
30
|
+
- An [OpenAI API key](https://platform.openai.com/api-keys) for interacting with OpenAI's services
|
|
31
|
+
- Optional dependencies (if running the example from source code):
|
|
32
|
+
- [Bun](https://bun.sh) for running unit tests & examples
|
|
33
|
+
- [Pnpm](https://pnpm.io) for package management
|
|
33
34
|
|
|
34
|
-
##
|
|
35
|
+
## Quick Start (No Installation Required)
|
|
35
36
|
|
|
36
37
|
```bash
|
|
37
|
-
export OPENAI_API_KEY=YOUR_OPENAI_API_KEY #
|
|
38
|
+
export OPENAI_API_KEY=YOUR_OPENAI_API_KEY # Set your OpenAI API key
|
|
38
39
|
|
|
39
|
-
npx -y @aigne/example-workflow-concurrency #
|
|
40
|
+
npx -y @aigne/example-workflow-concurrency # Run the example
|
|
40
41
|
```
|
|
41
42
|
|
|
42
43
|
## Installation
|
|
@@ -60,7 +61,7 @@ pnpm install
|
|
|
60
61
|
Setup your OpenAI API key in the `.env.local` file:
|
|
61
62
|
|
|
62
63
|
```bash
|
|
63
|
-
OPENAI_API_KEY="" #
|
|
64
|
+
OPENAI_API_KEY="" # Set your OpenAI API key here
|
|
64
65
|
```
|
|
65
66
|
|
|
66
67
|
### Run the Example
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-workflow-concurrency",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "A demonstration of using AIGNE Framework to build a concurrency workflow",
|
|
5
5
|
"author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
|
|
6
6
|
"homepage": "https://github.com/AIGNE-io/aigne-framework/tree/main/examples/workflow-concurrency",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"openai": "^4.94.0",
|
|
20
20
|
"zod": "^3.24.2",
|
|
21
|
-
"@aigne/core": "^1.
|
|
22
|
-
"@aigne/cli": "^1.
|
|
21
|
+
"@aigne/core": "^1.10.0",
|
|
22
|
+
"@aigne/cli": "^1.5.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"start": "bun run index.ts",
|