Open a trace in the playground

When viewing a trace, you can directly open any span related to an LLM call with messages in the Playground by clicking the Open in playground button.


When opened in the Playground, the messages will be pre-populated as the prompt’s messages matching the roles and content. The model parameters will also be pre-populated. Parea will try to pre-populate templated prompts by checking if any input values exist in the messages.

For example, consider a trace that has the input {"question": "What is the capital of France?"} and message [{"role": "user", "content": "What is the capital of France?"}]. This will be converted to a prompt template with the following message: [{"role": "user", "content": "{{question}}"}], and an example row will be created with key question and value What is the capital of France?.