/** * Single-turn, tool-less LLM completion helper shared by the derive and * evaluate steps. Wraps pi-agent-core's Agent + pi-ai's streamSimple, the same * primitives pi-memory uses for background work. */ import type { GoalModelConfig } from './config.js'; /** Minimal slice of ctx.modelRegistry we depend on (kept narrow for testability). */ export interface GoalModelRegistry { find(provider: string, model: string): unknown; getApiKeyAndHeaders(model: unknown): Promise<{ ok: boolean; apiKey?: string; headers?: Record; error?: string; }>; } /** * Run one system+user prompt through the model and return the assistant's text. * Returns null on any resolution/auth failure so callers can degrade gracefully * (never throws for expected failures). */ export declare function completeOnce(registry: GoalModelRegistry, modelConfig: GoalModelConfig, systemPrompt: string, userPrompt: string, signal?: AbortSignal): Promise; //# sourceMappingURL=llm.d.ts.map