mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-15 23:10:59 +00:00
refactor: consolidate bot event routing
This commit is contained in:
committed by
huanghuoguoguo
parent
662627142e
commit
7fb393b85b
@@ -331,8 +331,7 @@ const enUS = {
|
||||
getBotConfigError: 'Failed to get bot configuration: ',
|
||||
saveSuccess: 'Saved successfully',
|
||||
saveError: 'Save failed: ',
|
||||
createSuccess:
|
||||
'Created successfully. Please enable or modify the bound pipeline',
|
||||
createSuccess: 'Created successfully. Please configure event routing',
|
||||
createError: 'Creation failed: ',
|
||||
deleteSuccess: 'Deleted successfully',
|
||||
deleteError: 'Delete failed: ',
|
||||
@@ -363,25 +362,25 @@ const enUS = {
|
||||
routingConnection: 'Routing & Connection',
|
||||
routingConnectionDescription:
|
||||
'Bind the pipeline that processes messages for this bot',
|
||||
eventOrchestration: 'Event Orchestration',
|
||||
eventOrchestrationDescription:
|
||||
'Bind different handling logic to different bot events. Pipelines only support message events.',
|
||||
eventBindings: 'Event Bindings',
|
||||
addEventBinding: 'Add Event Binding',
|
||||
eventRouting: 'Event Routing',
|
||||
eventRoutingDescription:
|
||||
'Choose which processor handles each event received by this bot. Edit the processing logic on the Agent page. Pipelines only support message events.',
|
||||
eventBindings: 'Event Routes',
|
||||
addEventBinding: 'Add Route',
|
||||
eventPattern: 'Event',
|
||||
eventPatternPlaceholder: 'Select event',
|
||||
targetType: 'Target Type',
|
||||
target: 'Handling Logic',
|
||||
targetAgent: 'Agent Orchestration',
|
||||
target: 'Processor',
|
||||
targetAgent: 'Agent',
|
||||
targetPipeline: 'Pipeline',
|
||||
targetDiscard: 'Discard',
|
||||
selectTarget: 'Select handling logic',
|
||||
searchTarget: 'Search…',
|
||||
noTargetFound: 'No results found',
|
||||
selectTarget: 'Select processor',
|
||||
searchTarget: 'Search processors…',
|
||||
noTargetFound: 'No compatible processors found',
|
||||
priority: 'Priority',
|
||||
enabled: 'Enabled',
|
||||
eventBindingDescriptionPlaceholder: 'Rule description',
|
||||
noEventBindings: 'No event bindings',
|
||||
noEventBindings: 'No event routes',
|
||||
unsupportedPipelineEvent: 'Pipelines can only be used for message.* events',
|
||||
disable: 'Disable',
|
||||
enable: 'Enable',
|
||||
@@ -529,14 +528,13 @@ const enUS = {
|
||||
},
|
||||
agents: {
|
||||
title: 'Agent',
|
||||
description:
|
||||
'Manage Agent orchestrations and Pipelines, then bind them to bot events',
|
||||
create: 'Create Agent',
|
||||
editAgent: 'Edit Agent Orchestration',
|
||||
description: 'Create reusable processors and use them in bot event routing',
|
||||
create: 'Create Processor',
|
||||
editAgent: 'Edit Agent',
|
||||
selectFromSidebar: 'Select an Agent or Pipeline from the sidebar',
|
||||
agentOrchestration: 'Agent Orchestration',
|
||||
agentOrchestrationDescription:
|
||||
'Event-first handling logic for messages, group members, friends, feedback, and other platform events.',
|
||||
agentType: 'Agent',
|
||||
agentTypeDescription:
|
||||
'Use a runner to handle messages, group members, friends, feedback, and other platform events.',
|
||||
pipelineType: 'Pipeline',
|
||||
kindBadgeAgent: 'Agent',
|
||||
kindBadgePipeline: 'Pipeline',
|
||||
@@ -549,12 +547,13 @@ const enUS = {
|
||||
basicInfo: 'Basic Information',
|
||||
basicInfoDescription: 'Set the name, icon, description and enabled state',
|
||||
runnerSettings: 'Runner',
|
||||
eventCapability: 'Event Capability',
|
||||
eventCapabilityDescription:
|
||||
'Declare which events this Agent orchestration can be bound to. Use one event pattern per line; * and namespace.* are supported.',
|
||||
supportedEvents: 'Supported Events',
|
||||
advanced: 'Advanced',
|
||||
bindableEvents: 'Bindable Event Range',
|
||||
bindableEventsDescription:
|
||||
'Limit which bot event routes can select this Agent. The default is suitable for most cases.',
|
||||
supportedEvents: 'Event Range',
|
||||
supportedEventsDescription:
|
||||
'Examples: *, message.received, group.*. Pipelines are fixed to message.*.',
|
||||
'Use one event pattern per line, for example *, message.received, group.*. Pipelines are fixed to message.*.',
|
||||
enabled: 'Enable Agent',
|
||||
enabledDescription:
|
||||
'When disabled, this Agent should not be selected by event routing.',
|
||||
@@ -566,11 +565,10 @@ const enUS = {
|
||||
saveError: 'Save failed: ',
|
||||
deleteSuccess: 'Deleted successfully',
|
||||
deleteError: 'Delete failed: ',
|
||||
deleteConfirmation:
|
||||
'Are you sure you want to delete this Agent orchestration?',
|
||||
deleteConfirmation: 'Are you sure you want to delete this Agent?',
|
||||
dangerZone: 'Danger Zone',
|
||||
dangerZoneDescription: 'Irreversible and destructive actions',
|
||||
deleteAgentAction: 'Delete this Agent orchestration',
|
||||
deleteAgentAction: 'Delete this Agent',
|
||||
deleteAgentHint:
|
||||
'Once deleted, events bound to it can no longer be executed.',
|
||||
noRunnerMetadata: 'No AgentRunner metadata is currently available.',
|
||||
|
||||
Reference in New Issue
Block a user