@aigne/example-workflow-handoff 1.11.9 → 1.12.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/index.ts +4 -0
- package/package.json +6 -6
package/index.ts
CHANGED
|
@@ -98,6 +98,7 @@ tell them a crazy caveat and execute their order.
|
|
|
98
98
|
skills: [transfer_back_to_triage, execute_order_tool],
|
|
99
99
|
outputKey: "sales",
|
|
100
100
|
memory: new DefaultMemory(),
|
|
101
|
+
inputKey: "message",
|
|
101
102
|
});
|
|
102
103
|
|
|
103
104
|
const issuesAndRepairs = AIAgent.from({
|
|
@@ -115,6 +116,7 @@ Follow the following routine with the user:
|
|
|
115
116
|
skills: [transfer_back_to_triage, execute_refund_tool, look_up_item_tool],
|
|
116
117
|
outputKey: "issuesAndRepairs",
|
|
117
118
|
memory: new DefaultMemory(),
|
|
119
|
+
inputKey: "message",
|
|
118
120
|
});
|
|
119
121
|
|
|
120
122
|
// Assume this is a human agent
|
|
@@ -128,6 +130,7 @@ Only transfer to another agent if user explicitly asks for it.
|
|
|
128
130
|
skills: [transfer_back_to_triage, transfer_to_sales_agent, transfer_to_issues_and_repairs],
|
|
129
131
|
outputKey: "human",
|
|
130
132
|
memory: new DefaultMemory(),
|
|
133
|
+
inputKey: "message",
|
|
131
134
|
});
|
|
132
135
|
|
|
133
136
|
const triage = AIAgent.from({
|
|
@@ -141,6 +144,7 @@ But make your questions subtle and natural.
|
|
|
141
144
|
skills: [transfer_to_issues_and_repairs, transfer_to_sales_agent, transfer_to_human_manager],
|
|
142
145
|
outputKey: "triage",
|
|
143
146
|
memory: new DefaultMemory(),
|
|
147
|
+
inputKey: "message",
|
|
144
148
|
});
|
|
145
149
|
|
|
146
150
|
await runWithAIGNE(triage, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-workflow-handoff",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
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,14 +17,14 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zod": "^3.24.4",
|
|
20
|
-
"@aigne/agent-library": "^1.
|
|
21
|
-
"@aigne/cli": "^1.
|
|
22
|
-
"@aigne/
|
|
23
|
-
"@aigne/
|
|
20
|
+
"@aigne/agent-library": "^1.15.0",
|
|
21
|
+
"@aigne/cli": "^1.13.0",
|
|
22
|
+
"@aigne/core": "^1.22.0",
|
|
23
|
+
"@aigne/openai": "^0.3.4"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/bun": "^1.2.9",
|
|
27
|
-
"@aigne/test-utils": "^0.4.
|
|
27
|
+
"@aigne/test-utils": "^0.4.4"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"start": "bun run index.ts",
|