AS AgentScopeAPI 手册 / API Reference

AgentRegistryService

public class AgentRegistryService
源码Source io/agentscope/core/a2a/server/registry/AgentRegistryService.java:31–79

智能体注册表服务,支持智能体之间的发现、委派与协作。位于 io.agentscope.core.a2a.server.registry 包。核心成员包括 register、AgentRegistryService。

Agent registry service.

Do Register operation when A2A server is ready.

构造器摘要Constructor Summary

构造器Constructor说明Description
public AgentRegistryService(List<AgentRegistry> agentRegistries)
初始化 `AgentRegistryService` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public void register(AgentCard agentCard, Set<TransportProperties> transportProperties)
执行注册相关操作。
Traversal all agent registries and do register operation.

构造器详情Constructor Detail

AgentRegistryService

public AgentRegistryService(List<AgentRegistry> agentRegistries)

初始化 AgentRegistryService 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
agentRegistriesList<AgentRegistry>智能体 Registries(类型 `List`)。The agent registries.
源码Source io/agentscope/core/a2a/server/registry/AgentRegistryService.java:37–39

方法详情Method Detail

register

public void register(AgentCard agentCard, Set<TransportProperties> transportProperties)

执行注册相关操作。

Traversal all agent registries and do register operation.

参数Parameters
名称Name类型Type说明Description
agentCardAgentCard智能体卡片(类型 `AgentCard`)。agent card to be registered
transportPropertiesSet<TransportProperties>传输层属性(类型 `Set`)。properties for transport A2A Server supported and exported
源码Source io/agentscope/core/a2a/server/registry/AgentRegistryService.java:47–55
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.