- Python
- TypeScript
Basic Prompt Retrieval
| Field | Description |
|---|---|
key | The prompt key |
version | The prompt version |
system | The system prompt (with variables replaced) |
user | The user template (with variables replaced) |
Prompt A/B Testing
Run experiments on different prompt versions:Version Pinning
Automatic Trace Tagging
When you callprompts.get() or prompts.get_ab(), the next LLM call is automatically tagged with the prompt information. This allows you to see which prompts are used in your traces without any extra code.
