(category: string, filename: string)
| 51 | } |
| 52 | |
| 53 | export async function deleteKbFile(category: string, filename: string): Promise<unknown> { |
| 54 | return httpRequest<unknown>(`/api/kb/files/${encodeURIComponent(category)}/${encodeURIComponent(filename)}`, { |
| 55 | method: "DELETE", |
| 56 | }); |
| 57 | } |
| 58 | |
| 59 | export async function syncMemoryToKb(indexMode: "append" | "overwrite" = "append"): Promise<{ |
| 60 | task_id: string; |
no test coverage detected