/** * @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 KbReindexTaskInput = { knowledgeBase: unknown; }; export type KbReindexTaskOutput = { count: number; }; export type KbReindexTaskConfig = TaskConfig; /** * Re-index every document in a knowledge base via its installed AI strategy. * The strategy handles chunking + embedding using the KB's configured * `docEmbeddingModel`. Replaces the multi-task embed workflow pattern. */ export declare class KbReindexTask extends Task { static type: string; static category: string; static title: string; static description: string; static readonly requires: readonly Capability[]; static cachePolicy: CachePolicy; static inputSchema(): DataPortSchema; static outputSchema(): DataPortSchema; execute(input: KbReindexTaskInput, context: IExecuteContext): Promise; } export declare const kbReindex: (input: KbReindexTaskInput, config?: KbReindexTaskConfig, runConfig?: Partial) => Promise; declare module "@workglow/task-graph" { interface Workflow { kbReindex: CreateWorkflow; } } //# sourceMappingURL=KbReindexTask.d.ts.map