Skip to content

Commit

Permalink
release(1.3.2): release update
Browse files Browse the repository at this point in the history
  • Loading branch information
10cl committed Dec 24, 2023
1 parent 18d2097 commit 6882aa8
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 41 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ It accelerates prompt engineering through **JavaScript Support** that allows imp

## 📢 TLDR
* GameMode: in the AI Town Social Simulation, you can customize these NPCs & location mark.
* GPTs Support: import from GPTs Community or defined yours.
* Agent Support: import from Agent Community or defined yours.
* PromptIDE: Automatic completion, Dual screen display, Visualize PromptFlow, JavaScript Support
* Not just ChatGpt, but the new Bing Chat, Google Bard, Claude, QianWen, iFlytek Spark, and more than 10 open source models.

Expand All @@ -64,17 +64,17 @@ When the distance between the player and the NPC <100, the NPC will trigger the
![custom_map](./screenshots/custom_map.png)
Drag chatdev/src/assets/ex_assets/chatdev_main_map.json to TILED app.

### GPTs
GPTs is a large language model, you can import GPTs from the community or customize Prompt Flow in PromptIDE to achieve new GPTs, run GPTs to let NPCs achieve multi-person self-collaboration to complete tasks.
in the GPTs, if the GPTs's Prompt Flow defines the role(`npc`, see [Flows](#flows) for details), and assigns the NPC in the map to the role, then they will gather together in the map to hold a seminar and execute the complete process of GPTs. If no role is defined, you can view the complete execution process in Chat Mode and have a dialogue in the usual LLM way.
### Agent
Agent is a large language model, you can import Agent from the community or customize Prompt Flow in PromptIDE to achieve new Agent, run Agent to let NPCs achieve multi-person self-collaboration to complete tasks.
in the Agent, if the Agent's Prompt Flow defines the role(`npc`, see [Flows](#flows) for details), and assigns the NPC in the map to the role, then they will gather together in the map to hold a seminar and execute the complete process of Agent. If no role is defined, you can view the complete execution process in Chat Mode and have a dialogue in the usual LLM way.

## ✨ Chat Mode
when you choose Chat Mode, and close the `GPTs` in the upper right corner, select your favorite large model on the left, Chat Mode will be a regular LLM UI, and all your inputs will be through the normal LLM interface, output the reply of the large model.
when you choose Chat Mode, and close the `Agent` in the upper right corner, select your favorite large model on the left, Chat Mode will be a regular LLM UI, and all your inputs will be through the normal LLM interface, output the reply of the large model.

![chat_mode.png](./screenshots/chat_mode.png)

### GPTs Community
You can import GPTs from the community, and you can also share your GPTs with others.
### Agent Community
You can import Agent from the community, and you can also share your Agent with others.
![gpts_community.png](./screenshots/gpts_community.png)

### Chat History
Expand All @@ -83,7 +83,7 @@ Your chat will be stored locally, and you can view the historical chat records o

### Chat Chain
in Chat Mode, if you are in Chat Mode, then the execution of Prompt Flow will be in the form of Chat Chain, and the execution of Prompt Flow will be in the form of Chat Chain in the chat box.
right-click to open GPTs in the upper right corner, enter your one-sentence demand, your input will be used as the input variable `${inputs.input}` in `Chat Chain`, and `Chat Chain` will execute the corresponding node according to your input. The execution order of the node is from top to bottom. If the input variable of the node is satisfied, the node will be executed, otherwise the node will be skipped and the next node will be executed.
right-click to open Agent in the upper right corner, enter your one-sentence demand, your input will be used as the input variable `${inputs.input}` in `Chat Chain`, and `Chat Chain` will execute the corresponding node according to your input. The execution order of the node is from top to bottom. If the input variable of the node is satisfied, the node will be executed, otherwise the node will be skipped and the next node will be executed.
![chat-prompt-flow.gif](./screenshots/chat-prompt-flow.gif)

## ✨ Prompt IDE
Expand All @@ -93,8 +93,8 @@ Prompt flow is a suite of development tools designed to streamline the end-to-en

- **Prompt Flow Editor**: Used to edit the YAML file of `Prompt Flow` and the prompt content and JavaScript script of the node
- **Prompt Flow Visualization**: Through the visualization of the execution process of the Prompt Flow node, the color of the node will change when it is executed to a certain node
- **JavaScript Support**: Through JavaScript scripts, you can use your creativity to realize the cooperation of different NPCs to achieve your GPTs
- **Export & Import**: You can import other excellent GPTs or share your GPTs
- **JavaScript Support**: Through JavaScript scripts, you can use your creativity to realize the cooperation of different NPCs to achieve your Agent
- **Export & Import**: You can import other excellent Agent or share your Agent

### PromptFow Editor

Expand All @@ -121,14 +121,14 @@ A flow is represented as a YAML file and can be visualized using our IDE.

Here is an example:

#### Write GPTs/Agent
#### Write Agent/Agent
Indicates the definition of the current node's output content. `${TestModification}` references the node's name,
signifying that the current node's output is the output of the `TestModification` node (`output` variable).
This is a standard format, you need to ensure that 'desc' nodes are used to describe your GPTs in the map, define 'reference' under 'outputs' nodes to represent the most total nodes, and make all nodes connected.
This is a standard format, you need to ensure that 'desc' nodes are used to describe your Agent in the map, define 'reference' under 'outputs' nodes to represent the most total nodes, and make all nodes connected.

```yaml
# Required
desc: 'your GPTs description' # In the game map, mouse over the description displayed by GPTs
desc: 'your Agent description' # In the game map, mouse over the description displayed by Agent

# Required
outputs:
Expand All @@ -149,7 +149,7 @@ in the prompt:
{intro} will replace by 'xxx'
{input_text} will replace by the content what you entered in the input box.
- The full GPTs summarizing Twitter content are below:
- The full Agent summarizing Twitter content are below:
```yaml
desc: 'summary elonmusk latest twitter'

Expand Down Expand Up @@ -193,7 +193,7 @@ use `node_name.xxx`: represents a variable that references another node
You can export your prompt flow to a json file and import it to another devices.
it contains all the information about your prompt flow, including the prompt, the JavaScript functions, and the YAML file.

### GPTs Example
### Agent Example
Our examples should also give you an idea how to use that:

#### Chatting with NPC
Expand Down Expand Up @@ -349,7 +349,7 @@ now, I say: {task}

#### Generate a website in one sentence
```yaml
desc: "single GPTs - generated web pages - multi-role collaborative presentation"
desc: "single Agent - generated web pages - multi-role collaborative presentation"
outputs:
overview:
Expand Down
28 changes: 14 additions & 14 deletions README_ZH-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ChatDev IDE是一个用于构建AI代理的工具,无论是在游戏中的NPC

## 📢 简介
* 游戏模式:在AI镇社会模拟中,您可以自定义这些NPC和位置标记。
* GPTs支持:从GPTs社区导入或自定义您的GPT
* Agent支持:从Agent社区导入或自定义您的智能体
* PromptIDE:自动完成,双屏显示,可视化PromptFlow,JavaScript节点支持
* 不仅仅是ChatGpt,还有Bing Chat,Google Bard,Claude,千问,讯飞等超过10种开源模型。

Expand All @@ -65,19 +65,19 @@ ChatDev IDE是一个用于构建AI代理的工具,无论是在游戏中的NPC

![custom_map](./screenshots/custom_map.png)`chatdev/src/assets/ex_assets/chatdev_main_map.json`拖到 `TILED` 应用程序中。

### GPTs
### Agent

GPTs是一个大型语言模型,您可以从社区导入GPTs或在PromptIDE中自定义Prompt Flow以实现新的GPTs,运行GPTs让NPC实现多人自我协作完成任务。 在GPTs中,如果GPTs的Prompt Flow定义了角色(`npc`,详情见[流程](#flows)),并将地图中的NPC分配给该角色,那么它们将在地图上聚集在一起举行研讨会并执行GPTs的完整过程。如果没有定义角色,您可以在聊天模式中查看完整的执行过程,并以通常的LLM方式进行对话。
Agent是一个大型语言模型,您可以从社区导入Agent或在PromptIDE中自定义Prompt Flow以实现新的Agent,运行Agent让NPC实现多人自我协作完成任务。 在Agent中,如果Agent的Prompt Flow定义了角色(`npc`,详情见[流程](#flows)),并将地图中的NPC分配给该角色,那么它们将在地图上聚集在一起举行研讨会并执行Agent的完整过程。如果没有定义角色,您可以在聊天模式中查看完整的执行过程,并以通常的LLM方式进行对话。

## ✨ 聊天模式

当您选择聊天模式,并关闭右上角的`GPTs`,在左侧选择您喜欢的大型模型时,聊天模式将是一个常规的LLM用户界面,并且所有的输入都将通过正常的LLM界面,输出大型模型的回复。
当您选择聊天模式,并关闭右上角的`Agent`,在左侧选择您喜欢的大型模型时,聊天模式将是一个常规的LLM用户界面,并且所有的输入都将通过正常的LLM界面,输出大型模型的回复。

![chat_mode.png](./screenshots/chat_mode.png)

### GPTs社区
### Agent社区

您可以从社区导入GPTs,您也可以与他人分享您的GPTs![gpts_community.png](./screenshots/gpts_community.png)
您可以从社区导入Agent,您也可以与他人分享您的Agent![gpts_community.png](./screenshots/gpts_community.png)

### 聊天历史

Expand All @@ -95,8 +95,8 @@ Prompt流是一套旨在简化LLM为基础的AI应用的端到端开发周期的

* **Prompt Flow 编辑器**:用于编辑`Prompt Flow`的YAML文件以及节点的提示内容和JavaScript脚本
* **Prompt Flow 可视化**:通过Prompt Flow节点的执行过程的可视化,当执行到某个节点时,节点的颜色会改变
* **JavaScript 支持**:通过JavaScript脚本,您可以发挥您的创造力,实现不同NPC之间的协作,以实现您的GPTs
* **导出 & 导入**您可以导入其他优秀的GPTs或分享您的GPTs
* **JavaScript 支持**:通过JavaScript脚本,您可以发挥您的创造力,实现不同NPC之间的协作,以实现您的Agent
* **导出 & 导入**您可以导入其他优秀的Agent或分享您的Agent

### PromptFow 编辑器

Expand Down Expand Up @@ -128,13 +128,13 @@ PromptFlow中的流程是由提示/函数的DAG(有向无环图)组成,称

以下是一个示例:

#### 编写GPTs/Agent
#### 编写Agent/Agent

表示当前节点输出内容的定义。`${TestModification}` 引用节点的名称,表示当前节点的输出是 `TestModification` 节点(`output` 变量)的输出。这是一种标准格式,您需要确保在地图中使用 'desc' 节点来描述您的GPTs,定义 'outputs' 节点下的 'reference',以表示最终节点,并确保所有节点都连接在一起。
表示当前节点输出内容的定义。`${TestModification}` 引用节点的名称,表示当前节点的输出是 `TestModification` 节点(`output` 变量)的输出。这是一种标准格式,您需要确保在地图中使用 'desc' 节点来描述您的Agent,定义 'outputs' 节点下的 'reference',以表示最终节点,并确保所有节点都连接在一起。

```yaml
# 必需
desc: '您的GPTs描述' # 在游戏地图中,将鼠标悬停在GPTs显示的描述上
desc: '您的Agent描述' # 在游戏地图中,将鼠标悬停在Agent显示的描述上

# 必需
outputs:
Expand All @@ -158,7 +158,7 @@ nodes:

* `{input_text}` 将被输入框中输入的内容替换

* 完整的概括Twitter内容的GPTs如下
* 完整的概括Twitter内容的Agent如下


```yaml
Expand Down Expand Up @@ -200,7 +200,7 @@ nodes:

您可以将您的提示流导出为JSON文件,并导入到另一个设备中。它包含有关提示流的所有信息,包括提示、JavaScript函数和YAML文件。

### GPTs示例
### Agent示例

我们的示例还应该给您一个如何使用它的想法:

Expand Down Expand Up @@ -368,7 +368,7 @@ node.output = article.textContent
#### 一句话生成一个网站

```yaml
desc: "单个GPTs - 生成网页 - 多角色协作呈现"
desc: "单个Agent - 生成网页 - 多角色协作呈现"
outputs:
overview:
Expand Down
2 changes: 1 addition & 1 deletion manifest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineManifest(async (env) => {
name: '__MSG_appName__',
description: '__MSG_appDesc__',
default_locale: 'en',
version: '1.3.1',
version: '1.3.2',
icons: {
'16': 'src/assets/icon.png',
'32': 'src/assets/icon.png',
Expand Down
2 changes: 1 addition & 1 deletion src/assets/bundle.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6882aa8

Please sign in to comment.