Feature:memory function complete (#11982)

### What problem does this PR solve?

memory function complete

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
chanx
2025-12-17 12:35:26 +08:00
committed by GitHub
parent 2595644dfd
commit 205a6483f5
20 changed files with 226 additions and 142 deletions

View File

@ -11,6 +11,7 @@ const {
getMemoryConfig,
deleteMemoryMessage,
getMessageContent,
updateMessageState,
// getMemoryDetailShare,
} = api;
const methods = {
@ -29,6 +30,7 @@ const methods = {
},
deleteMemoryMessage: { url: deleteMemoryMessage, method: 'delete' },
getMessageContent: { url: getMessageContent, method: 'get' },
updateMessageState: { url: updateMessageState, method: 'put' },
} as const;
const memoryService = registerNextServer<keyof typeof methods>(methods);
export const updateMemoryById = (id: string, data: any) => {