Class AgentSpacesA2aAutoConfiguration

java.lang.Object
ai.badmonkey.agentspaces.spring.AgentSpacesA2aAutoConfiguration

@AutoConfiguration @ConditionalOnClass(name="ai.badmonkey.agentspaces.a2a.A2aGateway") @ConditionalOnProperty(prefix="agentspaces.a2a", name="enabled", havingValue="true") public class AgentSpacesA2aAutoConfiguration extends Object
Serves the fleet's A2A gateway when agentspaces.a2a.enabled=true (TODO item 7, TECH-SPEC ยง9.4): the fleet's AgentCards as A2A Agent Cards and A2A JSON-RPC tasks bound to agentspaces.a2a.space, gated by the same bearer rule the console uses. A static token wins; otherwise, with agentspaces.security.oidc.* configured, a BearerJwtValidator over the identity provider's keys requiring required-scope; otherwise the gateway is ungated, which startup refuses unless bind is a loopback address. Each bean is @ConditionalOnMissingBean.
  • Constructor Details

    • AgentSpacesA2aAutoConfiguration

      public AgentSpacesA2aAutoConfiguration()
  • Method Details

    • agentSpacesA2aGateway

      @Bean @ConditionalOnMissingBean public A2aGateway agentSpacesA2aGateway(AgentSpacesProperties properties, AgentSpaces spaces)
      The gateway over the configured group's cards and task space.
      Parameters:
      properties - the starter configuration
      spaces - the fabric facade
      Returns:
      the gateway, not yet listening
    • agentSpacesA2aLifecycle

      @Bean @ConditionalOnMissingBean public AgentSpacesA2aLifecycle agentSpacesA2aLifecycle(AgentSpacesProperties properties, A2aGateway gateway)
      Starts the gateway once the fabric is up and stops it first on the way down.
      Parameters:
      properties - the starter configuration
      gateway - the gateway
      Returns:
      the lifecycle