Prompt
Prompt is a first-class prompt template with metadata.
Key fields:
id: optional prompt identifierversion: optional prompt version stringtemplate: astr.format(...)templatemetadata: arbitrary metadata
render(variables) -> strhash(variables=None) -> str
render_prompt
render_prompt(prompt, variables) -> PromptPayload renders the template and returns a payload that includes:
- Rendered
text prompt_id,prompt_versionprompt_hash
llm_step when your prompt builder returns a Prompt.