Class MockStreamingChatModelConfig.BuilderBase.MockStreamingChatModelConfigImpl
java.lang.Object
io.helidon.integrations.langchain4j.providers.mock.MockStreamingChatModelConfig.BuilderBase.MockStreamingChatModelConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<MockStreamingChatModel>,MockStreamingChatModelConfig,Supplier<MockStreamingChatModel>
- Enclosing class:
MockStreamingChatModelConfig.BuilderBase<BUILDER extends MockStreamingChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MockStreamingChatModelConfig>
protected static class MockStreamingChatModelConfig.BuilderBase.MockStreamingChatModelConfigImpl
extends Object
implements MockStreamingChatModelConfig, Supplier<MockStreamingChatModel>
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.MockStreamingChatModelConfig
MockStreamingChatModelConfig.Builder, MockStreamingChatModelConfig.BuilderBase<BUILDER extends MockStreamingChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MockStreamingChatModelConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate 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
-
MockStreamingChatModelConfigImpl
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<MockStreamingChatModel>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<MockStreamingChatModel>
-
enabled
public boolean enabled()Description copied from interface:MockStreamingChatModelConfigIf set tofalse, MockChatModel will not be available even if configured.- Specified by:
enabledin interfaceMockStreamingChatModelConfig- Returns:
- whether MockChatModel is enabled, defaults to
true
-
rules
Description copied from interface:MockStreamingChatModelConfigThe 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 interfaceMockStreamingChatModelConfig- Returns:
- an immutable list of mock chat rules
-
toString
-
equals
-
hashCode
public int hashCode()
-