MixedResultsReceiver

class MixedResultsReceiver<Args>(toolCalls: List<Pair<Tool<Args, *>, Args>>, responses: List<String>, builder: MockLLMBuilder)(source)

Represents a class responsible for handling and managing mixed tool call results based on mock responses and predefined configurations.

Parameters

Args

The type of tool arguments.

Constructors

Link copied to clipboard
constructor(toolCalls: List<Pair<Tool<Args, *>, Args>>, responses: List<String>, builder: MockLLMBuilder)

Functions

Link copied to clipboard
infix fun onRequestContains(pattern: String): String

Configures the system to partially match user requests containing the specified pattern. If the pattern is found within a user request, the associated tool call response will be triggered.

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

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