Class AgentScopeAgentCardConverter
java.lang.Object
io.agentscope.core.a2a.server.card.AgentScopeAgentCardConverter
Agent Card Builder For Agent Scope A2A Server.
The Converter will convert input ConfigurableAgentCard to an AgentCard instance, available
TransportProperties and AgentRunner.
Attributes of AgentCard build rules:
- name: first from
ConfigurableAgentCard, default fromAgentRunner.getAgentName(). - description: first from
ConfigurableAgentCard, default fromAgentRunner.getAgentDescription()()}. - provider: only from
ConfigurableAgentCard, default null. - version: only from
ConfigurableAgentCard, default 1.0.0 - documentationUrl: only from
ConfigurableAgentCard, default null. - capabilities: only from agentscope implementation, not supported to config.
- defaultInputModes/defaultOutputModes: first from
ConfigurableAgentCard, default `["text"]`. - skills: first from
ConfigurableAgentCard, default empty list. - supportsAuthenticatedExtendedCard: only
falsefor now. - securitySchemes: only from
ConfigurableAgentCard, default null. - security: only from
ConfigurableAgentCard, default null. - iconUrl: only from
ConfigurableAgentCard, default null. - additionalInterfaces: first from
ConfigurableAgentCard, default from availableTransports. - preferredTransport: first from
ConfigurableAgentCard, default is `JSONRPC`, if not found in availableTransports, will random one from availableTransports. - url: first from
ConfigurableAgentCard, default from `JSONRPC` transportProperties, if not found in availableTransports, will random one from availableTransports. - protocolVersion: only from agentscope implementation, not supported to config. current version is `0.3.0`
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.a2a.spec.AgentCardcreateAgentCard(ConfigurableAgentCard agentCard, AgentRunner agentRunner, Set<TransportProperties> availableTransports)
-
Constructor Details
-
AgentScopeAgentCardConverter
public AgentScopeAgentCardConverter()
-
-
Method Details
-
createAgentCard
public io.a2a.spec.AgentCard createAgentCard(ConfigurableAgentCard agentCard, AgentRunner agentRunner, Set<TransportProperties> availableTransports)
-