Package io.a2a.spec
Record Class AgentCard
java.lang.Object
java.lang.Record
io.a2a.spec.AgentCard
public record AgentCard(String name, String description, String url, AgentProvider provider, String version, String documentationUrl, AgentCapabilities capabilities, 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, String protocolVersion, List<AgentCardSignature> signatures)
extends Record
The AgentCard is a self-describing manifest for an agent. It provides essential
metadata including the agent's identity, capabilities, skills, supported
communication methods, and security requirements.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAgentCard(String name, String description, String url, AgentProvider provider, String version, String documentationUrl, AgentCapabilities capabilities, 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, String protocolVersion, List<AgentCardSignature> signatures) Creates an instance of aAgentCardrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalInterfacesrecord component.Returns the value of thecapabilitiesrecord component.Returns the value of thedefaultInputModesrecord component.Returns the value of thedefaultOutputModesrecord component.Returns the value of thedescriptionrecord component.Returns the value of thedocumentationUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.iconUrl()Returns the value of theiconUrlrecord component.name()Returns the value of thenamerecord component.Returns the value of thepreferredTransportrecord component.Returns the value of theprotocolVersionrecord component.provider()Returns the value of theproviderrecord component.security()Returns the value of thesecurityrecord component.Returns the value of thesecuritySchemesrecord component.Returns the value of thesignaturesrecord component.skills()Returns the value of theskillsrecord component.booleanReturns the value of thesupportsAuthenticatedExtendedCardrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
AgentCard
public AgentCard(String name, String description, String url, AgentProvider provider, String version, String documentationUrl, AgentCapabilities capabilities, 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, String protocolVersion, List<AgentCardSignature> signatures) Creates an instance of aAgentCardrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenturl- the value for theurlrecord componentprovider- the value for theproviderrecord componentversion- the value for theversionrecord componentdocumentationUrl- the value for thedocumentationUrlrecord componentcapabilities- the value for thecapabilitiesrecord componentdefaultInputModes- the value for thedefaultInputModesrecord componentdefaultOutputModes- the value for thedefaultOutputModesrecord componentskills- the value for theskillsrecord componentsupportsAuthenticatedExtendedCard- the value for thesupportsAuthenticatedExtendedCardrecord componentsecuritySchemes- the value for thesecuritySchemesrecord componentsecurity- the value for thesecurityrecord componenticonUrl- the value for theiconUrlrecord componentadditionalInterfaces- the value for theadditionalInterfacesrecord componentpreferredTransport- the value for thepreferredTransportrecord componentprotocolVersion- the value for theprotocolVersionrecord componentsignatures- the value for thesignaturesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
documentationUrl
Returns the value of thedocumentationUrlrecord component.- Returns:
- the value of the
documentationUrlrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
defaultInputModes
Returns the value of thedefaultInputModesrecord component.- Returns:
- the value of the
defaultInputModesrecord component
-
defaultOutputModes
Returns the value of thedefaultOutputModesrecord component.- Returns:
- the value of the
defaultOutputModesrecord component
-
skills
Returns the value of theskillsrecord component.- Returns:
- the value of the
skillsrecord component
-
supportsAuthenticatedExtendedCard
public boolean supportsAuthenticatedExtendedCard()Returns the value of thesupportsAuthenticatedExtendedCardrecord component.- Returns:
- the value of the
supportsAuthenticatedExtendedCardrecord component
-
securitySchemes
Returns the value of thesecuritySchemesrecord component.- Returns:
- the value of the
securitySchemesrecord component
-
security
Returns the value of thesecurityrecord component.- Returns:
- the value of the
securityrecord component
-
iconUrl
Returns the value of theiconUrlrecord component.- Returns:
- the value of the
iconUrlrecord component
-
additionalInterfaces
Returns the value of theadditionalInterfacesrecord component.- Returns:
- the value of the
additionalInterfacesrecord component
-
preferredTransport
Returns the value of thepreferredTransportrecord component.- Returns:
- the value of the
preferredTransportrecord component
-
protocolVersion
Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
signatures
Returns the value of thesignaturesrecord component.- Returns:
- the value of the
signaturesrecord component
-