mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-28 21:27:14 +00:00
style(agents): clarify agent event direction
This commit is contained in:
@@ -66,7 +66,8 @@ function AgentDiagram() {
|
|||||||
fill="none"
|
fill="none"
|
||||||
stroke={LANGBOT_BLUE}
|
stroke={LANGBOT_BLUE}
|
||||||
strokeWidth="2"
|
strokeWidth="2"
|
||||||
opacity="0.22"
|
opacity="0.32"
|
||||||
|
markerEnd={`url(#${arrowId})`}
|
||||||
/>
|
/>
|
||||||
<rect
|
<rect
|
||||||
x="64"
|
x="64"
|
||||||
@@ -113,15 +114,25 @@ function AgentDiagram() {
|
|||||||
{t('agents.agentType')}
|
{t('agents.agentType')}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
{outputs.map((item, index) => (
|
<text
|
||||||
|
x="538"
|
||||||
|
y="112"
|
||||||
|
fill="var(--muted-foreground)"
|
||||||
|
fontSize="13"
|
||||||
|
fontWeight="600"
|
||||||
|
>
|
||||||
|
{t('agents.diagramAgentInitiated')}
|
||||||
|
</text>
|
||||||
|
|
||||||
|
{outputs.map((item) => (
|
||||||
<g key={item.label}>
|
<g key={item.label}>
|
||||||
<path
|
<path
|
||||||
d={`M436 310 C468 310 474 ${item.y + 29} 538 ${item.y + 29}`}
|
d={`M436 310 C468 310 474 ${item.y + 29} 538 ${item.y + 29}`}
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke={LANGBOT_BLUE}
|
stroke={LANGBOT_BLUE}
|
||||||
strokeWidth="2"
|
strokeWidth="2"
|
||||||
opacity="0.22"
|
opacity="0.38"
|
||||||
markerEnd={index === 2 ? `url(#${arrowId})` : undefined}
|
markerEnd={`url(#${arrowId})`}
|
||||||
/>
|
/>
|
||||||
<rect
|
<rect
|
||||||
x="538"
|
x="538"
|
||||||
@@ -129,14 +140,26 @@ function AgentDiagram() {
|
|||||||
width="158"
|
width="158"
|
||||||
height="58"
|
height="58"
|
||||||
rx="14"
|
rx="14"
|
||||||
fill={`color-mix(in srgb, ${LANGBOT_CYAN} 7%, var(--card))`}
|
fill="var(--card)"
|
||||||
|
stroke={LANGBOT_CYAN}
|
||||||
|
strokeOpacity="0.45"
|
||||||
|
strokeWidth="1.5"
|
||||||
/>
|
/>
|
||||||
<circle
|
<circle
|
||||||
cx="565"
|
cx="565"
|
||||||
cy={item.y + 29}
|
cy={item.y + 29}
|
||||||
r="5"
|
r="11"
|
||||||
fill={index === 1 ? LANGBOT_CYAN : LANGBOT_BLUE}
|
fill={`color-mix(in srgb, ${LANGBOT_CYAN} 10%, var(--card))`}
|
||||||
opacity={index === 1 ? 1 : 0.48}
|
stroke={LANGBOT_CYAN}
|
||||||
|
strokeOpacity="0.5"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d={`M559 ${item.y + 29}h12m-4-4 4 4-4 4`}
|
||||||
|
fill="none"
|
||||||
|
stroke={LANGBOT_CYAN}
|
||||||
|
strokeWidth="1.7"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
/>
|
/>
|
||||||
<text
|
<text
|
||||||
x="584"
|
x="584"
|
||||||
|
|||||||
@@ -723,6 +723,7 @@ const enUS = {
|
|||||||
'A Pipeline handles message events only and runs each step in the order you configure.',
|
'A Pipeline handles message events only and runs each step in the order you configure.',
|
||||||
pipelineDiagramFlow: 'Messages move through a fixed sequence',
|
pipelineDiagramFlow: 'Messages move through a fixed sequence',
|
||||||
diagramEvents: 'Platform events',
|
diagramEvents: 'Platform events',
|
||||||
|
diagramAgentInitiated: 'Initiated by Agent',
|
||||||
diagramMessages: 'Messages',
|
diagramMessages: 'Messages',
|
||||||
diagramMembers: 'Members',
|
diagramMembers: 'Members',
|
||||||
diagramFeedback: 'Feedback',
|
diagramFeedback: 'Feedback',
|
||||||
|
|||||||
@@ -736,6 +736,7 @@ const jaJP = {
|
|||||||
'Pipeline はメッセージイベントのみを、設定した固定ステップの順番で処理します。',
|
'Pipeline はメッセージイベントのみを、設定した固定ステップの順番で処理します。',
|
||||||
pipelineDiagramFlow: 'メッセージを固定フローで順番に処理',
|
pipelineDiagramFlow: 'メッセージを固定フローで順番に処理',
|
||||||
diagramEvents: 'イベント',
|
diagramEvents: 'イベント',
|
||||||
|
diagramAgentInitiated: 'Agent が実行',
|
||||||
diagramMessages: 'メッセージ',
|
diagramMessages: 'メッセージ',
|
||||||
diagramMembers: 'メンバー',
|
diagramMembers: 'メンバー',
|
||||||
diagramFeedback: 'フィードバック',
|
diagramFeedback: 'フィードバック',
|
||||||
|
|||||||
@@ -692,6 +692,7 @@ const zhHans = {
|
|||||||
'Pipeline 只处理消息事件,并严格按照你编排的固定步骤依次执行。',
|
'Pipeline 只处理消息事件,并严格按照你编排的固定步骤依次执行。',
|
||||||
pipelineDiagramFlow: '消息沿固定流程依次处理',
|
pipelineDiagramFlow: '消息沿固定流程依次处理',
|
||||||
diagramEvents: '平台事件',
|
diagramEvents: '平台事件',
|
||||||
|
diagramAgentInitiated: 'Agent 主动发起',
|
||||||
diagramMessages: '消息',
|
diagramMessages: '消息',
|
||||||
diagramMembers: '群成员',
|
diagramMembers: '群成员',
|
||||||
diagramFeedback: '反馈',
|
diagramFeedback: '反馈',
|
||||||
|
|||||||
Reference in New Issue
Block a user