mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-24 11:07:14 +00:00
feat(agent): add event orchestration surface
This commit is contained in:
committed by
huanghuoguoguo
parent
c6596b98e6
commit
27b43c1731
@@ -196,7 +196,7 @@ const ENTITY_KEY_MAP: Record<
|
||||
// Route prefix map for entity detail pages
|
||||
const ENTITY_ROUTE_MAP: Record<EntityCategoryId, string> = {
|
||||
bots: '/home/bots',
|
||||
pipelines: '/home/pipelines',
|
||||
pipelines: '/home/agents',
|
||||
knowledge: '/home/knowledge',
|
||||
plugins: '/home/extensions',
|
||||
mcp: '/home/mcp',
|
||||
|
||||
@@ -115,9 +115,9 @@ export function SidebarDataProvider({
|
||||
|
||||
const refreshPipelines = useCallback(async () => {
|
||||
try {
|
||||
const resp = await httpClient.getPipelines();
|
||||
const resp = await httpClient.getAgents();
|
||||
setPipelines(
|
||||
resp.pipelines.map((p) => ({
|
||||
resp.agents.map((p) => ({
|
||||
id: p.uuid || '',
|
||||
name: p.name,
|
||||
description: p.description,
|
||||
@@ -126,7 +126,7 @@ export function SidebarDataProvider({
|
||||
})),
|
||||
);
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch pipelines for sidebar:', error);
|
||||
console.error('Failed to fetch agents for sidebar:', error);
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
@@ -57,10 +57,10 @@ export const sidebarConfigList = [
|
||||
}),
|
||||
new SidebarChildVO({
|
||||
id: 'pipelines',
|
||||
name: t('pipelines.title'),
|
||||
name: t('agents.title'),
|
||||
icon: <Workflow className="text-blue-500" />,
|
||||
route: '/home/pipelines',
|
||||
description: t('pipelines.description'),
|
||||
route: '/home/agents',
|
||||
description: t('agents.description'),
|
||||
helpLink: {
|
||||
en_US: 'https://link.langbot.app/en/docs/pipelines',
|
||||
zh_Hans: 'https://link.langbot.app/zh/docs/pipelines',
|
||||
|
||||
Reference in New Issue
Block a user