Interface MockChatRuleConfig
- All Superinterfaces:
Prototype.Api,Prototype.Factory<MockChatRule>
- All Known Implementing Classes:
MockChatRuleConfig.BuilderBase.MockChatRuleConfigImpl
Configuration blueprint for
MockChatRule.
Defines a regular expression pattern and optional response or template used by the mock chat model.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forMockChatRule.static classMockChatRuleConfig.BuilderBase<BUILDER extends MockChatRuleConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MockChatRuleConfig> Fluent API builder base forMockChatRuleConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic MockChatRuleConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static MockChatRuleConfig.Builderbuilder(MockChatRuleConfig instance) Create a new fluent API builder from an existing instance.static MockChatRuleConfigDeprecated.static MockChatRuleConfigCreate a new instance from configuration.pattern()The regular expression pattern that this rule matches.response()Static text response that will be returned when the pattern matches.template()Response template (e.g., using placeholders ex.: '$1' for regex pattern group 1) used when the pattern matches.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
-
pattern
Pattern pattern()The regular expression pattern that this rule matches.- Returns:
- regular expression pattern
-
response
Static text response that will be returned when the pattern matches.- Returns:
- static text response
-
template
Response template (e.g., using placeholders ex.: '$1' for regex pattern group 1) used when the pattern matches.- Returns:
- optional template string
-
create(io.helidon.config.Config)