mockLLMMixedResponse
fun <Args : ToolArgs> mockLLMMixedResponse(toolCalls: List<Pair<Tool<Args, *>, Args>>, responses: List<String>): MockLLMBuilder.MixedResultsReceiver<Args>(source)
Creates a mock response with a combination of tool calls and predefined string responses.
This method is used to define a mixed behavior where the LLM produces a sequence of tool calls along with corresponding responses for testing purposes.
Return
A MixedResultsReceiver to configure further mock behavior for the provided tool calls and responses.
Parameters
toolCalls
A list of pairs, where each pair consists of a tool and the corresponding arguments.
responses
A list of response strings corresponding to the provided tool calls. These define what the LLM should output for each tool call.