AS AgentScopeAPI 手册 / API Reference

ConfigurableAgentCard

public class ConfigurableAgentCard
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:36–264

Configurable 智能体卡片,支持智能体之间的发现、委派与协作。位于 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

构造器Constructor说明Description
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.

方法摘要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.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
descriptionString描述(类型 `String`)。The description.
urlString服务地址(类型 `String`)。The url.
providerAgentProvider提供者(类型 `AgentProvider`)。The provider.
versionString版本(类型 `String`)。The version.
documentationUrlStringdocumentation URL(类型 `String`)。The documentation url.
defaultInputModesList<String>默认输入 Modes(类型 `List`)。The default input modes.
defaultOutputModesList<String>默认输出 Modes(类型 `List`)。The default output modes.
skillsList<AgentSkill>技能(类型 `List`)。The skills.
supportsAuthenticatedExtendedCardboolean支持 Authenticated Extended 卡片(类型 `boolean`)。The supports authenticated extended card.
securitySchemesMap<String, SecurityScheme>security Schemes(类型 `Map`)。The security schemes.
securityList<Map<String, List<String>>>security(类型 `List >>`)。The security.
iconUrlStringicon URL(类型 `String`)。The icon url.
additionalInterfacesList<AgentInterface>additional Interfaces(类型 `List`)。The additional interfaces.
preferredTransportStringpreferred 传输层(类型 `String`)。The preferred transport.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:68–89

方法详情Method Detail

getName

public String getName()

获取名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:91–93

getDescription

public String getDescription()

获取 getDescription。

Returns the description.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:95–97

getUrl

public String getUrl()

获取URL。

Returns the url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:99–101

getProvider

public AgentProvider getProvider()

获取提供者。

Returns the provider.

返回Returns AgentProvider
返回AgentProvider。Returns agent provider.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:103–105

getVersion

public String getVersion()

获取版本。

Returns the version.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:107–109

getDocumentationUrl

public String getDocumentationUrl()

获取 getDocumentationUrl。

Returns the documentation url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:111–113

getDefaultInputModes

public List<String> getDefaultInputModes()

获取 getDefaultInputModes。

Returns the default input modes.

返回Returns List<String>
返回列出。Returns list.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:115–117

getDefaultOutputModes

public List<String> getDefaultOutputModes()

获取 getDefaultOutputModes。

Returns the default output modes.

返回Returns List<String>
返回列出。Returns list.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:119–121

getSkills

public List<AgentSkill> getSkills()

获取技能。

Returns the skills.

返回Returns List<AgentSkill>
返回列出。Returns list.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:123–125

isSupportsAuthenticatedExtendedCard

public boolean isSupportsAuthenticatedExtendedCard()

判断是否 isSupportsAuthenticatedExtendedCard。

Returns whether the supports authenticated extended card.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:127–129

getSecuritySchemes

public Map<String, SecurityScheme> getSecuritySchemes()

获取 getSecuritySchemes。

Returns the security schemes.

返回Returns Map<String, SecurityScheme>
返回映射。Returns map.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:131–133

getSecurity

public List<Map<String, List<String>>> getSecurity()

获取 getSecurity。

Returns the security.

返回Returns List<Map<String, List<String>>>
返回列出>>。Returns list.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:135–137

getIconUrl

public String getIconUrl()

获取 getIconUrl。

Returns the icon url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:139–141

getAdditionalInterfaces

public List<AgentInterface> getAdditionalInterfaces()

获取 getAdditionalInterfaces。

Returns the additional interfaces.

返回Returns List<AgentInterface>
返回列出。Returns list.
源码Source io/agentscope/runtime/protocol/a2a/ConfigurableAgentCard.java:143–145

getPreferredTransport

public String getPreferredTransport()

获取 getPreferredTransport。

Returns the preferred transport.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/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.

基于官方固定版本源码静态生成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.