Class FakeConfiguration

java.lang.Object
com.agentforge4j.llm.fake.FakeConfiguration
All Implemented Interfaces:
LlmClientConfiguration

public final class FakeConfiguration extends Object implements LlmClientConfiguration
Configuration for the fake provider. Unlike HTTP providers, the load-bearing field is the FakeResponseSource — the shared per-run store that the registration API (test runner / demo flow) also holds — so the FakeLlmClientFactory-built client and the registration API resolve against one store.

Wire this through the embedding application or programmatic withLlmProvider(...); the env/system-property bootstrap discovery path supplies a generic configuration and cannot carry a source, so it does not configure the fake provider (the same way Ollama requires its own configuration subtype).

  • Constructor Details

    • FakeConfiguration

      public FakeConfiguration(FakeResponseSource responseSource)
      Creates a configuration with the default model id and a zero connect timeout.
      Parameters:
      responseSource - the scripted response source; must not be null
    • FakeConfiguration

      public FakeConfiguration(FakeResponseSource responseSource, String defaultModel, Duration connectTimeout)
      Creates a configuration with an explicit default model and connect timeout.
      Parameters:
      responseSource - the scripted response source; must not be null
      defaultModel - default model id reported to callers; must not be blank
      connectTimeout - nominal connect timeout (unused by the fake transport); must not be null
  • Method Details