import type { Capability, ToolDeclaration, CapabilityPromptSection, CapabilityAction } from './index.js'; /** * Simplified retrieval interface for the capability layer. * Decoupled from AutoRetrieveProvider's RunContext requirement — the * capability system is backend-agnostic and has no RunContext at tool time. */ export interface RetrieveProvider { run: (opts: { input: string; }) => Promise<{ text: string; } | null>; label?: string; } export interface AutoRetrieveCapabilityConfig { provider: RetrieveProvider; } /** * Converts auto-retrieve from a pipeline stage to an on-demand * `search_knowledge_base` tool. The LLM decides when to call it; * the result flows back as a tool result for the LLM to use. */ export declare class AutoRetrieveCapability implements Capability { private provider; constructor(config: AutoRetrieveCapabilityConfig); getTools(): ToolDeclaration[]; getPromptSections(): CapabilityPromptSection[]; processToolResult(_toolName: string, _args: unknown, _result: unknown): CapabilityAction | null; }