@aigne/example-workflow-orchestrator 1.3.1 → 1.4.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 CHANGED
@@ -97,8 +97,9 @@ Here is the generated report for this example: [arcblock-deep-research.md](./gen
97
97
 
98
98
  ```typescript
99
99
  import assert from "node:assert";
100
- import { OrchestratorAgent } from "@aigne/agent-library";
101
- import { AIAgent, ExecutionEngine, MCPAgent, OpenAIChatModel } from "@aigne/core";
100
+ import { OrchestratorAgent } from "@aigne/agent-library/orchestrator/index.js";
101
+ import { AIAgent, ExecutionEngine, MCPAgent } from "@aigne/core";
102
+ import { OpenAIChatModel } from "@aigne/core/models/openai-chat-model.js";
102
103
 
103
104
  const { OPENAI_API_KEY } = process.env;
104
105
  assert(OPENAI_API_KEY, "Please set the OPENAI_API_KEY environment variable");
package/index.ts CHANGED
@@ -1,14 +1,10 @@
1
1
  #!/usr/bin/env npx -y bun
2
2
 
3
3
  import assert from "node:assert";
4
- import { OrchestratorAgent } from "@aigne/agent-library";
5
- import {
6
- AIAgent,
7
- ExecutionEngine,
8
- MCPAgent,
9
- OpenAIChatModel,
10
- runChatLoopInTerminal,
11
- } from "@aigne/core";
4
+ import { OrchestratorAgent } from "@aigne/agent-library/orchestrator/index.js";
5
+ import { AIAgent, ExecutionEngine, MCPAgent } from "@aigne/core";
6
+ import { OpenAIChatModel } from "@aigne/core/models/openai-chat-model.js";
7
+ import { runChatLoopInTerminal } from "@aigne/core/utils/run-chat-loop.js";
12
8
 
13
9
  const { OPENAI_API_KEY } = process.env;
14
10
  assert(OPENAI_API_KEY, "Please set the OPENAI_API_KEY environment variable");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/example-workflow-orchestrator",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "A demonstration of using AIGNE Framework to build a orchestrator 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-orchestrator",
@@ -16,10 +16,10 @@
16
16
  "README.md"
17
17
  ],
18
18
  "dependencies": {
19
- "openai": "^4.89.0",
19
+ "openai": "^4.91.1",
20
20
  "zod": "^3.24.2",
21
- "@aigne/agent-library": "^1.3.1",
22
- "@aigne/core": "^1.4.0"
21
+ "@aigne/core": "^1.6.0",
22
+ "@aigne/agent-library": "^1.4.0"
23
23
  },
24
24
  "scripts": {
25
25
  "start": "npx -y bun run index.ts",
package/usage.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import assert from "node:assert";
2
- import { OrchestratorAgent } from "@aigne/agent-library";
3
- import { AIAgent, ExecutionEngine, MCPAgent, OpenAIChatModel } from "@aigne/core";
2
+ import { OrchestratorAgent } from "@aigne/agent-library/orchestrator/index.js";
3
+ import { AIAgent, ExecutionEngine, MCPAgent } from "@aigne/core";
4
+ import { OpenAIChatModel } from "@aigne/core/models/openai-chat-model.js";
4
5
 
5
6
  const { OPENAI_API_KEY } = process.env;
6
7
  assert(OPENAI_API_KEY, "Please set the OPENAI_API_KEY environment variable");