feat: add web master-agent chat menu

This commit is contained in:
kris
2026-04-01 07:42:17 +08:00
parent a27c7da7d4
commit 87093677b8
5 changed files with 111 additions and 3 deletions

View File

@@ -0,0 +1,30 @@
export type MasterAgentChatMenuItem = {
key: "prompt" | "memory" | "refresh";
label: string;
href?: string;
action?: "refresh";
};
export function getMasterAgentChatMenuItems(projectId: string): MasterAgentChatMenuItem[] {
if (projectId !== "master-agent") {
return [];
}
return [
{
key: "prompt",
label: "提示词",
href: "/me/master-agent#prompt-section",
},
{
key: "memory",
label: "记忆",
href: "/me/master-agent#memory-section",
},
{
key: "refresh",
label: "刷新",
action: "refresh",
},
];
}