@aigne/example-workflow-router 1.12.0 → 1.13.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.
Files changed (2) hide show
  1. package/index.ts +4 -3
  2. package/package.json +6 -5
package/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bunwrapper
2
2
 
3
+ import { DefaultMemory } from "@aigne/agent-library/default-memory/index.js";
3
4
  import { runWithAIGNE } from "@aigne/cli/utils/run-with-aigne.js";
4
5
  import { AIAgent, AIAgentToolChoice } from "@aigne/core";
5
6
 
@@ -9,7 +10,7 @@ const productSupport = AIAgent.from({
9
10
  instructions: `You are an agent capable of handling any product-related questions.
10
11
  Your goal is to provide accurate and helpful information about the product.
11
12
  Be polite, professional, and ensure the user feels supported.`,
12
- memory: true,
13
+ memory: new DefaultMemory(),
13
14
  });
14
15
 
15
16
  const feedback = AIAgent.from({
@@ -18,7 +19,7 @@ const feedback = AIAgent.from({
18
19
  instructions: `You are an agent capable of handling any feedback-related questions.
19
20
  Your goal is to listen to the user's feedback, acknowledge their input, and provide appropriate responses.
20
21
  Be empathetic, understanding, and ensure the user feels heard.`,
21
- memory: true,
22
+ memory: new DefaultMemory(),
22
23
  });
23
24
 
24
25
  const other = AIAgent.from({
@@ -27,7 +28,7 @@ const other = AIAgent.from({
27
28
  instructions: `You are an agent capable of handling any general questions.
28
29
  Your goal is to provide accurate and helpful information on a wide range of topics.
29
30
  Be friendly, knowledgeable, and ensure the user feels satisfied with the information provided.`,
30
- memory: true,
31
+ memory: new DefaultMemory(),
31
32
  });
32
33
 
33
34
  const triage = AIAgent.from({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/example-workflow-router",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "A demonstration of using AIGNE Framework to build a router 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-router",
@@ -16,13 +16,14 @@
16
16
  "README.md"
17
17
  ],
18
18
  "dependencies": {
19
- "@aigne/cli": "^1.10.0",
20
- "@aigne/core": "^1.16.0",
21
- "@aigne/openai": "^0.1.0"
19
+ "@aigne/openai": "^0.2.1",
20
+ "@aigne/core": "^1.18.0",
21
+ "@aigne/cli": "^1.11.0",
22
+ "@aigne/agent-library": "^1.12.0"
22
23
  },
23
24
  "devDependencies": {
24
25
  "@types/bun": "^1.2.9",
25
- "@aigne/test-utils": "^0.3.0"
26
+ "@aigne/test-utils": "^0.3.2"
26
27
  },
27
28
  "scripts": {
28
29
  "start": "bun run index.ts",