Builder
public static class Builder
io/agentscope/runtime/protocol/a2a/A2aProtocolConfig.java:58–87构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.protocol.a2a 包。核心成员包括 agentCard、agentCompletionTimeoutSeconds、consumptionCompletionTimeoutSeconds、build。
A class in io.agentscope.runtime.protocol.a2a that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.runtime.protocol.a2a.
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
agentCard | ConfigurableAgentCard | 智能体卡片字段。 The agent card field. |
agentCompletionTimeoutSeconds | int | 智能体补全超时秒字段。 The agent completion timeout seconds field. |
consumptionCompletionTimeoutSeconds | int | `consumptionCompletionTimeoutSeconds` 字段。 The consumption completion timeout seconds field. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder agentCard(ConfigurableAgentCard agentCard) | 设置智能体卡片。 Performs the agent card operation. |
public Builder agentCompletionTimeoutSeconds(int agentCompletionTimeoutSeconds) | 设置智能体补全超时秒。 Performs the agent completion timeout seconds operation. |
public Builder consumptionCompletionTimeoutSeconds(int consumptionCompletionTimeoutSeconds) | 设置该配置项。 Performs the consumption completion timeout seconds operation. |
public A2aProtocolConfig build() | 构建并返回最终实例。 Creates and returns an instance. |
字段详情Field Detail
agentCard
protected ConfigurableAgentCard agentCard
智能体卡片字段。声明为 protected ConfigurableAgentCard agentCard。
The agent card field.
io/agentscope/runtime/protocol/a2a/A2aProtocolConfig.java:60agentCompletionTimeoutSeconds
protected int agentCompletionTimeoutSeconds
智能体补全超时秒字段。声明为 protected int agentCompletionTimeoutSeconds。
The agent completion timeout seconds field.
io/agentscope/runtime/protocol/a2a/A2aProtocolConfig.java:62consumptionCompletionTimeoutSeconds
protected int consumptionCompletionTimeoutSeconds
consumptionCompletionTimeoutSeconds 字段。声明为 protected int consumptionCompletionTimeoutSeconds。
The consumption completion timeout seconds field.
io/agentscope/runtime/protocol/a2a/A2aProtocolConfig.java:64方法详情Method Detail
agentCard
public Builder agentCard(ConfigurableAgentCard agentCard)
设置智能体卡片。
Performs the agent card operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentCard | ConfigurableAgentCard | 智能体卡片(类型 `ConfigurableAgentCard`)。The agent card. |
Builderio/agentscope/runtime/protocol/a2a/A2aProtocolConfig.java:66–69agentCompletionTimeoutSeconds
public Builder agentCompletionTimeoutSeconds(int agentCompletionTimeoutSeconds)
设置智能体补全超时秒。
Performs the agent completion timeout seconds operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentCompletionTimeoutSeconds | int | 智能体补全超时秒(类型 `int`)。The agent completion timeout seconds. |
Builderio/agentscope/runtime/protocol/a2a/A2aProtocolConfig.java:71–74consumptionCompletionTimeoutSeconds
public Builder consumptionCompletionTimeoutSeconds(int consumptionCompletionTimeoutSeconds)
设置该配置项。
Performs the consumption completion timeout seconds operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
consumptionCompletionTimeoutSeconds | int | consumption 补全超时秒(类型 `int`)。The consumption completion timeout seconds. |
Builderio/agentscope/runtime/protocol/a2a/A2aProtocolConfig.java:76–79build
public A2aProtocolConfig build()
构建并返回最终实例。
Creates and returns an instance.
A2aProtocolConfigio/agentscope/runtime/protocol/a2a/A2aProtocolConfig.java:81–86