AS AgentScopeAPI 手册 / API Reference

A2aAutoConfiguration

@Configuration @ComponentScan(value = {"io.agentscope.runtime.autoconfigure", "io.agentscope.runtime.lifecycle", "io.agentscope.runtime.protocol.a2a"}) @EnableConfigurationProperties({A2aCommonProperties.class, A2aAgentCardProperties.class}) public class A2aAutoConfiguration
源码Source io/agentscope/runtime/autoconfigure/A2aAutoConfiguration.java:30–89

A 2 a Auto 配置,保存相关配置项。位于 io.agentscope.runtime.autoconfigure 包。核心成员包括 runner、deployProperties、a2aProtocolConfig。

A class in io.agentscope.runtime.autoconfigure that deploys, schedules and serves agents. Declared in io.agentscope.runtime.autoconfigure.

方法摘要Method Summary

方法Method说明Description
public Runner runner(AgentHandler agentHandler)
设置运行器。
Performs the runner operation.
public DeployProperties deployProperties(A2aCommonProperties properties, ObjectProvider<ServerProperties> serverPropertiesProvider)
执行部署属性相关操作。
Performs the deploy properties operation.
public ProtocolConfig a2aProtocolConfig(A2aAgentCardProperties cardProperties, A2aCommonProperties commonProperties)
执行a 2 a 协议配置相关操作。
Performs the a 2 a protocol config operation.

方法详情Method Detail

runner

public Runner runner(AgentHandler agentHandler)

设置运行器。

Performs the runner operation.

参数Parameters
名称Name类型Type说明Description
agentHandlerAgentHandler智能体处理器(类型 `AgentHandler`)。The agent handler.
返回Returns Runner
返回运行器。Returns runner.
源码Source io/agentscope/runtime/autoconfigure/A2aAutoConfiguration.java:36–39

deployProperties

public DeployProperties deployProperties(A2aCommonProperties properties, ObjectProvider<ServerProperties> serverPropertiesProvider)

执行部署属性相关操作。

Performs the deploy properties operation.

参数Parameters
名称Name类型Type说明Description
propertiesA2aCommonProperties属性(类型 `A2aCommonProperties`)。The properties.
serverPropertiesProviderObjectProvider<ServerProperties>服务端属性提供者(类型 `ObjectProvider`)。The server properties provider.
返回Returns DeployProperties
返回DeployProperties。Returns deploy properties.
源码Source io/agentscope/runtime/autoconfigure/A2aAutoConfiguration.java:41–55

a2aProtocolConfig

public ProtocolConfig a2aProtocolConfig(A2aAgentCardProperties cardProperties, A2aCommonProperties commonProperties)

执行a 2 a 协议配置相关操作。

Performs the a 2 a protocol config operation.

参数Parameters
名称Name类型Type说明Description
cardPropertiesA2aAgentCardProperties卡片属性(类型 `A2aAgentCardProperties`)。The card properties.
commonPropertiesA2aCommonProperties通用属性(类型 `A2aCommonProperties`)。The common properties.
返回Returns ProtocolConfig
返回ProtocolConfig。Returns protocol config.
源码Source io/agentscope/runtime/autoconfigure/A2aAutoConfiguration.java:57–69
基于官方固定版本源码静态生成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.