ToolCallReceiver

class ToolCallReceiver<Args : Tool.Args>(tool: Tool<Args, *>, args: Args, builder: MockLLMBuilder)(source)

Receiver class for configuring tool call responses from the LLM.

This class is part of the fluent API for configuring how the LLM should respond with tool calls when it receives specific inputs.

Parameters

Args

The type of arguments the tool accepts

Constructors

Link copied to clipboard
constructor(tool: Tool<Args, *>, args: Args, builder: MockLLMBuilder)

Functions

Link copied to clipboard
infix fun onRequestEquals(llmAnswer: String): String

Configures the LLM to respond with a tool call when the user request exactly matches the specified pattern.