Package io.agentscope.spring.boot.a2a
Class AgentscopeA2aAutoConfiguration
java.lang.Object
io.agentscope.spring.boot.a2a.AgentscopeA2aAutoConfiguration
@AutoConfiguration(after=io.agentscope.spring.boot.AgentscopeAutoConfiguration.class)
@EnableConfigurationProperties({A2aCommonProperties.class,A2aAgentCardProperties.class,JSONRPCProperties.class})
@ConditionalOnClass(io.agentscope.core.a2a.server.AgentScopeA2aServer.class)
@ConditionalOnWebApplication
@ConditionalOnProperty(prefix="agentscope.a2a.server",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class AgentscopeA2aAutoConfiguration
extends Object
Spring Boot autoconfiguration that exposes A2A beans for AgentScope.
Only support export web type transport for now. If support export not only web type, might remove condition of
ConditionalOnWebApplication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiona2aJsonRpcController(io.agentscope.core.a2a.server.AgentScopeA2aServer agentScopeA2aServer) Autoconfiguration A2A JSON-RPC controller.agentCardController(io.agentscope.core.a2a.server.AgentScopeA2aServer agentScopeA2aServer) io.agentscope.core.a2a.server.executor.runner.AgentRunneragentRunnerWithBuilder(io.agentscope.core.ReActAgent.Builder agentBuilder) io.agentscope.core.a2a.server.executor.runner.AgentRunneragentRunnerWithStarterRunner(org.springframework.beans.factory.ObjectProvider<io.agentscope.core.ReActAgent> reActAgentProvider) io.agentscope.core.a2a.server.AgentScopeA2aServeragentScopeA2aServer(io.agentscope.core.a2a.server.executor.runner.AgentRunner agentRunner, A2aAgentCardProperties agentCardProperties, A2aCommonProperties commonProperties, org.springframework.core.env.Environment environment, List<io.agentscope.core.a2a.server.registry.AgentRegistry> agentRegistries, List<io.agentscope.core.a2a.server.transport.CustomTransportProperties> transportProperties) serverReadyConfiguration(io.agentscope.core.a2a.server.AgentScopeA2aServer agentScopeA2aServer)
-
Constructor Details
-
AgentscopeA2aAutoConfiguration
public AgentscopeA2aAutoConfiguration()
-
-
Method Details
-
agentRunnerWithStarterRunner
@Bean @ConditionalOnMissingBean @ConditionalOnBean(io.agentscope.core.ReActAgent.class) public io.agentscope.core.a2a.server.executor.runner.AgentRunner agentRunnerWithStarterRunner(org.springframework.beans.factory.ObjectProvider<io.agentscope.core.ReActAgent> reActAgentProvider) -
agentRunnerWithBuilder
@Bean @ConditionalOnMissingBean @ConditionalOnBean(io.agentscope.core.ReActAgent.Builder.class) public io.agentscope.core.a2a.server.executor.runner.AgentRunner agentRunnerWithBuilder(io.agentscope.core.ReActAgent.Builder agentBuilder) -
agentScopeA2aServer
@Bean @ConditionalOnMissingBean public io.agentscope.core.a2a.server.AgentScopeA2aServer agentScopeA2aServer(io.agentscope.core.a2a.server.executor.runner.AgentRunner agentRunner, A2aAgentCardProperties agentCardProperties, A2aCommonProperties commonProperties, org.springframework.core.env.Environment environment, List<io.agentscope.core.a2a.server.registry.AgentRegistry> agentRegistries, List<io.agentscope.core.a2a.server.transport.CustomTransportProperties> transportProperties) -
agentCardController
@Bean @ConditionalOnBean(io.agentscope.core.a2a.server.AgentScopeA2aServer.class) public AgentCardController agentCardController(io.agentscope.core.a2a.server.AgentScopeA2aServer agentScopeA2aServer) -
a2aJsonRpcController
@Bean @ConditionalOnBean(io.agentscope.core.a2a.server.AgentScopeA2aServer.class) public A2aJsonRpcController a2aJsonRpcController(io.agentscope.core.a2a.server.AgentScopeA2aServer agentScopeA2aServer) Autoconfiguration A2A JSON-RPC controller.TODO should judge whether user want to export JSON-RPC transport.
- Parameters:
agentScopeA2aServer- agentscope A2a server bean- Returns:
- A2aJsonRpcController bean
-
serverReadyConfiguration
@Bean @ConditionalOnBean(io.agentscope.core.a2a.server.AgentScopeA2aServer.class) public ServerReadyListener serverReadyConfiguration(io.agentscope.core.a2a.server.AgentScopeA2aServer agentScopeA2aServer)
-