mockLLMAnswer

Creates a mock LLM text response.

This function is the entry point for configuring how the LLM should respond with text when it receives specific inputs.

Return

A DefaultResponseReceiver for further configuration

Example usage:

// Mock a simple text response
mockLLMAnswer("Hello!") onRequestContains "Hello"

// Mock a default response
mockLLMAnswer("I don't know how to answer that.").asDefaultResponse

Parameters

response

The text response to return