All Superinterfaces:
Prototype.Api, Prototype.Factory<MockStreamingChatModel>
All Known Implementing Classes:
MockStreamingChatModelConfig.BuilderBase.MockStreamingChatModelConfigImpl

public interface MockStreamingChatModelConfig extends Prototype.Api
Configuration blueprint for MockStreamingChatModel.
See Also:
  • 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

      static MockStreamingChatModelConfig 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

      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 to false , MockChatModel will not be available even if configured.
      Returns:
      whether MockChatModel is enabled, defaults to true
    • rules

      List<MockChatRule> rules()
      The list of MockChatRules that the mock chat model evaluates.

      Rules can be defined in configuration under langchain4j.mock.chat-model.rules and may also be provided as Service singletons.

      Returns:
      an immutable list of mock chat rules