Retrieves and renders a prompt template with the provided context.
Uses Mustache for template rendering, supporting variables, conditionals, and loops in your prompt templates.
The unique identifier of the prompt template
The context object for template variable substitution
Promise resolving to the rendered prompt string
KV client for reading and rendering prompt templates from Cloudflare KV.
Optimized for edge/serverless environments, this client provides fast access to prompt templates stored in a KV namespace. Includes built-in Mustache template rendering for dynamic prompt generation.
Example