A2aServerRegistryAutoConfiguration
@AutoConfiguration(after = AgentCardConfiguration.class, afterName = "io.agentscope.runtime.autoconfigure.A2aAutoConfiguration") @ConditionalOnBean({AgentCard.class, DeployProperties.class}) public class A2aServerRegistryAutoConfiguration
源码Source
io/agentscope/extensions/runtime/a2a/registry/autoconfigure/A2aServerRegistryAutoConfiguration.java:36–47AutoConfiguration 用于 A2A 服务端注册表。位于 io.agentscope.extensions.runtime.a2a.registry.autoconfigure 包。核心成员包括 agentRegistryService。
The AutoConfiguration for A2A server registry.
If runner with A2A protocol enabled, try to do register AgentCard and AgentInterface to Registry.
This AutoConfiguration should load after agentscope export AgentCard and DeployProperties.
方法摘要Method Summary
方法详情Method Detail
agentRegistryService
public AgentRegistryService agentRegistryService(AgentCard agentCard, AgentRegistry agentRegistry, DeployProperties deployProperties)
执行智能体注册表服务相关操作。
Performs the agent registry service operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentCard | AgentCard | 智能体卡片(类型 `AgentCard`)。The agent card. |
agentRegistry | AgentRegistry | 智能体注册表(类型 `AgentRegistry`)。The agent registry. |
deployProperties | DeployProperties | 部署属性(类型 `DeployProperties`)。The deploy properties. |
AgentRegistryService返回AgentRegistryService。Returns agent registry service.
源码Source
io/agentscope/extensions/runtime/a2a/registry/autoconfigure/A2aServerRegistryAutoConfiguration.java:40–45