/** Resolves complete prompt text through an optional registered service without owning artifacts or task catalogs. */ export declare const OPTIMIZED_PROMPT_SERVICE = "optimized_prompt"; /** Complete demonstration content supplied by the registered prompt service. */ export interface RuntimePromptDemonstration { input: { system?: string; user: string; }; expectedOutput: string; } /** Storage-independent prompt substitution contract. */ export interface RuntimePromptResolver { getPrompt(task: string, baseline?: string): { prompt: string; fewShotExamples?: RuntimePromptDemonstration[]; } | null; } /** * Minimal shape of `IAgentRuntime` we need to look up the * `OptimizedPromptService` registration. Defined here so this module does not * pull a runtime-types dependency just to read one service. Mirrors the same * shape used by `planner-loop.ts:resolveOptimizedPlannerTemplate`. */ export interface OptimizedPromptRuntimeLike { getService?: (name: string) => unknown; } /** * Look up the optimized system prompt for `task`. Returns the baseline * unchanged when no service is registered or when the service has no * artifact for the task. * * When the artifact carries `fewShotExamples`, they are inlined into the * system prompt under a `Demonstrations:` block using the canonical core * artifact shape, so every offline producer renders identically at the call * site. */ export declare function resolveOptimizedPrompt(service: RuntimePromptResolver | null | undefined, task: string, baseline: string): string; /** Looks up the optional service; an absent registration preserves the supplied baseline. */ export declare function resolveOptimizedPromptForRuntime(runtime: OptimizedPromptRuntimeLike, task: string, baseline: string): string;