does

Configures a tool to execute the provided suspendable action whenever it is invoked.

Return

A MockToolFromCallableResponseBuilder instance for additional configuration of the mock tool's behavior.

Parameters

action

A suspendable function that returns a Result. The action is executed each time the tool is called.