ConfigurableAgentCard
public class ConfigurableAgentCard
io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:36–264Configurable 智能体卡片,支持智能体之间的发现、委派与协作。位于 io.agentscope.runtime.protocol.a2a 包。核心成员包括 getName、getDescription、getUrl、getProvider、getVersion、getDocumentationUrl。
Configurable attribute for export agent card of this agent.
These attributes are used to generate agent card which export by well-known URL.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.runtime.protocol.a2a that supports discovery, delegation and collaboration between agents. |
构造器摘要Constructor Summary
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getName() | 获取名称。 Returns the name. |
public String getDescription() | 获取 `getDescription`。 Returns the description. |
public String getUrl() | 获取URL。 Returns the url. |
public AgentProvider getProvider() | 获取提供者。 Returns the provider. |
public String getVersion() | 获取版本。 Returns the version. |
public String getDocumentationUrl() | 获取 `getDocumentationUrl`。 Returns the documentation url. |
public List<String> getDefaultInputModes() | 获取 `getDefaultInputModes`。 Returns the default input modes. |
public List<String> getDefaultOutputModes() | 获取 `getDefaultOutputModes`。 Returns the default output modes. |
public List<AgentSkill> getSkills() | 获取技能。 Returns the skills. |
public boolean isSupportsAuthenticatedExtendedCard() | 判断是否 `isSupportsAuthenticatedExtendedCard`。 Returns whether the supports authenticated extended card. |
public Map<String, SecurityScheme> getSecuritySchemes() | 获取 `getSecuritySchemes`。 Returns the security schemes. |
public List<Map<String, List<String>>> getSecurity() | 获取 `getSecurity`。 Returns the security. |
public String getIconUrl() | 获取 `getIconUrl`。 Returns the icon url. |
public List<AgentInterface> getAdditionalInterfaces() | 获取 `getAdditionalInterfaces`。 Returns the additional interfaces. |
public String getPreferredTransport() | 获取 `getPreferredTransport`。 Returns the preferred transport. |
构造器详情Constructor Detail
ConfigurableAgentCard
public ConfigurableAgentCard(String name, String description, String url, AgentProvider provider, String version, String documentationUrl, List<String> defaultInputModes, List<String> defaultOutputModes, List<AgentSkill> skills, boolean supportsAuthenticatedExtendedCard, Map<String, SecurityScheme> securitySchemes, List<Map<String, List<String>>> security, String iconUrl, List<AgentInterface> additionalInterfaces, String preferredTransport)
初始化 ConfigurableAgentCard 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
description | String | 描述(类型 `String`)。The description. |
url | String | 服务地址(类型 `String`)。The url. |
provider | AgentProvider | 提供者(类型 `AgentProvider`)。The provider. |
version | String | 版本(类型 `String`)。The version. |
documentationUrl | String | documentation URL(类型 `String`)。The documentation url. |
defaultInputModes | List<String> | 默认输入 Modes(类型 `List`)。The default input modes. |
defaultOutputModes | List<String> | 默认输出 Modes(类型 `List`)。The default output modes. |
skills | List<AgentSkill> | 技能(类型 `List`)。The skills. |
supportsAuthenticatedExtendedCard | boolean | 支持 Authenticated Extended 卡片(类型 `boolean`)。The supports authenticated extended card. |
securitySchemes | Map<String, SecurityScheme> | security Schemes(类型 `Map`)。The security schemes. |
security | List<Map<String, List<String>>> | security(类型 `List >>`)。The security. |
iconUrl | String | icon URL(类型 `String`)。The icon url. |
additionalInterfaces | List<AgentInterface> | additional Interfaces(类型 `List`)。The additional interfaces. |
preferredTransport | String | preferred 传输层(类型 `String`)。The preferred transport. |
io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:68–89方法详情Method Detail
getName
public String getName()
获取名称。
Returns the name.
Stringio/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:91–93getDescription
public String getDescription()
获取 getDescription。
Returns the description.
Stringio/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:95–97getUrl
public String getUrl()
获取URL。
Returns the url.
Stringio/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:99–101getProvider
public AgentProvider getProvider()
获取提供者。
Returns the provider.
AgentProviderio/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:103–105getVersion
public String getVersion()
获取版本。
Returns the version.
Stringio/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:107–109getDocumentationUrl
public String getDocumentationUrl()
获取 getDocumentationUrl。
Returns the documentation url.
Stringio/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:111–113getDefaultInputModes
public List<String> getDefaultInputModes()
获取 getDefaultInputModes。
Returns the default input modes.
List<String>io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:115–117getDefaultOutputModes
public List<String> getDefaultOutputModes()
获取 getDefaultOutputModes。
Returns the default output modes.
List<String>io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:119–121getSkills
public List<AgentSkill> getSkills()
获取技能。
Returns the skills.
List<AgentSkill>io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:123–125isSupportsAuthenticatedExtendedCard
public boolean isSupportsAuthenticatedExtendedCard()
判断是否 isSupportsAuthenticatedExtendedCard。
Returns whether the supports authenticated extended card.
booleanio/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:127–129getSecuritySchemes
public Map<String, SecurityScheme> getSecuritySchemes()
获取 getSecuritySchemes。
Returns the security schemes.
Map<String, SecurityScheme>io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:131–133getSecurity
public List<Map<String, List<String>>> getSecurity()
获取 getSecurity。
Returns the security.
List<Map<String, List<String>>>io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:135–137getIconUrl
public String getIconUrl()
获取 getIconUrl。
Returns the icon url.
Stringio/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:139–141getAdditionalInterfaces
public List<AgentInterface> getAdditionalInterfaces()
获取 getAdditionalInterfaces。
Returns the additional interfaces.
List<AgentInterface>io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:143–145getPreferredTransport
public String getPreferredTransport()
获取 getPreferredTransport。
Returns the preferred transport.
Stringio/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:147–149嵌套类详情Nested Class Detail
Builder
public static class Builder构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.protocol.a2a 包。核心成员包括 name、description、url、provider、version、documentationUrl。
A class in io.agentscope.runtime.protocol.a2a that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.runtime.protocol.a2a.