java.lang.Object
io.helidon.integrations.langchain4j.providers.mock.MockChatModel
All Implemented Interfaces:
dev.langchain4j.model.chat.ChatModel, RuntimeType.Api<MockChatModelConfig>

public class MockChatModel extends Object implements RuntimeType.Api<MockChatModelConfig>, dev.langchain4j.model.chat.ChatModel
Mock implementation of ChatModel for testing.

This model evaluates the list of MockChatRule defined in configuration or injected as singleton service. The first rule that matches the incoming ChatRequest is used to generate a mock ChatResponse. If no rule matches, a default rule is applied.