Interface MockChatModelConfig
- All Superinterfaces:
Prototype.Api,Prototype.Factory<MockChatModel>
- All Known Implementing Classes:
MockChatModelConfig.BuilderBase.MockChatModelConfigImpl
Configuration blueprint for
MockChatModel.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forMockChatModel.static classMockChatModelConfig.BuilderBase<BUILDER extends MockChatModelConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MockChatModelConfig> Fluent API builder base forMockChatModelConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic MockChatModelConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static MockChatModelConfig.Builderbuilder(MockChatModelConfig instance) Create a new fluent API builder from an existing instance.static MockChatModelConfigcreate()Create a new instance with default values.static MockChatModelConfigDeprecated.static MockChatModelConfigCreate a new instance from configuration.booleanenabled()If set tofalse, MockChatModel will not be available even if configured.rules()The list ofMockChatRules that the mock chat model evaluates.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
enabled
boolean enabled()If set tofalse, MockChatModel will not be available even if configured.- Returns:
- whether MockChatModel is enabled, defaults to
true
-
rules
List<MockChatRule> rules()The 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.- Returns:
- an immutable list of mock chat rules
-
create(io.helidon.config.Config)