mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-10 20:46:28 +01:00
Create background job runner and memory refresh jobs
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
22b4d8a176
commit
29f7355291
30 files changed
+18677
-107
No files matched your search
@@ -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,
|
||||
),
|
||||
};
|
||||
Reference in new issue
Block a user