Class AgentSpacesSpringAiAutoConfiguration

java.lang.Object
ai.badmonkey.agentspaces.springai.autoconfigure.AgentSpacesSpringAiAutoConfiguration

@AutoConfiguration(afterName="ai.badmonkey.agentspaces.spring.AgentSpacesAutoConfiguration") @ConditionalOnClass(org.springframework.ai.chat.model.ChatModel.class) @ConditionalOnBean(ai.badmonkey.agentspaces.agent.AgentSpaces.class) @EnableConfigurationProperties(AgentSpacesSpringAiProperties.class) public class AgentSpacesSpringAiAutoConfiguration extends Object
The shared base of every agentspaces-springai feature: the properties, the FleetContext each feature resolves its group and spaces through, and the scheduler periodic work runs on. Each feature has its own auto-configuration, ordered after this one, so an application that excludes one feature keeps the rest.
  • Constructor Details

    • AgentSpacesSpringAiAutoConfiguration

      public AgentSpacesSpringAiAutoConfiguration()
  • Method Details

    • fleetContext

      @Bean @ConditionalOnMissingBean public FleetContext fleetContext(ai.badmonkey.agentspaces.agent.AgentSpaces spaces, ai.badmonkey.agentspaces.spring.AgentSpacesProperties starter, AgentSpacesSpringAiProperties properties, ai.badmonkey.agentspaces.identity.PeerIdentity identity, ai.badmonkey.agentspaces.api.spi.Authorizer authorizer)
      The group, identity, and authorizer every feature works through.
      Parameters:
      spaces - the node's facade
      starter - the starter's properties, for the default group
      properties - this project's properties
      identity - the node's identity
      authorizer - the profile's authorizer
      Returns:
      the context
    • semanticEmbedderMatching

      @Bean public org.springframework.beans.factory.SmartInitializingSingleton semanticEmbedderMatching(ai.badmonkey.agentspaces.agent.AgentSpaces spaces, AgentSpacesSpringAiProperties properties)
      Applies agentspaces.springai.embedder.require-match to every group's semantic discovery once the node is built.
      Parameters:
      spaces - the node's facade
      properties - the properties
      Returns:
      the initializer
    • fleetTaskScheduler

      @Bean @ConditionalOnMissingBean public FleetTaskScheduler fleetTaskScheduler(org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.TaskScheduler> scheduler)
      The scheduler periodic work runs on.
      Parameters:
      scheduler - the application's scheduler, if it defines one
      Returns:
      the scheduler holder