Mock Tool Use allows you to simulate LLM tool calls and their responses without executing the actual tools. This feature is available both in the Playground for interactive testing and in Test Case definitions for automated testing.When you define a mock tool use, you specify the tool name, arguments, and expected result in a single form. Asserto automatically translates this into two separate messages in the conversation flow: the tool call and the tool result.
When used in test cases, the mock tool use appears as part of the conversation flow:
Tool Call section shows the tool name and arguments
Tool Result section displays the mocked response
The mocked tool responses are added as messages in the conversation context, allowing you to test complex workflows and longer interactions without executing actual tools.