@aigne/example-workflow-group-chat 1.18.4 → 1.18.5-beta.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 +14 -25
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -49,9 +49,9 @@ class illustrator processing
|
|
|
49
49
|
|
|
50
50
|
## Quick Start (No Installation Required)
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
export OPENAI_API_KEY=YOUR_OPENAI_API_KEY # Set your OpenAI API key
|
|
52
|
+
### Run the Example
|
|
54
53
|
|
|
54
|
+
```bash
|
|
55
55
|
# Run in one-shot mode (default)
|
|
56
56
|
npx -y @aigne/example-workflow-group-chat
|
|
57
57
|
|
|
@@ -62,6 +62,18 @@ npx -y @aigne/example-workflow-group-chat --chat
|
|
|
62
62
|
echo "Write a short story about space exploration" | npx -y @aigne/example-workflow-group-chat
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
+
### Debugging
|
|
66
|
+
|
|
67
|
+
The `aigne observe` command starts a local web server to monitor and analyze agent execution data. It provides a user-friendly interface to inspect traces, view detailed call information, and understand your agent’s behavior during runtime. This tool is essential for debugging, performance tuning, and gaining insight into how your agent processes information and interacts with tools and models.
|
|
68
|
+
|
|
69
|
+
Start the observation server.
|
|
70
|
+
|
|
71
|
+

|
|
72
|
+
|
|
73
|
+
View a list of recent executions.
|
|
74
|
+
|
|
75
|
+

|
|
76
|
+
|
|
65
77
|
## Installation
|
|
66
78
|
|
|
67
79
|
### Clone the Repository
|
|
@@ -78,29 +90,6 @@ cd aigne-framework/examples/workflow-group-chat
|
|
|
78
90
|
pnpm install
|
|
79
91
|
```
|
|
80
92
|
|
|
81
|
-
### Setup Environment Variables
|
|
82
|
-
|
|
83
|
-
Setup your OpenAI API key in the `.env.local` file:
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
OPENAI_API_KEY="" # Set your OpenAI API key here
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
#### Using Different Models
|
|
90
|
-
|
|
91
|
-
You can use different AI models by setting the `MODEL` environment variable along with the corresponding API key. The framework supports multiple providers:
|
|
92
|
-
|
|
93
|
-
* **OpenAI**: `MODEL="openai:gpt-4.1"` with `OPENAI_API_KEY`
|
|
94
|
-
* **Anthropic**: `MODEL="anthropic:claude-3-7-sonnet-latest"` with `ANTHROPIC_API_KEY`
|
|
95
|
-
* **Google Gemini**: `MODEL="gemini:gemini-2.0-flash"` with `GEMINI_API_KEY`
|
|
96
|
-
* **AWS Bedrock**: `MODEL="bedrock:us.amazon.nova-premier-v1:0"` with AWS credentials
|
|
97
|
-
* **DeepSeek**: `MODEL="deepseek:deepseek-chat"` with `DEEPSEEK_API_KEY`
|
|
98
|
-
* **OpenRouter**: `MODEL="openrouter:openai/gpt-4o"` with `OPEN_ROUTER_API_KEY`
|
|
99
|
-
* **xAI**: `MODEL="xai:grok-2-latest"` with `XAI_API_KEY`
|
|
100
|
-
* **Ollama**: `MODEL="ollama:llama3.2"` with `OLLAMA_DEFAULT_BASE_URL`
|
|
101
|
-
|
|
102
|
-
For detailed configuration examples, please refer to the `.env.local.example` file in this directory.
|
|
103
|
-
|
|
104
93
|
### Run the Example
|
|
105
94
|
|
|
106
95
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-workflow-group-chat",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.5-beta.1",
|
|
4
4
|
"description": "A demonstration of using AIGNE Framework to build a group chat 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-group-chat",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"inquirer": "^12.9.6",
|
|
20
20
|
"zod": "^3.25.67",
|
|
21
|
-
"@aigne/
|
|
22
|
-
"@aigne/
|
|
23
|
-
"@aigne/
|
|
24
|
-
"@aigne/
|
|
25
|
-
"@aigne/
|
|
21
|
+
"@aigne/cli": "^1.58.0-beta.1",
|
|
22
|
+
"@aigne/agent-library": "^1.23.0-beta.1",
|
|
23
|
+
"@aigne/core": "^1.71.0-beta.1",
|
|
24
|
+
"@aigne/default-memory": "^1.3.5-beta.1",
|
|
25
|
+
"@aigne/openai": "^0.16.15-beta.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/bun": "^1.2.22",
|
|
29
|
-
"@aigne/test-utils": "^0.5.
|
|
29
|
+
"@aigne/test-utils": "^0.5.68-beta.1"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"start": "bun run index.ts",
|