Skip to content

Prompt Playground

The prompt playground gives you the ability to experiment with an agent run and its different parts. It is mostly useful when you want to iterate on the system prompt, and see if you can get better results by tweaking it. Taking the following agent run as an example:

Logfire instrumentation of an agent run — View in Logfire

Clicking Open in Playground will redirect you to the Agent Playground, prefilled with the agent run data:

Private button

You will then be able to modify parts of the agent run (e.g. the system prompt, but also the user requests and tool calls), and trigger another run to see the results.

The Prompt Playground can be seen as a UI wrapper over a Pydantic AI agent. As such, you can configure which tools are available as well as the model settings (e.g. the temperature).