import SprachmittlerText /// Chooses the documented prompt template (`docs/TRANSLATION_OUTPUT.md` ยง1, ADR-012). /// /// v1 starts with Default Translation for everything. Structured Data 1 and Delimiters are used /// only as the single fallback after a protected token was lost. public struct PromptPolicy: Sendable { /// Creates a policy. public init() {} /// The initial prompt for a content class. v1 always returns Default Translation. public func initialPrompt(for content: ContentClass) -> PromptVariant { _ = content return .defaultTranslation } /// The one fallback prompt for a lost protected token, or nil when no documented fallback /// applies. The caller enforces the one-retry limit. public func retryPrompt(for content: ContentClass, lostToken: ProtectedToken) -> PromptVariant? { switch content { case .json: return .structuredData1(format: .json) case .html: return .structuredData1(format: .html) case .markdown: return .structuredData1(format: .markdown) case .code, .delimited, .plain: _ = lostToken return .delimiters } } }