refactor: update memory tools in assistant message component

This commit is contained in:
Anish Sarkar 2026-04-09 00:02:14 +05:30
parent c358cedbae
commit b8de7be9aa
2 changed files with 4 additions and 9 deletions

View file

@ -66,12 +66,8 @@ const GenerateImageToolUI = dynamic(
() => import("@/components/tool-ui/generate-image").then(m => ({ default: m.GenerateImageToolUI })),
{ ssr: false }
);
const SaveMemoryToolUI = dynamic(
() => import("@/components/tool-ui/user-memory").then(m => ({ default: m.SaveMemoryToolUI })),
{ ssr: false }
);
const RecallMemoryToolUI = dynamic(
() => import("@/components/tool-ui/user-memory").then(m => ({ default: m.RecallMemoryToolUI })),
const UpdateMemoryToolUI = dynamic(
() => import("@/components/tool-ui/user-memory").then(m => ({ default: m.UpdateMemoryToolUI })),
{ ssr: false }
);
const SandboxExecuteToolUI = dynamic(
@ -345,8 +341,7 @@ const AssistantMessageInner: FC = () => {
generate_video_presentation: GenerateVideoPresentationToolUI,
display_image: GenerateImageToolUI,
generate_image: GenerateImageToolUI,
save_memory: SaveMemoryToolUI,
recall_memory: RecallMemoryToolUI,
update_memory: UpdateMemoryToolUI,
execute: SandboxExecuteToolUI,
create_notion_page: CreateNotionPageToolUI,
update_notion_page: UpdateNotionPageToolUI,

View file

@ -1297,7 +1297,7 @@ const TOOL_GROUPS: ToolGroup[] = [
},
{
label: "Memory",
tools: ["save_memory", "recall_memory"],
tools: ["update_memory"],
},
{
label: "Gmail",