Class AgentSkill

java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.AgentSkill

public class AgentSkill extends Object
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 Details

    • AgentSkill

      public AgentSkill()
  • Method Details

    • copy

      public AgentSkill copy()
      Creates a copy of this AgentSkill.
      Returns:
      A new AgentSkill instance with the same values as this one
    • getId

      public String getId()
      Gets the unique identifier for this skill.
      Returns:
      The skill's ID
    • setId

      public void setId(String id)
      Sets the unique identifier for this skill.
      Parameters:
      id - The skill's ID
    • getName

      public String getName()
      Gets the human-readable name of this skill.
      Returns:
      The skill's name
    • setName

      public void setName(String name)
      Sets the human-readable name of this skill.
      Parameters:
      name - The skill's name
    • getDescription

      public String getDescription()
      Gets the detailed description of what this skill does.
      Returns:
      The skill's description
    • setDescription

      public void setDescription(String description)
      Sets the detailed description of what this skill does.
      Parameters:
      description - The skill's description
    • getTags

      public List<String> getTags()
      Gets the list of tags that categorize this skill.
      Returns:
      The skill's tags
    • setTags

      public void setTags(List<String> tags)
      Sets the list of tags that categorize this skill.
      Parameters:
      tags - The skill's tags
    • getExamples

      public List<String> getExamples()
      Gets the example prompts or inputs for this skill.
      Returns:
      The skill's examples
    • setExamples

      public void setExamples(List<String> examples)
      Sets the example prompts or inputs for this skill.
      Parameters:
      examples - The skill's examples
    • getInputModes

      public List<String> getInputModes()
      Gets the input formats that this skill accepts.
      Returns:
      The skill's input modes
    • setInputModes

      public void setInputModes(List<String> inputModes)
      Sets the input formats that this skill accepts.
      Parameters:
      inputModes - The skill's input modes
    • getOutputModes

      public List<String> getOutputModes()
      Gets the output formats that this skill produces.
      Returns:
      The skill's output modes
    • setOutputModes

      public void setOutputModes(List<String> outputModes)
      Sets the output formats that this skill produces.
      Parameters:
      outputModes - The skill's output modes
    • equals

      public boolean equals(Object object)
      Compares this AgentSkill with another object for equality.
      Overrides:
      equals in class Object
      Parameters:
      object - The object to compare with
      Returns:
      true if the objects are equal, false otherwise
    • hashCode

      public int hashCode()
      Generates a hash code for this AgentSkill.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this object