Compiles a prompt by replacing variable placeholders ( or ) with the provided values. Returns the prompt with all variables substituted.
Prompt ID (cuid) or textId (deprecated)
Revision ID (cuid) - preferred method
Revision number (deprecated, use revision instead)
Variables to substitute in the prompt
Key-value map of variable names to their values