@aigne/example-workflow-reflection 1.11.7 → 1.11.9

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/usages.ts +4 -1
package/index.ts CHANGED
@@ -32,6 +32,7 @@ User's question:
32
32
  outputSchema: z.object({
33
33
  code: z.string().describe("Your code"),
34
34
  }),
35
+ inputKey: "message",
35
36
  });
36
37
 
37
38
  const reviewer = AIAgent.from({
@@ -78,6 +79,7 @@ await runWithAIGNE(
78
79
  },
79
80
  {
80
81
  chatLoopOptions: {
82
+ inputKey: "message",
81
83
  welcome: `Hello, I'm a coder with a reviewer. I can help you write code and get it reviewed.`,
82
84
  defaultQuestion: "Write a function to find the sum of all even numbers in a list.",
83
85
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/example-workflow-reflection",
3
- "version": "1.11.7",
3
+ "version": "1.11.9",
4
4
  "description": "A demonstration of using AIGNE Framework to build a reflection 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-reflection",
@@ -17,14 +17,14 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "zod": "^3.24.4",
20
- "@aigne/agent-library": "^1.13.0",
21
- "@aigne/cli": "^1.11.7",
22
- "@aigne/core": "^1.19.0",
23
- "@aigne/openai": "^0.3.0"
20
+ "@aigne/agent-library": "^1.13.2",
21
+ "@aigne/core": "^1.20.1",
22
+ "@aigne/cli": "^1.11.9",
23
+ "@aigne/openai": "^0.3.2"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/bun": "^1.2.9",
27
- "@aigne/test-utils": "^0.4.0"
27
+ "@aigne/test-utils": "^0.4.2"
28
28
  },
29
29
  "scripts": {
30
30
  "start": "bun run index.ts",
package/usages.ts CHANGED
@@ -37,6 +37,7 @@ User's question:
37
37
  outputSchema: z.object({
38
38
  code: z.string().describe("Your code"),
39
39
  }),
40
+ inputKey: "message",
40
41
  });
41
42
 
42
43
  const reviewer = AIAgent.from({
@@ -69,7 +70,9 @@ Please review the code. If previous feedback was provided, see if it was address
69
70
  });
70
71
 
71
72
  const aigne = new AIGNE({ model, agents: [coder, reviewer] });
72
- aigne.publish(UserInputTopic, "Write a function to find the sum of all even numbers in a list.");
73
+ aigne.publish(UserInputTopic, {
74
+ message: "Write a function to find the sum of all even numbers in a list.",
75
+ });
73
76
 
74
77
  const { message } = await aigne.subscribe(UserOutputTopic);
75
78
  console.log(message);