@aigne/example-chat-bot 1.10.5 → 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/.env.local.example +15 -0
- package/README.md +1 -1
- package/agents/README.md +2 -2
- package/package.json +3 -3
package/.env.local.example
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
1
|
# Change the name of this file to .env.local and fill in the following values
|
|
2
2
|
|
|
3
|
+
# Use this for OpenAI models
|
|
4
|
+
# MODEL="openai:gpt-4.1"
|
|
3
5
|
OPENAI_API_KEY="" # Your OpenAI API key
|
|
6
|
+
|
|
7
|
+
# Use this for Anthropic models
|
|
8
|
+
# MODEL="anthropic:claude-3-7-sonnet-latest"
|
|
9
|
+
# ANTHROPIC_API_KEY="" # Your Anthropic API key
|
|
10
|
+
|
|
11
|
+
# Use this for AWS Bedrock models
|
|
12
|
+
# AWS_ACCESS_KEY_ID=""
|
|
13
|
+
# AWS_SECRET_ACCESS_KEY=""
|
|
14
|
+
# AWS_REGION=us-west-2
|
|
15
|
+
# MODEL=Bedrock:us.amazon.nova-premier-v1:0
|
|
16
|
+
|
|
17
|
+
# Setup proxy if needed
|
|
18
|
+
# HTTPS_PROXY=http://localhost:7890
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Chatbot Example
|
|
2
2
|
|
|
3
|
-
This example demonstrates how to create and run an agent-based chatbot using the [AIGNE Framework](https://github.com/AIGNE-io/aigne-framework) and [AIGNE CLI](https://github.com/AIGNE-io/aigne-framework/blob/main/
|
|
3
|
+
This example demonstrates how to create and run an agent-based chatbot using the [AIGNE Framework](https://github.com/AIGNE-io/aigne-framework) and [AIGNE CLI](https://github.com/AIGNE-io/aigne-framework/blob/main/packages/cli/README.md). The example now supports both one-shot and interactive chat modes, along with customizable model settings and pipeline input/output.
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
package/agents/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AIGNE Default Template
|
|
2
2
|
|
|
3
|
-
This is the default project template for the
|
|
3
|
+
This is the default project template for the AIGNE framework, providing a basic chat agent and JavaScript code execution functionality.
|
|
4
4
|
|
|
5
5
|
## Template Structure
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-chat-bot",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.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,11 +18,11 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@aigne/cli": "^1.
|
|
21
|
+
"@aigne/cli": "^1.17.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/bun": "^1.2.9",
|
|
25
|
-
"@aigne/test-utils": "^0.4.
|
|
25
|
+
"@aigne/test-utils": "^0.4.11"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"start": "bun run index.ts",
|