Create background job runner and memory refresh jobs

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-04-19 20:42:01 -05:00
1 parent 22b4d8a176
commit 29f7355291
30 files changed
+18677 -107

No files matched your search

+7
View File
@@ -9,6 +9,7 @@ import type {
MemoryOperation,
MemoryProviderDescriptor,
MemoryRecord,
MemoryRefreshJobResult,
MemoryRetentionSweep,
MemoryRetentionSweepResult,
MemoryReview,
@@ -20,6 +21,7 @@ import type {
SetCompanyMemoryBinding,
SetProjectMemoryBinding,
UpdateMemoryBinding,
MemoryRefreshJob,
} from "@paperclipai/shared";
import { api } from "./client";
@@ -79,4 +81,9 @@ export const memoryApi = {
`/companies/${encodeURIComponent(companyId)}/memory/retention/sweep`,
data,
),
startRefreshJob: (companyId: string, data: MemoryRefreshJob) =>
api.post<MemoryRefreshJobResult>(
`/companies/${encodeURIComponent(companyId)}/memory/refresh-jobs`,
data,
),
};