Learn how to test and refine your prompts interactively in the Playground.
The Prompt Playground is your interactive sandbox for testing, debugging, and refining prompts before deploying them. It lets you run prompts with different inputs, see the model’s responses in real-time, and even test how your prompt interacts with tools.
If your prompt uses Tools, the Playground allows you to simulate their responses:
Run the prompt: Initiate the prompt run as usual.
Tool Call Request: If the model decides to call a tool, the Playground will pause and display the requested tool call and its arguments.
Mock Response: Enter the JSON response you want the tool to pretend to return.
Continue: Click “Send tool response”. Latitude sends the mocked tool response back to the model, which then continues its generation process based on that simulated information.
This allows you to test the logic of your prompt’s interaction with tools without needing to execute the actual tool functions.