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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfleetContext(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.fleetTaskScheduler(org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.TaskScheduler> scheduler) The scheduler periodic work runs on.org.springframework.beans.factory.SmartInitializingSingletonsemanticEmbedderMatching(ai.badmonkey.agentspaces.agent.AgentSpaces spaces, AgentSpacesSpringAiProperties properties) Appliesagentspaces.springai.embedder.require-matchto every group's semantic discovery once the node is built.
-
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 facadestarter- the starter's properties, for the default groupproperties- this project's propertiesidentity- the node's identityauthorizer- the profile's authorizer- Returns:
- the context
-
semanticEmbedderMatching
@Bean public org.springframework.beans.factory.SmartInitializingSingleton semanticEmbedderMatching(ai.badmonkey.agentspaces.agent.AgentSpaces spaces, AgentSpacesSpringAiProperties properties) Appliesagentspaces.springai.embedder.require-matchto every group's semantic discovery once the node is built.- Parameters:
spaces- the node's facadeproperties- 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
-