Edit and Test Supervisor Agents Iteratively in Playground
You can use Edit in Playground to edit and test your supervisor agents and large language model (LLM) nodes. This option enables iterative, real-time testing and refinement of supervisor agent instructions and parameters, without deploying changes to the production environment. It bridges the gap between high-level intent and the step-by-step process, so you can safely test, adjust, and fine-tune your agent’s behavior before deploying it to production.
To edit and test supervisor agents:
- Go to AI Agent Studio and select the
Marketplace
tab. - Select the Supervisor Agents subtab.Note: You can also access the Supervisor Agents subtab from the Resources
tab. - Search for the supervisor agent and then select Edit
to modify it. - From the editing area, select Edit in Playground to edit and test your supervisor agents.
- Edit the agent details to adjust the prompt logic and model parameters. To edit
and view real-time results in a dual-pane layout, you can select View
Results
.Prompts Tab
You can design templates and instructions that guide the supervisor agent’s behavior.Note: The system prompt and summarization prompts are specific to supervisor type of agents.Field Description System Prompt Edit the system prompt to define your agent’s identity, job description, and rules. Summarization Prompt Select the summarization mode, and edit the summarization prompts to include only essential instructions relevant to your specific use case. Note: You can add expressions to fields using Insert Expression
. For more information, see Expressions.LLM Tab
Choose the type of model and change the custom model properties if needed. You can either use the default model or choose a model.Field Description Provider Select the default model or a custom model. For custom models, define the model properties. Input Tab
Enter the specific test data, variables, or context required for a supervisor agent or LLM node to run. You can simulate real-world triggers and verify that your agent processes incoming information correctly before saving your changes.Field Description User Input Enter your queries or actionable commands that initiates the supervisor agent's logic. Evaluation Use evaluation sets to assess your supervisor agent's performance. An evaluation set contains one or more test questions, the expected agent responses, and the metrics to be measured. For more information, see Evaluate Agents. Variables Configure variables, making them accessible to all nodes within the workflow. Additional Variables Add additional variables to the prompt. For example, to add the current system date to your prompt, select the Current Date and Time option using Insert Expression
.Output Tab
Configure the overall structure of the supervisor agent’s output using JSON schema, to specify the exact output.Field Description Specification Mode Select this mode to directly modify the JSON schema for the output. Simple Mode Select this mode to define the output values and types. The corresponding JSON schema will be generated automatically and displayed in the specification mode for any further changes. - Select Save and Test to verify the changes you made and
test the supervisor agent or the LLM node. While the test is running, you can
monitor the results and performance in these sections:
- Input: Review the messages you entered in the Input Message field on the Input tab. To view the JSON schema, select JSON. To view the final response, select Human.
- Output: Select a session to open the detailed trace view. The trace shows a step-by-step timeline of the run, including which tools were called, how long each step took, and metrics for each step. Select the color-coded trace lines to view details, such as latency and input or output token usage. To view the final response, select Human.
- Select Run History
to view, compare, and reuse previous test runs. You can view a detailed
record of every run and track your supervisor agent’s performance. - Select Edit
to add a comment in the change log. - Select Apply
to load a proven configuration into the panel and resume
iterative testing from a high-quality baseline. This action only affects
the testing environment and won't update your production supervisor
agent until deployed. - Use Expand
to view change log details of the test. - You can compare any two runs by selecting them. Select Compare to view a pane displaying the details of each run and highlighting their differences.
- Select Save and Test to save your changes to the supervisor agent, and run the agent with the test configuration.
- Select Edit
- Select Done.
- After testing your changes, publish your supervisor agent.