@aigne/example-workflow-orchestrator 1.10.10 → 1.10.12

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.
Files changed (3) hide show
  1. package/index.ts +2 -0
  2. package/package.json +6 -6
  3. package/usage.ts +5 -5
package/index.ts CHANGED
@@ -45,12 +45,14 @@ const agent = OrchestratorAgent.from({
45
45
  skills: [finder, writer],
46
46
  maxIterations: 3,
47
47
  tasksConcurrency: 1, // puppeteer can only run one task at a time
48
+ inputKey: "message",
48
49
  });
49
50
 
50
51
  await runWithAIGNE(agent, {
51
52
  modelOptions: { parallelToolCalls: false },
52
53
  chatLoopOptions: {
53
54
  welcome: "Welcome to the Orchestrator Agent!",
55
+ inputKey: "message",
54
56
  defaultQuestion: `\
55
57
  Conduct an in-depth research on ArcBlock using only the official website\
56
58
  (avoid search engines or third-party sources) and compile a detailed report saved as arcblock.md. \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/example-workflow-orchestrator",
3
- "version": "1.10.10",
3
+ "version": "1.10.12",
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,14 +16,14 @@
16
16
  "README.md"
17
17
  ],
18
18
  "dependencies": {
19
- "@aigne/agent-library": "^1.13.0",
20
- "@aigne/core": "^1.19.0",
21
- "@aigne/openai": "^0.3.0",
22
- "@aigne/cli": "^1.11.7"
19
+ "@aigne/agent-library": "^1.13.2",
20
+ "@aigne/cli": "^1.11.9",
21
+ "@aigne/openai": "^0.3.2",
22
+ "@aigne/core": "^1.20.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/bun": "^1.2.9",
26
- "@aigne/test-utils": "^0.4.0"
26
+ "@aigne/test-utils": "^0.4.2"
27
27
  },
28
28
  "scripts": {
29
29
  "start": "bun run index.ts",
package/usage.ts CHANGED
@@ -54,20 +54,20 @@ const agent = OrchestratorAgent.from({
54
54
  skills: [finder, writer],
55
55
  maxIterations: 3,
56
56
  tasksConcurrency: 1, // puppeteer can only run one task at a time
57
+ inputKey: "message",
57
58
  });
58
59
 
59
60
  const aigne = new AIGNE({ model });
60
61
 
61
- const result = await aigne.invoke(
62
- agent,
63
- `\
62
+ const result = await aigne.invoke(agent, {
63
+ message: `\
64
64
  Conduct an in-depth research on ArcBlock using only the official website\
65
65
  (avoid search engines or third-party sources) and compile a detailed report saved as arcblock.md. \
66
66
  The report should include comprehensive insights into the company's products \
67
67
  (with detailed research findings and links), technical architecture, and future plans.`,
68
- );
68
+ });
69
69
  console.log(result);
70
70
  // Output:
71
71
  // {
72
- // $message: "The objective of conducting in-depth research on ArcBlock using only the official website has been successfully completed...",
72
+ // message: "The objective of conducting in-depth research on ArcBlock using only the official website has been successfully completed...",
73
73
  // }