FakeHandlerLLM constructor

FakeHandlerLLM({
  1. required String handler(
    1. String prompt,
    2. LLMOptions? options,
    3. int callCount
    ),
})

Fake LLM for testing. It returns the string returned by the handler function.

Implementation

FakeHandlerLLM({
  required this.handler,
}) : super(defaultOptions: const FakeLLMOptions());