F4: verify task recovery and document Prompt background jobs
This commit is contained in:
@@ -1004,6 +1004,7 @@ export type BackgroundTask = {
|
||||
};
|
||||
};
|
||||
export const backgroundTasksApi = {
|
||||
refresh: (id: string) => request<BackgroundTask>(`/api/background-tasks/${encodeURIComponent(id)}/refresh`, { method: "POST" }),
|
||||
list: (assistantId: string) => request<BackgroundTask[]>(`/api/background-tasks?assistant_id=${encodeURIComponent(assistantId)}`),
|
||||
cancel: (id: string) => request<BackgroundTask>(`/api/background-tasks/${encodeURIComponent(id)}/cancel`, { method: "POST" }),
|
||||
input: (id: string, value: { reply?: string; answers?: string[][] }) => request<BackgroundTask>(`/api/background-tasks/${encodeURIComponent(id)}/input`, { method: "POST", body: JSON.stringify(value) }),
|
||||
|
||||
Reference in New Issue
Block a user