@aigne/example-chat-bot 1.5.0 → 1.6.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/agents/README.md +1 -1
- package/agents/chat.yaml +1 -0
- package/index.test.ts +10 -2
- package/package.json +5 -2
package/agents/README.md
CHANGED
|
@@ -5,7 +5,7 @@ This is the default project template for the Aigne framework, providing a basic
|
|
|
5
5
|
## Template Structure
|
|
6
6
|
|
|
7
7
|
- `aigne.yaml` - Project configuration file that defines the chat model used and references to agents
|
|
8
|
-
- `chat.yaml` - Chat agent configuration, including agent instructions and
|
|
8
|
+
- `chat.yaml` - Chat agent configuration, including agent instructions and skills used
|
|
9
9
|
- `sandbox.js` - JavaScript code execution tool for running JavaScript code within conversations
|
|
10
10
|
- `sandbox.test.js` - Test file to verify the functionality of the code execution tool
|
|
11
11
|
|
package/agents/chat.yaml
CHANGED
|
@@ -3,5 +3,6 @@ description: Chat agent
|
|
|
3
3
|
instructions: |
|
|
4
4
|
You are a helpful assistant that can answer questions and provide information on a wide range of topics.
|
|
5
5
|
Your goal is to assist users in finding the information they need and to engage in friendly conversation.
|
|
6
|
+
memory: true
|
|
6
7
|
tools:
|
|
7
8
|
- sandbox.js
|
package/index.test.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import { test } from "bun:test";
|
|
1
|
+
import { expect, test } from "bun:test";
|
|
2
|
+
import { runExampleTest } from "@aigne/test-utils/run-example-test.js";
|
|
2
3
|
|
|
3
|
-
test(
|
|
4
|
+
test(
|
|
5
|
+
"should successfully run the chatbot",
|
|
6
|
+
async () => {
|
|
7
|
+
const { code } = await runExampleTest();
|
|
8
|
+
expect(code).toBe(0);
|
|
9
|
+
},
|
|
10
|
+
{ timeout: 600000 },
|
|
11
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-chat-bot",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
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",
|
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@aigne/cli": "^1.
|
|
21
|
+
"@aigne/cli": "^1.8.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@aigne/test-utils": "^0.1.0"
|
|
22
25
|
},
|
|
23
26
|
"scripts": {
|
|
24
27
|
"start": "bun run index.ts",
|