All Superinterfaces:
Prototype.Api, Prototype.Factory<MockChatRule>
All Known Implementing Classes:
MockChatRuleConfig.BuilderBase.MockChatRuleConfigImpl

public interface MockChatRuleConfig extends Prototype.Api
Configuration blueprint for MockChatRule.

Defines a regular expression pattern and optional response or template used by the mock chat model.

See Also:
  • Method Details

    • builder

      static MockChatRuleConfig.Builder 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

      static MockChatRuleConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static MockChatRuleConfig create(Config config)
      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

      Optional<String> response()
      Static text response that will be returned when the pattern matches.
      Returns:
      static text response
    • template

      Optional<String> template()
      Response template (e.g., using placeholders ex.: '$1' for regex pattern group 1) used when the pattern matches.
      Returns:
      optional template string