MockAiProvider.h header
#include <ew/app/MockAiProvider.h>
Namespace ew::app
MockAiProvider class
class ew::app::MockAiProvider
A deterministic AiProvider that answers without any network or model, for unit tests and offline development: it replies with a fixed acknowledgement that quotes the last user message, so AI features can be exercised end to end before a real provider is configured. Always "configured".
Members
AiResponse ew::app::MockAiProvider::send(const AiRequest &request) override
Returns a deterministic reply derived from the last user message in request (an error only when the request has no user message).
bool ew::app::MockAiProvider::isConfigured() const override
Always true – the mock needs no configuration.