Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
No arguments |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
Generation module | 遍历工具返回的数组,将数组中每一项有 writeOptions: object、dir: string,两个属性。
需要将对象writeOptions的属性进行遍历,找到dir文件中对应的变量名。 匹配规则:变量名和writeOptions的属性名称相等。
匹配到了之后将dir中的变量值自动重写,使用writeOptions属性值覆盖,一定是自动重写。
For example:
writeOptions示例
``` javascript
writeOptions:{subnaem:'用户管理'}
```
dir文件代码示例:
``` javascript
const subnaem = '';
```
经过规则匹配之后,dir文件重写后应该是:
``` javascript
const subnaem = '用户管理';
``` |