import type { Model } from "@caupulican/pi-ai"; import { type ModelAdaptationRule } from "../models/adaptation-store.ts"; export interface WorkerModelGuidance { rules: ModelAdaptationRule[]; toolProbeStatus?: string; toolProbeGrade?: string; toolProbeDiagnostic?: string; protocolStatus?: string; protocolVariant?: string; teachStats?: Record; } export interface BuildWorkerSystemPromptOptions { /** Situational soul / identity snippet from shipped profile. */ soul?: string; /** Worker role prompt or execution plan prompt. */ rolePrompt: string; /** Materialized worker resource system prompt (skills/tools). */ workerResourceSystemPrompt?: string; /** Override for all layers above Level-0 subagent core. */ override?: string; /** Session agent directory to resolve ModelAdaptationStore. */ agentDir?: string; /** Provider string (e.g. "anthropic", "openai"). */ provider?: string; /** Model ID string (e.g. "claude-3-5-sonnet-20241022"). */ modelId?: string; /** Target model instance if available. */ model?: Model; } /** Formats provider and model ID into standard modelRef key. */ export declare function formatWorkerModelRef(provider: string, modelId: string): string; /** * Dynamically loads model-specific adaptation rules and tool-recovery observations * from the session's ModelAdaptationStore based on provider and model ID. */ export declare function loadWorkerModelGuidance(options: { agentDir: string; provider: string; modelId: string; }): WorkerModelGuidance; /** * Formats model adaptation rules and tool-recovery observations into prompt blocks. */ export declare function formatWorkerModelGuidancePrompt(guidance: WorkerModelGuidance): string | undefined; /** * Builds worker system prompt with level-0 subagent core, situational soul, * role prompt, resource system prompt, and dynamically appended model adaptation guidance. */ export declare function buildWorkerSystemPrompt(options: BuildWorkerSystemPromptOptions): string; //# sourceMappingURL=worker-system-prompt.d.ts.map