feat: add web master-agent chat menu
This commit is contained in:
30
src/lib/master-agent-chat-menu.ts
Normal file
30
src/lib/master-agent-chat-menu.ts
Normal 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",
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user