Package com.agentforge4j.starter
Class BootstrapAutoConfiguration
java.lang.Object
com.agentforge4j.starter.BootstrapAutoConfiguration
@AutoConfiguration(after=org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration.class)
@EnableConfigurationProperties({AgentForge4jProperties.class,LlmCacheSettings.class,ModelTierProperties.class,ToolProperties.class})
public class BootstrapAutoConfiguration
extends Object
Auto-configures AgentForge4j by delegating to
AgentForge4jBootstrap.
Exposes a single AgentForge4j bean. All assembled components are
accessible via AgentForge4j.components(). Spring beans for individual components can be
registered by the application as needed:
public WorkflowRuntime workflowRuntime(AgentForge4j agentForge4j) {
return agentForge4j.runtime();
}
Register the method above as a Spring bean when needed.
Maps AgentForge4jProperties to bootstrap builder calls. All beans use
ConditionalOnMissingBean — the AgentForge4j bean can be overridden by the
application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.agentforge4j.bootstrap.AgentForge4jagentForge4j(AgentForge4jProperties properties, LlmCacheSettings cacheSettings, ModelTierProperties modelTierProperties, ToolProperties toolProperties, org.springframework.beans.factory.ObjectProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, org.springframework.beans.factory.ObjectProvider<List<com.agentforge4j.llm.LlmClientConfiguration>> llmConfigurations, org.springframework.beans.factory.ObjectProvider<List<com.agentforge4j.core.spi.tool.ToolProvider>> toolProviders, org.springframework.beans.factory.ObjectProvider<com.agentforge4j.core.spi.tool.ToolPolicy> toolPolicy, org.springframework.beans.factory.ObjectProvider<com.agentforge4j.core.spi.tool.ToolExecutionOptions> toolExecutionOptions, org.springframework.beans.factory.ObjectProvider<com.agentforge4j.core.spi.integration.IntegrationConfigLoader> integrationConfigLoader, org.springframework.beans.factory.ObjectProvider<com.agentforge4j.core.spi.integration.MutableIntegrationRepository> integrationRepository, org.springframework.beans.factory.ObjectProvider<com.agentforge4j.core.spi.integration.ToolProviderFactory> toolProviderFactory) Assembles and exposes the full AgentForge4j facade.
-
Constructor Details
-
BootstrapAutoConfiguration
public BootstrapAutoConfiguration()
-
-
Method Details
-
agentForge4j
@Bean @ConditionalOnMissingBean public com.agentforge4j.bootstrap.AgentForge4j agentForge4j(AgentForge4jProperties properties, LlmCacheSettings cacheSettings, ModelTierProperties modelTierProperties, ToolProperties toolProperties, org.springframework.beans.factory.ObjectProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, org.springframework.beans.factory.ObjectProvider<List<com.agentforge4j.llm.LlmClientConfiguration>> llmConfigurations, org.springframework.beans.factory.ObjectProvider<List<com.agentforge4j.core.spi.tool.ToolProvider>> toolProviders, org.springframework.beans.factory.ObjectProvider<com.agentforge4j.core.spi.tool.ToolPolicy> toolPolicy, org.springframework.beans.factory.ObjectProvider<com.agentforge4j.core.spi.tool.ToolExecutionOptions> toolExecutionOptions, org.springframework.beans.factory.ObjectProvider<com.agentforge4j.core.spi.integration.IntegrationConfigLoader> integrationConfigLoader, org.springframework.beans.factory.ObjectProvider<com.agentforge4j.core.spi.integration.MutableIntegrationRepository> integrationRepository, org.springframework.beans.factory.ObjectProvider<com.agentforge4j.core.spi.integration.ToolProviderFactory> toolProviderFactory) Assembles and exposes the full AgentForge4j facade.- Parameters:
properties- bound AgentForge4j properties; must not benullcacheSettings- LLM prompt cache settings; must not benullobjectMapperProvider- optional Jackson mapper from the contextllmConfigurations- optional provider configuration beans registered before this config- Returns:
- assembled facade; never
null
-