Record Class AgentCard_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.AgentCard_v0_3
public record AgentCard_v0_3(String name, String description, String url, AgentProvider_v0_3 provider, String version, String documentationUrl, AgentCapabilities_v0_3 capabilities, List<String> defaultInputModes, List<String> defaultOutputModes, List<AgentSkill_v0_3> skills, boolean supportsAuthenticatedExtendedCard, Map<String, SecurityScheme_v0_3> securitySchemes, List<Map<String, List<String>>> security, String iconUrl, List<AgentInterface_v0_3> additionalInterfaces, String preferredTransport, String protocolVersion, List<AgentCardSignature_v0_3> 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_v0_3(String name, String description, String url, AgentProvider_v0_3 provider, String version, String documentationUrl, AgentCapabilities_v0_3 capabilities, List<String> defaultInputModes, List<String> defaultOutputModes, List<AgentSkill_v0_3> skills, boolean supportsAuthenticatedExtendedCard, Map<String, SecurityScheme_v0_3> securitySchemes, List<Map<String, List<String>>> security, String iconUrl, List<AgentInterface_v0_3> additionalInterfaces, String preferredTransport, String protocolVersion, List<AgentCardSignature_v0_3> signatures) Creates an instance of aAgentCard_v0_3record 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_v0_3
public AgentCard_v0_3(String name, String description, String url, AgentProvider_v0_3 provider, String version, String documentationUrl, AgentCapabilities_v0_3 capabilities, List<String> defaultInputModes, List<String> defaultOutputModes, List<AgentSkill_v0_3> skills, boolean supportsAuthenticatedExtendedCard, Map<String, SecurityScheme_v0_3> securitySchemes, List<Map<String, List<String>>> security, String iconUrl, List<AgentInterface_v0_3> additionalInterfaces, String preferredTransport, String protocolVersion, List<AgentCardSignature_v0_3> signatures) Creates an instance of aAgentCard_v0_3record 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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-
defaultOutputModes
-
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
-
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
-