AS AgentScopeAPI 手册 / API Reference

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–47

AutoConfiguration 用于 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说明Description
public AgentRegistryService agentRegistryService(AgentCard agentCard, AgentRegistry agentRegistry, DeployProperties deployProperties)
执行智能体注册表服务相关操作。
Performs the agent registry service operation.

方法详情Method Detail

agentRegistryService

public AgentRegistryService agentRegistryService(AgentCard agentCard, AgentRegistry agentRegistry, DeployProperties deployProperties)

执行智能体注册表服务相关操作。

Performs the agent registry service operation.

参数Parameters
名称Name类型Type说明Description
agentCardAgentCard智能体卡片(类型 `AgentCard`)。The agent card.
agentRegistryAgentRegistry智能体注册表(类型 `AgentRegistry`)。The agent registry.
deployPropertiesDeployProperties部署属性(类型 `DeployProperties`)。The deploy properties.
返回Returns AgentRegistryService
返回AgentRegistryService。Returns agent registry service.
源码Source io/agentscope/extensions/runtime/a2a/registry/autoconfigure/A2aServerRegistryAutoConfiguration.java:40–45
基于官方固定版本源码静态生成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.