mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 11:29:39 +08:00
doc: add more comment for pipeline config
This commit is contained in:
@@ -7,6 +7,9 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: Runner
|
en_US: Runner
|
||||||
zh_CN: 运行方式
|
zh_CN: 运行方式
|
||||||
|
description:
|
||||||
|
en_US: Strategy to call AI to process messages
|
||||||
|
zh_CN: 调用 AI 处理消息的方式
|
||||||
config:
|
config:
|
||||||
- name: runner
|
- name: runner
|
||||||
label:
|
label:
|
||||||
@@ -46,6 +49,9 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: Max Round
|
en_US: Max Round
|
||||||
zh_CN: 最大回合数
|
zh_CN: 最大回合数
|
||||||
|
description:
|
||||||
|
en_US: The maximum number of previous messages that the agent can remember
|
||||||
|
zh_CN: 最大前文消息回合数
|
||||||
type: integer
|
type: integer
|
||||||
required: true
|
required: true
|
||||||
default: 10
|
default: 10
|
||||||
@@ -53,6 +59,9 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: Prompt
|
en_US: Prompt
|
||||||
zh_CN: 提示词
|
zh_CN: 提示词
|
||||||
|
description:
|
||||||
|
en_US: The prompt of the agent
|
||||||
|
zh_CN: 除非您了解消息结构,否则请只使用 system 单提示词
|
||||||
type: prompt-editor
|
type: prompt-editor
|
||||||
required: true
|
required: true
|
||||||
- name: dify-service-api
|
- name: dify-service-api
|
||||||
@@ -155,6 +164,9 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: References Quote
|
en_US: References Quote
|
||||||
zh_CN: 引用文本
|
zh_CN: 引用文本
|
||||||
|
description:
|
||||||
|
en_US: The text prompt when the references are included
|
||||||
|
zh_CN: 包含引用资料时的文本提示
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: '参考资料来自:'
|
default: '参考资料来自:'
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: Threshold
|
en_US: Threshold
|
||||||
zh_CN: 阈值
|
zh_CN: 阈值
|
||||||
|
description:
|
||||||
|
en_US: The threshold of the long text
|
||||||
|
zh_CN: 超过此长度的文本将被处理
|
||||||
type: integer
|
type: integer
|
||||||
required: true
|
required: true
|
||||||
default: 1000
|
default: 1000
|
||||||
@@ -19,6 +22,9 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: Strategy
|
en_US: Strategy
|
||||||
zh_CN: 策略
|
zh_CN: 策略
|
||||||
|
description:
|
||||||
|
en_US: The strategy of the long text
|
||||||
|
zh_CN: 长文本的处理策略
|
||||||
type: select
|
type: select
|
||||||
required: true
|
required: true
|
||||||
default: forward
|
default: forward
|
||||||
@@ -26,7 +32,7 @@ stages:
|
|||||||
- name: forward
|
- name: forward
|
||||||
label:
|
label:
|
||||||
en_US: Forward Message Component
|
en_US: Forward Message Component
|
||||||
zh_CN: 转发消息组件
|
zh_CN: 转换为转发消息组件(部分平台不支持)
|
||||||
- name: image
|
- name: image
|
||||||
label:
|
label:
|
||||||
en_US: Convert to Image
|
en_US: Convert to Image
|
||||||
@@ -35,24 +41,30 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: Font Path
|
en_US: Font Path
|
||||||
zh_CN: 字体路径
|
zh_CN: 字体路径
|
||||||
|
description:
|
||||||
|
en_US: The path of the font to be used when converting to image
|
||||||
|
zh_CN: 选用转换为图片时,所使用的字体路径
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
- name: force-delay
|
- name: force-delay
|
||||||
label:
|
label:
|
||||||
en_US: Force Delay
|
en_US: Force Delay
|
||||||
zh_CN: 强制延迟
|
zh_CN: 强制延迟
|
||||||
|
description:
|
||||||
|
en_US: Force the output to be delayed for a while
|
||||||
|
zh_CN: 强制延迟一段时间后再回复给用户
|
||||||
config:
|
config:
|
||||||
- name: min
|
- name: min
|
||||||
label:
|
label:
|
||||||
en_US: Min
|
en_US: Min Seconds
|
||||||
zh_CN: 最小秒数
|
zh_CN: 最小秒数
|
||||||
type: integer
|
type: integer
|
||||||
required: true
|
required: true
|
||||||
default: 0
|
default: 0
|
||||||
- name: max
|
- name: max
|
||||||
label:
|
label:
|
||||||
en_US: Max
|
en_US: Max Seconds
|
||||||
zh_CN: 最大秒数
|
zh_CN: 最大秒数
|
||||||
type: integer
|
type: integer
|
||||||
required: true
|
required: true
|
||||||
@@ -72,14 +84,14 @@ stages:
|
|||||||
- name: at-sender
|
- name: at-sender
|
||||||
label:
|
label:
|
||||||
en_US: At Sender
|
en_US: At Sender
|
||||||
zh_CN: 在回复中@发送者
|
zh_CN: 在群聊回复中@发送者
|
||||||
type: boolean
|
type: boolean
|
||||||
required: true
|
required: true
|
||||||
default: true
|
default: true
|
||||||
- name: quote-origin
|
- name: quote-origin
|
||||||
label:
|
label:
|
||||||
en_US: Quote Origin
|
en_US: Quote Origin Message
|
||||||
zh_CN: 引用原文
|
zh_CN: 引用原消息
|
||||||
type: boolean
|
type: boolean
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
@@ -87,6 +99,9 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: Track Function Calls
|
en_US: Track Function Calls
|
||||||
zh_CN: 跟踪函数调用
|
zh_CN: 跟踪函数调用
|
||||||
|
description:
|
||||||
|
en_US: If enabled, the function calls will be tracked and output to the user
|
||||||
|
zh_CN: 启用后,Agent 每次调用工具时都会输出一个提示给用户
|
||||||
type: boolean
|
type: boolean
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: Check Sensitive Words
|
en_US: Check Sensitive Words
|
||||||
zh_CN: 检查敏感词
|
zh_CN: 检查敏感词
|
||||||
|
description:
|
||||||
|
en_US: Sensitive words can be configured in data/metadata/sensitive-words.json
|
||||||
|
zh_CN: 敏感词内容可以在 data/metadata/sensitive-words.json 中配置
|
||||||
type: boolean
|
type: boolean
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ stages:
|
|||||||
en_US: Group Respond Rule
|
en_US: Group Respond Rule
|
||||||
zh_CN: 群响应规则
|
zh_CN: 群响应规则
|
||||||
description:
|
description:
|
||||||
en_US: The group respond rule of the pipeline
|
en_US: The respond rule of the messages in the groups
|
||||||
zh_CN: 群响应规则
|
zh_CN: 群内消息的响应规则
|
||||||
config:
|
config:
|
||||||
- name: at
|
- name: at
|
||||||
label:
|
label:
|
||||||
@@ -26,8 +26,8 @@ stages:
|
|||||||
en_US: Prefix
|
en_US: Prefix
|
||||||
zh_CN: 前缀
|
zh_CN: 前缀
|
||||||
description:
|
description:
|
||||||
en_US: The prefix of the message
|
en_US: Messages with these prefixes will be responded (the prefixes will be removed automatically when sending to AI)
|
||||||
zh_CN: 消息前缀
|
zh_CN: 具有这些前缀的消息将被响应(发送给 AI 时会自动去除对应前缀)
|
||||||
type: array[string]
|
type: array[string]
|
||||||
required: true
|
required: true
|
||||||
default: []
|
default: []
|
||||||
@@ -36,8 +36,8 @@ stages:
|
|||||||
en_US: Regexp
|
en_US: Regexp
|
||||||
zh_CN: 正则表达式
|
zh_CN: 正则表达式
|
||||||
description:
|
description:
|
||||||
en_US: The regexp of the message
|
en_US: Messages with these regular expressions will be responded
|
||||||
zh_CN: 消息正则表达式
|
zh_CN: 符合这些正则表达式的消息将被响应
|
||||||
type: array[string]
|
type: array[string]
|
||||||
required: true
|
required: true
|
||||||
default: []
|
default: []
|
||||||
@@ -47,7 +47,7 @@ stages:
|
|||||||
zh_CN: 随机
|
zh_CN: 随机
|
||||||
description:
|
description:
|
||||||
en_US: The probability of the random response, range from 0.0 to 1.0
|
en_US: The probability of the random response, range from 0.0 to 1.0
|
||||||
zh_CN: 随机响应概率,范围为 0.0-1.0
|
zh_CN: 随机响应概率,范围为 0.0-1.0,对应 0% 到 100%
|
||||||
type: float
|
type: float
|
||||||
required: false
|
required: false
|
||||||
default: 0
|
default: 0
|
||||||
@@ -93,14 +93,17 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: Ignore Rules
|
en_US: Ignore Rules
|
||||||
zh_CN: 消息忽略规则
|
zh_CN: 消息忽略规则
|
||||||
|
description:
|
||||||
|
en_US: Ignore rules that apply to both group and private messages
|
||||||
|
zh_CN: 对群聊、私聊消息均适用的忽略规则(优先级高于群响应规则)
|
||||||
config:
|
config:
|
||||||
- name: prefix
|
- name: prefix
|
||||||
label:
|
label:
|
||||||
en_US: Prefix
|
en_US: Prefix
|
||||||
zh_CN: 前缀
|
zh_CN: 前缀
|
||||||
description:
|
description:
|
||||||
en_US: The prefix of the message
|
en_US: Messages with these prefixes will be ignored
|
||||||
zh_CN: 消息前缀
|
zh_CN: 包含这些前缀的消息将被忽略
|
||||||
type: array[string]
|
type: array[string]
|
||||||
required: true
|
required: true
|
||||||
default: []
|
default: []
|
||||||
@@ -109,8 +112,8 @@ stages:
|
|||||||
en_US: Regexp
|
en_US: Regexp
|
||||||
zh_CN: 正则表达式
|
zh_CN: 正则表达式
|
||||||
description:
|
description:
|
||||||
en_US: The regexp of the message
|
en_US: Messages with these regular expressions will be ignored
|
||||||
zh_CN: 消息正则表达式
|
zh_CN: 符合这些正则表达式的消息将被忽略
|
||||||
type: array[string]
|
type: array[string]
|
||||||
required: true
|
required: true
|
||||||
default: []
|
default: []
|
||||||
|
|||||||
Reference in New Issue
Block a user