How to do it
- Open a trace and click into an LLM span
- Click Open in Playground in the span toolbar
- The Playground opens with the prompt template, input variables, and model settings pre-filled
- Edit the prompt, adjust parameters, click Run to compare
- Save to Prompt Hub for version control and deployment
The Prompt Playground is designed for single LLM call iteration — editing prompt templates, adjusting parameters, and comparing outputs. It does not support replaying full agentic workflows (multi-step tool calls, agent chains). For agentic debugging, use the Find issues and Agent Trajectory views to understand the full execution path, then fix individual LLM prompts in the Playground.
What you can change
- Prompt template — rewrite instructions, add constraints, change tone
- Model — switch providers or versions to compare behavior
- Parameters — temperature, max tokens, top-p
- Input variables — swap in different values to test edge cases
Save and deploy
- Save to Prompt Hub to version the prompt
- Your app pulls the latest version from Prompt Hub automatically
- Run an experiment to validate the change before deploying