Class FakeProviderAutoConfiguration

java.lang.Object
com.agentforge4j.starter.llmclient.fake.FakeProviderAutoConfiguration

@AutoConfiguration(before=BootstrapAutoConfiguration.class) @EnableConfigurationProperties(FakeLlmClientProperties.class) @ConditionalOnClass(com.agentforge4j.llm.fake.FakeConfiguration.class) @ConditionalOnProperty(name="agentforge4j.llm.fake.enabled", havingValue="true") public class FakeProviderAutoConfiguration extends Object
Enables the fake scripted provider when agentforge4j.llm.fake.enabled=true once the backing module is on the classpath.

Wires three beans that share one FakeRunLifecycle store: the lifecycle itself (the registration API the test runner / demo flow injects to register/deregister scripts per run), a RegistryFakeResponseSource over it, and a FakeConfiguration carrying that source — contributed (before BootstrapAutoConfiguration) to the LlmClientConfiguration list so the resolver builds a fake client bound to the same store. The source and lifecycle are @ConditionalOnMissingBean, so an application may supply its own (for example a StaticFakeResponseSource).

  • Constructor Details

    • FakeProviderAutoConfiguration

      public FakeProviderAutoConfiguration()