refactor: rename and update memory tool components to reflect new update_memory functionality

This commit is contained in:
Anish Sarkar 2026-04-09 00:02:54 +05:30
parent b8de7be9aa
commit e21582f259
4 changed files with 33 additions and 224 deletions

View file

@ -19,8 +19,7 @@ const TOOL_ICONS: Record<string, LucideIcon> = {
scrape_webpage: ScanLine,
web_search: Globe,
search_surfsense_docs: BookOpen,
save_memory: Brain,
recall_memory: Brain,
update_memory: Brain,
};
export function getToolIcon(name: string): LucideIcon {

View file

@ -9,6 +9,7 @@ export const searchSpace = z.object({
user_id: z.string(),
citations_enabled: z.boolean(),
qna_custom_instructions: z.string().nullable(),
shared_memory_md: z.string().nullable().optional(),
member_count: z.number(),
is_owner: z.boolean(),
});
@ -54,6 +55,7 @@ export const updateSearchSpaceRequest = z.object({
description: true,
citations_enabled: true,
qna_custom_instructions: true,
shared_memory_md: true,
})
.partial(),
});