/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { CachePolicy, IRunConfig, TaskConfig } from "@workglow/task-graph"; import { CreateWorkflow, IExecuteContext, Task } from "@workglow/task-graph"; import type { DataPortSchema } from "@workglow/util/schema"; import type { Capability } from "../capability/Capabilities"; export type KbDeleteTaskInput = { doc_id: string; knowledgeBase: unknown; }; export type KbDeleteTaskOutput = { doc_id: string; }; export type KbDeleteTaskConfig = TaskConfig; /** * Delete a document and its chunks from a knowledge base via the KB's * installed strategy. Echoes `doc_id` so the task is composable in * pipelines that need to pass the id to a downstream step. */ export declare class KbDeleteTask extends Task { static type: string; static readonly requires: readonly Capability[]; static category: string; static title: string; static description: string; static cachePolicy: CachePolicy; static inputSchema(): DataPortSchema; static outputSchema(): DataPortSchema; execute(input: KbDeleteTaskInput, context: IExecuteContext): Promise; } export declare const kbDelete: (input: KbDeleteTaskInput, config?: KbDeleteTaskConfig, runConfig?: Partial) => Promise; declare module "@workglow/task-graph" { interface Workflow { kbDelete: CreateWorkflow; } } //# sourceMappingURL=KbDeleteTask.d.ts.map