mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-29 21:57:14 +00:00
refactor: consolidate bot event routing
This commit is contained in:
committed by
huanghuoguoguo
parent
662627142e
commit
7fb393b85b
@@ -317,7 +317,7 @@ const zhHans = {
|
||||
getBotConfigError: '获取机器人配置失败:',
|
||||
saveSuccess: '保存成功',
|
||||
saveError: '保存失败:',
|
||||
createSuccess: '创建成功 请启用或修改绑定流水线',
|
||||
createSuccess: '创建成功,请配置事件路由',
|
||||
createError: '创建失败:',
|
||||
deleteSuccess: '删除成功',
|
||||
deleteError: '删除失败:',
|
||||
@@ -347,25 +347,25 @@ const zhHans = {
|
||||
basicInfoDescription: '设置机器人名称和描述',
|
||||
routingConnection: '路由与连接',
|
||||
routingConnectionDescription: '绑定处理此机器人消息的流水线',
|
||||
eventOrchestration: '事件编排',
|
||||
eventOrchestrationDescription:
|
||||
'为此机器人不同事件绑定不同处理逻辑。Pipeline 仅支持消息事件。',
|
||||
eventBindings: '事件绑定',
|
||||
addEventBinding: '添加事件绑定',
|
||||
eventRouting: '事件路由',
|
||||
eventRoutingDescription:
|
||||
'选择此机器人收到不同事件时交给哪个处理器。具体处理逻辑在 Agent 页面编辑,Pipeline 仅支持消息事件。',
|
||||
eventBindings: '事件路由',
|
||||
addEventBinding: '添加路由',
|
||||
eventPattern: '事件',
|
||||
eventPatternPlaceholder: '选择事件',
|
||||
targetType: '目标类型',
|
||||
target: '处理逻辑',
|
||||
targetAgent: 'Agent 编排',
|
||||
target: '处理器',
|
||||
targetAgent: 'Agent',
|
||||
targetPipeline: 'Pipeline',
|
||||
targetDiscard: '丢弃',
|
||||
selectTarget: '选择处理逻辑',
|
||||
searchTarget: '搜索处理逻辑…',
|
||||
noTargetFound: '未找到匹配项',
|
||||
selectTarget: '选择处理器',
|
||||
searchTarget: '搜索处理器…',
|
||||
noTargetFound: '未找到兼容处理器',
|
||||
priority: '优先级',
|
||||
enabled: '启用',
|
||||
eventBindingDescriptionPlaceholder: '规则说明',
|
||||
noEventBindings: '暂无事件绑定',
|
||||
noEventBindings: '暂无事件路由',
|
||||
unsupportedPipelineEvent: 'Pipeline 仅可用于 message.* 事件',
|
||||
disable: '禁用',
|
||||
enable: '启用',
|
||||
@@ -509,13 +509,12 @@ const zhHans = {
|
||||
},
|
||||
agents: {
|
||||
title: 'Agent',
|
||||
description: '管理 Agent 编排与 Pipeline,并将它们绑定到机器人事件',
|
||||
create: '创建 Agent',
|
||||
editAgent: '编辑 Agent 编排',
|
||||
description: '创建可复用的处理器,并在机器人事件路由中使用',
|
||||
create: '创建处理器',
|
||||
editAgent: '编辑 Agent',
|
||||
selectFromSidebar: '从侧边栏选择一个 Agent 或 Pipeline',
|
||||
agentOrchestration: 'Agent 编排',
|
||||
agentOrchestrationDescription:
|
||||
'面向平台事件的处理逻辑,可用于消息、群成员、好友、反馈等事件。',
|
||||
agentType: 'Agent',
|
||||
agentTypeDescription: '通过运行器处理消息、群成员、好友、反馈等平台事件。',
|
||||
pipelineType: 'Pipeline',
|
||||
kindBadgeAgent: 'Agent',
|
||||
kindBadgePipeline: '流水线',
|
||||
@@ -528,12 +527,13 @@ const zhHans = {
|
||||
basicInfo: '基础信息',
|
||||
basicInfoDescription: '设置名称、图标、描述和启用状态',
|
||||
runnerSettings: '运行器',
|
||||
eventCapability: '事件能力',
|
||||
eventCapabilityDescription:
|
||||
'声明此 Agent 编排可被绑定到哪些事件。每行一个事件模式,支持 * 与 namespace.*。',
|
||||
supportedEvents: '支持的事件',
|
||||
advanced: '高级',
|
||||
bindableEvents: '可绑定事件范围',
|
||||
bindableEventsDescription:
|
||||
'限制此 Agent 可被机器人事件路由选择的事件范围。通常保持默认即可。',
|
||||
supportedEvents: '事件范围',
|
||||
supportedEventsDescription:
|
||||
'例如 *、message.received、group.*。Pipeline 固定仅支持 message.*。',
|
||||
'每行一个事件模式,例如 *、message.received、group.*。Pipeline 固定仅支持 message.*。',
|
||||
enabled: '启用 Agent',
|
||||
enabledDescription: '禁用后,此 Agent 不应被事件路由选中。',
|
||||
nameRequired: '名称不能为空',
|
||||
@@ -544,10 +544,10 @@ const zhHans = {
|
||||
saveError: '保存失败:',
|
||||
deleteSuccess: '删除成功',
|
||||
deleteError: '删除失败:',
|
||||
deleteConfirmation: '你确定要删除这个 Agent 编排吗?',
|
||||
deleteConfirmation: '你确定要删除这个 Agent 吗?',
|
||||
dangerZone: '危险区域',
|
||||
dangerZoneDescription: '不可逆的操作',
|
||||
deleteAgentAction: '删除此 Agent 编排',
|
||||
deleteAgentAction: '删除此 Agent',
|
||||
deleteAgentHint: '删除后,绑定到它的事件将无法继续执行。',
|
||||
noRunnerMetadata: '当前没有可用的 AgentRunner 元数据。',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user