dadeumi
Version:
Dadeumi - An AI-powered literary translation workflow inspired by the Korean method of iterative textile refinement
23 lines (22 loc) • 1.02 kB
TypeScript
/**
* Translation workflow prompts
* Contains all prompts used in the multi-step translation process
*/
type PromptTemplate = (targetLanguage: string, sourceLanguage: string | undefined, sourceText?: string, previousTranslation?: string, externalReview?: string) => string;
export declare const prompts: {
system: (targetLanguage: string, sourceLanguage: string | undefined, customInstructions?: string, currentStep?: string) => string;
initialAnalysis: PromptTemplate;
expressionExploration: PromptTemplate;
toneAndCulturalDiscussion: PromptTemplate;
titleAndInspirationExploration: PromptTemplate;
firstTranslationAttempt: PromptTemplate;
selfCritiqueAndRefinement: PromptTemplate;
furtherRefinement: PromptTemplate;
finalTranslation: PromptTemplate;
externalReviewSystem: PromptTemplate;
externalReviewUser: PromptTemplate;
applyExternalFeedback: PromptTemplate;
continuationTranslation: PromptTemplate;
};
export type PromptKey = keyof typeof prompts;
export {};