Package io.a2a.spec
Record Class AgentSkill
java.lang.Object
java.lang.Record
io.a2a.spec.AgentSkill
public record AgentSkill(String id, String name, String description, List<String> tags, List<String> examples, List<String> inputModes, List<String> outputModes, List<Map<String,List<String>>> security)
extends Record
The set of skills, or distinct capabilities, that the agent can perform.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.examples()Returns the value of theexamplesrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinputModesrecord component.name()Returns the value of thenamerecord component.Returns the value of theoutputModesrecord component.security()Returns the value of thesecurityrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentSkill
public AgentSkill(String id, String name, String description, List<String> tags, List<String> examples, List<String> inputModes, List<String> outputModes, List<Map<String, List<String>>> security) Creates an instance of aAgentSkillrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenttags- the value for thetagsrecord componentexamples- the value for theexamplesrecord componentinputModes- the value for theinputModesrecord componentoutputModes- the value for theoutputModesrecord componentsecurity- the value for thesecurityrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
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
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
examples
Returns the value of theexamplesrecord component.- Returns:
- the value of the
examplesrecord component
-
inputModes
Returns the value of theinputModesrecord component.- Returns:
- the value of the
inputModesrecord component
-
outputModes
Returns the value of theoutputModesrecord component.- Returns:
- the value of the
outputModesrecord component
-
security
Returns the value of thesecurityrecord component.- Returns:
- the value of the
securityrecord component
-