MockToolReceiver
class MockToolReceiver<Args : Tool.Args, Result : ToolResult>(tool: Tool<Args, Result>, builder: MockLLMBuilder)(source)
Receiver class for configuring tool behavior during testing.
This class is part of the fluent API for configuring how tools should behave when they are called during testing.
Parameters
Args
The type of arguments the tool accepts
Result
The type of result the tool produces
Types
Link copied to clipboard
class MockToolResponseBuilder<Args : Tool.Args, Result : ToolResult>(tool: Tool<Args, Result>, action: suspend () -> Result, builder: MockLLMBuilder)
Builder class for configuring conditional tool responses.