mockLLMToolCall

fun <Args : ToolArgs> mockLLMToolCall(tool: Tool<Args, *>, args: Args, toolCallId: String? = null): MockLLMBuilder.ToolCallReceiver<Args>(source)

Creates a mock for an LLM tool call.

This method is used to define how the LLM should respond with a tool call when it receives a specific input.

Return

A ToolCallReceiver for further configuration

Parameters

tool

The tool to be called

args

The arguments to pass to the tool


Creates a mock for a list of LLM tool calls.

This method is used to define how the LLM should respond with multiple tool calls when specific inputs or conditions are encountered during testing.

Return

A MultiToolCallReceiver to configure further mock behavior for the provided tool calls.

Parameters

toolCalls

A list of pairs, where each pair consists of a tool and corresponding arguments. These define the mock calls to be returned by the LLM.