Function Signature
getPrompt(id).content.
Parameters
The prompt ID to retrieve. Must be one of the available prompt IDs:
'master_prompt'- Base prompt for all translations'encyclopedia_mixed'- For mixed-discipline scholarly works'fatawa'- For Islamic legal rulings and Q&A'fiqh'- For Islamic jurisprudence'hadith'- For hadith narrations'jarh_wa_tadil'- For narrator criticism and praise'tafsir'- For Quranic commentary'usul_al_fiqh'- For principles of Islamic jurisprudence
Returns
The stacked prompt content string. For master prompt, returns as-is. For addon prompts, returns master + addon combined with a newline separator.
Example
Comparison with getPrompt
Errors
Throws anError if the prompt ID is not found:
Related
- getPrompt - Get full prompt object with metadata
- getMasterPrompt - Get only the master prompt
- stackPrompts - Manually stack prompts