feat(assistant): unify confirmed memory capture
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type {
|
||||
AssistantCapture,
|
||||
MemoryCandidate,
|
||||
MemoryConfirmRequest,
|
||||
MemoryConfirmResult,
|
||||
@@ -44,6 +45,13 @@ export const dismissMemoryCandidate = (candidateId: number) =>
|
||||
timeout: 15000
|
||||
});
|
||||
|
||||
export const getAssistantCaptures = async () =>
|
||||
rowsOf(await apiRequest<AssistantCapture[] | { rows?: AssistantCapture[]; records?: AssistantCapture[] }>({
|
||||
url: '/api/aihr/personal-assistant/assistant-captures?limit=50',
|
||||
method: 'GET',
|
||||
timeout: 15000
|
||||
}));
|
||||
|
||||
export const getServiceMemories = async () => {
|
||||
const rows = rowsOf(await apiRequest<RawServiceMemory[] | { rows?: RawServiceMemory[]; records?: RawServiceMemory[] }>({
|
||||
url: '/api/aihr/service-memories',
|
||||
|
||||
Reference in New Issue
Block a user