Class AgentSkill
java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.AgentSkill
Represents a skill that an agent can perform within the A2A protocol.
A skill defines a specific capability that an agent offers, including its identification, descriptive information, and supported interaction formats.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of this AgentSkill.booleanCompares this AgentSkill with another object for equality.Gets the detailed description of what this skill does.Gets the example prompts or inputs for this skill.getId()Gets the unique identifier for this skill.Gets the input formats that this skill accepts.getName()Gets the human-readable name of this skill.Gets the output formats that this skill produces.getTags()Gets the list of tags that categorize this skill.inthashCode()Generates a hash code for this AgentSkill.voidsetDescription(String description) Sets the detailed description of what this skill does.voidsetExamples(List<String> examples) Sets the example prompts or inputs for this skill.voidSets the unique identifier for this skill.voidsetInputModes(List<String> inputModes) Sets the input formats that this skill accepts.voidSets the human-readable name of this skill.voidsetOutputModes(List<String> outputModes) Sets the output formats that this skill produces.voidSets the list of tags that categorize this skill.
-
Constructor Details
-
AgentSkill
public AgentSkill()
-
-
Method Details
-
copy
Creates a copy of this AgentSkill.- Returns:
- A new AgentSkill instance with the same values as this one
-
getId
Gets the unique identifier for this skill.- Returns:
- The skill's ID
-
setId
Sets the unique identifier for this skill.- Parameters:
id- The skill's ID
-
getName
Gets the human-readable name of this skill.- Returns:
- The skill's name
-
setName
Sets the human-readable name of this skill.- Parameters:
name- The skill's name
-
getDescription
Gets the detailed description of what this skill does.- Returns:
- The skill's description
-
setDescription
Sets the detailed description of what this skill does.- Parameters:
description- The skill's description
-
getTags
Gets the list of tags that categorize this skill.- Returns:
- The skill's tags
-
setTags
Sets the list of tags that categorize this skill.- Parameters:
tags- The skill's tags
-
getExamples
Gets the example prompts or inputs for this skill.- Returns:
- The skill's examples
-
setExamples
Sets the example prompts or inputs for this skill.- Parameters:
examples- The skill's examples
-
getInputModes
Gets the input formats that this skill accepts.- Returns:
- The skill's input modes
-
setInputModes
Sets the input formats that this skill accepts.- Parameters:
inputModes- The skill's input modes
-
getOutputModes
Gets the output formats that this skill produces.- Returns:
- The skill's output modes
-
setOutputModes
Sets the output formats that this skill produces.- Parameters:
outputModes- The skill's output modes
-
equals
Compares this AgentSkill with another object for equality. -
hashCode
public int hashCode()Generates a hash code for this AgentSkill.
-