Test Deep Agent prompt
Deep Agent prompt can be tested using various combinations of LLMs and model parameters, and comparing the responses. Refer to Test Agent Prompt for details about prompt testing.
Execution Control Using Interrupt Tool
The following steps outline the Deep Agent behavior when an Interrupt Tool enabled tool is triggered during testing.
Navigate to the Test & Compare tab in deep agent prompt.
Enter the required input in the User Input section.
Click Test to execute the Deep Agent prompt
Once testing starts, the Deep Agent begins processing the request.
All execution activity is displayed in the Events panel on the right side of the screen.
The Events panel provides a structured and real-time view of the execution flow. It displays:
The original user input
The Deep Agent’s processing steps
Any tool that is being invoked
The current execution status (e.g., running, interrupted, completed)
This panel allows users to track how the request is being handled at each stage.
When the Deep Agent invokes a tool configured with Interrupt Tool, execution pauses automatically.
At this point:
The workflow is temporarily halted.
The execution state is preserved.
The Events panel indicates that the tool invocation has been interrupted.

Click Format response to view the structured tool invocation details.
This displays:
The tool name
The generated tool arguments
The available user decision options

When interruption occurs, the following options are displayed:


For lengthy or multi-step queries, the Deep Agent may trigger additional tool invocations that are also configured with interruption.
In such cases:
Execution will pause again.
The user must review the tool invocation.
Approve, Edit, or Reject.
Click Submit to continue.
This process may repeat until all required tool invocations are completed and the final response is generated.

After all required tool invocations are reviewed and approved (or edited and submitted), the Deep Agent completes execution and generates the final response. The completed output is displayed in the Events panel under the corresponding model, indicating that the workflow has successfully finished.

Last updated
