Class MockChatModelConfig.BuilderBase.MockChatModelConfigImpl
java.lang.Object
io.helidon.integrations.langchain4j.providers.mock.MockChatModelConfig.BuilderBase.MockChatModelConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<MockChatModel>,MockChatModelConfig,Supplier<MockChatModel>
- Enclosing class:
MockChatModelConfig.BuilderBase<BUILDER extends MockChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MockChatModelConfig>
protected static class MockChatModelConfig.BuilderBase.MockChatModelConfigImpl
extends Object
implements MockChatModelConfig, Supplier<MockChatModel>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.integrations.langchain4j.providers.mock.MockChatModelConfig
MockChatModelConfig.Builder, MockChatModelConfig.BuilderBase<BUILDER extends MockChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MockChatModelConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMockChatModelConfigImpl(MockChatModelConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.booleanenabled()If set tofalse, MockChatModel will not be available even if configured.booleanget()inthashCode()rules()The list ofMockChatRules that the mock chat model evaluates.toString()
-
Constructor Details
-
MockChatModelConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<MockChatModel>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<MockChatModel>
-
enabled
public boolean enabled()Description copied from interface:MockChatModelConfigIf set tofalse, MockChatModel will not be available even if configured.- Specified by:
enabledin interfaceMockChatModelConfig- Returns:
- whether MockChatModel is enabled, defaults to
true
-
rules
Description copied from interface:MockChatModelConfigThe list ofMockChatRules that the mock chat model evaluates.Rules can be defined in configuration under
langchain4j.mock.chat-model.rulesand may also be provided asServicesingletons.- Specified by:
rulesin interfaceMockChatModelConfig- Returns:
- an immutable list of mock chat rules
-
toString
-
equals
-
hashCode
public int hashCode()
-