@aigne/example-workflow-handoff 1.1.0-beta.12 → 1.1.0-beta.13

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/README.md +38 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,6 +2,44 @@
2
2
 
3
3
  This is a demonstration of using [AIGNE Framework](https://github.com/AIGNE-io/aigne-framework) to build a handoff workflow.
4
4
 
5
+ ```mermaid
6
+ flowchart LR
7
+
8
+ in(In)
9
+ out(Out)
10
+ agentA(Agent A)
11
+ agentB(Agent B)
12
+
13
+ in --> agentA --transfer to b--> agentB --> out
14
+
15
+ classDef inputOutput fill:#f9f0ed,stroke:#debbae,stroke-width:2px,color:#b35b39,font-weight:bolder;
16
+ classDef processing fill:#F0F4EB,stroke:#C2D7A7,stroke-width:2px,color:#6B8F3C,font-weight:bolder;
17
+
18
+ class in inputOutput
19
+ class out inputOutput
20
+ class agentA processing
21
+ class agentB processing
22
+ ```
23
+
24
+ Workflow of a handoff between user and two agents:
25
+
26
+
27
+ ```mermaid
28
+ sequenceDiagram
29
+
30
+ participant User
31
+ participant A as Agent A
32
+ participant B as Agent B
33
+
34
+ User ->> A: transfer to agent b
35
+ A ->> B: transfer to agent b
36
+ B ->> User: What do you need, friend?
37
+ loop
38
+ User ->> B: It's a beautiful day
39
+ B ->> User: Sunshine warms the earth,<br />Gentle breeze whispers softly,<br />Nature sings with joy.
40
+ end
41
+ ```
42
+
5
43
  ## Prerequisites
6
44
 
7
45
  - [Node.js](https://nodejs.org) and npm installed on your machine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/example-workflow-handoff",
3
- "version": "1.1.0-beta.12",
3
+ "version": "1.1.0-beta.13",
4
4
  "description": "A demonstration of using AIGNE Framework to build a handoff 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-handoff",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "zod": "^3.24.2",
20
- "@aigne/core-next": "^1.1.0-beta.12"
20
+ "@aigne/core-next": "^1.1.0-beta.13"
21
21
  },
22
22
  "scripts": {
23
23
  "start": "npx -y bun run index.ts"