doesStr
infix fun <Args : Tool.Args> MockLLMBuilder.MockToolReceiver<Args, ToolResult.Text>.doesStr(action: suspend () -> String): MockLLMBuilder.MockToolReceiver.MockToolResponseBuilder<Args, ToolResult.Text>(source)
Convenience extension function for configuring a text tool to execute the specified action and return its string result when it receives matching arguments.
Return
The result of the does call
Parameters
action
A function that produces the string result