AS AgentScopeAPI 手册 / API Reference

A2aAgentCardProperties

@ConfigurationProperties(Constants.A2A_SERVER_CARD_PREFIX) public class A2aAgentCardProperties
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:33–176

A 2 a 智能体卡片属性,承载智能体的部署、调度与服务化运行。位于 io.agentscope.runtime.autoconfigure 包。核心成员包括 getName、setName、getDescription、setDescription、getUrl、setUrl。

A2a server agent card properties.

方法摘要Method Summary

方法Method说明Description
public String getName()
获取名称。
Returns the name.
public void setName(String name)
设置名称。
Sets the name.
public String getDescription()
获取 `getDescription`。
Returns the description.
public void setDescription(String description)
设置 `setDescription`。
Sets the description.
public String getUrl()
获取URL。
Returns the url.
public void setUrl(String url)
设置URL。
Sets the url.
public AgentProvider getProvider()
获取提供者。
Returns the provider.
public void setProvider(AgentProvider provider)
设置提供者。
Sets the provider.
public String getVersion()
获取版本。
Returns the version.
public void setVersion(String version)
设置版本。
Sets the version.
public String getDocumentationUrl()
获取 `getDocumentationUrl`。
Returns the documentation url.
public void setDocumentationUrl(String documentationUrl)
设置 `setDocumentationUrl`。
Sets the documentation url.
public List<String> getDefaultInputModes()
获取 `getDefaultInputModes`。
Returns the default input modes.
public void setDefaultInputModes(List<String> defaultInputModes)
设置 `setDefaultInputModes`。
Sets the default input modes.
public List<String> getDefaultOutputModes()
获取 `getDefaultOutputModes`。
Returns the default output modes.
public void setDefaultOutputModes(List<String> defaultOutputModes)
设置 `setDefaultOutputModes`。
Sets the default output modes.
public List<AgentSkill> getSkills()
获取技能。
Returns the skills.
public void setSkills(List<AgentSkill> skills)
设置技能。
Sets the skills.
public boolean isSupportsAuthenticatedExtendedCard()
判断是否 `isSupportsAuthenticatedExtendedCard`。
Returns whether the supports authenticated extended card.
public void setSupportsAuthenticatedExtendedCard(boolean supportsAuthenticatedExtendedCard)
设置 `setSupportsAuthenticatedExtendedCard`。
Sets the supports authenticated extended card.
public Map<String, SecurityScheme> getSecuritySchemes()
获取 `getSecuritySchemes`。
Returns the security schemes.
public void setSecuritySchemes(Map<String, SecurityScheme> securitySchemes)
设置 `setSecuritySchemes`。
Sets the security schemes.
public List<Map<String, List<String>>> getSecurity()
获取 `getSecurity`。
Returns the security.
public void setSecurity(List<Map<String, List<String>>> security)
设置 `setSecurity`。
Sets the security.
public String getIconUrl()
获取 `getIconUrl`。
Returns the icon url.
public void setIconUrl(String iconUrl)
设置 `setIconUrl`。
Sets the icon url.
public List<AgentInterface> getAdditionalInterfaces()
获取 `getAdditionalInterfaces`。
Returns the additional interfaces.
public void setAdditionalInterfaces(List<AgentInterface> additionalInterfaces)
设置 `setAdditionalInterfaces`。
Sets the additional interfaces.

方法详情Method Detail

getName

public String getName()

获取名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:64–66

setName

public void setName(String name)

设置名称。

Sets the name.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:68–70

getDescription

public String getDescription()

获取 getDescription。

Returns the description.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:72–74

setDescription

public void setDescription(String description)

设置 setDescription。

Sets the description.

参数Parameters
名称Name类型Type说明Description
descriptionString描述(类型 `String`)。The description.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:76–78

getUrl

public String getUrl()

获取URL。

Returns the url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:80–82

setUrl

public void setUrl(String url)

设置URL。

Sets the url.

参数Parameters
名称Name类型Type说明Description
urlString服务地址(类型 `String`)。The url.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:84–86

getProvider

public AgentProvider getProvider()

获取提供者。

Returns the provider.

返回Returns AgentProvider
返回AgentProvider。Returns agent provider.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:88–90

setProvider

public void setProvider(AgentProvider provider)

设置提供者。

Sets the provider.

参数Parameters
名称Name类型Type说明Description
providerAgentProvider提供者(类型 `AgentProvider`)。The provider.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:92–94

getVersion

public String getVersion()

获取版本。

Returns the version.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:96–98

setVersion

public void setVersion(String version)

设置版本。

Sets the version.

参数Parameters
名称Name类型Type说明Description
versionString版本(类型 `String`)。The version.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:100–102

getDocumentationUrl

public String getDocumentationUrl()

获取 getDocumentationUrl。

Returns the documentation url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:104–106

setDocumentationUrl

public void setDocumentationUrl(String documentationUrl)

设置 setDocumentationUrl。

Sets the documentation url.

参数Parameters
名称Name类型Type说明Description
documentationUrlStringdocumentation URL(类型 `String`)。The documentation url.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:108–110

getDefaultInputModes

public List<String> getDefaultInputModes()

获取 getDefaultInputModes。

Returns the default input modes.

返回Returns List<String>
返回列出。Returns list.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:112–114

setDefaultInputModes

public void setDefaultInputModes(List<String> defaultInputModes)

设置 setDefaultInputModes。

Sets the default input modes.

参数Parameters
名称Name类型Type说明Description
defaultInputModesList<String>默认输入 Modes(类型 `List`)。The default input modes.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:116–118

getDefaultOutputModes

public List<String> getDefaultOutputModes()

获取 getDefaultOutputModes。

Returns the default output modes.

返回Returns List<String>
返回列出。Returns list.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:120–122

setDefaultOutputModes

public void setDefaultOutputModes(List<String> defaultOutputModes)

设置 setDefaultOutputModes。

Sets the default output modes.

参数Parameters
名称Name类型Type说明Description
defaultOutputModesList<String>默认输出 Modes(类型 `List`)。The default output modes.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:124–126

getSkills

public List<AgentSkill> getSkills()

获取技能。

Returns the skills.

返回Returns List<AgentSkill>
返回列出。Returns list.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:128–130

setSkills

public void setSkills(List<AgentSkill> skills)

设置技能。

Sets the skills.

参数Parameters
名称Name类型Type说明Description
skillsList<AgentSkill>技能(类型 `List`)。The skills.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:132–134

isSupportsAuthenticatedExtendedCard

public boolean isSupportsAuthenticatedExtendedCard()

判断是否 isSupportsAuthenticatedExtendedCard。

Returns whether the supports authenticated extended card.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:136–138

setSupportsAuthenticatedExtendedCard

public void setSupportsAuthenticatedExtendedCard(boolean supportsAuthenticatedExtendedCard)

设置 setSupportsAuthenticatedExtendedCard。

Sets the supports authenticated extended card.

参数Parameters
名称Name类型Type说明Description
supportsAuthenticatedExtendedCardboolean支持 Authenticated Extended 卡片(类型 `boolean`)。The supports authenticated extended card.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:140–142

getSecuritySchemes

public Map<String, SecurityScheme> getSecuritySchemes()

获取 getSecuritySchemes。

Returns the security schemes.

返回Returns Map<String, SecurityScheme>
返回映射。Returns map.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:144–146

setSecuritySchemes

public void setSecuritySchemes(Map<String, SecurityScheme> securitySchemes)

设置 setSecuritySchemes。

Sets the security schemes.

参数Parameters
名称Name类型Type说明Description
securitySchemesMap<String, SecurityScheme>security Schemes(类型 `Map`)。The security schemes.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:148–150

getSecurity

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

获取 getSecurity。

Returns the security.

返回Returns List<Map<String, List<String>>>
返回列出>>。Returns list.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:152–154

setSecurity

public void setSecurity(List<Map<String, List<String>>> security)

设置 setSecurity。

Sets the security.

参数Parameters
名称Name类型Type说明Description
securityList<Map<String, List<String>>>security(类型 `List >>`)。The security.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:156–158

getIconUrl

public String getIconUrl()

获取 getIconUrl。

Returns the icon url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:160–162

setIconUrl

public void setIconUrl(String iconUrl)

设置 setIconUrl。

Sets the icon url.

参数Parameters
名称Name类型Type说明Description
iconUrlStringicon URL(类型 `String`)。The icon url.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:164–166

getAdditionalInterfaces

public List<AgentInterface> getAdditionalInterfaces()

获取 getAdditionalInterfaces。

Returns the additional interfaces.

返回Returns List<AgentInterface>
返回列出。Returns list.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:168–170

setAdditionalInterfaces

public void setAdditionalInterfaces(List<AgentInterface> additionalInterfaces)

设置 setAdditionalInterfaces。

Sets the additional interfaces.

参数Parameters
名称Name类型Type说明Description
additionalInterfacesList<AgentInterface>additional Interfaces(类型 `List`)。The additional interfaces.
源码Source io/agentscope/runtime/autoconfigure/A2aAgentCardProperties.java:172–174
基于官方固定版本源码静态生成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.