@aigne/example-chat-bot 1.12.1-2 → 1.12.1-6
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/.env.test +4 -0
- package/CHANGELOG.md +381 -0
- package/agents/chat.yaml +8 -0
- package/agents/sandbox.js +35 -0
- package/agents/sandbox.test.js +7 -0
- package/aigne-example-chat-bot-1.12.1-5.tgz +0 -0
- package/aigne.yaml +5 -0
- package/index.js +1 -1
- package/package.json +1 -7
package/.env.test
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.12.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.11.0...example-chat-bot-v1.12.0) (2025-07-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **cli:** support HTTPS_PROXY and named path param ([#196](https://github.com/AIGNE-io/aigne-framework/issues/196)) ([04e684e](https://github.com/AIGNE-io/aigne-framework/commit/04e684ee26bc2d79924b0e3cb541cd07a7191804))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/cli bumped to 1.17.0
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @aigne/test-utils bumped to 0.4.11
|
|
18
|
+
|
|
19
|
+
## [1.11.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.10.5...example-chat-bot-v1.11.0) (2025-06-30)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **ux:** polish tracing ux and update docs ([#193](https://github.com/AIGNE-io/aigne-framework/issues/193)) ([f80b63e](https://github.com/AIGNE-io/aigne-framework/commit/f80b63ecb1cfb00daa9b68330026da839d33f8a2))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Dependencies
|
|
28
|
+
|
|
29
|
+
* The following workspace dependencies were updated
|
|
30
|
+
* dependencies
|
|
31
|
+
* @aigne/cli bumped to 1.16.0
|
|
32
|
+
* devDependencies
|
|
33
|
+
* @aigne/test-utils bumped to 0.4.10
|
|
34
|
+
|
|
35
|
+
## [1.10.5](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.10.4...example-chat-bot-v1.10.5) (2025-06-29)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Dependencies
|
|
39
|
+
|
|
40
|
+
* The following workspace dependencies were updated
|
|
41
|
+
* dependencies
|
|
42
|
+
* @aigne/cli bumped to 1.15.0
|
|
43
|
+
* devDependencies
|
|
44
|
+
* @aigne/test-utils bumped to 0.4.9
|
|
45
|
+
|
|
46
|
+
## [1.10.4](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.10.3...example-chat-bot-v1.10.4) (2025-06-26)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Dependencies
|
|
50
|
+
|
|
51
|
+
* The following workspace dependencies were updated
|
|
52
|
+
* dependencies
|
|
53
|
+
* @aigne/cli bumped to 1.14.1
|
|
54
|
+
* devDependencies
|
|
55
|
+
* @aigne/test-utils bumped to 0.4.8
|
|
56
|
+
|
|
57
|
+
## [1.10.3](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.10.2...example-chat-bot-v1.10.3) (2025-06-26)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Dependencies
|
|
61
|
+
|
|
62
|
+
* The following workspace dependencies were updated
|
|
63
|
+
* dependencies
|
|
64
|
+
* @aigne/cli bumped to 1.14.0
|
|
65
|
+
* devDependencies
|
|
66
|
+
* @aigne/test-utils bumped to 0.4.7
|
|
67
|
+
|
|
68
|
+
## [1.10.2](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.10.1...example-chat-bot-v1.10.2) (2025-06-25)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Dependencies
|
|
72
|
+
|
|
73
|
+
* The following workspace dependencies were updated
|
|
74
|
+
* dependencies
|
|
75
|
+
* @aigne/cli bumped to 1.13.2
|
|
76
|
+
* devDependencies
|
|
77
|
+
* @aigne/test-utils bumped to 0.4.6
|
|
78
|
+
|
|
79
|
+
## [1.10.1](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.10.0...example-chat-bot-v1.10.1) (2025-06-25)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Dependencies
|
|
83
|
+
|
|
84
|
+
* The following workspace dependencies were updated
|
|
85
|
+
* dependencies
|
|
86
|
+
* @aigne/cli bumped to 1.13.1
|
|
87
|
+
* devDependencies
|
|
88
|
+
* @aigne/test-utils bumped to 0.4.5
|
|
89
|
+
|
|
90
|
+
## [1.10.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.12...example-chat-bot-v1.10.0) (2025-06-24)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Features
|
|
94
|
+
|
|
95
|
+
* support observability for cli and blocklet ([#155](https://github.com/AIGNE-io/aigne-framework/issues/155)) ([5baa705](https://github.com/AIGNE-io/aigne-framework/commit/5baa705a33cfdba1efc5ccbe18674c27513ca97d))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### Dependencies
|
|
99
|
+
|
|
100
|
+
* The following workspace dependencies were updated
|
|
101
|
+
* dependencies
|
|
102
|
+
* @aigne/cli bumped to 1.13.0
|
|
103
|
+
* devDependencies
|
|
104
|
+
* @aigne/test-utils bumped to 0.4.4
|
|
105
|
+
|
|
106
|
+
## [1.9.12](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.11...example-chat-bot-v1.9.12) (2025-06-20)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Dependencies
|
|
110
|
+
|
|
111
|
+
* The following workspace dependencies were updated
|
|
112
|
+
* dependencies
|
|
113
|
+
* @aigne/cli bumped to 1.12.0
|
|
114
|
+
* devDependencies
|
|
115
|
+
* @aigne/test-utils bumped to 0.4.3
|
|
116
|
+
|
|
117
|
+
## [1.9.11](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.10...example-chat-bot-v1.9.11) (2025-06-19)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Dependencies
|
|
121
|
+
|
|
122
|
+
* The following workspace dependencies were updated
|
|
123
|
+
* dependencies
|
|
124
|
+
* @aigne/cli bumped to 1.11.9
|
|
125
|
+
* devDependencies
|
|
126
|
+
* @aigne/test-utils bumped to 0.4.2
|
|
127
|
+
|
|
128
|
+
## [1.9.10](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.9...example-chat-bot-v1.9.10) (2025-06-17)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Dependencies
|
|
132
|
+
|
|
133
|
+
* The following workspace dependencies were updated
|
|
134
|
+
* dependencies
|
|
135
|
+
* @aigne/cli bumped to 1.11.8
|
|
136
|
+
* devDependencies
|
|
137
|
+
* @aigne/test-utils bumped to 0.4.1
|
|
138
|
+
|
|
139
|
+
## [1.9.9](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.8...example-chat-bot-v1.9.9) (2025-06-16)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### Dependencies
|
|
143
|
+
|
|
144
|
+
* The following workspace dependencies were updated
|
|
145
|
+
* dependencies
|
|
146
|
+
* @aigne/cli bumped to 1.11.7
|
|
147
|
+
* devDependencies
|
|
148
|
+
* @aigne/test-utils bumped to 0.4.0
|
|
149
|
+
|
|
150
|
+
## [1.9.8](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.7...example-chat-bot-v1.9.8) (2025-06-11)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Dependencies
|
|
154
|
+
|
|
155
|
+
* The following workspace dependencies were updated
|
|
156
|
+
* dependencies
|
|
157
|
+
* @aigne/cli bumped to 1.11.6
|
|
158
|
+
* devDependencies
|
|
159
|
+
* @aigne/test-utils bumped to 0.3.8
|
|
160
|
+
|
|
161
|
+
## [1.9.7](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.6...example-chat-bot-v1.9.7) (2025-06-06)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Dependencies
|
|
165
|
+
|
|
166
|
+
* The following workspace dependencies were updated
|
|
167
|
+
* dependencies
|
|
168
|
+
* @aigne/cli bumped to 1.11.5
|
|
169
|
+
* devDependencies
|
|
170
|
+
* @aigne/test-utils bumped to 0.3.7
|
|
171
|
+
|
|
172
|
+
## [1.9.6](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.5...example-chat-bot-v1.9.6) (2025-06-05)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Dependencies
|
|
176
|
+
|
|
177
|
+
* The following workspace dependencies were updated
|
|
178
|
+
* dependencies
|
|
179
|
+
* @aigne/cli bumped to 1.11.4
|
|
180
|
+
* devDependencies
|
|
181
|
+
* @aigne/test-utils bumped to 0.3.6
|
|
182
|
+
|
|
183
|
+
## [1.9.5](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.4...example-chat-bot-v1.9.5) (2025-06-05)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
### Dependencies
|
|
187
|
+
|
|
188
|
+
* The following workspace dependencies were updated
|
|
189
|
+
* dependencies
|
|
190
|
+
* @aigne/cli bumped to 1.11.3
|
|
191
|
+
* devDependencies
|
|
192
|
+
* @aigne/test-utils bumped to 0.3.5
|
|
193
|
+
|
|
194
|
+
## [1.9.4](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.3...example-chat-bot-v1.9.4) (2025-05-30)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
### Dependencies
|
|
198
|
+
|
|
199
|
+
* The following workspace dependencies were updated
|
|
200
|
+
* dependencies
|
|
201
|
+
* @aigne/cli bumped to 1.11.2
|
|
202
|
+
* devDependencies
|
|
203
|
+
* @aigne/test-utils bumped to 0.3.4
|
|
204
|
+
|
|
205
|
+
## [1.9.3](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.2...example-chat-bot-v1.9.3) (2025-05-30)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
### Dependencies
|
|
209
|
+
|
|
210
|
+
* The following workspace dependencies were updated
|
|
211
|
+
* dependencies
|
|
212
|
+
* @aigne/cli bumped to 1.11.1
|
|
213
|
+
* devDependencies
|
|
214
|
+
* @aigne/test-utils bumped to 0.3.3
|
|
215
|
+
|
|
216
|
+
## [1.9.2](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.1...example-chat-bot-v1.9.2) (2025-05-29)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### Dependencies
|
|
220
|
+
|
|
221
|
+
* The following workspace dependencies were updated
|
|
222
|
+
* dependencies
|
|
223
|
+
* @aigne/cli bumped to 1.11.0
|
|
224
|
+
* devDependencies
|
|
225
|
+
* @aigne/test-utils bumped to 0.3.2
|
|
226
|
+
|
|
227
|
+
## [1.9.1](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.9.0...example-chat-bot-v1.9.1) (2025-05-25)
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
### Dependencies
|
|
231
|
+
|
|
232
|
+
* The following workspace dependencies were updated
|
|
233
|
+
* dependencies
|
|
234
|
+
* @aigne/cli bumped to 1.10.1
|
|
235
|
+
* devDependencies
|
|
236
|
+
* @aigne/test-utils bumped to 0.3.1
|
|
237
|
+
|
|
238
|
+
## [1.9.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.8.1...example-chat-bot-v1.9.0) (2025-05-23)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
### Features
|
|
242
|
+
|
|
243
|
+
* add `--chat` option for `run` command ([#120](https://github.com/AIGNE-io/aigne-framework/issues/120)) ([7699550](https://github.com/AIGNE-io/aigne-framework/commit/76995507001ca33b09b29f72ff588dae513cb340))
|
|
244
|
+
* **models:** publish model adapters as standalone packages ([#126](https://github.com/AIGNE-io/aigne-framework/issues/126)) ([588b8ae](https://github.com/AIGNE-io/aigne-framework/commit/588b8aea6abcee5fa87def1358bf51f84021c6ef))
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
### Dependencies
|
|
248
|
+
|
|
249
|
+
* The following workspace dependencies were updated
|
|
250
|
+
* dependencies
|
|
251
|
+
* @aigne/cli bumped to 1.10.0
|
|
252
|
+
* devDependencies
|
|
253
|
+
* @aigne/test-utils bumped to 0.3.0
|
|
254
|
+
|
|
255
|
+
## [1.8.1](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.8.0...example-chat-bot-v1.8.1) (2025-05-15)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
### Dependencies
|
|
259
|
+
|
|
260
|
+
* The following workspace dependencies were updated
|
|
261
|
+
* dependencies
|
|
262
|
+
* @aigne/cli bumped to 1.9.1
|
|
263
|
+
|
|
264
|
+
## [1.8.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.7.0...example-chat-bot-v1.8.0) (2025-05-12)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
### Features
|
|
268
|
+
|
|
269
|
+
* optimize the stability of ci and example ([#113](https://github.com/AIGNE-io/aigne-framework/issues/113)) ([d16ed6c](https://github.com/AIGNE-io/aigne-framework/commit/d16ed6cb60faea19fb4f1c12e1f83d69563b153f))
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
### Dependencies
|
|
273
|
+
|
|
274
|
+
* The following workspace dependencies were updated
|
|
275
|
+
* dependencies
|
|
276
|
+
* @aigne/cli bumped to 1.9.0
|
|
277
|
+
* devDependencies
|
|
278
|
+
* @aigne/test-utils bumped to 0.2.0
|
|
279
|
+
|
|
280
|
+
## [1.7.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.6.0...example-chat-bot-v1.7.0) (2025-04-30)
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
### Features
|
|
284
|
+
|
|
285
|
+
* **core:** add BedrockChatModel support ([#101](https://github.com/AIGNE-io/aigne-framework/issues/101)) ([a0b98f0](https://github.com/AIGNE-io/aigne-framework/commit/a0b98f01bd78a135232226548848fa35a64982d1))
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### Dependencies
|
|
289
|
+
|
|
290
|
+
* The following workspace dependencies were updated
|
|
291
|
+
* dependencies
|
|
292
|
+
* @aigne/cli bumped to 1.8.1
|
|
293
|
+
|
|
294
|
+
## [1.6.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.5.0...example-chat-bot-v1.6.0) (2025-04-27)
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
### Features
|
|
298
|
+
|
|
299
|
+
* support TeamAgent and finalize API naming ([#91](https://github.com/AIGNE-io/aigne-framework/issues/91)) ([033d1b6](https://github.com/AIGNE-io/aigne-framework/commit/033d1b6a7dc5460807476abb35a413ba89a2a664))
|
|
300
|
+
* **tests:** add @aigne/test-utils and update example test cases ([#95](https://github.com/AIGNE-io/aigne-framework/issues/95)) ([6be48d1](https://github.com/AIGNE-io/aigne-framework/commit/6be48d1895e990f68c4978018da1a53bb58c1c6d))
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
### Bug Fixes
|
|
304
|
+
|
|
305
|
+
* upgrade to streamable api for serve mcp command ([#98](https://github.com/AIGNE-io/aigne-framework/issues/98)) ([ae32bda](https://github.com/AIGNE-io/aigne-framework/commit/ae32bda20e57c2a2eb8b49fad034b0b2a5ebb15e))
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
### Dependencies
|
|
309
|
+
|
|
310
|
+
* The following workspace dependencies were updated
|
|
311
|
+
* dependencies
|
|
312
|
+
* @aigne/cli bumped to 1.8.0
|
|
313
|
+
* devDependencies
|
|
314
|
+
* @aigne/test-utils bumped to 0.1.0
|
|
315
|
+
|
|
316
|
+
## [1.5.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.4.2...example-chat-bot-v1.5.0) (2025-04-23)
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
### Features
|
|
320
|
+
|
|
321
|
+
* **tests:** add example tests and update the ci configuration ([#81](https://github.com/AIGNE-io/aigne-framework/issues/81)) ([777bb8d](https://github.com/AIGNE-io/aigne-framework/commit/777bb8d184c21e74b3eb9bbb4a1003708409a338))
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
### Dependencies
|
|
325
|
+
|
|
326
|
+
* The following workspace dependencies were updated
|
|
327
|
+
* dependencies
|
|
328
|
+
* @aigne/cli bumped to 1.7.0
|
|
329
|
+
|
|
330
|
+
## [1.4.2](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.4.1...example-chat-bot-v1.4.2) (2025-04-22)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
### Dependencies
|
|
334
|
+
|
|
335
|
+
* The following workspace dependencies were updated
|
|
336
|
+
* dependencies
|
|
337
|
+
* @aigne/cli bumped to 1.6.0
|
|
338
|
+
|
|
339
|
+
## [1.4.1](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.4.0...example-chat-bot-v1.4.1) (2025-04-22)
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
### Bug Fixes
|
|
343
|
+
|
|
344
|
+
* use bunwrapper launch examples ([#79](https://github.com/AIGNE-io/aigne-framework/issues/79)) ([55022e2](https://github.com/AIGNE-io/aigne-framework/commit/55022e20bb253bac608dad3024600da91e093a69))
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
### Dependencies
|
|
348
|
+
|
|
349
|
+
* The following workspace dependencies were updated
|
|
350
|
+
* dependencies
|
|
351
|
+
* @aigne/cli bumped to 1.5.1
|
|
352
|
+
|
|
353
|
+
## [1.4.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.3.1...example-chat-bot-v1.4.0) (2025-04-22)
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
### Features
|
|
357
|
+
|
|
358
|
+
* add agent library support ([#51](https://github.com/AIGNE-io/aigne-framework/issues/51)) ([1f0d34d](https://github.com/AIGNE-io/aigne-framework/commit/1f0d34ddda3154283a4bc958ddb9b68b4ac106b0))
|
|
359
|
+
* **ci:** support coverage examples with model matrix ([#59](https://github.com/AIGNE-io/aigne-framework/issues/59)) ([1edd704](https://github.com/AIGNE-io/aigne-framework/commit/1edd70426b80a69e3751b2d5fe818297711d0777))
|
|
360
|
+
* **core:** add model adapters for DeepSeek, Gemini, OpenRouter, and Ollama ([#53](https://github.com/AIGNE-io/aigne-framework/issues/53)) ([5d40546](https://github.com/AIGNE-io/aigne-framework/commit/5d40546bd5ddb70233d27ea3b20e5711b2af320a))
|
|
361
|
+
|
|
362
|
+
## [1.3.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.2.0...example-chat-bot-v1.3.0) (2025-04-20)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
### Features
|
|
366
|
+
|
|
367
|
+
* **core:** add model adapters for DeepSeek, Gemini, OpenRouter, and Ollama ([#53](https://github.com/AIGNE-io/aigne-framework/issues/53)) ([5d40546](https://github.com/AIGNE-io/aigne-framework/commit/5d40546bd5ddb70233d27ea3b20e5711b2af320a))
|
|
368
|
+
|
|
369
|
+
## [1.2.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.1.0...example-chat-bot-v1.2.0) (2025-04-17)
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
### Features
|
|
373
|
+
|
|
374
|
+
* **ci:** support coverage examples with model matrix ([#59](https://github.com/AIGNE-io/aigne-framework/issues/59)) ([1edd704](https://github.com/AIGNE-io/aigne-framework/commit/1edd70426b80a69e3751b2d5fe818297711d0777))
|
|
375
|
+
|
|
376
|
+
## [1.1.0](https://github.com/AIGNE-io/aigne-framework/compare/example-chat-bot-v1.0.0...example-chat-bot-v1.1.0) (2025-04-08)
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
### Features
|
|
380
|
+
|
|
381
|
+
* add agent library support ([#51](https://github.com/AIGNE-io/aigne-framework/issues/51)) ([1f0d34d](https://github.com/AIGNE-io/aigne-framework/commit/1f0d34ddda3154283a4bc958ddb9b68b4ac106b0))
|
package/agents/chat.yaml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import vm from "node:vm";
|
|
2
|
+
|
|
3
|
+
export default async function evaluateJs({ jsCode }) {
|
|
4
|
+
const sandbox = {};
|
|
5
|
+
const context = vm.createContext(sandbox);
|
|
6
|
+
const result = vm.runInContext(jsCode, context, { displayErrors: true });
|
|
7
|
+
return { result };
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
evaluateJs.description = `
|
|
11
|
+
This agent generates a JavaScript code snippet that is suitable to be passed directly into Node.js's 'vm.runInContext(code, context)' function. Follow these constraints:
|
|
12
|
+
- Do NOT use any top-level 'return' statements, as the code is not inside a function.
|
|
13
|
+
- The code can define variables or perform calculations.
|
|
14
|
+
- To return a value from the code, make sure the final line is an expression (not a statement) whose value will be the result.
|
|
15
|
+
- Do NOT wrap the code in a function or IIFE unless explicitly instructed.
|
|
16
|
+
- The code should be self-contained and valid JavaScript.`;
|
|
17
|
+
|
|
18
|
+
evaluateJs.input_schema = {
|
|
19
|
+
type: "object",
|
|
20
|
+
properties: {
|
|
21
|
+
jsCode: {
|
|
22
|
+
type: "string",
|
|
23
|
+
description: "JavaScript code snippet to evaluate",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
required: ["jsCode"],
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
evaluateJs.output_schema = {
|
|
30
|
+
type: "object",
|
|
31
|
+
properties: {
|
|
32
|
+
result: { type: "any", description: "Result of the evaluated code" },
|
|
33
|
+
},
|
|
34
|
+
required: ["result"],
|
|
35
|
+
};
|
|
Binary file
|
package/aigne.yaml
ADDED
package/index.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { spawnSync } from "node:child_process";
|
|
4
4
|
import { argv } from "node:process";
|
|
5
5
|
|
|
6
|
-
spawnSync("aigne", ["run", "--path", import.meta.
|
|
6
|
+
spawnSync("aigne", ["run", "--path", import.meta.dirname, ...argv.slice(2)], { stdio: "inherit" });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-chat-bot",
|
|
3
|
-
"version": "1.12.1-
|
|
3
|
+
"version": "1.12.1-6",
|
|
4
4
|
"description": "A demonstration of using AIGNE Framework to build a chat bot",
|
|
5
5
|
"author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
|
|
6
6
|
"homepage": "https://github.com/AIGNE-io/aigne-framework/tree/main/examples/chat-bot",
|
|
@@ -11,12 +11,6 @@
|
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"bin": "index.js",
|
|
14
|
-
"files": [
|
|
15
|
-
"agents",
|
|
16
|
-
".env.local.example",
|
|
17
|
-
"*.ts",
|
|
18
|
-
"README.md"
|
|
19
|
-
],
|
|
20
14
|
"dependencies": {
|
|
21
15
|
"@aigne/cli": "^1.17.0"
|
|
22
16
|
},
|