Builder
public static class Builder
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:150–267构建器,用于构建并配置目标实例。位于 io.agentscope.core.a2a.server.card 包。核心成员包括 name、description、url、provider、version、documentationUrl。
A class in io.agentscope.core.a2a.server.card that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.core.a2a.server.card.
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
name | String | 名称字段。 The name field. |
description | String | `description` 字段。 The description field. |
url | String | URL字段。 The url field. |
provider | AgentProvider | 提供者字段。 The provider field. |
version | String | 版本字段。 The version field. |
documentationUrl | String | `documentationUrl` 字段。 The documentation url field. |
defaultInputModes | List<String> | `defaultInputModes` 字段。 The default input modes field. |
defaultOutputModes | List<String> | `defaultOutputModes` 字段。 The default output modes field. |
skills | List<AgentSkill> | 技能字段。 The skills field. |
securitySchemes | Map<String, SecurityScheme> | `securitySchemes` 字段。 The security schemes field. |
security | List<Map<String, List<String>>> | `security` 字段。 The security field. |
iconUrl | String | `iconUrl` 字段。 The icon url field. |
additionalInterfaces | List<AgentInterface> | `additionalInterfaces` 字段。 The additional interfaces field. |
preferredTransport | String | `preferredTransport` 字段。 The preferred transport field. |
方法摘要Method Summary
字段详情Field Detail
name
protected String name
名称字段。声明为 protected String name。
The name field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:152description
protected String description
description 字段。声明为 protected String description。
The description field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:154url
protected String url
URL字段。声明为 protected String url。
The url field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:156provider
protected AgentProvider provider
提供者字段。声明为 protected AgentProvider provider。
The provider field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:158version
protected String version
版本字段。声明为 protected String version。
The version field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:160documentationUrl
protected String documentationUrl
documentationUrl 字段。声明为 protected String documentationUrl。
The documentation url field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:162defaultInputModes
protected List<String> defaultInputModes
defaultInputModes 字段。声明为 protected List defaultInputModes。
The default input modes field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:164defaultOutputModes
protected List<String> defaultOutputModes
defaultOutputModes 字段。声明为 protected List defaultOutputModes。
The default output modes field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:166skills
protected List<AgentSkill> skills
技能字段。声明为 protected List skills。
The skills field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:168securitySchemes
protected Map<String, SecurityScheme> securitySchemes
securitySchemes 字段。声明为 protected Map securitySchemes。
The security schemes field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:170security
protected List<Map<String, List<String>>> security
security 字段。声明为 protected List >> security。
The security field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:172iconUrl
protected String iconUrl
iconUrl 字段。声明为 protected String iconUrl。
The icon url field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:174additionalInterfaces
protected List<AgentInterface> additionalInterfaces
additionalInterfaces 字段。声明为 protected List additionalInterfaces。
The additional interfaces field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:176preferredTransport
protected String preferredTransport
preferredTransport 字段。声明为 protected String preferredTransport。
The preferred transport field.
io/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:178方法详情Method Detail
name
public Builder name(String name)
设置名称。
Performs the name operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:180–183description
public Builder description(String description)
设置该配置项。
Performs the description operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
description | String | 描述(类型 `String`)。The description. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:185–188url
public Builder url(String url)
设置URL。
Performs the url operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
url | String | 服务地址(类型 `String`)。The url. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:190–193provider
public Builder provider(AgentProvider provider)
设置提供者。
Performs the provider operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
provider | AgentProvider | 提供者(类型 `AgentProvider`)。The provider. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:195–198version
public Builder version(String version)
设置版本。
Performs the version operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
version | String | 版本(类型 `String`)。The version. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:200–203documentationUrl
public Builder documentationUrl(String documentationUrl)
设置该配置项。
Performs the documentation url operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
documentationUrl | String | documentation URL(类型 `String`)。The documentation url. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:205–208defaultInputModes
public Builder defaultInputModes(List<String> defaultInputModes)
设置该配置项。
Performs the default input modes operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
defaultInputModes | List<String> | 默认输入 Modes(类型 `List`)。The default input modes. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:210–213defaultOutputModes
public Builder defaultOutputModes(List<String> defaultOutputModes)
设置该配置项。
Performs the default output modes operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
defaultOutputModes | List<String> | 默认输出 Modes(类型 `List`)。The default output modes. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:215–218skills
public Builder skills(List<AgentSkill> skills)
设置技能。
Performs the skills operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
skills | List<AgentSkill> | 技能(类型 `List`)。The skills. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:220–223securitySchemes
public Builder securitySchemes(Map<String, SecurityScheme> securitySchemes)
设置该配置项。
Performs the security schemes operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
securitySchemes | Map<String, SecurityScheme> | security Schemes(类型 `Map`)。The security schemes. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:225–228security
public Builder security(List<Map<String, List<String>>> security)
设置该配置项。
Performs the security operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
security | List<Map<String, List<String>>> | security(类型 `List >>`)。The security. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:230–233iconUrl
public Builder iconUrl(String iconUrl)
设置该配置项。
Performs the icon url operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
iconUrl | String | icon URL(类型 `String`)。The icon url. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:235–238additionalInterfaces
public Builder additionalInterfaces(List<AgentInterface> additionalInterfaces)
设置该参数。
Performs the additional interfaces operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
additionalInterfaces | List<AgentInterface> | additional Interfaces(类型 `List`)。The additional interfaces. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:240–243preferredTransport
public Builder preferredTransport(String preferredTransport)
设置该配置项。
Performs the preferred transport operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
preferredTransport | String | preferred 传输层(类型 `String`)。The preferred transport. |
Builderio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:245–248build
public ConfigurableAgentCard build()
构建并返回最终实例。
Creates and returns an instance.
ConfigurableAgentCardio/agentscope/core/a2a/server/card/ConfigurableAgentCard.java:250–266