Class MockChatRuleConfig.BuilderBase.MockChatRuleConfigImpl
java.lang.Object
io.helidon.integrations.langchain4j.providers.mock.MockChatRuleConfig.BuilderBase.MockChatRuleConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<MockChatRule>,MockChatRuleConfig,Supplier<MockChatRule>
- Enclosing class:
MockChatRuleConfig.BuilderBase<BUILDER extends MockChatRuleConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MockChatRuleConfig>
protected static class MockChatRuleConfig.BuilderBase.MockChatRuleConfigImpl
extends Object
implements MockChatRuleConfig, Supplier<MockChatRule>
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.MockChatRuleConfig
MockChatRuleConfig.Builder, MockChatRuleConfig.BuilderBase<BUILDER extends MockChatRuleConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MockChatRuleConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMockChatRuleConfigImpl(MockChatRuleConfig.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.booleanget()inthashCode()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.toString()
-
Constructor Details
-
MockChatRuleConfigImpl
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<MockChatRule>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<MockChatRule>
-
pattern
Description copied from interface:MockChatRuleConfigThe regular expression pattern that this rule matches.- Specified by:
patternin interfaceMockChatRuleConfig- Returns:
- regular expression pattern
-
response
Description copied from interface:MockChatRuleConfigStatic text response that will be returned when the pattern matches.- Specified by:
responsein interfaceMockChatRuleConfig- Returns:
- static text response
-
template
Description copied from interface:MockChatRuleConfigResponse template (e.g., using placeholders ex.: '$1' for regex pattern group 1) used when the pattern matches.- Specified by:
templatein interfaceMockChatRuleConfig- Returns:
- optional template string
-
toString
-
equals
-
hashCode
public int hashCode()
-